configure 743 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. EXTRA_LDFLAGS
  582. BUILD_LDFLAGS
  583. EXTRA_CFLAGS
  584. BUILD_CFLAGS
  585. SDLTEST_OBJECTS
  586. SDLMAIN_OBJECTS
  587. VERSION_OBJECTS
  588. OBJECTS
  589. INCLUDE
  590. ac_aux_dir
  591. ENABLE_STATIC_FALSE
  592. ENABLE_STATIC_TRUE
  593. ENABLE_SHARED_FALSE
  594. ENABLE_SHARED_TRUE
  595. SDL_RLD_FLAGS
  596. SDL_STATIC_LIBS
  597. SDL_LIBS
  598. SDL_CFLAGS
  599. DIRECTFBCONFIG
  600. X_EXTRA_LIBS
  601. X_LIBS
  602. X_PRE_LIBS
  603. X_CFLAGS
  604. XMKMF
  605. ARTSCONFIG
  606. PKG_CONFIG
  607. ESD_LIBS
  608. ESD_CFLAGS
  609. ESD_CONFIG
  610. ALSA_LIBS
  611. ALSA_CFLAGS
  612. POW_LIB
  613. LIBOBJS
  614. ALLOCA
  615. WINDRES
  616. SET_MAKE
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. CXXCPP
  621. ac_ct_CXX
  622. CXXFLAGS
  623. CXX
  624. LT_AGE
  625. LT_REVISION
  626. LT_CURRENT
  627. LT_RELEASE
  628. CPP
  629. OTOOL64
  630. OTOOL
  631. LIPO
  632. NMEDIT
  633. DSYMUTIL
  634. MANIFEST_TOOL
  635. AWK
  636. RANLIB
  637. STRIP
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. NM
  642. ac_ct_DUMPBIN
  643. DUMPBIN
  644. LD
  645. FGREP
  646. EGREP
  647. GREP
  648. SED
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. LIBTOOL
  665. OBJDUMP
  666. DLLTOOL
  667. AS
  668. SDL_VERSION
  669. SDL_BINARY_AGE
  670. SDL_INTERFACE_AGE
  671. SDL_MICRO_VERSION
  672. SDL_MINOR_VERSION
  673. SDL_MAJOR_VERSION
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_assertions
  723. enable_dependency_tracking
  724. enable_libc
  725. enable_gcc_atomics
  726. enable_atomic
  727. enable_audio
  728. enable_video
  729. enable_render
  730. enable_events
  731. enable_joystick
  732. enable_haptic
  733. enable_power
  734. enable_filesystem
  735. enable_threads
  736. enable_timers
  737. enable_file
  738. enable_loadso
  739. enable_cpuinfo
  740. enable_assembly
  741. enable_ssemath
  742. enable_mmx
  743. enable_3dnow
  744. enable_sse
  745. enable_sse2
  746. enable_altivec
  747. enable_oss
  748. enable_alsa
  749. with_alsa_prefix
  750. with_alsa_inc_prefix
  751. enable_alsatest
  752. enable_alsa_shared
  753. enable_esd
  754. with_esd_prefix
  755. with_esd_exec_prefix
  756. enable_esdtest
  757. enable_esd_shared
  758. enable_pulseaudio
  759. enable_pulseaudio_shared
  760. enable_arts
  761. enable_arts_shared
  762. enable_nas
  763. enable_nas_shared
  764. enable_sndio
  765. enable_sndio_shared
  766. enable_diskaudio
  767. enable_dummyaudio
  768. enable_video_wayland
  769. enable_video_x11
  770. with_x
  771. enable_x11_shared
  772. enable_video_x11_xcursor
  773. enable_video_x11_xinerama
  774. enable_video_x11_xinput
  775. enable_video_x11_xrandr
  776. enable_video_x11_scrnsaver
  777. enable_video_x11_xshape
  778. enable_video_x11_vm
  779. enable_video_cocoa
  780. enable_video_directfb
  781. enable_directfb_shared
  782. enable_fusionsound
  783. enable_fusionsound_shared
  784. enable_video_dummy
  785. enable_video_opengl
  786. enable_video_opengles
  787. enable_libudev
  788. enable_dbus
  789. enable_input_tslib
  790. enable_pthreads
  791. enable_pthread_sem
  792. enable_directx
  793. enable_sdl_dlopen
  794. enable_clock_gettime
  795. enable_rpath
  796. enable_render_d3d
  797. '
  798. ac_precious_vars='build_alias
  799. host_alias
  800. target_alias
  801. CC
  802. CFLAGS
  803. LDFLAGS
  804. LIBS
  805. CPPFLAGS
  806. CPP
  807. CXX
  808. CXXFLAGS
  809. CCC
  810. CXXCPP
  811. XMKMF'
  812. # Initialize some variables set by options.
  813. ac_init_help=
  814. ac_init_version=false
  815. ac_unrecognized_opts=
  816. ac_unrecognized_sep=
  817. # The variables have the same names as the options, with
  818. # dashes changed to underlines.
  819. cache_file=/dev/null
  820. exec_prefix=NONE
  821. no_create=
  822. no_recursion=
  823. prefix=NONE
  824. program_prefix=NONE
  825. program_suffix=NONE
  826. program_transform_name=s,x,x,
  827. silent=
  828. site=
  829. srcdir=
  830. verbose=
  831. x_includes=NONE
  832. x_libraries=NONE
  833. # Installation directory options.
  834. # These are left unexpanded so users can "make install exec_prefix=/foo"
  835. # and all the variables that are supposed to be based on exec_prefix
  836. # by default will actually change.
  837. # Use braces instead of parens because sh, perl, etc. also accept them.
  838. # (The list follows the same order as the GNU Coding Standards.)
  839. bindir='${exec_prefix}/bin'
  840. sbindir='${exec_prefix}/sbin'
  841. libexecdir='${exec_prefix}/libexec'
  842. datarootdir='${prefix}/share'
  843. datadir='${datarootdir}'
  844. sysconfdir='${prefix}/etc'
  845. sharedstatedir='${prefix}/com'
  846. localstatedir='${prefix}/var'
  847. includedir='${prefix}/include'
  848. oldincludedir='/usr/include'
  849. docdir='${datarootdir}/doc/${PACKAGE}'
  850. infodir='${datarootdir}/info'
  851. htmldir='${docdir}'
  852. dvidir='${docdir}'
  853. pdfdir='${docdir}'
  854. psdir='${docdir}'
  855. libdir='${exec_prefix}/lib'
  856. localedir='${datarootdir}/locale'
  857. mandir='${datarootdir}/man'
  858. ac_prev=
  859. ac_dashdash=
  860. for ac_option
  861. do
  862. # If the previous option needs an argument, assign it.
  863. if test -n "$ac_prev"; then
  864. eval $ac_prev=\$ac_option
  865. ac_prev=
  866. continue
  867. fi
  868. case $ac_option in
  869. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  870. *=) ac_optarg= ;;
  871. *) ac_optarg=yes ;;
  872. esac
  873. # Accept the important Cygnus configure options, so we can diagnose typos.
  874. case $ac_dashdash$ac_option in
  875. --)
  876. ac_dashdash=yes ;;
  877. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  878. ac_prev=bindir ;;
  879. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  880. bindir=$ac_optarg ;;
  881. -build | --build | --buil | --bui | --bu)
  882. ac_prev=build_alias ;;
  883. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  884. build_alias=$ac_optarg ;;
  885. -cache-file | --cache-file | --cache-fil | --cache-fi \
  886. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  887. ac_prev=cache_file ;;
  888. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  889. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  890. cache_file=$ac_optarg ;;
  891. --config-cache | -C)
  892. cache_file=config.cache ;;
  893. -datadir | --datadir | --datadi | --datad)
  894. ac_prev=datadir ;;
  895. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  896. datadir=$ac_optarg ;;
  897. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  898. | --dataroo | --dataro | --datar)
  899. ac_prev=datarootdir ;;
  900. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  901. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  902. datarootdir=$ac_optarg ;;
  903. -disable-* | --disable-*)
  904. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  905. # Reject names that are not valid shell variable names.
  906. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  907. as_fn_error $? "invalid feature name: $ac_useropt"
  908. ac_useropt_orig=$ac_useropt
  909. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  910. case $ac_user_opts in
  911. *"
  912. "enable_$ac_useropt"
  913. "*) ;;
  914. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  915. ac_unrecognized_sep=', ';;
  916. esac
  917. eval enable_$ac_useropt=no ;;
  918. -docdir | --docdir | --docdi | --doc | --do)
  919. ac_prev=docdir ;;
  920. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  921. docdir=$ac_optarg ;;
  922. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  923. ac_prev=dvidir ;;
  924. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  925. dvidir=$ac_optarg ;;
  926. -enable-* | --enable-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. as_fn_error $? "invalid feature name: $ac_useropt"
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval enable_$ac_useropt=\$ac_optarg ;;
  941. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  942. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  943. | --exec | --exe | --ex)
  944. ac_prev=exec_prefix ;;
  945. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  946. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  947. | --exec=* | --exe=* | --ex=*)
  948. exec_prefix=$ac_optarg ;;
  949. -gas | --gas | --ga | --g)
  950. # Obsolete; use --with-gas.
  951. with_gas=yes ;;
  952. -help | --help | --hel | --he | -h)
  953. ac_init_help=long ;;
  954. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  955. ac_init_help=recursive ;;
  956. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  957. ac_init_help=short ;;
  958. -host | --host | --hos | --ho)
  959. ac_prev=host_alias ;;
  960. -host=* | --host=* | --hos=* | --ho=*)
  961. host_alias=$ac_optarg ;;
  962. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  963. ac_prev=htmldir ;;
  964. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  965. | --ht=*)
  966. htmldir=$ac_optarg ;;
  967. -includedir | --includedir | --includedi | --included | --include \
  968. | --includ | --inclu | --incl | --inc)
  969. ac_prev=includedir ;;
  970. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971. | --includ=* | --inclu=* | --incl=* | --inc=*)
  972. includedir=$ac_optarg ;;
  973. -infodir | --infodir | --infodi | --infod | --info | --inf)
  974. ac_prev=infodir ;;
  975. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976. infodir=$ac_optarg ;;
  977. -libdir | --libdir | --libdi | --libd)
  978. ac_prev=libdir ;;
  979. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980. libdir=$ac_optarg ;;
  981. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982. | --libexe | --libex | --libe)
  983. ac_prev=libexecdir ;;
  984. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985. | --libexe=* | --libex=* | --libe=*)
  986. libexecdir=$ac_optarg ;;
  987. -localedir | --localedir | --localedi | --localed | --locale)
  988. ac_prev=localedir ;;
  989. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  990. localedir=$ac_optarg ;;
  991. -localstatedir | --localstatedir | --localstatedi | --localstated \
  992. | --localstate | --localstat | --localsta | --localst | --locals)
  993. ac_prev=localstatedir ;;
  994. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  995. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  996. localstatedir=$ac_optarg ;;
  997. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998. ac_prev=mandir ;;
  999. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1000. mandir=$ac_optarg ;;
  1001. -nfp | --nfp | --nf)
  1002. # Obsolete; use --without-fp.
  1003. with_fp=no ;;
  1004. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1005. | --no-cr | --no-c | -n)
  1006. no_create=yes ;;
  1007. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1008. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1009. no_recursion=yes ;;
  1010. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1011. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1012. | --oldin | --oldi | --old | --ol | --o)
  1013. ac_prev=oldincludedir ;;
  1014. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1015. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1016. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1017. oldincludedir=$ac_optarg ;;
  1018. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1019. ac_prev=prefix ;;
  1020. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1021. prefix=$ac_optarg ;;
  1022. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1023. | --program-pre | --program-pr | --program-p)
  1024. ac_prev=program_prefix ;;
  1025. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1026. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1027. program_prefix=$ac_optarg ;;
  1028. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029. | --program-suf | --program-su | --program-s)
  1030. ac_prev=program_suffix ;;
  1031. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033. program_suffix=$ac_optarg ;;
  1034. -program-transform-name | --program-transform-name \
  1035. | --program-transform-nam | --program-transform-na \
  1036. | --program-transform-n | --program-transform- \
  1037. | --program-transform | --program-transfor \
  1038. | --program-transfo | --program-transf \
  1039. | --program-trans | --program-tran \
  1040. | --progr-tra | --program-tr | --program-t)
  1041. ac_prev=program_transform_name ;;
  1042. -program-transform-name=* | --program-transform-name=* \
  1043. | --program-transform-nam=* | --program-transform-na=* \
  1044. | --program-transform-n=* | --program-transform-=* \
  1045. | --program-transform=* | --program-transfor=* \
  1046. | --program-transfo=* | --program-transf=* \
  1047. | --program-trans=* | --program-tran=* \
  1048. | --progr-tra=* | --program-tr=* | --program-t=*)
  1049. program_transform_name=$ac_optarg ;;
  1050. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1051. ac_prev=pdfdir ;;
  1052. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1053. pdfdir=$ac_optarg ;;
  1054. -psdir | --psdir | --psdi | --psd | --ps)
  1055. ac_prev=psdir ;;
  1056. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057. psdir=$ac_optarg ;;
  1058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1059. | -silent | --silent | --silen | --sile | --sil)
  1060. silent=yes ;;
  1061. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1062. ac_prev=sbindir ;;
  1063. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1064. | --sbi=* | --sb=*)
  1065. sbindir=$ac_optarg ;;
  1066. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1067. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1068. | --sharedst | --shareds | --shared | --share | --shar \
  1069. | --sha | --sh)
  1070. ac_prev=sharedstatedir ;;
  1071. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1072. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1073. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1074. | --sha=* | --sh=*)
  1075. sharedstatedir=$ac_optarg ;;
  1076. -site | --site | --sit)
  1077. ac_prev=site ;;
  1078. -site=* | --site=* | --sit=*)
  1079. site=$ac_optarg ;;
  1080. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1081. ac_prev=srcdir ;;
  1082. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1083. srcdir=$ac_optarg ;;
  1084. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085. | --syscon | --sysco | --sysc | --sys | --sy)
  1086. ac_prev=sysconfdir ;;
  1087. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089. sysconfdir=$ac_optarg ;;
  1090. -target | --target | --targe | --targ | --tar | --ta | --t)
  1091. ac_prev=target_alias ;;
  1092. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093. target_alias=$ac_optarg ;;
  1094. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1095. verbose=yes ;;
  1096. -version | --version | --versio | --versi | --vers | -V)
  1097. ac_init_version=: ;;
  1098. -with-* | --with-*)
  1099. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1102. as_fn_error $? "invalid package name: $ac_useropt"
  1103. ac_useropt_orig=$ac_useropt
  1104. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105. case $ac_user_opts in
  1106. *"
  1107. "with_$ac_useropt"
  1108. "*) ;;
  1109. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1110. ac_unrecognized_sep=', ';;
  1111. esac
  1112. eval with_$ac_useropt=\$ac_optarg ;;
  1113. -without-* | --without-*)
  1114. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1117. as_fn_error $? "invalid package name: $ac_useropt"
  1118. ac_useropt_orig=$ac_useropt
  1119. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120. case $ac_user_opts in
  1121. *"
  1122. "with_$ac_useropt"
  1123. "*) ;;
  1124. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1125. ac_unrecognized_sep=', ';;
  1126. esac
  1127. eval with_$ac_useropt=no ;;
  1128. --x)
  1129. # Obsolete; use --with-x.
  1130. with_x=yes ;;
  1131. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1132. | --x-incl | --x-inc | --x-in | --x-i)
  1133. ac_prev=x_includes ;;
  1134. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1135. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1136. x_includes=$ac_optarg ;;
  1137. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1138. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1139. ac_prev=x_libraries ;;
  1140. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1141. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1142. x_libraries=$ac_optarg ;;
  1143. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1144. Try \`$0 --help' for more information"
  1145. ;;
  1146. *=*)
  1147. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1148. # Reject names that are not valid shell variable names.
  1149. case $ac_envvar in #(
  1150. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1151. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1152. esac
  1153. eval $ac_envvar=\$ac_optarg
  1154. export $ac_envvar ;;
  1155. *)
  1156. # FIXME: should be removed in autoconf 3.0.
  1157. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1158. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1159. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1160. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1161. ;;
  1162. esac
  1163. done
  1164. if test -n "$ac_prev"; then
  1165. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1166. as_fn_error $? "missing argument to $ac_option"
  1167. fi
  1168. if test -n "$ac_unrecognized_opts"; then
  1169. case $enable_option_checking in
  1170. no) ;;
  1171. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1172. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1173. esac
  1174. fi
  1175. # Check all directory arguments for consistency.
  1176. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1177. datadir sysconfdir sharedstatedir localstatedir includedir \
  1178. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1179. libdir localedir mandir
  1180. do
  1181. eval ac_val=\$$ac_var
  1182. # Remove trailing slashes.
  1183. case $ac_val in
  1184. */ )
  1185. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1186. eval $ac_var=\$ac_val;;
  1187. esac
  1188. # Be sure to have absolute directory names.
  1189. case $ac_val in
  1190. [\\/$]* | ?:[\\/]* ) continue;;
  1191. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1192. esac
  1193. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1194. done
  1195. # There might be people who depend on the old broken behavior: `$host'
  1196. # used to hold the argument of --host etc.
  1197. # FIXME: To remove some day.
  1198. build=$build_alias
  1199. host=$host_alias
  1200. target=$target_alias
  1201. # FIXME: To remove some day.
  1202. if test "x$host_alias" != x; then
  1203. if test "x$build_alias" = x; then
  1204. cross_compiling=maybe
  1205. elif test "x$build_alias" != "x$host_alias"; then
  1206. cross_compiling=yes
  1207. fi
  1208. fi
  1209. ac_tool_prefix=
  1210. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1211. test "$silent" = yes && exec 6>/dev/null
  1212. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1213. ac_ls_di=`ls -di .` &&
  1214. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1215. as_fn_error $? "working directory cannot be determined"
  1216. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1217. as_fn_error $? "pwd does not report name of working directory"
  1218. # Find the source files, if location was not specified.
  1219. if test -z "$srcdir"; then
  1220. ac_srcdir_defaulted=yes
  1221. # Try the directory containing this script, then the parent directory.
  1222. ac_confdir=`$as_dirname -- "$as_myself" ||
  1223. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1224. X"$as_myself" : 'X\(//\)[^/]' \| \
  1225. X"$as_myself" : 'X\(//\)$' \| \
  1226. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1227. $as_echo X"$as_myself" |
  1228. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1229. s//\1/
  1230. q
  1231. }
  1232. /^X\(\/\/\)[^/].*/{
  1233. s//\1/
  1234. q
  1235. }
  1236. /^X\(\/\/\)$/{
  1237. s//\1/
  1238. q
  1239. }
  1240. /^X\(\/\).*/{
  1241. s//\1/
  1242. q
  1243. }
  1244. s/.*/./; q'`
  1245. srcdir=$ac_confdir
  1246. if test ! -r "$srcdir/$ac_unique_file"; then
  1247. srcdir=..
  1248. fi
  1249. else
  1250. ac_srcdir_defaulted=no
  1251. fi
  1252. if test ! -r "$srcdir/$ac_unique_file"; then
  1253. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1254. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1255. fi
  1256. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1257. ac_abs_confdir=`(
  1258. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1259. pwd)`
  1260. # When building in place, set srcdir=.
  1261. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1262. srcdir=.
  1263. fi
  1264. # Remove unnecessary trailing slashes from srcdir.
  1265. # Double slashes in file names in object file debugging info
  1266. # mess up M-x gdb in Emacs.
  1267. case $srcdir in
  1268. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1269. esac
  1270. for ac_var in $ac_precious_vars; do
  1271. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1272. eval ac_env_${ac_var}_value=\$${ac_var}
  1273. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1274. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1275. done
  1276. #
  1277. # Report the --help message.
  1278. #
  1279. if test "$ac_init_help" = "long"; then
  1280. # Omit some internal or obsolete options to make the list less imposing.
  1281. # This message is too long to be a string in the A/UX 3.1 sh.
  1282. cat <<_ACEOF
  1283. \`configure' configures this package to adapt to many kinds of systems.
  1284. Usage: $0 [OPTION]... [VAR=VALUE]...
  1285. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1286. VAR=VALUE. See below for descriptions of some of the useful variables.
  1287. Defaults for the options are specified in brackets.
  1288. Configuration:
  1289. -h, --help display this help and exit
  1290. --help=short display options specific to this package
  1291. --help=recursive display the short help of all the included packages
  1292. -V, --version display version information and exit
  1293. -q, --quiet, --silent do not print \`checking ...' messages
  1294. --cache-file=FILE cache test results in FILE [disabled]
  1295. -C, --config-cache alias for \`--cache-file=config.cache'
  1296. -n, --no-create do not create output files
  1297. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1298. Installation directories:
  1299. --prefix=PREFIX install architecture-independent files in PREFIX
  1300. [$ac_default_prefix]
  1301. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1302. [PREFIX]
  1303. By default, \`make install' will install all the files in
  1304. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1305. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1306. for instance \`--prefix=\$HOME'.
  1307. For better control, use the options below.
  1308. Fine tuning of the installation directories:
  1309. --bindir=DIR user executables [EPREFIX/bin]
  1310. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1311. --libexecdir=DIR program executables [EPREFIX/libexec]
  1312. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1313. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1314. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1315. --libdir=DIR object code libraries [EPREFIX/lib]
  1316. --includedir=DIR C header files [PREFIX/include]
  1317. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1318. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1319. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1320. --infodir=DIR info documentation [DATAROOTDIR/info]
  1321. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1322. --mandir=DIR man documentation [DATAROOTDIR/man]
  1323. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1324. --htmldir=DIR html documentation [DOCDIR]
  1325. --dvidir=DIR dvi documentation [DOCDIR]
  1326. --pdfdir=DIR pdf documentation [DOCDIR]
  1327. --psdir=DIR ps documentation [DOCDIR]
  1328. _ACEOF
  1329. cat <<\_ACEOF
  1330. X features:
  1331. --x-includes=DIR X include files are in DIR
  1332. --x-libraries=DIR X library files are in DIR
  1333. System types:
  1334. --build=BUILD configure for building on BUILD [guessed]
  1335. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1336. _ACEOF
  1337. fi
  1338. if test -n "$ac_init_help"; then
  1339. cat <<\_ACEOF
  1340. Optional Features:
  1341. --disable-option-checking ignore unrecognized --enable/--with options
  1342. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1343. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1344. --enable-shared[=PKGS] build shared libraries [default=yes]
  1345. --enable-static[=PKGS] build static libraries [default=yes]
  1346. --enable-fast-install[=PKGS]
  1347. optimize for fast installation [default=yes]
  1348. --disable-libtool-lock avoid locking (might break parallel builds)
  1349. --enable-assertions Enable internal sanity checks
  1350. (auto/disabled/release/enabled/paranoid)
  1351. [[default=auto]]
  1352. --enable-dependency-tracking
  1353. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1354. --enable-libc Use the system C library [[default=yes]]
  1355. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1356. --enable-atomic Enable the atomic operations subsystem
  1357. [[default=yes]]
  1358. --enable-audio Enable the audio subsystem [[default=yes]]
  1359. --enable-video Enable the video subsystem [[default=yes]]
  1360. --enable-render Enable the render subsystem [[default=yes]]
  1361. --enable-events Enable the events subsystem [[default=yes]]
  1362. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1363. --enable-haptic Enable the haptic (force feedback) subsystem
  1364. [[default=yes]]
  1365. --enable-power Enable the power subsystem [[default=yes]]
  1366. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1367. --enable-threads Enable the threading subsystem [[default=yes]]
  1368. --enable-timers Enable the timer subsystem [[default=yes]]
  1369. --enable-file Enable the file subsystem [[default=yes]]
  1370. --enable-loadso Enable the shared object loading subsystem
  1371. [[default=yes]]
  1372. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1373. --enable-atomic Enable the atomic operations [[default=yes]]
  1374. --enable-assembly Enable assembly routines [[default=yes]]
  1375. --enable-ssemath Allow GCC to use SSE floating point math
  1376. [[default=no]]
  1377. --enable-mmx use MMX assembly routines [[default=yes]]
  1378. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1379. --enable-sse use SSE assembly routines [[default=yes]]
  1380. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1381. --enable-altivec use Altivec assembly routines [[default=yes]]
  1382. --enable-oss support the OSS audio API [[default=maybe]]
  1383. --enable-alsa support the ALSA audio API [[default=yes]]
  1384. --disable-alsatest Do not try to compile and run a test Alsa program
  1385. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1386. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1387. --disable-esdtest Do not try to compile and run a test ESD program
  1388. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1389. --enable-pulseaudio use PulseAudio [[default=yes]]
  1390. --enable-pulseaudio-shared
  1391. dynamically load PulseAudio support [[default=yes]]
  1392. --enable-arts support the Analog Real Time Synthesizer
  1393. [[default=yes]]
  1394. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1395. --enable-nas support the NAS audio API [[default=yes]]
  1396. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1397. --enable-sndio support the sndio audio API [[default=yes]]
  1398. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1399. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1400. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1401. --enable-video-wayland use Wayland video driver [[default=yes]]
  1402. --enable-video-x11 use X11 video driver [[default=yes]]
  1403. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1404. --enable-video-x11-xcursor
  1405. enable X11 Xcursor support [[default=yes]]
  1406. --enable-video-x11-xinerama
  1407. enable X11 Xinerama support [[default=yes]]
  1408. --enable-video-x11-xinput
  1409. enable X11 XInput extension for manymouse, tablets,
  1410. etc [[default=yes]]
  1411. --enable-video-x11-xrandr
  1412. enable X11 Xrandr extension for fullscreen
  1413. [[default=yes]]
  1414. --enable-video-x11-scrnsaver
  1415. enable X11 screensaver extension [[default=yes]]
  1416. --enable-video-x11-xshape
  1417. enable X11 XShape support [[default=yes]]
  1418. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1419. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1420. --enable-video-directfb use DirectFB video driver [[default=no]]
  1421. --enable-directfb-shared
  1422. dynamically load directfb support [[default=yes]]
  1423. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1424. --enable-fusionsound-shared
  1425. dynamically load fusionsound audio support
  1426. [[default=yes]]
  1427. --enable-video-dummy use dummy video driver [[default=yes]]
  1428. --enable-video-opengl include OpenGL support [[default=yes]]
  1429. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1430. --enable-libudev enable libudev support [[default=yes]]
  1431. --enable-dbus enable D-Bus support [[default=yes]]
  1432. --enable-input-tslib use the Touchscreen library for input
  1433. [[default=yes]]
  1434. --enable-pthreads use POSIX threads for multi-threading
  1435. [[default=yes]]
  1436. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1437. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1438. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1439. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1440. UNIX [[default=yes]]
  1441. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1442. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1443. Optional Packages:
  1444. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1445. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1446. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1447. both]
  1448. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1449. --with-sysroot=DIR Search for dependent libraries within DIR
  1450. (or the compiler's sysroot if not specified).
  1451. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1452. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1453. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1454. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1455. --with-x use the X Window System
  1456. Some influential environment variables:
  1457. CC C compiler command
  1458. CFLAGS C compiler flags
  1459. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1460. nonstandard directory <lib dir>
  1461. LIBS libraries to pass to the linker, e.g. -l<library>
  1462. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1463. you have headers in a nonstandard directory <include dir>
  1464. CPP C preprocessor
  1465. CXX C++ compiler command
  1466. CXXFLAGS C++ compiler flags
  1467. CXXCPP C++ preprocessor
  1468. XMKMF Path to xmkmf, Makefile generator for X Window System
  1469. Use these variables to override the choices made by `configure' or to help
  1470. it to find libraries and programs with nonstandard names/locations.
  1471. Report bugs to the package provider.
  1472. _ACEOF
  1473. ac_status=$?
  1474. fi
  1475. if test "$ac_init_help" = "recursive"; then
  1476. # If there are subdirs, report their specific --help.
  1477. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1478. test -d "$ac_dir" ||
  1479. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1480. continue
  1481. ac_builddir=.
  1482. case "$ac_dir" in
  1483. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1484. *)
  1485. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1486. # A ".." for each directory in $ac_dir_suffix.
  1487. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1488. case $ac_top_builddir_sub in
  1489. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1490. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1491. esac ;;
  1492. esac
  1493. ac_abs_top_builddir=$ac_pwd
  1494. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1495. # for backward compatibility:
  1496. ac_top_builddir=$ac_top_build_prefix
  1497. case $srcdir in
  1498. .) # We are building in place.
  1499. ac_srcdir=.
  1500. ac_top_srcdir=$ac_top_builddir_sub
  1501. ac_abs_top_srcdir=$ac_pwd ;;
  1502. [\\/]* | ?:[\\/]* ) # Absolute name.
  1503. ac_srcdir=$srcdir$ac_dir_suffix;
  1504. ac_top_srcdir=$srcdir
  1505. ac_abs_top_srcdir=$srcdir ;;
  1506. *) # Relative name.
  1507. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1508. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1509. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1510. esac
  1511. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1512. cd "$ac_dir" || { ac_status=$?; continue; }
  1513. # Check for guested configure.
  1514. if test -f "$ac_srcdir/configure.gnu"; then
  1515. echo &&
  1516. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1517. elif test -f "$ac_srcdir/configure"; then
  1518. echo &&
  1519. $SHELL "$ac_srcdir/configure" --help=recursive
  1520. else
  1521. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1522. fi || ac_status=$?
  1523. cd "$ac_pwd" || { ac_status=$?; break; }
  1524. done
  1525. fi
  1526. test -n "$ac_init_help" && exit $ac_status
  1527. if $ac_init_version; then
  1528. cat <<\_ACEOF
  1529. configure
  1530. generated by GNU Autoconf 2.69
  1531. Copyright (C) 2012 Free Software Foundation, Inc.
  1532. This configure script is free software; the Free Software Foundation
  1533. gives unlimited permission to copy, distribute and modify it.
  1534. _ACEOF
  1535. exit
  1536. fi
  1537. ## ------------------------ ##
  1538. ## Autoconf initialization. ##
  1539. ## ------------------------ ##
  1540. # ac_fn_c_try_compile LINENO
  1541. # --------------------------
  1542. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1543. ac_fn_c_try_compile ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. rm -f conftest.$ac_objext
  1547. if { { ac_try="$ac_compile"
  1548. case "(($ac_try" in
  1549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1550. *) ac_try_echo=$ac_try;;
  1551. esac
  1552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1553. $as_echo "$ac_try_echo"; } >&5
  1554. (eval "$ac_compile") 2>conftest.err
  1555. ac_status=$?
  1556. if test -s conftest.err; then
  1557. grep -v '^ *+' conftest.err >conftest.er1
  1558. cat conftest.er1 >&5
  1559. mv -f conftest.er1 conftest.err
  1560. fi
  1561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1562. test $ac_status = 0; } && {
  1563. test -z "$ac_c_werror_flag" ||
  1564. test ! -s conftest.err
  1565. } && test -s conftest.$ac_objext; then :
  1566. ac_retval=0
  1567. else
  1568. $as_echo "$as_me: failed program was:" >&5
  1569. sed 's/^/| /' conftest.$ac_ext >&5
  1570. ac_retval=1
  1571. fi
  1572. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1573. as_fn_set_status $ac_retval
  1574. } # ac_fn_c_try_compile
  1575. # ac_fn_c_try_link LINENO
  1576. # -----------------------
  1577. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1578. ac_fn_c_try_link ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. rm -f conftest.$ac_objext conftest$ac_exeext
  1582. if { { ac_try="$ac_link"
  1583. case "(($ac_try" in
  1584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1585. *) ac_try_echo=$ac_try;;
  1586. esac
  1587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1588. $as_echo "$ac_try_echo"; } >&5
  1589. (eval "$ac_link") 2>conftest.err
  1590. ac_status=$?
  1591. if test -s conftest.err; then
  1592. grep -v '^ *+' conftest.err >conftest.er1
  1593. cat conftest.er1 >&5
  1594. mv -f conftest.er1 conftest.err
  1595. fi
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; } && {
  1598. test -z "$ac_c_werror_flag" ||
  1599. test ! -s conftest.err
  1600. } && test -s conftest$ac_exeext && {
  1601. test "$cross_compiling" = yes ||
  1602. test -x conftest$ac_exeext
  1603. }; then :
  1604. ac_retval=0
  1605. else
  1606. $as_echo "$as_me: failed program was:" >&5
  1607. sed 's/^/| /' conftest.$ac_ext >&5
  1608. ac_retval=1
  1609. fi
  1610. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1611. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1612. # interfere with the next link command; also delete a directory that is
  1613. # left behind by Apple's compiler. We do this before executing the actions.
  1614. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1615. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1616. as_fn_set_status $ac_retval
  1617. } # ac_fn_c_try_link
  1618. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1619. # -------------------------------------------------------
  1620. # Tests whether HEADER exists and can be compiled using the include files in
  1621. # INCLUDES, setting the cache variable VAR accordingly.
  1622. ac_fn_c_check_header_compile ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1626. $as_echo_n "checking for $2... " >&6; }
  1627. if eval \${$3+:} false; then :
  1628. $as_echo_n "(cached) " >&6
  1629. else
  1630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end confdefs.h. */
  1632. $4
  1633. #include <$2>
  1634. _ACEOF
  1635. if ac_fn_c_try_compile "$LINENO"; then :
  1636. eval "$3=yes"
  1637. else
  1638. eval "$3=no"
  1639. fi
  1640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1641. fi
  1642. eval ac_res=\$$3
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1644. $as_echo "$ac_res" >&6; }
  1645. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1646. } # ac_fn_c_check_header_compile
  1647. # ac_fn_c_try_cpp LINENO
  1648. # ----------------------
  1649. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1650. ac_fn_c_try_cpp ()
  1651. {
  1652. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1654. case "(($ac_try" in
  1655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1656. *) ac_try_echo=$ac_try;;
  1657. esac
  1658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1659. $as_echo "$ac_try_echo"; } >&5
  1660. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1661. ac_status=$?
  1662. if test -s conftest.err; then
  1663. grep -v '^ *+' conftest.err >conftest.er1
  1664. cat conftest.er1 >&5
  1665. mv -f conftest.er1 conftest.err
  1666. fi
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; } > conftest.i && {
  1669. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1670. test ! -s conftest.err
  1671. }; then :
  1672. ac_retval=0
  1673. else
  1674. $as_echo "$as_me: failed program was:" >&5
  1675. sed 's/^/| /' conftest.$ac_ext >&5
  1676. ac_retval=1
  1677. fi
  1678. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679. as_fn_set_status $ac_retval
  1680. } # ac_fn_c_try_cpp
  1681. # ac_fn_c_try_run LINENO
  1682. # ----------------------
  1683. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1684. # that executables *can* be run.
  1685. ac_fn_c_try_run ()
  1686. {
  1687. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1688. if { { ac_try="$ac_link"
  1689. case "(($ac_try" in
  1690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1691. *) ac_try_echo=$ac_try;;
  1692. esac
  1693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1694. $as_echo "$ac_try_echo"; } >&5
  1695. (eval "$ac_link") 2>&5
  1696. ac_status=$?
  1697. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1698. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1699. { { case "(($ac_try" in
  1700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1701. *) ac_try_echo=$ac_try;;
  1702. esac
  1703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1704. $as_echo "$ac_try_echo"; } >&5
  1705. (eval "$ac_try") 2>&5
  1706. ac_status=$?
  1707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1708. test $ac_status = 0; }; }; then :
  1709. ac_retval=0
  1710. else
  1711. $as_echo "$as_me: program exited with status $ac_status" >&5
  1712. $as_echo "$as_me: failed program was:" >&5
  1713. sed 's/^/| /' conftest.$ac_ext >&5
  1714. ac_retval=$ac_status
  1715. fi
  1716. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1717. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1718. as_fn_set_status $ac_retval
  1719. } # ac_fn_c_try_run
  1720. # ac_fn_c_check_func LINENO FUNC VAR
  1721. # ----------------------------------
  1722. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1723. ac_fn_c_check_func ()
  1724. {
  1725. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1727. $as_echo_n "checking for $2... " >&6; }
  1728. if eval \${$3+:} false; then :
  1729. $as_echo_n "(cached) " >&6
  1730. else
  1731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1732. /* end confdefs.h. */
  1733. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1734. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1735. #define $2 innocuous_$2
  1736. /* System header to define __stub macros and hopefully few prototypes,
  1737. which can conflict with char $2 (); below.
  1738. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1739. <limits.h> exists even on freestanding compilers. */
  1740. #ifdef __STDC__
  1741. # include <limits.h>
  1742. #else
  1743. # include <assert.h>
  1744. #endif
  1745. #undef $2
  1746. /* Override any GCC internal prototype to avoid an error.
  1747. Use char because int might match the return type of a GCC
  1748. builtin and then its argument prototype would still apply. */
  1749. #ifdef __cplusplus
  1750. extern "C"
  1751. #endif
  1752. char $2 ();
  1753. /* The GNU C library defines this for functions which it implements
  1754. to always fail with ENOSYS. Some functions are actually named
  1755. something starting with __ and the normal name is an alias. */
  1756. #if defined __stub_$2 || defined __stub___$2
  1757. choke me
  1758. #endif
  1759. int
  1760. main ()
  1761. {
  1762. return $2 ();
  1763. ;
  1764. return 0;
  1765. }
  1766. _ACEOF
  1767. if ac_fn_c_try_link "$LINENO"; then :
  1768. eval "$3=yes"
  1769. else
  1770. eval "$3=no"
  1771. fi
  1772. rm -f core conftest.err conftest.$ac_objext \
  1773. conftest$ac_exeext conftest.$ac_ext
  1774. fi
  1775. eval ac_res=\$$3
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1777. $as_echo "$ac_res" >&6; }
  1778. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1779. } # ac_fn_c_check_func
  1780. # ac_fn_cxx_try_compile LINENO
  1781. # ----------------------------
  1782. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1783. ac_fn_cxx_try_compile ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. rm -f conftest.$ac_objext
  1787. if { { ac_try="$ac_compile"
  1788. case "(($ac_try" in
  1789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1790. *) ac_try_echo=$ac_try;;
  1791. esac
  1792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1793. $as_echo "$ac_try_echo"; } >&5
  1794. (eval "$ac_compile") 2>conftest.err
  1795. ac_status=$?
  1796. if test -s conftest.err; then
  1797. grep -v '^ *+' conftest.err >conftest.er1
  1798. cat conftest.er1 >&5
  1799. mv -f conftest.er1 conftest.err
  1800. fi
  1801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1802. test $ac_status = 0; } && {
  1803. test -z "$ac_cxx_werror_flag" ||
  1804. test ! -s conftest.err
  1805. } && test -s conftest.$ac_objext; then :
  1806. ac_retval=0
  1807. else
  1808. $as_echo "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. ac_retval=1
  1811. fi
  1812. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1813. as_fn_set_status $ac_retval
  1814. } # ac_fn_cxx_try_compile
  1815. # ac_fn_cxx_try_cpp LINENO
  1816. # ------------------------
  1817. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1818. ac_fn_cxx_try_cpp ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1822. case "(($ac_try" in
  1823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1824. *) ac_try_echo=$ac_try;;
  1825. esac
  1826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1827. $as_echo "$ac_try_echo"; } >&5
  1828. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1829. ac_status=$?
  1830. if test -s conftest.err; then
  1831. grep -v '^ *+' conftest.err >conftest.er1
  1832. cat conftest.er1 >&5
  1833. mv -f conftest.er1 conftest.err
  1834. fi
  1835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1836. test $ac_status = 0; } > conftest.i && {
  1837. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1838. test ! -s conftest.err
  1839. }; then :
  1840. ac_retval=0
  1841. else
  1842. $as_echo "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. ac_retval=1
  1845. fi
  1846. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1847. as_fn_set_status $ac_retval
  1848. } # ac_fn_cxx_try_cpp
  1849. # ac_fn_cxx_try_link LINENO
  1850. # -------------------------
  1851. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1852. ac_fn_cxx_try_link ()
  1853. {
  1854. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855. rm -f conftest.$ac_objext conftest$ac_exeext
  1856. if { { ac_try="$ac_link"
  1857. case "(($ac_try" in
  1858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1859. *) ac_try_echo=$ac_try;;
  1860. esac
  1861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1862. $as_echo "$ac_try_echo"; } >&5
  1863. (eval "$ac_link") 2>conftest.err
  1864. ac_status=$?
  1865. if test -s conftest.err; then
  1866. grep -v '^ *+' conftest.err >conftest.er1
  1867. cat conftest.er1 >&5
  1868. mv -f conftest.er1 conftest.err
  1869. fi
  1870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1871. test $ac_status = 0; } && {
  1872. test -z "$ac_cxx_werror_flag" ||
  1873. test ! -s conftest.err
  1874. } && test -s conftest$ac_exeext && {
  1875. test "$cross_compiling" = yes ||
  1876. test -x conftest$ac_exeext
  1877. }; then :
  1878. ac_retval=0
  1879. else
  1880. $as_echo "$as_me: failed program was:" >&5
  1881. sed 's/^/| /' conftest.$ac_ext >&5
  1882. ac_retval=1
  1883. fi
  1884. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1885. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1886. # interfere with the next link command; also delete a directory that is
  1887. # left behind by Apple's compiler. We do this before executing the actions.
  1888. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1889. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1890. as_fn_set_status $ac_retval
  1891. } # ac_fn_cxx_try_link
  1892. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1893. # -------------------------------------------------------
  1894. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1895. # the include files in INCLUDES and setting the cache variable VAR
  1896. # accordingly.
  1897. ac_fn_c_check_header_mongrel ()
  1898. {
  1899. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1900. if eval \${$3+:} false; then :
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1902. $as_echo_n "checking for $2... " >&6; }
  1903. if eval \${$3+:} false; then :
  1904. $as_echo_n "(cached) " >&6
  1905. fi
  1906. eval ac_res=\$$3
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1908. $as_echo "$ac_res" >&6; }
  1909. else
  1910. # Is the header compilable?
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1912. $as_echo_n "checking $2 usability... " >&6; }
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. $4
  1916. #include <$2>
  1917. _ACEOF
  1918. if ac_fn_c_try_compile "$LINENO"; then :
  1919. ac_header_compiler=yes
  1920. else
  1921. ac_header_compiler=no
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1925. $as_echo "$ac_header_compiler" >&6; }
  1926. # Is the header present?
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1928. $as_echo_n "checking $2 presence... " >&6; }
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. #include <$2>
  1932. _ACEOF
  1933. if ac_fn_c_try_cpp "$LINENO"; then :
  1934. ac_header_preproc=yes
  1935. else
  1936. ac_header_preproc=no
  1937. fi
  1938. rm -f conftest.err conftest.i conftest.$ac_ext
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1940. $as_echo "$ac_header_preproc" >&6; }
  1941. # So? What about this header?
  1942. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1943. yes:no: )
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1945. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1947. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1948. ;;
  1949. no:yes:* )
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1951. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1953. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1955. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1957. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1959. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1960. ;;
  1961. esac
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1963. $as_echo_n "checking for $2... " >&6; }
  1964. if eval \${$3+:} false; then :
  1965. $as_echo_n "(cached) " >&6
  1966. else
  1967. eval "$3=\$ac_header_compiler"
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. fi
  1973. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1974. } # ac_fn_c_check_header_mongrel
  1975. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1976. # -------------------------------------------
  1977. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1978. # variable VAR accordingly.
  1979. ac_fn_c_check_type ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1983. $as_echo_n "checking for $2... " >&6; }
  1984. if eval \${$3+:} false; then :
  1985. $as_echo_n "(cached) " >&6
  1986. else
  1987. eval "$3=no"
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. $4
  1991. int
  1992. main ()
  1993. {
  1994. if (sizeof ($2))
  1995. return 0;
  1996. ;
  1997. return 0;
  1998. }
  1999. _ACEOF
  2000. if ac_fn_c_try_compile "$LINENO"; then :
  2001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2002. /* end confdefs.h. */
  2003. $4
  2004. int
  2005. main ()
  2006. {
  2007. if (sizeof (($2)))
  2008. return 0;
  2009. ;
  2010. return 0;
  2011. }
  2012. _ACEOF
  2013. if ac_fn_c_try_compile "$LINENO"; then :
  2014. else
  2015. eval "$3=yes"
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2018. fi
  2019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2020. fi
  2021. eval ac_res=\$$3
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2023. $as_echo "$ac_res" >&6; }
  2024. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2025. } # ac_fn_c_check_type
  2026. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2027. # ----------------------------------------------------
  2028. # Tries to find if the field MEMBER exists in type AGGR, after including
  2029. # INCLUDES, setting cache variable VAR accordingly.
  2030. ac_fn_c_check_member ()
  2031. {
  2032. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2034. $as_echo_n "checking for $2.$3... " >&6; }
  2035. if eval \${$4+:} false; then :
  2036. $as_echo_n "(cached) " >&6
  2037. else
  2038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2039. /* end confdefs.h. */
  2040. $5
  2041. int
  2042. main ()
  2043. {
  2044. static $2 ac_aggr;
  2045. if (ac_aggr.$3)
  2046. return 0;
  2047. ;
  2048. return 0;
  2049. }
  2050. _ACEOF
  2051. if ac_fn_c_try_compile "$LINENO"; then :
  2052. eval "$4=yes"
  2053. else
  2054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2055. /* end confdefs.h. */
  2056. $5
  2057. int
  2058. main ()
  2059. {
  2060. static $2 ac_aggr;
  2061. if (sizeof ac_aggr.$3)
  2062. return 0;
  2063. ;
  2064. return 0;
  2065. }
  2066. _ACEOF
  2067. if ac_fn_c_try_compile "$LINENO"; then :
  2068. eval "$4=yes"
  2069. else
  2070. eval "$4=no"
  2071. fi
  2072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. eval ac_res=\$$4
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2078. $as_echo "$ac_res" >&6; }
  2079. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2080. } # ac_fn_c_check_member
  2081. cat >config.log <<_ACEOF
  2082. This file contains any messages produced by compilers while
  2083. running configure, to aid debugging if configure makes a mistake.
  2084. It was created by $as_me, which was
  2085. generated by GNU Autoconf 2.69. Invocation command line was
  2086. $ $0 $@
  2087. _ACEOF
  2088. exec 5>>config.log
  2089. {
  2090. cat <<_ASUNAME
  2091. ## --------- ##
  2092. ## Platform. ##
  2093. ## --------- ##
  2094. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2095. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2096. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2097. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2098. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2099. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2100. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2101. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2102. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2103. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2104. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2105. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2106. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2107. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2108. _ASUNAME
  2109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2110. for as_dir in $PATH
  2111. do
  2112. IFS=$as_save_IFS
  2113. test -z "$as_dir" && as_dir=.
  2114. $as_echo "PATH: $as_dir"
  2115. done
  2116. IFS=$as_save_IFS
  2117. } >&5
  2118. cat >&5 <<_ACEOF
  2119. ## ----------- ##
  2120. ## Core tests. ##
  2121. ## ----------- ##
  2122. _ACEOF
  2123. # Keep a trace of the command line.
  2124. # Strip out --no-create and --no-recursion so they do not pile up.
  2125. # Strip out --silent because we don't want to record it for future runs.
  2126. # Also quote any args containing shell meta-characters.
  2127. # Make two passes to allow for proper duplicate-argument suppression.
  2128. ac_configure_args=
  2129. ac_configure_args0=
  2130. ac_configure_args1=
  2131. ac_must_keep_next=false
  2132. for ac_pass in 1 2
  2133. do
  2134. for ac_arg
  2135. do
  2136. case $ac_arg in
  2137. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2138. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2139. | -silent | --silent | --silen | --sile | --sil)
  2140. continue ;;
  2141. *\'*)
  2142. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2143. esac
  2144. case $ac_pass in
  2145. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2146. 2)
  2147. as_fn_append ac_configure_args1 " '$ac_arg'"
  2148. if test $ac_must_keep_next = true; then
  2149. ac_must_keep_next=false # Got value, back to normal.
  2150. else
  2151. case $ac_arg in
  2152. *=* | --config-cache | -C | -disable-* | --disable-* \
  2153. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2154. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2155. | -with-* | --with-* | -without-* | --without-* | --x)
  2156. case "$ac_configure_args0 " in
  2157. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2158. esac
  2159. ;;
  2160. -* ) ac_must_keep_next=true ;;
  2161. esac
  2162. fi
  2163. as_fn_append ac_configure_args " '$ac_arg'"
  2164. ;;
  2165. esac
  2166. done
  2167. done
  2168. { ac_configure_args0=; unset ac_configure_args0;}
  2169. { ac_configure_args1=; unset ac_configure_args1;}
  2170. # When interrupted or exit'd, cleanup temporary files, and complete
  2171. # config.log. We remove comments because anyway the quotes in there
  2172. # would cause problems or look ugly.
  2173. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2174. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2175. trap 'exit_status=$?
  2176. # Save into config.log some information that might help in debugging.
  2177. {
  2178. echo
  2179. $as_echo "## ---------------- ##
  2180. ## Cache variables. ##
  2181. ## ---------------- ##"
  2182. echo
  2183. # The following way of writing the cache mishandles newlines in values,
  2184. (
  2185. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2186. eval ac_val=\$$ac_var
  2187. case $ac_val in #(
  2188. *${as_nl}*)
  2189. case $ac_var in #(
  2190. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2191. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2192. esac
  2193. case $ac_var in #(
  2194. _ | IFS | as_nl) ;; #(
  2195. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2196. *) { eval $ac_var=; unset $ac_var;} ;;
  2197. esac ;;
  2198. esac
  2199. done
  2200. (set) 2>&1 |
  2201. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2202. *${as_nl}ac_space=\ *)
  2203. sed -n \
  2204. "s/'\''/'\''\\\\'\'''\''/g;
  2205. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2206. ;; #(
  2207. *)
  2208. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2209. ;;
  2210. esac |
  2211. sort
  2212. )
  2213. echo
  2214. $as_echo "## ----------------- ##
  2215. ## Output variables. ##
  2216. ## ----------------- ##"
  2217. echo
  2218. for ac_var in $ac_subst_vars
  2219. do
  2220. eval ac_val=\$$ac_var
  2221. case $ac_val in
  2222. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2223. esac
  2224. $as_echo "$ac_var='\''$ac_val'\''"
  2225. done | sort
  2226. echo
  2227. if test -n "$ac_subst_files"; then
  2228. $as_echo "## ------------------- ##
  2229. ## File substitutions. ##
  2230. ## ------------------- ##"
  2231. echo
  2232. for ac_var in $ac_subst_files
  2233. do
  2234. eval ac_val=\$$ac_var
  2235. case $ac_val in
  2236. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2237. esac
  2238. $as_echo "$ac_var='\''$ac_val'\''"
  2239. done | sort
  2240. echo
  2241. fi
  2242. if test -s confdefs.h; then
  2243. $as_echo "## ----------- ##
  2244. ## confdefs.h. ##
  2245. ## ----------- ##"
  2246. echo
  2247. cat confdefs.h
  2248. echo
  2249. fi
  2250. test "$ac_signal" != 0 &&
  2251. $as_echo "$as_me: caught signal $ac_signal"
  2252. $as_echo "$as_me: exit $exit_status"
  2253. } >&5
  2254. rm -f core *.core core.conftest.* &&
  2255. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2256. exit $exit_status
  2257. ' 0
  2258. for ac_signal in 1 2 13 15; do
  2259. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2260. done
  2261. ac_signal=0
  2262. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2263. rm -f -r conftest* confdefs.h
  2264. $as_echo "/* confdefs.h */" > confdefs.h
  2265. # Predefined preprocessor variables.
  2266. cat >>confdefs.h <<_ACEOF
  2267. #define PACKAGE_NAME "$PACKAGE_NAME"
  2268. _ACEOF
  2269. cat >>confdefs.h <<_ACEOF
  2270. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2271. _ACEOF
  2272. cat >>confdefs.h <<_ACEOF
  2273. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2274. _ACEOF
  2275. cat >>confdefs.h <<_ACEOF
  2276. #define PACKAGE_STRING "$PACKAGE_STRING"
  2277. _ACEOF
  2278. cat >>confdefs.h <<_ACEOF
  2279. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2280. _ACEOF
  2281. cat >>confdefs.h <<_ACEOF
  2282. #define PACKAGE_URL "$PACKAGE_URL"
  2283. _ACEOF
  2284. # Let the site file select an alternate cache file if it wants to.
  2285. # Prefer an explicitly selected file to automatically selected ones.
  2286. ac_site_file1=NONE
  2287. ac_site_file2=NONE
  2288. if test -n "$CONFIG_SITE"; then
  2289. # We do not want a PATH search for config.site.
  2290. case $CONFIG_SITE in #((
  2291. -*) ac_site_file1=./$CONFIG_SITE;;
  2292. */*) ac_site_file1=$CONFIG_SITE;;
  2293. *) ac_site_file1=./$CONFIG_SITE;;
  2294. esac
  2295. elif test "x$prefix" != xNONE; then
  2296. ac_site_file1=$prefix/share/config.site
  2297. ac_site_file2=$prefix/etc/config.site
  2298. else
  2299. ac_site_file1=$ac_default_prefix/share/config.site
  2300. ac_site_file2=$ac_default_prefix/etc/config.site
  2301. fi
  2302. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2303. do
  2304. test "x$ac_site_file" = xNONE && continue
  2305. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2307. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2308. sed 's/^/| /' "$ac_site_file" >&5
  2309. . "$ac_site_file" \
  2310. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2311. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2312. as_fn_error $? "failed to load site script $ac_site_file
  2313. See \`config.log' for more details" "$LINENO" 5; }
  2314. fi
  2315. done
  2316. if test -r "$cache_file"; then
  2317. # Some versions of bash will fail to source /dev/null (special files
  2318. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2319. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2321. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2322. case $cache_file in
  2323. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2324. *) . "./$cache_file";;
  2325. esac
  2326. fi
  2327. else
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2329. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2330. >$cache_file
  2331. fi
  2332. # Check that the precious variables saved in the cache have kept the same
  2333. # value.
  2334. ac_cache_corrupted=false
  2335. for ac_var in $ac_precious_vars; do
  2336. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2337. eval ac_new_set=\$ac_env_${ac_var}_set
  2338. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2339. eval ac_new_val=\$ac_env_${ac_var}_value
  2340. case $ac_old_set,$ac_new_set in
  2341. set,)
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2343. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2344. ac_cache_corrupted=: ;;
  2345. ,set)
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2347. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2348. ac_cache_corrupted=: ;;
  2349. ,);;
  2350. *)
  2351. if test "x$ac_old_val" != "x$ac_new_val"; then
  2352. # differences in whitespace do not lead to failure.
  2353. ac_old_val_w=`echo x $ac_old_val`
  2354. ac_new_val_w=`echo x $ac_new_val`
  2355. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2357. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2358. ac_cache_corrupted=:
  2359. else
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2361. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2362. eval $ac_var=\$ac_old_val
  2363. fi
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2365. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2367. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2368. fi;;
  2369. esac
  2370. # Pass precious variables to config.status.
  2371. if test "$ac_new_set" = set; then
  2372. case $ac_new_val in
  2373. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2374. *) ac_arg=$ac_var=$ac_new_val ;;
  2375. esac
  2376. case " $ac_configure_args " in
  2377. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2378. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2379. esac
  2380. fi
  2381. done
  2382. if $ac_cache_corrupted; then
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2384. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2386. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2387. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2388. fi
  2389. ## -------------------- ##
  2390. ## Main body of script. ##
  2391. ## -------------------- ##
  2392. ac_ext=c
  2393. ac_cpp='$CPP $CPPFLAGS'
  2394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2397. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2398. ac_aux_dir=
  2399. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2400. if test -f "$ac_dir/install-sh"; then
  2401. ac_aux_dir=$ac_dir
  2402. ac_install_sh="$ac_aux_dir/install-sh -c"
  2403. break
  2404. elif test -f "$ac_dir/install.sh"; then
  2405. ac_aux_dir=$ac_dir
  2406. ac_install_sh="$ac_aux_dir/install.sh -c"
  2407. break
  2408. elif test -f "$ac_dir/shtool"; then
  2409. ac_aux_dir=$ac_dir
  2410. ac_install_sh="$ac_aux_dir/shtool install -c"
  2411. break
  2412. fi
  2413. done
  2414. if test -z "$ac_aux_dir"; then
  2415. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2416. fi
  2417. # These three variables are undocumented and unsupported,
  2418. # and are intended to be withdrawn in a future Autoconf release.
  2419. # They can cause serious problems if a builder's source tree is in a directory
  2420. # whose full name contains unusual characters.
  2421. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2422. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2423. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2424. orig_CFLAGS="$CFLAGS"
  2425. #
  2426. # Making releases:
  2427. # Edit include/SDL_version.h and change the version, then:
  2428. # SDL_MICRO_VERSION += 1;
  2429. # SDL_INTERFACE_AGE += 1;
  2430. # SDL_BINARY_AGE += 1;
  2431. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2432. # if backwards compatibility has been broken,
  2433. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2434. #
  2435. SDL_MAJOR_VERSION=2
  2436. SDL_MINOR_VERSION=0
  2437. SDL_MICRO_VERSION=1
  2438. SDL_INTERFACE_AGE=0
  2439. SDL_BINARY_AGE=1
  2440. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2441. # libtool versioning
  2442. case `pwd` in
  2443. *\ * | *\ *)
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2445. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2446. esac
  2447. macro_version='2.4.2'
  2448. macro_revision='1.3337'
  2449. ltmain="$ac_aux_dir/ltmain.sh"
  2450. # Make sure we can run config.sub.
  2451. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2452. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2454. $as_echo_n "checking build system type... " >&6; }
  2455. if ${ac_cv_build+:} false; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. ac_build_alias=$build_alias
  2459. test "x$ac_build_alias" = x &&
  2460. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2461. test "x$ac_build_alias" = x &&
  2462. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2463. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2464. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2465. fi
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2467. $as_echo "$ac_cv_build" >&6; }
  2468. case $ac_cv_build in
  2469. *-*-*) ;;
  2470. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2471. esac
  2472. build=$ac_cv_build
  2473. ac_save_IFS=$IFS; IFS='-'
  2474. set x $ac_cv_build
  2475. shift
  2476. build_cpu=$1
  2477. build_vendor=$2
  2478. shift; shift
  2479. # Remember, the first character of IFS is used to create $*,
  2480. # except with old shells:
  2481. build_os=$*
  2482. IFS=$ac_save_IFS
  2483. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2485. $as_echo_n "checking host system type... " >&6; }
  2486. if ${ac_cv_host+:} false; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test "x$host_alias" = x; then
  2490. ac_cv_host=$ac_cv_build
  2491. else
  2492. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2493. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2494. fi
  2495. fi
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2497. $as_echo "$ac_cv_host" >&6; }
  2498. case $ac_cv_host in
  2499. *-*-*) ;;
  2500. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2501. esac
  2502. host=$ac_cv_host
  2503. ac_save_IFS=$IFS; IFS='-'
  2504. set x $ac_cv_host
  2505. shift
  2506. host_cpu=$1
  2507. host_vendor=$2
  2508. shift; shift
  2509. # Remember, the first character of IFS is used to create $*,
  2510. # except with old shells:
  2511. host_os=$*
  2512. IFS=$ac_save_IFS
  2513. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2514. # Backslashify metacharacters that are still active within
  2515. # double-quoted strings.
  2516. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2517. # Same as above, but do not quote variable references.
  2518. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2519. # Sed substitution to delay expansion of an escaped shell variable in a
  2520. # double_quote_subst'ed string.
  2521. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2522. # Sed substitution to delay expansion of an escaped single quote.
  2523. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2524. # Sed substitution to avoid accidental globbing in evaled expressions
  2525. no_glob_subst='s/\*/\\\*/g'
  2526. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2527. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2528. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2530. $as_echo_n "checking how to print strings... " >&6; }
  2531. # Test print first, because it will be a builtin if present.
  2532. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2533. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2534. ECHO='print -r --'
  2535. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2536. ECHO='printf %s\n'
  2537. else
  2538. # Use this function as a fallback that always works.
  2539. func_fallback_echo ()
  2540. {
  2541. eval 'cat <<_LTECHO_EOF
  2542. $1
  2543. _LTECHO_EOF'
  2544. }
  2545. ECHO='func_fallback_echo'
  2546. fi
  2547. # func_echo_all arg...
  2548. # Invoke $ECHO with all args, space-separated.
  2549. func_echo_all ()
  2550. {
  2551. $ECHO ""
  2552. }
  2553. case "$ECHO" in
  2554. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2555. $as_echo "printf" >&6; } ;;
  2556. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2557. $as_echo "print -r" >&6; } ;;
  2558. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2559. $as_echo "cat" >&6; } ;;
  2560. esac
  2561. ac_ext=c
  2562. ac_cpp='$CPP $CPPFLAGS'
  2563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2566. if test -n "$ac_tool_prefix"; then
  2567. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2568. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2570. $as_echo_n "checking for $ac_word... " >&6; }
  2571. if ${ac_cv_prog_CC+:} false; then :
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. if test -n "$CC"; then
  2575. ac_cv_prog_CC="$CC" # Let the user override the test.
  2576. else
  2577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2578. for as_dir in $PATH
  2579. do
  2580. IFS=$as_save_IFS
  2581. test -z "$as_dir" && as_dir=.
  2582. for ac_exec_ext in '' $ac_executable_extensions; do
  2583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2584. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2586. break 2
  2587. fi
  2588. done
  2589. done
  2590. IFS=$as_save_IFS
  2591. fi
  2592. fi
  2593. CC=$ac_cv_prog_CC
  2594. if test -n "$CC"; then
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2596. $as_echo "$CC" >&6; }
  2597. else
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2599. $as_echo "no" >&6; }
  2600. fi
  2601. fi
  2602. if test -z "$ac_cv_prog_CC"; then
  2603. ac_ct_CC=$CC
  2604. # Extract the first word of "gcc", so it can be a program name with args.
  2605. set dummy gcc; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$ac_ct_CC"; then
  2612. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2613. else
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2621. ac_cv_prog_ac_ct_CC="gcc"
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2631. if test -n "$ac_ct_CC"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2633. $as_echo "$ac_ct_CC" >&6; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. fi
  2638. if test "x$ac_ct_CC" = x; then
  2639. CC=""
  2640. else
  2641. case $cross_compiling:$ac_tool_warned in
  2642. yes:)
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2645. ac_tool_warned=yes ;;
  2646. esac
  2647. CC=$ac_ct_CC
  2648. fi
  2649. else
  2650. CC="$ac_cv_prog_CC"
  2651. fi
  2652. if test -z "$CC"; then
  2653. if test -n "$ac_tool_prefix"; then
  2654. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2655. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. $as_echo_n "checking for $ac_word... " >&6; }
  2658. if ${ac_cv_prog_CC+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if test -n "$CC"; then
  2662. ac_cv_prog_CC="$CC" # Let the user override the test.
  2663. else
  2664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665. for as_dir in $PATH
  2666. do
  2667. IFS=$as_save_IFS
  2668. test -z "$as_dir" && as_dir=.
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2671. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678. fi
  2679. fi
  2680. CC=$ac_cv_prog_CC
  2681. if test -n "$CC"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2683. $as_echo "$CC" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. fi
  2689. fi
  2690. if test -z "$CC"; then
  2691. # Extract the first word of "cc", so it can be a program name with args.
  2692. set dummy cc; ac_word=$2
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2694. $as_echo_n "checking for $ac_word... " >&6; }
  2695. if ${ac_cv_prog_CC+:} false; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. if test -n "$CC"; then
  2699. ac_cv_prog_CC="$CC" # Let the user override the test.
  2700. else
  2701. ac_prog_rejected=no
  2702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2703. for as_dir in $PATH
  2704. do
  2705. IFS=$as_save_IFS
  2706. test -z "$as_dir" && as_dir=.
  2707. for ac_exec_ext in '' $ac_executable_extensions; do
  2708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2709. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2710. ac_prog_rejected=yes
  2711. continue
  2712. fi
  2713. ac_cv_prog_CC="cc"
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2715. break 2
  2716. fi
  2717. done
  2718. done
  2719. IFS=$as_save_IFS
  2720. if test $ac_prog_rejected = yes; then
  2721. # We found a bogon in the path, so make sure we never use it.
  2722. set dummy $ac_cv_prog_CC
  2723. shift
  2724. if test $# != 0; then
  2725. # We chose a different compiler from the bogus one.
  2726. # However, it has the same basename, so the bogon will be chosen
  2727. # first if we set CC to just the basename; use the full file name.
  2728. shift
  2729. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2730. fi
  2731. fi
  2732. fi
  2733. fi
  2734. CC=$ac_cv_prog_CC
  2735. if test -n "$CC"; then
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2737. $as_echo "$CC" >&6; }
  2738. else
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2740. $as_echo "no" >&6; }
  2741. fi
  2742. fi
  2743. if test -z "$CC"; then
  2744. if test -n "$ac_tool_prefix"; then
  2745. for ac_prog in cl.exe
  2746. do
  2747. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2748. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2750. $as_echo_n "checking for $ac_word... " >&6; }
  2751. if ${ac_cv_prog_CC+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. if test -n "$CC"; then
  2755. ac_cv_prog_CC="$CC" # Let the user override the test.
  2756. else
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2764. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. fi
  2772. fi
  2773. CC=$ac_cv_prog_CC
  2774. if test -n "$CC"; then
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2776. $as_echo "$CC" >&6; }
  2777. else
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. $as_echo "no" >&6; }
  2780. fi
  2781. test -n "$CC" && break
  2782. done
  2783. fi
  2784. if test -z "$CC"; then
  2785. ac_ct_CC=$CC
  2786. for ac_prog in cl.exe
  2787. do
  2788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2789. set dummy $ac_prog; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$ac_ct_CC"; then
  2796. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_ac_ct_CC="$ac_prog"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2815. if test -n "$ac_ct_CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2817. $as_echo "$ac_ct_CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. test -n "$ac_ct_CC" && break
  2823. done
  2824. if test "x$ac_ct_CC" = x; then
  2825. CC=""
  2826. else
  2827. case $cross_compiling:$ac_tool_warned in
  2828. yes:)
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2831. ac_tool_warned=yes ;;
  2832. esac
  2833. CC=$ac_ct_CC
  2834. fi
  2835. fi
  2836. fi
  2837. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2838. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2839. as_fn_error $? "no acceptable C compiler found in \$PATH
  2840. See \`config.log' for more details" "$LINENO" 5; }
  2841. # Provide some information about the compiler.
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2843. set X $ac_compile
  2844. ac_compiler=$2
  2845. for ac_option in --version -v -V -qversion; do
  2846. { { ac_try="$ac_compiler $ac_option >&5"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2852. $as_echo "$ac_try_echo"; } >&5
  2853. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2854. ac_status=$?
  2855. if test -s conftest.err; then
  2856. sed '10a\
  2857. ... rest of stderr output deleted ...
  2858. 10q' conftest.err >conftest.er1
  2859. cat conftest.er1 >&5
  2860. fi
  2861. rm -f conftest.er1 conftest.err
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2863. test $ac_status = 0; }
  2864. done
  2865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2866. /* end confdefs.h. */
  2867. int
  2868. main ()
  2869. {
  2870. ;
  2871. return 0;
  2872. }
  2873. _ACEOF
  2874. ac_clean_files_save=$ac_clean_files
  2875. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2876. # Try to create an executable without -o first, disregard a.out.
  2877. # It will help us diagnose broken compilers, and finding out an intuition
  2878. # of exeext.
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2880. $as_echo_n "checking whether the C compiler works... " >&6; }
  2881. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2882. # The possible output files:
  2883. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2884. ac_rmfiles=
  2885. for ac_file in $ac_files
  2886. do
  2887. case $ac_file in
  2888. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2889. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2890. esac
  2891. done
  2892. rm -f $ac_rmfiles
  2893. if { { ac_try="$ac_link_default"
  2894. case "(($ac_try" in
  2895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2896. *) ac_try_echo=$ac_try;;
  2897. esac
  2898. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2899. $as_echo "$ac_try_echo"; } >&5
  2900. (eval "$ac_link_default") 2>&5
  2901. ac_status=$?
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2903. test $ac_status = 0; }; then :
  2904. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2905. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2906. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2907. # so that the user can short-circuit this test for compilers unknown to
  2908. # Autoconf.
  2909. for ac_file in $ac_files ''
  2910. do
  2911. test -f "$ac_file" || continue
  2912. case $ac_file in
  2913. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2914. ;;
  2915. [ab].out )
  2916. # We found the default executable, but exeext='' is most
  2917. # certainly right.
  2918. break;;
  2919. *.* )
  2920. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2921. then :; else
  2922. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2923. fi
  2924. # We set ac_cv_exeext here because the later test for it is not
  2925. # safe: cross compilers may not add the suffix if given an `-o'
  2926. # argument, so we may need to know it at that point already.
  2927. # Even if this section looks crufty: it has the advantage of
  2928. # actually working.
  2929. break;;
  2930. * )
  2931. break;;
  2932. esac
  2933. done
  2934. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2935. else
  2936. ac_file=''
  2937. fi
  2938. if test -z "$ac_file"; then :
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. $as_echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2945. as_fn_error 77 "C compiler cannot create executables
  2946. See \`config.log' for more details" "$LINENO" 5; }
  2947. else
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2949. $as_echo "yes" >&6; }
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2952. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2954. $as_echo "$ac_file" >&6; }
  2955. ac_exeext=$ac_cv_exeext
  2956. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2957. ac_clean_files=$ac_clean_files_save
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2959. $as_echo_n "checking for suffix of executables... " >&6; }
  2960. if { { ac_try="$ac_link"
  2961. case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo"; } >&5
  2967. (eval "$ac_link") 2>&5
  2968. ac_status=$?
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2970. test $ac_status = 0; }; then :
  2971. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2972. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2973. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2974. # `rm'.
  2975. for ac_file in conftest.exe conftest conftest.*; do
  2976. test -f "$ac_file" || continue
  2977. case $ac_file in
  2978. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2979. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2980. break;;
  2981. * ) break;;
  2982. esac
  2983. done
  2984. else
  2985. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2986. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2987. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2988. See \`config.log' for more details" "$LINENO" 5; }
  2989. fi
  2990. rm -f conftest conftest$ac_cv_exeext
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2992. $as_echo "$ac_cv_exeext" >&6; }
  2993. rm -f conftest.$ac_ext
  2994. EXEEXT=$ac_cv_exeext
  2995. ac_exeext=$EXEEXT
  2996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2997. /* end confdefs.h. */
  2998. #include <stdio.h>
  2999. int
  3000. main ()
  3001. {
  3002. FILE *f = fopen ("conftest.out", "w");
  3003. return ferror (f) || fclose (f) != 0;
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. ac_clean_files="$ac_clean_files conftest.out"
  3009. # Check that the compiler produces executables we can run. If not, either
  3010. # the compiler is broken, or we cross compile.
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3012. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3013. if test "$cross_compiling" != yes; then
  3014. { { ac_try="$ac_link"
  3015. case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo"; } >&5
  3021. (eval "$ac_link") 2>&5
  3022. ac_status=$?
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3024. test $ac_status = 0; }
  3025. if { ac_try='./conftest$ac_cv_exeext'
  3026. { { case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3031. $as_echo "$ac_try_echo"; } >&5
  3032. (eval "$ac_try") 2>&5
  3033. ac_status=$?
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3035. test $ac_status = 0; }; }; then
  3036. cross_compiling=no
  3037. else
  3038. if test "$cross_compiling" = maybe; then
  3039. cross_compiling=yes
  3040. else
  3041. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3043. as_fn_error $? "cannot run C compiled programs.
  3044. If you meant to cross compile, use \`--host'.
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. fi
  3047. fi
  3048. fi
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3050. $as_echo "$cross_compiling" >&6; }
  3051. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3052. ac_clean_files=$ac_clean_files_save
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3054. $as_echo_n "checking for suffix of object files... " >&6; }
  3055. if ${ac_cv_objext+:} false; then :
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h. */
  3060. int
  3061. main ()
  3062. {
  3063. ;
  3064. return 0;
  3065. }
  3066. _ACEOF
  3067. rm -f conftest.o conftest.obj
  3068. if { { ac_try="$ac_compile"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3074. $as_echo "$ac_try_echo"; } >&5
  3075. (eval "$ac_compile") 2>&5
  3076. ac_status=$?
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3078. test $ac_status = 0; }; then :
  3079. for ac_file in conftest.o conftest.obj conftest.*; do
  3080. test -f "$ac_file" || continue;
  3081. case $ac_file in
  3082. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3083. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3084. break;;
  3085. esac
  3086. done
  3087. else
  3088. $as_echo "$as_me: failed program was:" >&5
  3089. sed 's/^/| /' conftest.$ac_ext >&5
  3090. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3091. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3092. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3093. See \`config.log' for more details" "$LINENO" 5; }
  3094. fi
  3095. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3098. $as_echo "$ac_cv_objext" >&6; }
  3099. OBJEXT=$ac_cv_objext
  3100. ac_objext=$OBJEXT
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3102. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3103. if ${ac_cv_c_compiler_gnu+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3107. /* end confdefs.h. */
  3108. int
  3109. main ()
  3110. {
  3111. #ifndef __GNUC__
  3112. choke me
  3113. #endif
  3114. ;
  3115. return 0;
  3116. }
  3117. _ACEOF
  3118. if ac_fn_c_try_compile "$LINENO"; then :
  3119. ac_compiler_gnu=yes
  3120. else
  3121. ac_compiler_gnu=no
  3122. fi
  3123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3124. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3125. fi
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3127. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3128. if test $ac_compiler_gnu = yes; then
  3129. GCC=yes
  3130. else
  3131. GCC=
  3132. fi
  3133. ac_test_CFLAGS=${CFLAGS+set}
  3134. ac_save_CFLAGS=$CFLAGS
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3136. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3137. if ${ac_cv_prog_cc_g+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. ac_save_c_werror_flag=$ac_c_werror_flag
  3141. ac_c_werror_flag=yes
  3142. ac_cv_prog_cc_g=no
  3143. CFLAGS="-g"
  3144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3145. /* end confdefs.h. */
  3146. int
  3147. main ()
  3148. {
  3149. ;
  3150. return 0;
  3151. }
  3152. _ACEOF
  3153. if ac_fn_c_try_compile "$LINENO"; then :
  3154. ac_cv_prog_cc_g=yes
  3155. else
  3156. CFLAGS=""
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. else
  3168. ac_c_werror_flag=$ac_save_c_werror_flag
  3169. CFLAGS="-g"
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. int
  3173. main ()
  3174. {
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. if ac_fn_c_try_compile "$LINENO"; then :
  3180. ac_cv_prog_cc_g=yes
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. fi
  3184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. fi
  3186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3187. ac_c_werror_flag=$ac_save_c_werror_flag
  3188. fi
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3190. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3191. if test "$ac_test_CFLAGS" = set; then
  3192. CFLAGS=$ac_save_CFLAGS
  3193. elif test $ac_cv_prog_cc_g = yes; then
  3194. if test "$GCC" = yes; then
  3195. CFLAGS="-g -O2"
  3196. else
  3197. CFLAGS="-g"
  3198. fi
  3199. else
  3200. if test "$GCC" = yes; then
  3201. CFLAGS="-O2"
  3202. else
  3203. CFLAGS=
  3204. fi
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3207. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3208. if ${ac_cv_prog_cc_c89+:} false; then :
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. ac_cv_prog_cc_c89=no
  3212. ac_save_CC=$CC
  3213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end confdefs.h. */
  3215. #include <stdarg.h>
  3216. #include <stdio.h>
  3217. struct stat;
  3218. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3219. struct buf { int x; };
  3220. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3221. static char *e (p, i)
  3222. char **p;
  3223. int i;
  3224. {
  3225. return p[i];
  3226. }
  3227. static char *f (char * (*g) (char **, int), char **p, ...)
  3228. {
  3229. char *s;
  3230. va_list v;
  3231. va_start (v,p);
  3232. s = g (p, va_arg (v,int));
  3233. va_end (v);
  3234. return s;
  3235. }
  3236. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3237. function prototypes and stuff, but not '\xHH' hex character constants.
  3238. These don't provoke an error unfortunately, instead are silently treated
  3239. as 'x'. The following induces an error, until -std is added to get
  3240. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3241. array size at least. It's necessary to write '\x00'==0 to get something
  3242. that's true only with -std. */
  3243. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3244. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3245. inside strings and character constants. */
  3246. #define FOO(x) 'x'
  3247. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3248. int test (int i, double x);
  3249. struct s1 {int (*f) (int a);};
  3250. struct s2 {int (*f) (double a);};
  3251. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3252. int argc;
  3253. char **argv;
  3254. int
  3255. main ()
  3256. {
  3257. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3258. ;
  3259. return 0;
  3260. }
  3261. _ACEOF
  3262. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3263. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3264. do
  3265. CC="$ac_save_CC $ac_arg"
  3266. if ac_fn_c_try_compile "$LINENO"; then :
  3267. ac_cv_prog_cc_c89=$ac_arg
  3268. fi
  3269. rm -f core conftest.err conftest.$ac_objext
  3270. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3271. done
  3272. rm -f conftest.$ac_ext
  3273. CC=$ac_save_CC
  3274. fi
  3275. # AC_CACHE_VAL
  3276. case "x$ac_cv_prog_cc_c89" in
  3277. x)
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3279. $as_echo "none needed" >&6; } ;;
  3280. xno)
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3282. $as_echo "unsupported" >&6; } ;;
  3283. *)
  3284. CC="$CC $ac_cv_prog_cc_c89"
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3286. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3287. esac
  3288. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3289. fi
  3290. ac_ext=c
  3291. ac_cpp='$CPP $CPPFLAGS'
  3292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3296. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3297. if ${ac_cv_path_SED+:} false; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3301. for ac_i in 1 2 3 4 5 6 7; do
  3302. ac_script="$ac_script$as_nl$ac_script"
  3303. done
  3304. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3305. { ac_script=; unset ac_script;}
  3306. if test -z "$SED"; then
  3307. ac_path_SED_found=false
  3308. # Loop through the user's path and test for each of PROGNAME-LIST
  3309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3310. for as_dir in $PATH
  3311. do
  3312. IFS=$as_save_IFS
  3313. test -z "$as_dir" && as_dir=.
  3314. for ac_prog in sed gsed; do
  3315. for ac_exec_ext in '' $ac_executable_extensions; do
  3316. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3317. as_fn_executable_p "$ac_path_SED" || continue
  3318. # Check for GNU ac_path_SED and select it if it is found.
  3319. # Check for GNU $ac_path_SED
  3320. case `"$ac_path_SED" --version 2>&1` in
  3321. *GNU*)
  3322. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3323. *)
  3324. ac_count=0
  3325. $as_echo_n 0123456789 >"conftest.in"
  3326. while :
  3327. do
  3328. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3329. mv "conftest.tmp" "conftest.in"
  3330. cp "conftest.in" "conftest.nl"
  3331. $as_echo '' >> "conftest.nl"
  3332. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3333. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3334. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3335. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3336. # Best one so far, save it but keep looking for a better one
  3337. ac_cv_path_SED="$ac_path_SED"
  3338. ac_path_SED_max=$ac_count
  3339. fi
  3340. # 10*(2^10) chars as input seems more than enough
  3341. test $ac_count -gt 10 && break
  3342. done
  3343. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3344. esac
  3345. $ac_path_SED_found && break 3
  3346. done
  3347. done
  3348. done
  3349. IFS=$as_save_IFS
  3350. if test -z "$ac_cv_path_SED"; then
  3351. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3352. fi
  3353. else
  3354. ac_cv_path_SED=$SED
  3355. fi
  3356. fi
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3358. $as_echo "$ac_cv_path_SED" >&6; }
  3359. SED="$ac_cv_path_SED"
  3360. rm -f conftest.sed
  3361. test -z "$SED" && SED=sed
  3362. Xsed="$SED -e 1s/^X//"
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3364. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3365. if ${ac_cv_path_GREP+:} false; then :
  3366. $as_echo_n "(cached) " >&6
  3367. else
  3368. if test -z "$GREP"; then
  3369. ac_path_GREP_found=false
  3370. # Loop through the user's path and test for each of PROGNAME-LIST
  3371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3372. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3373. do
  3374. IFS=$as_save_IFS
  3375. test -z "$as_dir" && as_dir=.
  3376. for ac_prog in grep ggrep; do
  3377. for ac_exec_ext in '' $ac_executable_extensions; do
  3378. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3379. as_fn_executable_p "$ac_path_GREP" || continue
  3380. # Check for GNU ac_path_GREP and select it if it is found.
  3381. # Check for GNU $ac_path_GREP
  3382. case `"$ac_path_GREP" --version 2>&1` in
  3383. *GNU*)
  3384. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3385. *)
  3386. ac_count=0
  3387. $as_echo_n 0123456789 >"conftest.in"
  3388. while :
  3389. do
  3390. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3391. mv "conftest.tmp" "conftest.in"
  3392. cp "conftest.in" "conftest.nl"
  3393. $as_echo 'GREP' >> "conftest.nl"
  3394. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3395. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3396. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3397. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3398. # Best one so far, save it but keep looking for a better one
  3399. ac_cv_path_GREP="$ac_path_GREP"
  3400. ac_path_GREP_max=$ac_count
  3401. fi
  3402. # 10*(2^10) chars as input seems more than enough
  3403. test $ac_count -gt 10 && break
  3404. done
  3405. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3406. esac
  3407. $ac_path_GREP_found && break 3
  3408. done
  3409. done
  3410. done
  3411. IFS=$as_save_IFS
  3412. if test -z "$ac_cv_path_GREP"; then
  3413. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3414. fi
  3415. else
  3416. ac_cv_path_GREP=$GREP
  3417. fi
  3418. fi
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3420. $as_echo "$ac_cv_path_GREP" >&6; }
  3421. GREP="$ac_cv_path_GREP"
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3423. $as_echo_n "checking for egrep... " >&6; }
  3424. if ${ac_cv_path_EGREP+:} false; then :
  3425. $as_echo_n "(cached) " >&6
  3426. else
  3427. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3428. then ac_cv_path_EGREP="$GREP -E"
  3429. else
  3430. if test -z "$EGREP"; then
  3431. ac_path_EGREP_found=false
  3432. # Loop through the user's path and test for each of PROGNAME-LIST
  3433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3434. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3435. do
  3436. IFS=$as_save_IFS
  3437. test -z "$as_dir" && as_dir=.
  3438. for ac_prog in egrep; do
  3439. for ac_exec_ext in '' $ac_executable_extensions; do
  3440. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3441. as_fn_executable_p "$ac_path_EGREP" || continue
  3442. # Check for GNU ac_path_EGREP and select it if it is found.
  3443. # Check for GNU $ac_path_EGREP
  3444. case `"$ac_path_EGREP" --version 2>&1` in
  3445. *GNU*)
  3446. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3447. *)
  3448. ac_count=0
  3449. $as_echo_n 0123456789 >"conftest.in"
  3450. while :
  3451. do
  3452. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3453. mv "conftest.tmp" "conftest.in"
  3454. cp "conftest.in" "conftest.nl"
  3455. $as_echo 'EGREP' >> "conftest.nl"
  3456. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3457. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3458. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3459. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3460. # Best one so far, save it but keep looking for a better one
  3461. ac_cv_path_EGREP="$ac_path_EGREP"
  3462. ac_path_EGREP_max=$ac_count
  3463. fi
  3464. # 10*(2^10) chars as input seems more than enough
  3465. test $ac_count -gt 10 && break
  3466. done
  3467. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3468. esac
  3469. $ac_path_EGREP_found && break 3
  3470. done
  3471. done
  3472. done
  3473. IFS=$as_save_IFS
  3474. if test -z "$ac_cv_path_EGREP"; then
  3475. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3476. fi
  3477. else
  3478. ac_cv_path_EGREP=$EGREP
  3479. fi
  3480. fi
  3481. fi
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3483. $as_echo "$ac_cv_path_EGREP" >&6; }
  3484. EGREP="$ac_cv_path_EGREP"
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3486. $as_echo_n "checking for fgrep... " >&6; }
  3487. if ${ac_cv_path_FGREP+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3491. then ac_cv_path_FGREP="$GREP -F"
  3492. else
  3493. if test -z "$FGREP"; then
  3494. ac_path_FGREP_found=false
  3495. # Loop through the user's path and test for each of PROGNAME-LIST
  3496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3497. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3498. do
  3499. IFS=$as_save_IFS
  3500. test -z "$as_dir" && as_dir=.
  3501. for ac_prog in fgrep; do
  3502. for ac_exec_ext in '' $ac_executable_extensions; do
  3503. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3504. as_fn_executable_p "$ac_path_FGREP" || continue
  3505. # Check for GNU ac_path_FGREP and select it if it is found.
  3506. # Check for GNU $ac_path_FGREP
  3507. case `"$ac_path_FGREP" --version 2>&1` in
  3508. *GNU*)
  3509. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3510. *)
  3511. ac_count=0
  3512. $as_echo_n 0123456789 >"conftest.in"
  3513. while :
  3514. do
  3515. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3516. mv "conftest.tmp" "conftest.in"
  3517. cp "conftest.in" "conftest.nl"
  3518. $as_echo 'FGREP' >> "conftest.nl"
  3519. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3520. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3521. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3522. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3523. # Best one so far, save it but keep looking for a better one
  3524. ac_cv_path_FGREP="$ac_path_FGREP"
  3525. ac_path_FGREP_max=$ac_count
  3526. fi
  3527. # 10*(2^10) chars as input seems more than enough
  3528. test $ac_count -gt 10 && break
  3529. done
  3530. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3531. esac
  3532. $ac_path_FGREP_found && break 3
  3533. done
  3534. done
  3535. done
  3536. IFS=$as_save_IFS
  3537. if test -z "$ac_cv_path_FGREP"; then
  3538. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3539. fi
  3540. else
  3541. ac_cv_path_FGREP=$FGREP
  3542. fi
  3543. fi
  3544. fi
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3546. $as_echo "$ac_cv_path_FGREP" >&6; }
  3547. FGREP="$ac_cv_path_FGREP"
  3548. test -z "$GREP" && GREP=grep
  3549. # Check whether --with-gnu-ld was given.
  3550. if test "${with_gnu_ld+set}" = set; then :
  3551. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3552. else
  3553. with_gnu_ld=no
  3554. fi
  3555. ac_prog=ld
  3556. if test "$GCC" = yes; then
  3557. # Check if gcc -print-prog-name=ld gives a path.
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3559. $as_echo_n "checking for ld used by $CC... " >&6; }
  3560. case $host in
  3561. *-*-mingw*)
  3562. # gcc leaves a trailing carriage return which upsets mingw
  3563. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3564. *)
  3565. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3566. esac
  3567. case $ac_prog in
  3568. # Accept absolute paths.
  3569. [\\/]* | ?:[\\/]*)
  3570. re_direlt='/[^/][^/]*/\.\./'
  3571. # Canonicalize the pathname of ld
  3572. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3573. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3574. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3575. done
  3576. test -z "$LD" && LD="$ac_prog"
  3577. ;;
  3578. "")
  3579. # If it fails, then pretend we aren't using GCC.
  3580. ac_prog=ld
  3581. ;;
  3582. *)
  3583. # If it is relative, then search for the first ld in PATH.
  3584. with_gnu_ld=unknown
  3585. ;;
  3586. esac
  3587. elif test "$with_gnu_ld" = yes; then
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3589. $as_echo_n "checking for GNU ld... " >&6; }
  3590. else
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3592. $as_echo_n "checking for non-GNU ld... " >&6; }
  3593. fi
  3594. if ${lt_cv_path_LD+:} false; then :
  3595. $as_echo_n "(cached) " >&6
  3596. else
  3597. if test -z "$LD"; then
  3598. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3599. for ac_dir in $PATH; do
  3600. IFS="$lt_save_ifs"
  3601. test -z "$ac_dir" && ac_dir=.
  3602. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3603. lt_cv_path_LD="$ac_dir/$ac_prog"
  3604. # Check to see if the program is GNU ld. I'd rather use --version,
  3605. # but apparently some variants of GNU ld only accept -v.
  3606. # Break only if it was the GNU/non-GNU ld that we prefer.
  3607. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3608. *GNU* | *'with BFD'*)
  3609. test "$with_gnu_ld" != no && break
  3610. ;;
  3611. *)
  3612. test "$with_gnu_ld" != yes && break
  3613. ;;
  3614. esac
  3615. fi
  3616. done
  3617. IFS="$lt_save_ifs"
  3618. else
  3619. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3620. fi
  3621. fi
  3622. LD="$lt_cv_path_LD"
  3623. if test -n "$LD"; then
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3625. $as_echo "$LD" >&6; }
  3626. else
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. $as_echo "no" >&6; }
  3629. fi
  3630. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3632. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3633. if ${lt_cv_prog_gnu_ld+:} false; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3637. case `$LD -v 2>&1 </dev/null` in
  3638. *GNU* | *'with BFD'*)
  3639. lt_cv_prog_gnu_ld=yes
  3640. ;;
  3641. *)
  3642. lt_cv_prog_gnu_ld=no
  3643. ;;
  3644. esac
  3645. fi
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3647. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3648. with_gnu_ld=$lt_cv_prog_gnu_ld
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3650. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3651. if ${lt_cv_path_NM+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -n "$NM"; then
  3655. # Let the user override the test.
  3656. lt_cv_path_NM="$NM"
  3657. else
  3658. lt_nm_to_check="${ac_tool_prefix}nm"
  3659. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3660. lt_nm_to_check="$lt_nm_to_check nm"
  3661. fi
  3662. for lt_tmp_nm in $lt_nm_to_check; do
  3663. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3664. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3665. IFS="$lt_save_ifs"
  3666. test -z "$ac_dir" && ac_dir=.
  3667. tmp_nm="$ac_dir/$lt_tmp_nm"
  3668. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3669. # Check to see if the nm accepts a BSD-compat flag.
  3670. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3671. # nm: unknown option "B" ignored
  3672. # Tru64's nm complains that /dev/null is an invalid object file
  3673. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3674. */dev/null* | *'Invalid file or object type'*)
  3675. lt_cv_path_NM="$tmp_nm -B"
  3676. break
  3677. ;;
  3678. *)
  3679. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3680. */dev/null*)
  3681. lt_cv_path_NM="$tmp_nm -p"
  3682. break
  3683. ;;
  3684. *)
  3685. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3686. continue # so that we can try to find one that supports BSD flags
  3687. ;;
  3688. esac
  3689. ;;
  3690. esac
  3691. fi
  3692. done
  3693. IFS="$lt_save_ifs"
  3694. done
  3695. : ${lt_cv_path_NM=no}
  3696. fi
  3697. fi
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3699. $as_echo "$lt_cv_path_NM" >&6; }
  3700. if test "$lt_cv_path_NM" != "no"; then
  3701. NM="$lt_cv_path_NM"
  3702. else
  3703. # Didn't find any BSD compatible name lister, look for dumpbin.
  3704. if test -n "$DUMPBIN"; then :
  3705. # Let the user override the test.
  3706. else
  3707. if test -n "$ac_tool_prefix"; then
  3708. for ac_prog in dumpbin "link -dump"
  3709. do
  3710. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3711. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3713. $as_echo_n "checking for $ac_word... " >&6; }
  3714. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. if test -n "$DUMPBIN"; then
  3718. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. test -z "$as_dir" && as_dir=.
  3725. for ac_exec_ext in '' $ac_executable_extensions; do
  3726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3727. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3729. break 2
  3730. fi
  3731. done
  3732. done
  3733. IFS=$as_save_IFS
  3734. fi
  3735. fi
  3736. DUMPBIN=$ac_cv_prog_DUMPBIN
  3737. if test -n "$DUMPBIN"; then
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3739. $as_echo "$DUMPBIN" >&6; }
  3740. else
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3742. $as_echo "no" >&6; }
  3743. fi
  3744. test -n "$DUMPBIN" && break
  3745. done
  3746. fi
  3747. if test -z "$DUMPBIN"; then
  3748. ac_ct_DUMPBIN=$DUMPBIN
  3749. for ac_prog in dumpbin "link -dump"
  3750. do
  3751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3752. set dummy $ac_prog; ac_word=$2
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3754. $as_echo_n "checking for $ac_word... " >&6; }
  3755. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3756. $as_echo_n "(cached) " >&6
  3757. else
  3758. if test -n "$ac_ct_DUMPBIN"; then
  3759. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3760. else
  3761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3762. for as_dir in $PATH
  3763. do
  3764. IFS=$as_save_IFS
  3765. test -z "$as_dir" && as_dir=.
  3766. for ac_exec_ext in '' $ac_executable_extensions; do
  3767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3768. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3770. break 2
  3771. fi
  3772. done
  3773. done
  3774. IFS=$as_save_IFS
  3775. fi
  3776. fi
  3777. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3778. if test -n "$ac_ct_DUMPBIN"; then
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3780. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3781. else
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3783. $as_echo "no" >&6; }
  3784. fi
  3785. test -n "$ac_ct_DUMPBIN" && break
  3786. done
  3787. if test "x$ac_ct_DUMPBIN" = x; then
  3788. DUMPBIN=":"
  3789. else
  3790. case $cross_compiling:$ac_tool_warned in
  3791. yes:)
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3794. ac_tool_warned=yes ;;
  3795. esac
  3796. DUMPBIN=$ac_ct_DUMPBIN
  3797. fi
  3798. fi
  3799. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3800. *COFF*)
  3801. DUMPBIN="$DUMPBIN -symbols"
  3802. ;;
  3803. *)
  3804. DUMPBIN=:
  3805. ;;
  3806. esac
  3807. fi
  3808. if test "$DUMPBIN" != ":"; then
  3809. NM="$DUMPBIN"
  3810. fi
  3811. fi
  3812. test -z "$NM" && NM=nm
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3814. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3815. if ${lt_cv_nm_interface+:} false; then :
  3816. $as_echo_n "(cached) " >&6
  3817. else
  3818. lt_cv_nm_interface="BSD nm"
  3819. echo "int some_variable = 0;" > conftest.$ac_ext
  3820. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3821. (eval "$ac_compile" 2>conftest.err)
  3822. cat conftest.err >&5
  3823. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3824. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3825. cat conftest.err >&5
  3826. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3827. cat conftest.out >&5
  3828. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3829. lt_cv_nm_interface="MS dumpbin"
  3830. fi
  3831. rm -f conftest*
  3832. fi
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3834. $as_echo "$lt_cv_nm_interface" >&6; }
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3836. $as_echo_n "checking whether ln -s works... " >&6; }
  3837. LN_S=$as_ln_s
  3838. if test "$LN_S" = "ln -s"; then
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3840. $as_echo "yes" >&6; }
  3841. else
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3843. $as_echo "no, using $LN_S" >&6; }
  3844. fi
  3845. # find the maximum length of command line arguments
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3847. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3848. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3849. $as_echo_n "(cached) " >&6
  3850. else
  3851. i=0
  3852. teststring="ABCD"
  3853. case $build_os in
  3854. msdosdjgpp*)
  3855. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3856. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3857. # during glob expansion). Even if it were fixed, the result of this
  3858. # check would be larger than it should be.
  3859. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3860. ;;
  3861. gnu*)
  3862. # Under GNU Hurd, this test is not required because there is
  3863. # no limit to the length of command line arguments.
  3864. # Libtool will interpret -1 as no limit whatsoever
  3865. lt_cv_sys_max_cmd_len=-1;
  3866. ;;
  3867. cygwin* | mingw* | cegcc*)
  3868. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3869. # about 5 minutes as the teststring grows exponentially.
  3870. # Worse, since 9x/ME are not pre-emptively multitasking,
  3871. # you end up with a "frozen" computer, even though with patience
  3872. # the test eventually succeeds (with a max line length of 256k).
  3873. # Instead, let's just punt: use the minimum linelength reported by
  3874. # all of the supported platforms: 8192 (on NT/2K/XP).
  3875. lt_cv_sys_max_cmd_len=8192;
  3876. ;;
  3877. mint*)
  3878. # On MiNT this can take a long time and run out of memory.
  3879. lt_cv_sys_max_cmd_len=8192;
  3880. ;;
  3881. amigaos*)
  3882. # On AmigaOS with pdksh, this test takes hours, literally.
  3883. # So we just punt and use a minimum line length of 8192.
  3884. lt_cv_sys_max_cmd_len=8192;
  3885. ;;
  3886. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3887. # This has been around since 386BSD, at least. Likely further.
  3888. if test -x /sbin/sysctl; then
  3889. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3890. elif test -x /usr/sbin/sysctl; then
  3891. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3892. else
  3893. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3894. fi
  3895. # And add a safety zone
  3896. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3897. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3898. ;;
  3899. interix*)
  3900. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3901. lt_cv_sys_max_cmd_len=196608
  3902. ;;
  3903. os2*)
  3904. # The test takes a long time on OS/2.
  3905. lt_cv_sys_max_cmd_len=8192
  3906. ;;
  3907. osf*)
  3908. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3909. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3910. # nice to cause kernel panics so lets avoid the loop below.
  3911. # First set a reasonable default.
  3912. lt_cv_sys_max_cmd_len=16384
  3913. #
  3914. if test -x /sbin/sysconfig; then
  3915. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3916. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3917. esac
  3918. fi
  3919. ;;
  3920. sco3.2v5*)
  3921. lt_cv_sys_max_cmd_len=102400
  3922. ;;
  3923. sysv5* | sco5v6* | sysv4.2uw2*)
  3924. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3925. if test -n "$kargmax"; then
  3926. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3927. else
  3928. lt_cv_sys_max_cmd_len=32768
  3929. fi
  3930. ;;
  3931. *)
  3932. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3933. if test -n "$lt_cv_sys_max_cmd_len"; then
  3934. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3935. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3936. else
  3937. # Make teststring a little bigger before we do anything with it.
  3938. # a 1K string should be a reasonable start.
  3939. for i in 1 2 3 4 5 6 7 8 ; do
  3940. teststring=$teststring$teststring
  3941. done
  3942. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3943. # If test is not a shell built-in, we'll probably end up computing a
  3944. # maximum length that is only half of the actual maximum length, but
  3945. # we can't tell.
  3946. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3947. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3948. test $i != 17 # 1/2 MB should be enough
  3949. do
  3950. i=`expr $i + 1`
  3951. teststring=$teststring$teststring
  3952. done
  3953. # Only check the string length outside the loop.
  3954. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3955. teststring=
  3956. # Add a significant safety factor because C++ compilers can tack on
  3957. # massive amounts of additional arguments before passing them to the
  3958. # linker. It appears as though 1/2 is a usable value.
  3959. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3960. fi
  3961. ;;
  3962. esac
  3963. fi
  3964. if test -n $lt_cv_sys_max_cmd_len ; then
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3966. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3967. else
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3969. $as_echo "none" >&6; }
  3970. fi
  3971. max_cmd_len=$lt_cv_sys_max_cmd_len
  3972. : ${CP="cp -f"}
  3973. : ${MV="mv -f"}
  3974. : ${RM="rm -f"}
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3976. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3977. # Try some XSI features
  3978. xsi_shell=no
  3979. ( _lt_dummy="a/b/c"
  3980. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3981. = c,a/b,b/c, \
  3982. && eval 'test $(( 1 + 1 )) -eq 2 \
  3983. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3984. && xsi_shell=yes
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3986. $as_echo "$xsi_shell" >&6; }
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3988. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3989. lt_shell_append=no
  3990. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3991. >/dev/null 2>&1 \
  3992. && lt_shell_append=yes
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3994. $as_echo "$lt_shell_append" >&6; }
  3995. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3996. lt_unset=unset
  3997. else
  3998. lt_unset=false
  3999. fi
  4000. # test EBCDIC or ASCII
  4001. case `echo X|tr X '\101'` in
  4002. A) # ASCII based system
  4003. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4004. lt_SP2NL='tr \040 \012'
  4005. lt_NL2SP='tr \015\012 \040\040'
  4006. ;;
  4007. *) # EBCDIC based system
  4008. lt_SP2NL='tr \100 \n'
  4009. lt_NL2SP='tr \r\n \100\100'
  4010. ;;
  4011. esac
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4013. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4014. if ${lt_cv_to_host_file_cmd+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. case $host in
  4018. *-*-mingw* )
  4019. case $build in
  4020. *-*-mingw* ) # actually msys
  4021. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4022. ;;
  4023. *-*-cygwin* )
  4024. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4025. ;;
  4026. * ) # otherwise, assume *nix
  4027. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4028. ;;
  4029. esac
  4030. ;;
  4031. *-*-cygwin* )
  4032. case $build in
  4033. *-*-mingw* ) # actually msys
  4034. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4035. ;;
  4036. *-*-cygwin* )
  4037. lt_cv_to_host_file_cmd=func_convert_file_noop
  4038. ;;
  4039. * ) # otherwise, assume *nix
  4040. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4041. ;;
  4042. esac
  4043. ;;
  4044. * ) # unhandled hosts (and "normal" native builds)
  4045. lt_cv_to_host_file_cmd=func_convert_file_noop
  4046. ;;
  4047. esac
  4048. fi
  4049. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4051. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4053. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4054. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. #assume ordinary cross tools, or native build.
  4058. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4059. case $host in
  4060. *-*-mingw* )
  4061. case $build in
  4062. *-*-mingw* ) # actually msys
  4063. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4064. ;;
  4065. esac
  4066. ;;
  4067. esac
  4068. fi
  4069. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4071. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4073. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4074. if ${lt_cv_ld_reload_flag+:} false; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. lt_cv_ld_reload_flag='-r'
  4078. fi
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4080. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4081. reload_flag=$lt_cv_ld_reload_flag
  4082. case $reload_flag in
  4083. "" | " "*) ;;
  4084. *) reload_flag=" $reload_flag" ;;
  4085. esac
  4086. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4087. case $host_os in
  4088. cygwin* | mingw* | pw32* | cegcc*)
  4089. if test "$GCC" != yes; then
  4090. reload_cmds=false
  4091. fi
  4092. ;;
  4093. darwin*)
  4094. if test "$GCC" = yes; then
  4095. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4096. else
  4097. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4098. fi
  4099. ;;
  4100. esac
  4101. if test -n "$ac_tool_prefix"; then
  4102. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4103. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4105. $as_echo_n "checking for $ac_word... " >&6; }
  4106. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. if test -n "$OBJDUMP"; then
  4110. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4111. else
  4112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4113. for as_dir in $PATH
  4114. do
  4115. IFS=$as_save_IFS
  4116. test -z "$as_dir" && as_dir=.
  4117. for ac_exec_ext in '' $ac_executable_extensions; do
  4118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4119. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4121. break 2
  4122. fi
  4123. done
  4124. done
  4125. IFS=$as_save_IFS
  4126. fi
  4127. fi
  4128. OBJDUMP=$ac_cv_prog_OBJDUMP
  4129. if test -n "$OBJDUMP"; then
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4131. $as_echo "$OBJDUMP" >&6; }
  4132. else
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4134. $as_echo "no" >&6; }
  4135. fi
  4136. fi
  4137. if test -z "$ac_cv_prog_OBJDUMP"; then
  4138. ac_ct_OBJDUMP=$OBJDUMP
  4139. # Extract the first word of "objdump", so it can be a program name with args.
  4140. set dummy objdump; ac_word=$2
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4142. $as_echo_n "checking for $ac_word... " >&6; }
  4143. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4144. $as_echo_n "(cached) " >&6
  4145. else
  4146. if test -n "$ac_ct_OBJDUMP"; then
  4147. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4148. else
  4149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4150. for as_dir in $PATH
  4151. do
  4152. IFS=$as_save_IFS
  4153. test -z "$as_dir" && as_dir=.
  4154. for ac_exec_ext in '' $ac_executable_extensions; do
  4155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4156. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4158. break 2
  4159. fi
  4160. done
  4161. done
  4162. IFS=$as_save_IFS
  4163. fi
  4164. fi
  4165. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4166. if test -n "$ac_ct_OBJDUMP"; then
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4168. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4169. else
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4171. $as_echo "no" >&6; }
  4172. fi
  4173. if test "x$ac_ct_OBJDUMP" = x; then
  4174. OBJDUMP="false"
  4175. else
  4176. case $cross_compiling:$ac_tool_warned in
  4177. yes:)
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4179. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4180. ac_tool_warned=yes ;;
  4181. esac
  4182. OBJDUMP=$ac_ct_OBJDUMP
  4183. fi
  4184. else
  4185. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4186. fi
  4187. test -z "$OBJDUMP" && OBJDUMP=objdump
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4189. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4190. if ${lt_cv_deplibs_check_method+:} false; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4194. lt_cv_file_magic_test_file=
  4195. lt_cv_deplibs_check_method='unknown'
  4196. # Need to set the preceding variable on all platforms that support
  4197. # interlibrary dependencies.
  4198. # 'none' -- dependencies not supported.
  4199. # `unknown' -- same as none, but documents that we really don't know.
  4200. # 'pass_all' -- all dependencies passed with no checks.
  4201. # 'test_compile' -- check by making test program.
  4202. # 'file_magic [[regex]]' -- check by looking for files in library path
  4203. # which responds to the $file_magic_cmd with a given extended regex.
  4204. # If you have `file' or equivalent on your system and you're not sure
  4205. # whether `pass_all' will *always* work, you probably want this one.
  4206. case $host_os in
  4207. aix[4-9]*)
  4208. lt_cv_deplibs_check_method=pass_all
  4209. ;;
  4210. beos*)
  4211. lt_cv_deplibs_check_method=pass_all
  4212. ;;
  4213. bsdi[45]*)
  4214. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4215. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4216. lt_cv_file_magic_test_file=/shlib/libc.so
  4217. ;;
  4218. cygwin*)
  4219. # func_win32_libid is a shell function defined in ltmain.sh
  4220. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4221. lt_cv_file_magic_cmd='func_win32_libid'
  4222. lt_cv_deplibs_check_method=pass_all
  4223. ;;
  4224. mingw* | pw32*)
  4225. # Base MSYS/MinGW do not provide the 'file' command needed by
  4226. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4227. # unless we find 'file', for example because we are cross-compiling.
  4228. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4229. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4230. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4231. lt_cv_file_magic_cmd='func_win32_libid'
  4232. else
  4233. # Keep this pattern in sync with the one in func_win32_libid.
  4234. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4235. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4236. fi
  4237. lt_cv_deplibs_check_method=pass_all
  4238. ;;
  4239. cegcc*)
  4240. # use the weaker test based on 'objdump'. See mingw*.
  4241. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4242. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4243. ;;
  4244. darwin* | rhapsody*)
  4245. lt_cv_deplibs_check_method=pass_all
  4246. ;;
  4247. freebsd* | dragonfly*)
  4248. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4249. case $host_cpu in
  4250. i*86 )
  4251. # Not sure whether the presence of OpenBSD here was a mistake.
  4252. # Let's accept both of them until this is cleared up.
  4253. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4254. lt_cv_file_magic_cmd=/usr/bin/file
  4255. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4256. ;;
  4257. esac
  4258. else
  4259. lt_cv_deplibs_check_method=pass_all
  4260. fi
  4261. ;;
  4262. gnu*)
  4263. lt_cv_deplibs_check_method=pass_all
  4264. ;;
  4265. haiku*)
  4266. lt_cv_deplibs_check_method=pass_all
  4267. ;;
  4268. hpux10.20* | hpux11*)
  4269. lt_cv_file_magic_cmd=/usr/bin/file
  4270. case $host_cpu in
  4271. ia64*)
  4272. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4273. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4274. ;;
  4275. hppa*64*)
  4276. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4277. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4278. ;;
  4279. *)
  4280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4281. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4282. ;;
  4283. esac
  4284. ;;
  4285. interix[3-9]*)
  4286. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4287. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4288. ;;
  4289. irix5* | irix6* | nonstopux*)
  4290. case $LD in
  4291. *-32|*"-32 ") libmagic=32-bit;;
  4292. *-n32|*"-n32 ") libmagic=N32;;
  4293. *-64|*"-64 ") libmagic=64-bit;;
  4294. *) libmagic=never-match;;
  4295. esac
  4296. lt_cv_deplibs_check_method=pass_all
  4297. ;;
  4298. # This must be glibc/ELF.
  4299. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4300. lt_cv_deplibs_check_method=pass_all
  4301. ;;
  4302. netbsd*)
  4303. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4304. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4305. else
  4306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4307. fi
  4308. ;;
  4309. newos6*)
  4310. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4311. lt_cv_file_magic_cmd=/usr/bin/file
  4312. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4313. ;;
  4314. *nto* | *qnx*)
  4315. lt_cv_deplibs_check_method=pass_all
  4316. ;;
  4317. openbsd*)
  4318. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4319. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4320. else
  4321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4322. fi
  4323. ;;
  4324. osf3* | osf4* | osf5*)
  4325. lt_cv_deplibs_check_method=pass_all
  4326. ;;
  4327. rdos*)
  4328. lt_cv_deplibs_check_method=pass_all
  4329. ;;
  4330. solaris*)
  4331. lt_cv_deplibs_check_method=pass_all
  4332. ;;
  4333. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. sysv4 | sysv4.3*)
  4337. case $host_vendor in
  4338. motorola)
  4339. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4340. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4341. ;;
  4342. ncr)
  4343. lt_cv_deplibs_check_method=pass_all
  4344. ;;
  4345. sequent)
  4346. lt_cv_file_magic_cmd='/bin/file'
  4347. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4348. ;;
  4349. sni)
  4350. lt_cv_file_magic_cmd='/bin/file'
  4351. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4352. lt_cv_file_magic_test_file=/lib/libc.so
  4353. ;;
  4354. siemens)
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. pc)
  4358. lt_cv_deplibs_check_method=pass_all
  4359. ;;
  4360. esac
  4361. ;;
  4362. tpf*)
  4363. lt_cv_deplibs_check_method=pass_all
  4364. ;;
  4365. esac
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4368. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4369. file_magic_glob=
  4370. want_nocaseglob=no
  4371. if test "$build" = "$host"; then
  4372. case $host_os in
  4373. mingw* | pw32*)
  4374. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4375. want_nocaseglob=yes
  4376. else
  4377. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4378. fi
  4379. ;;
  4380. esac
  4381. fi
  4382. file_magic_cmd=$lt_cv_file_magic_cmd
  4383. deplibs_check_method=$lt_cv_deplibs_check_method
  4384. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4385. if test -n "$ac_tool_prefix"; then
  4386. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4387. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4389. $as_echo_n "checking for $ac_word... " >&6; }
  4390. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4391. $as_echo_n "(cached) " >&6
  4392. else
  4393. if test -n "$DLLTOOL"; then
  4394. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4395. else
  4396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4397. for as_dir in $PATH
  4398. do
  4399. IFS=$as_save_IFS
  4400. test -z "$as_dir" && as_dir=.
  4401. for ac_exec_ext in '' $ac_executable_extensions; do
  4402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4403. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4405. break 2
  4406. fi
  4407. done
  4408. done
  4409. IFS=$as_save_IFS
  4410. fi
  4411. fi
  4412. DLLTOOL=$ac_cv_prog_DLLTOOL
  4413. if test -n "$DLLTOOL"; then
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4415. $as_echo "$DLLTOOL" >&6; }
  4416. else
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4418. $as_echo "no" >&6; }
  4419. fi
  4420. fi
  4421. if test -z "$ac_cv_prog_DLLTOOL"; then
  4422. ac_ct_DLLTOOL=$DLLTOOL
  4423. # Extract the first word of "dlltool", so it can be a program name with args.
  4424. set dummy dlltool; ac_word=$2
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4426. $as_echo_n "checking for $ac_word... " >&6; }
  4427. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4428. $as_echo_n "(cached) " >&6
  4429. else
  4430. if test -n "$ac_ct_DLLTOOL"; then
  4431. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4432. else
  4433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4434. for as_dir in $PATH
  4435. do
  4436. IFS=$as_save_IFS
  4437. test -z "$as_dir" && as_dir=.
  4438. for ac_exec_ext in '' $ac_executable_extensions; do
  4439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4440. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4442. break 2
  4443. fi
  4444. done
  4445. done
  4446. IFS=$as_save_IFS
  4447. fi
  4448. fi
  4449. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4450. if test -n "$ac_ct_DLLTOOL"; then
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4452. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4453. else
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4455. $as_echo "no" >&6; }
  4456. fi
  4457. if test "x$ac_ct_DLLTOOL" = x; then
  4458. DLLTOOL="false"
  4459. else
  4460. case $cross_compiling:$ac_tool_warned in
  4461. yes:)
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4464. ac_tool_warned=yes ;;
  4465. esac
  4466. DLLTOOL=$ac_ct_DLLTOOL
  4467. fi
  4468. else
  4469. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4470. fi
  4471. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4473. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4474. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4478. case $host_os in
  4479. cygwin* | mingw* | pw32* | cegcc*)
  4480. # two different shell functions defined in ltmain.sh
  4481. # decide which to use based on capabilities of $DLLTOOL
  4482. case `$DLLTOOL --help 2>&1` in
  4483. *--identify-strict*)
  4484. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4485. ;;
  4486. *)
  4487. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4488. ;;
  4489. esac
  4490. ;;
  4491. *)
  4492. # fallback: assume linklib IS sharedlib
  4493. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4494. ;;
  4495. esac
  4496. fi
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4498. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4499. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4500. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4501. if test -n "$ac_tool_prefix"; then
  4502. for ac_prog in ar
  4503. do
  4504. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4505. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4507. $as_echo_n "checking for $ac_word... " >&6; }
  4508. if ${ac_cv_prog_AR+:} false; then :
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. if test -n "$AR"; then
  4512. ac_cv_prog_AR="$AR" # Let the user override the test.
  4513. else
  4514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4515. for as_dir in $PATH
  4516. do
  4517. IFS=$as_save_IFS
  4518. test -z "$as_dir" && as_dir=.
  4519. for ac_exec_ext in '' $ac_executable_extensions; do
  4520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4521. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4523. break 2
  4524. fi
  4525. done
  4526. done
  4527. IFS=$as_save_IFS
  4528. fi
  4529. fi
  4530. AR=$ac_cv_prog_AR
  4531. if test -n "$AR"; then
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4533. $as_echo "$AR" >&6; }
  4534. else
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4536. $as_echo "no" >&6; }
  4537. fi
  4538. test -n "$AR" && break
  4539. done
  4540. fi
  4541. if test -z "$AR"; then
  4542. ac_ct_AR=$AR
  4543. for ac_prog in ar
  4544. do
  4545. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4546. set dummy $ac_prog; ac_word=$2
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4548. $as_echo_n "checking for $ac_word... " >&6; }
  4549. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. if test -n "$ac_ct_AR"; then
  4553. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4554. else
  4555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4556. for as_dir in $PATH
  4557. do
  4558. IFS=$as_save_IFS
  4559. test -z "$as_dir" && as_dir=.
  4560. for ac_exec_ext in '' $ac_executable_extensions; do
  4561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4562. ac_cv_prog_ac_ct_AR="$ac_prog"
  4563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4564. break 2
  4565. fi
  4566. done
  4567. done
  4568. IFS=$as_save_IFS
  4569. fi
  4570. fi
  4571. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4572. if test -n "$ac_ct_AR"; then
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4574. $as_echo "$ac_ct_AR" >&6; }
  4575. else
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4577. $as_echo "no" >&6; }
  4578. fi
  4579. test -n "$ac_ct_AR" && break
  4580. done
  4581. if test "x$ac_ct_AR" = x; then
  4582. AR="false"
  4583. else
  4584. case $cross_compiling:$ac_tool_warned in
  4585. yes:)
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4588. ac_tool_warned=yes ;;
  4589. esac
  4590. AR=$ac_ct_AR
  4591. fi
  4592. fi
  4593. : ${AR=ar}
  4594. : ${AR_FLAGS=cru}
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4596. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4597. if ${lt_cv_ar_at_file+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. lt_cv_ar_at_file=no
  4601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4602. /* end confdefs.h. */
  4603. int
  4604. main ()
  4605. {
  4606. ;
  4607. return 0;
  4608. }
  4609. _ACEOF
  4610. if ac_fn_c_try_compile "$LINENO"; then :
  4611. echo conftest.$ac_objext > conftest.lst
  4612. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4613. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4614. (eval $lt_ar_try) 2>&5
  4615. ac_status=$?
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4617. test $ac_status = 0; }
  4618. if test "$ac_status" -eq 0; then
  4619. # Ensure the archiver fails upon bogus file names.
  4620. rm -f conftest.$ac_objext libconftest.a
  4621. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4622. (eval $lt_ar_try) 2>&5
  4623. ac_status=$?
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4625. test $ac_status = 0; }
  4626. if test "$ac_status" -ne 0; then
  4627. lt_cv_ar_at_file=@
  4628. fi
  4629. fi
  4630. rm -f conftest.* libconftest.a
  4631. fi
  4632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4633. fi
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4635. $as_echo "$lt_cv_ar_at_file" >&6; }
  4636. if test "x$lt_cv_ar_at_file" = xno; then
  4637. archiver_list_spec=
  4638. else
  4639. archiver_list_spec=$lt_cv_ar_at_file
  4640. fi
  4641. if test -n "$ac_tool_prefix"; then
  4642. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4643. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4645. $as_echo_n "checking for $ac_word... " >&6; }
  4646. if ${ac_cv_prog_STRIP+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. if test -n "$STRIP"; then
  4650. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4651. else
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. test -z "$as_dir" && as_dir=.
  4657. for ac_exec_ext in '' $ac_executable_extensions; do
  4658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4659. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4661. break 2
  4662. fi
  4663. done
  4664. done
  4665. IFS=$as_save_IFS
  4666. fi
  4667. fi
  4668. STRIP=$ac_cv_prog_STRIP
  4669. if test -n "$STRIP"; then
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4671. $as_echo "$STRIP" >&6; }
  4672. else
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4674. $as_echo "no" >&6; }
  4675. fi
  4676. fi
  4677. if test -z "$ac_cv_prog_STRIP"; then
  4678. ac_ct_STRIP=$STRIP
  4679. # Extract the first word of "strip", so it can be a program name with args.
  4680. set dummy strip; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$ac_ct_STRIP"; then
  4687. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4696. ac_cv_prog_ac_ct_STRIP="strip"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4706. if test -n "$ac_ct_STRIP"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4708. $as_echo "$ac_ct_STRIP" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. if test "x$ac_ct_STRIP" = x; then
  4714. STRIP=":"
  4715. else
  4716. case $cross_compiling:$ac_tool_warned in
  4717. yes:)
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4719. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4720. ac_tool_warned=yes ;;
  4721. esac
  4722. STRIP=$ac_ct_STRIP
  4723. fi
  4724. else
  4725. STRIP="$ac_cv_prog_STRIP"
  4726. fi
  4727. test -z "$STRIP" && STRIP=:
  4728. if test -n "$ac_tool_prefix"; then
  4729. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4730. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4732. $as_echo_n "checking for $ac_word... " >&6; }
  4733. if ${ac_cv_prog_RANLIB+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. if test -n "$RANLIB"; then
  4737. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4738. else
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4746. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748. break 2
  4749. fi
  4750. done
  4751. done
  4752. IFS=$as_save_IFS
  4753. fi
  4754. fi
  4755. RANLIB=$ac_cv_prog_RANLIB
  4756. if test -n "$RANLIB"; then
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4758. $as_echo "$RANLIB" >&6; }
  4759. else
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4761. $as_echo "no" >&6; }
  4762. fi
  4763. fi
  4764. if test -z "$ac_cv_prog_RANLIB"; then
  4765. ac_ct_RANLIB=$RANLIB
  4766. # Extract the first word of "ranlib", so it can be a program name with args.
  4767. set dummy ranlib; ac_word=$2
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4769. $as_echo_n "checking for $ac_word... " >&6; }
  4770. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4771. $as_echo_n "(cached) " >&6
  4772. else
  4773. if test -n "$ac_ct_RANLIB"; then
  4774. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4775. else
  4776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4777. for as_dir in $PATH
  4778. do
  4779. IFS=$as_save_IFS
  4780. test -z "$as_dir" && as_dir=.
  4781. for ac_exec_ext in '' $ac_executable_extensions; do
  4782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4783. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4785. break 2
  4786. fi
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. fi
  4791. fi
  4792. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4793. if test -n "$ac_ct_RANLIB"; then
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4795. $as_echo "$ac_ct_RANLIB" >&6; }
  4796. else
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4798. $as_echo "no" >&6; }
  4799. fi
  4800. if test "x$ac_ct_RANLIB" = x; then
  4801. RANLIB=":"
  4802. else
  4803. case $cross_compiling:$ac_tool_warned in
  4804. yes:)
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4807. ac_tool_warned=yes ;;
  4808. esac
  4809. RANLIB=$ac_ct_RANLIB
  4810. fi
  4811. else
  4812. RANLIB="$ac_cv_prog_RANLIB"
  4813. fi
  4814. test -z "$RANLIB" && RANLIB=:
  4815. # Determine commands to create old-style static archives.
  4816. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4817. old_postinstall_cmds='chmod 644 $oldlib'
  4818. old_postuninstall_cmds=
  4819. if test -n "$RANLIB"; then
  4820. case $host_os in
  4821. openbsd*)
  4822. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4823. ;;
  4824. *)
  4825. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4826. ;;
  4827. esac
  4828. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4829. fi
  4830. case $host_os in
  4831. darwin*)
  4832. lock_old_archive_extraction=yes ;;
  4833. *)
  4834. lock_old_archive_extraction=no ;;
  4835. esac
  4836. for ac_prog in gawk mawk nawk awk
  4837. do
  4838. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4839. set dummy $ac_prog; ac_word=$2
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4841. $as_echo_n "checking for $ac_word... " >&6; }
  4842. if ${ac_cv_prog_AWK+:} false; then :
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. if test -n "$AWK"; then
  4846. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4855. ac_cv_prog_AWK="$ac_prog"
  4856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. IFS=$as_save_IFS
  4862. fi
  4863. fi
  4864. AWK=$ac_cv_prog_AWK
  4865. if test -n "$AWK"; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4867. $as_echo "$AWK" >&6; }
  4868. else
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4870. $as_echo "no" >&6; }
  4871. fi
  4872. test -n "$AWK" && break
  4873. done
  4874. # If no C compiler was specified, use CC.
  4875. LTCC=${LTCC-"$CC"}
  4876. # If no C compiler flags were specified, use CFLAGS.
  4877. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4878. # Allow CC to be a program name with arguments.
  4879. compiler=$CC
  4880. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4882. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4883. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. # These are sane defaults that work on at least a few old systems.
  4887. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4888. # Character class describing NM global symbol codes.
  4889. symcode='[BCDEGRST]'
  4890. # Regexp to match symbols that can be accessed directly from C.
  4891. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4892. # Define system-specific variables.
  4893. case $host_os in
  4894. aix*)
  4895. symcode='[BCDT]'
  4896. ;;
  4897. cygwin* | mingw* | pw32* | cegcc*)
  4898. symcode='[ABCDGISTW]'
  4899. ;;
  4900. hpux*)
  4901. if test "$host_cpu" = ia64; then
  4902. symcode='[ABCDEGRST]'
  4903. fi
  4904. ;;
  4905. irix* | nonstopux*)
  4906. symcode='[BCDEGRST]'
  4907. ;;
  4908. osf*)
  4909. symcode='[BCDEGQRST]'
  4910. ;;
  4911. solaris*)
  4912. symcode='[BDRT]'
  4913. ;;
  4914. sco3.2v5*)
  4915. symcode='[DT]'
  4916. ;;
  4917. sysv4.2uw2*)
  4918. symcode='[DT]'
  4919. ;;
  4920. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4921. symcode='[ABDT]'
  4922. ;;
  4923. sysv4)
  4924. symcode='[DFNSTU]'
  4925. ;;
  4926. esac
  4927. # If we're using GNU nm, then use its standard symbol codes.
  4928. case `$NM -V 2>&1` in
  4929. *GNU* | *'with BFD'*)
  4930. symcode='[ABCDGIRSTW]' ;;
  4931. esac
  4932. # Transform an extracted symbol line into a proper C declaration.
  4933. # Some systems (esp. on ia64) link data and code symbols differently,
  4934. # so use this general approach.
  4935. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4936. # Transform an extracted symbol line into symbol name and symbol address
  4937. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4938. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4939. # Handle CRLF in mingw tool chain
  4940. opt_cr=
  4941. case $build_os in
  4942. mingw*)
  4943. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4944. ;;
  4945. esac
  4946. # Try without a prefix underscore, then with it.
  4947. for ac_symprfx in "" "_"; do
  4948. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4949. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4950. # Write the raw and C identifiers.
  4951. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4952. # Fake it for dumpbin and say T for any non-static function
  4953. # and D for any global variable.
  4954. # Also find C++ and __fastcall symbols from MSVC++,
  4955. # which start with @ or ?.
  4956. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4957. " {last_section=section; section=\$ 3};"\
  4958. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4959. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4960. " \$ 0!~/External *\|/{next};"\
  4961. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4962. " {if(hide[section]) next};"\
  4963. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4964. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4965. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4966. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4967. " ' prfx=^$ac_symprfx"
  4968. else
  4969. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4970. fi
  4971. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4972. # Check to see that the pipe works correctly.
  4973. pipe_works=no
  4974. rm -f conftest*
  4975. cat > conftest.$ac_ext <<_LT_EOF
  4976. #ifdef __cplusplus
  4977. extern "C" {
  4978. #endif
  4979. char nm_test_var;
  4980. void nm_test_func(void);
  4981. void nm_test_func(void){}
  4982. #ifdef __cplusplus
  4983. }
  4984. #endif
  4985. int main(){nm_test_var='a';nm_test_func();return(0);}
  4986. _LT_EOF
  4987. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4988. (eval $ac_compile) 2>&5
  4989. ac_status=$?
  4990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4991. test $ac_status = 0; }; then
  4992. # Now try to grab the symbols.
  4993. nlist=conftest.nm
  4994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4995. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4996. ac_status=$?
  4997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4998. test $ac_status = 0; } && test -s "$nlist"; then
  4999. # Try sorting and uniquifying the output.
  5000. if sort "$nlist" | uniq > "$nlist"T; then
  5001. mv -f "$nlist"T "$nlist"
  5002. else
  5003. rm -f "$nlist"T
  5004. fi
  5005. # Make sure that we snagged all the symbols we need.
  5006. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5007. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5008. cat <<_LT_EOF > conftest.$ac_ext
  5009. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5010. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5011. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5012. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5013. # define LT_DLSYM_CONST
  5014. #elif defined(__osf__)
  5015. /* This system does not cope well with relocations in const data. */
  5016. # define LT_DLSYM_CONST
  5017. #else
  5018. # define LT_DLSYM_CONST const
  5019. #endif
  5020. #ifdef __cplusplus
  5021. extern "C" {
  5022. #endif
  5023. _LT_EOF
  5024. # Now generate the symbol file.
  5025. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5026. cat <<_LT_EOF >> conftest.$ac_ext
  5027. /* The mapping between symbol names and symbols. */
  5028. LT_DLSYM_CONST struct {
  5029. const char *name;
  5030. void *address;
  5031. }
  5032. lt__PROGRAM__LTX_preloaded_symbols[] =
  5033. {
  5034. { "@PROGRAM@", (void *) 0 },
  5035. _LT_EOF
  5036. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5037. cat <<\_LT_EOF >> conftest.$ac_ext
  5038. {0, (void *) 0}
  5039. };
  5040. /* This works around a problem in FreeBSD linker */
  5041. #ifdef FREEBSD_WORKAROUND
  5042. static const void *lt_preloaded_setup() {
  5043. return lt__PROGRAM__LTX_preloaded_symbols;
  5044. }
  5045. #endif
  5046. #ifdef __cplusplus
  5047. }
  5048. #endif
  5049. _LT_EOF
  5050. # Now try linking the two files.
  5051. mv conftest.$ac_objext conftstm.$ac_objext
  5052. lt_globsym_save_LIBS=$LIBS
  5053. lt_globsym_save_CFLAGS=$CFLAGS
  5054. LIBS="conftstm.$ac_objext"
  5055. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5056. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5057. (eval $ac_link) 2>&5
  5058. ac_status=$?
  5059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5060. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5061. pipe_works=yes
  5062. fi
  5063. LIBS=$lt_globsym_save_LIBS
  5064. CFLAGS=$lt_globsym_save_CFLAGS
  5065. else
  5066. echo "cannot find nm_test_func in $nlist" >&5
  5067. fi
  5068. else
  5069. echo "cannot find nm_test_var in $nlist" >&5
  5070. fi
  5071. else
  5072. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5073. fi
  5074. else
  5075. echo "$progname: failed program was:" >&5
  5076. cat conftest.$ac_ext >&5
  5077. fi
  5078. rm -rf conftest* conftst*
  5079. # Do not use the global_symbol_pipe unless it works.
  5080. if test "$pipe_works" = yes; then
  5081. break
  5082. else
  5083. lt_cv_sys_global_symbol_pipe=
  5084. fi
  5085. done
  5086. fi
  5087. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5088. lt_cv_sys_global_symbol_to_cdecl=
  5089. fi
  5090. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5092. $as_echo "failed" >&6; }
  5093. else
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5095. $as_echo "ok" >&6; }
  5096. fi
  5097. # Response file support.
  5098. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5099. nm_file_list_spec='@'
  5100. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5101. nm_file_list_spec='@'
  5102. fi
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5104. $as_echo_n "checking for sysroot... " >&6; }
  5105. # Check whether --with-sysroot was given.
  5106. if test "${with_sysroot+set}" = set; then :
  5107. withval=$with_sysroot;
  5108. else
  5109. with_sysroot=no
  5110. fi
  5111. lt_sysroot=
  5112. case ${with_sysroot} in #(
  5113. yes)
  5114. if test "$GCC" = yes; then
  5115. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5116. fi
  5117. ;; #(
  5118. /*)
  5119. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5120. ;; #(
  5121. no|'')
  5122. ;; #(
  5123. *)
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5125. $as_echo "${with_sysroot}" >&6; }
  5126. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5127. ;;
  5128. esac
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5130. $as_echo "${lt_sysroot:-no}" >&6; }
  5131. # Check whether --enable-libtool-lock was given.
  5132. if test "${enable_libtool_lock+set}" = set; then :
  5133. enableval=$enable_libtool_lock;
  5134. fi
  5135. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5136. # Some flags need to be propagated to the compiler or linker for good
  5137. # libtool support.
  5138. case $host in
  5139. ia64-*-hpux*)
  5140. # Find out which ABI we are using.
  5141. echo 'int i;' > conftest.$ac_ext
  5142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5143. (eval $ac_compile) 2>&5
  5144. ac_status=$?
  5145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5146. test $ac_status = 0; }; then
  5147. case `/usr/bin/file conftest.$ac_objext` in
  5148. *ELF-32*)
  5149. HPUX_IA64_MODE="32"
  5150. ;;
  5151. *ELF-64*)
  5152. HPUX_IA64_MODE="64"
  5153. ;;
  5154. esac
  5155. fi
  5156. rm -rf conftest*
  5157. ;;
  5158. *-*-irix6*)
  5159. # Find out which ABI we are using.
  5160. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5162. (eval $ac_compile) 2>&5
  5163. ac_status=$?
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5165. test $ac_status = 0; }; then
  5166. if test "$lt_cv_prog_gnu_ld" = yes; then
  5167. case `/usr/bin/file conftest.$ac_objext` in
  5168. *32-bit*)
  5169. LD="${LD-ld} -melf32bsmip"
  5170. ;;
  5171. *N32*)
  5172. LD="${LD-ld} -melf32bmipn32"
  5173. ;;
  5174. *64-bit*)
  5175. LD="${LD-ld} -melf64bmip"
  5176. ;;
  5177. esac
  5178. else
  5179. case `/usr/bin/file conftest.$ac_objext` in
  5180. *32-bit*)
  5181. LD="${LD-ld} -32"
  5182. ;;
  5183. *N32*)
  5184. LD="${LD-ld} -n32"
  5185. ;;
  5186. *64-bit*)
  5187. LD="${LD-ld} -64"
  5188. ;;
  5189. esac
  5190. fi
  5191. fi
  5192. rm -rf conftest*
  5193. ;;
  5194. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5195. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5196. # Find out which ABI we are using.
  5197. echo 'int i;' > conftest.$ac_ext
  5198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5199. (eval $ac_compile) 2>&5
  5200. ac_status=$?
  5201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5202. test $ac_status = 0; }; then
  5203. case `/usr/bin/file conftest.o` in
  5204. *32-bit*)
  5205. case $host in
  5206. x86_64-*kfreebsd*-gnu)
  5207. LD="${LD-ld} -m elf_i386_fbsd"
  5208. ;;
  5209. x86_64-*linux*)
  5210. LD="${LD-ld} -m elf_i386"
  5211. ;;
  5212. ppc64-*linux*|powerpc64-*linux*)
  5213. LD="${LD-ld} -m elf32ppclinux"
  5214. ;;
  5215. s390x-*linux*)
  5216. LD="${LD-ld} -m elf_s390"
  5217. ;;
  5218. sparc64-*linux*)
  5219. LD="${LD-ld} -m elf32_sparc"
  5220. ;;
  5221. esac
  5222. ;;
  5223. *64-bit*)
  5224. case $host in
  5225. x86_64-*kfreebsd*-gnu)
  5226. LD="${LD-ld} -m elf_x86_64_fbsd"
  5227. ;;
  5228. x86_64-*linux*)
  5229. LD="${LD-ld} -m elf_x86_64"
  5230. ;;
  5231. ppc*-*linux*|powerpc*-*linux*)
  5232. LD="${LD-ld} -m elf64ppc"
  5233. ;;
  5234. s390*-*linux*|s390*-*tpf*)
  5235. LD="${LD-ld} -m elf64_s390"
  5236. ;;
  5237. sparc*-*linux*)
  5238. LD="${LD-ld} -m elf64_sparc"
  5239. ;;
  5240. esac
  5241. ;;
  5242. esac
  5243. fi
  5244. rm -rf conftest*
  5245. ;;
  5246. *-*-sco3.2v5*)
  5247. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5248. SAVE_CFLAGS="$CFLAGS"
  5249. CFLAGS="$CFLAGS -belf"
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5251. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5252. if ${lt_cv_cc_needs_belf+:} false; then :
  5253. $as_echo_n "(cached) " >&6
  5254. else
  5255. ac_ext=c
  5256. ac_cpp='$CPP $CPPFLAGS'
  5257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5261. /* end confdefs.h. */
  5262. int
  5263. main ()
  5264. {
  5265. ;
  5266. return 0;
  5267. }
  5268. _ACEOF
  5269. if ac_fn_c_try_link "$LINENO"; then :
  5270. lt_cv_cc_needs_belf=yes
  5271. else
  5272. lt_cv_cc_needs_belf=no
  5273. fi
  5274. rm -f core conftest.err conftest.$ac_objext \
  5275. conftest$ac_exeext conftest.$ac_ext
  5276. ac_ext=c
  5277. ac_cpp='$CPP $CPPFLAGS'
  5278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5281. fi
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5283. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5284. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5285. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5286. CFLAGS="$SAVE_CFLAGS"
  5287. fi
  5288. ;;
  5289. *-*solaris*)
  5290. # Find out which ABI we are using.
  5291. echo 'int i;' > conftest.$ac_ext
  5292. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5293. (eval $ac_compile) 2>&5
  5294. ac_status=$?
  5295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5296. test $ac_status = 0; }; then
  5297. case `/usr/bin/file conftest.o` in
  5298. *64-bit*)
  5299. case $lt_cv_prog_gnu_ld in
  5300. yes*)
  5301. case $host in
  5302. i?86-*-solaris*)
  5303. LD="${LD-ld} -m elf_x86_64"
  5304. ;;
  5305. sparc*-*-solaris*)
  5306. LD="${LD-ld} -m elf64_sparc"
  5307. ;;
  5308. esac
  5309. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5310. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5311. LD="${LD-ld}_sol2"
  5312. fi
  5313. ;;
  5314. *)
  5315. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5316. LD="${LD-ld} -64"
  5317. fi
  5318. ;;
  5319. esac
  5320. ;;
  5321. esac
  5322. fi
  5323. rm -rf conftest*
  5324. ;;
  5325. esac
  5326. need_locks="$enable_libtool_lock"
  5327. if test -n "$ac_tool_prefix"; then
  5328. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5329. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5331. $as_echo_n "checking for $ac_word... " >&6; }
  5332. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. if test -n "$MANIFEST_TOOL"; then
  5336. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5337. else
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH
  5340. do
  5341. IFS=$as_save_IFS
  5342. test -z "$as_dir" && as_dir=.
  5343. for ac_exec_ext in '' $ac_executable_extensions; do
  5344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5345. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5347. break 2
  5348. fi
  5349. done
  5350. done
  5351. IFS=$as_save_IFS
  5352. fi
  5353. fi
  5354. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5355. if test -n "$MANIFEST_TOOL"; then
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5357. $as_echo "$MANIFEST_TOOL" >&6; }
  5358. else
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5360. $as_echo "no" >&6; }
  5361. fi
  5362. fi
  5363. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5364. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5365. # Extract the first word of "mt", so it can be a program name with args.
  5366. set dummy mt; ac_word=$2
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5368. $as_echo_n "checking for $ac_word... " >&6; }
  5369. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5373. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5374. else
  5375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5376. for as_dir in $PATH
  5377. do
  5378. IFS=$as_save_IFS
  5379. test -z "$as_dir" && as_dir=.
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5382. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5384. break 2
  5385. fi
  5386. done
  5387. done
  5388. IFS=$as_save_IFS
  5389. fi
  5390. fi
  5391. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5392. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5394. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5395. else
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5397. $as_echo "no" >&6; }
  5398. fi
  5399. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5400. MANIFEST_TOOL=":"
  5401. else
  5402. case $cross_compiling:$ac_tool_warned in
  5403. yes:)
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5406. ac_tool_warned=yes ;;
  5407. esac
  5408. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5409. fi
  5410. else
  5411. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5412. fi
  5413. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5415. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5416. if ${lt_cv_path_mainfest_tool+:} false; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. lt_cv_path_mainfest_tool=no
  5420. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5421. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5422. cat conftest.err >&5
  5423. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5424. lt_cv_path_mainfest_tool=yes
  5425. fi
  5426. rm -f conftest*
  5427. fi
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5429. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5430. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5431. MANIFEST_TOOL=:
  5432. fi
  5433. case $host_os in
  5434. rhapsody* | darwin*)
  5435. if test -n "$ac_tool_prefix"; then
  5436. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5437. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5439. $as_echo_n "checking for $ac_word... " >&6; }
  5440. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. if test -n "$DSYMUTIL"; then
  5444. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5445. else
  5446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5447. for as_dir in $PATH
  5448. do
  5449. IFS=$as_save_IFS
  5450. test -z "$as_dir" && as_dir=.
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5453. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5455. break 2
  5456. fi
  5457. done
  5458. done
  5459. IFS=$as_save_IFS
  5460. fi
  5461. fi
  5462. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5463. if test -n "$DSYMUTIL"; then
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5465. $as_echo "$DSYMUTIL" >&6; }
  5466. else
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5468. $as_echo "no" >&6; }
  5469. fi
  5470. fi
  5471. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5472. ac_ct_DSYMUTIL=$DSYMUTIL
  5473. # Extract the first word of "dsymutil", so it can be a program name with args.
  5474. set dummy dsymutil; ac_word=$2
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$ac_ct_DSYMUTIL"; then
  5481. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5500. if test -n "$ac_ct_DSYMUTIL"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5502. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. if test "x$ac_ct_DSYMUTIL" = x; then
  5508. DSYMUTIL=":"
  5509. else
  5510. case $cross_compiling:$ac_tool_warned in
  5511. yes:)
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5514. ac_tool_warned=yes ;;
  5515. esac
  5516. DSYMUTIL=$ac_ct_DSYMUTIL
  5517. fi
  5518. else
  5519. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5520. fi
  5521. if test -n "$ac_tool_prefix"; then
  5522. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5523. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5525. $as_echo_n "checking for $ac_word... " >&6; }
  5526. if ${ac_cv_prog_NMEDIT+:} false; then :
  5527. $as_echo_n "(cached) " >&6
  5528. else
  5529. if test -n "$NMEDIT"; then
  5530. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5531. else
  5532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5533. for as_dir in $PATH
  5534. do
  5535. IFS=$as_save_IFS
  5536. test -z "$as_dir" && as_dir=.
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5539. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5541. break 2
  5542. fi
  5543. done
  5544. done
  5545. IFS=$as_save_IFS
  5546. fi
  5547. fi
  5548. NMEDIT=$ac_cv_prog_NMEDIT
  5549. if test -n "$NMEDIT"; then
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5551. $as_echo "$NMEDIT" >&6; }
  5552. else
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5554. $as_echo "no" >&6; }
  5555. fi
  5556. fi
  5557. if test -z "$ac_cv_prog_NMEDIT"; then
  5558. ac_ct_NMEDIT=$NMEDIT
  5559. # Extract the first word of "nmedit", so it can be a program name with args.
  5560. set dummy nmedit; ac_word=$2
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5562. $as_echo_n "checking for $ac_word... " >&6; }
  5563. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5564. $as_echo_n "(cached) " >&6
  5565. else
  5566. if test -n "$ac_ct_NMEDIT"; then
  5567. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5568. else
  5569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5570. for as_dir in $PATH
  5571. do
  5572. IFS=$as_save_IFS
  5573. test -z "$as_dir" && as_dir=.
  5574. for ac_exec_ext in '' $ac_executable_extensions; do
  5575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5576. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5578. break 2
  5579. fi
  5580. done
  5581. done
  5582. IFS=$as_save_IFS
  5583. fi
  5584. fi
  5585. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5586. if test -n "$ac_ct_NMEDIT"; then
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5588. $as_echo "$ac_ct_NMEDIT" >&6; }
  5589. else
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5591. $as_echo "no" >&6; }
  5592. fi
  5593. if test "x$ac_ct_NMEDIT" = x; then
  5594. NMEDIT=":"
  5595. else
  5596. case $cross_compiling:$ac_tool_warned in
  5597. yes:)
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5600. ac_tool_warned=yes ;;
  5601. esac
  5602. NMEDIT=$ac_ct_NMEDIT
  5603. fi
  5604. else
  5605. NMEDIT="$ac_cv_prog_NMEDIT"
  5606. fi
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_LIPO+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$LIPO"; then
  5616. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. LIPO=$ac_cv_prog_LIPO
  5635. if test -n "$LIPO"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5637. $as_echo "$LIPO" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_LIPO"; then
  5644. ac_ct_LIPO=$LIPO
  5645. # Extract the first word of "lipo", so it can be a program name with args.
  5646. set dummy lipo; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_LIPO"; then
  5653. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_LIPO="lipo"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5672. if test -n "$ac_ct_LIPO"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5674. $as_echo "$ac_ct_LIPO" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_LIPO" = x; then
  5680. LIPO=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. LIPO=$ac_ct_LIPO
  5689. fi
  5690. else
  5691. LIPO="$ac_cv_prog_LIPO"
  5692. fi
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_OTOOL+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$OTOOL"; then
  5702. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5711. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. OTOOL=$ac_cv_prog_OTOOL
  5721. if test -n "$OTOOL"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5723. $as_echo "$OTOOL" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. fi
  5729. if test -z "$ac_cv_prog_OTOOL"; then
  5730. ac_ct_OTOOL=$OTOOL
  5731. # Extract the first word of "otool", so it can be a program name with args.
  5732. set dummy otool; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$ac_ct_OTOOL"; then
  5739. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_ac_ct_OTOOL="otool"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5758. if test -n "$ac_ct_OTOOL"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5760. $as_echo "$ac_ct_OTOOL" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "x$ac_ct_OTOOL" = x; then
  5766. OTOOL=":"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. OTOOL=$ac_ct_OTOOL
  5775. fi
  5776. else
  5777. OTOOL="$ac_cv_prog_OTOOL"
  5778. fi
  5779. if test -n "$ac_tool_prefix"; then
  5780. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5781. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if ${ac_cv_prog_OTOOL64+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$OTOOL64"; then
  5788. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5797. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. OTOOL64=$ac_cv_prog_OTOOL64
  5807. if test -n "$OTOOL64"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5809. $as_echo "$OTOOL64" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. fi
  5815. if test -z "$ac_cv_prog_OTOOL64"; then
  5816. ac_ct_OTOOL64=$OTOOL64
  5817. # Extract the first word of "otool64", so it can be a program name with args.
  5818. set dummy otool64; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$ac_ct_OTOOL64"; then
  5825. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5844. if test -n "$ac_ct_OTOOL64"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5846. $as_echo "$ac_ct_OTOOL64" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. if test "x$ac_ct_OTOOL64" = x; then
  5852. OTOOL64=":"
  5853. else
  5854. case $cross_compiling:$ac_tool_warned in
  5855. yes:)
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5858. ac_tool_warned=yes ;;
  5859. esac
  5860. OTOOL64=$ac_ct_OTOOL64
  5861. fi
  5862. else
  5863. OTOOL64="$ac_cv_prog_OTOOL64"
  5864. fi
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5866. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5867. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. lt_cv_apple_cc_single_mod=no
  5871. if test -z "${LT_MULTI_MODULE}"; then
  5872. # By default we will add the -single_module flag. You can override
  5873. # by either setting the environment variable LT_MULTI_MODULE
  5874. # non-empty at configure time, or by adding -multi_module to the
  5875. # link flags.
  5876. rm -rf libconftest.dylib*
  5877. echo "int foo(void){return 1;}" > conftest.c
  5878. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5879. -dynamiclib -Wl,-single_module conftest.c" >&5
  5880. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5881. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5882. _lt_result=$?
  5883. # If there is a non-empty error log, and "single_module"
  5884. # appears in it, assume the flag caused a linker warning
  5885. if test -s conftest.err && $GREP single_module conftest.err; then
  5886. cat conftest.err >&5
  5887. # Otherwise, if the output was created with a 0 exit code from
  5888. # the compiler, it worked.
  5889. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5890. lt_cv_apple_cc_single_mod=yes
  5891. else
  5892. cat conftest.err >&5
  5893. fi
  5894. rm -rf libconftest.dylib*
  5895. rm -f conftest.*
  5896. fi
  5897. fi
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5899. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5901. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5902. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. lt_cv_ld_exported_symbols_list=no
  5906. save_LDFLAGS=$LDFLAGS
  5907. echo "_main" > conftest.sym
  5908. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5910. /* end confdefs.h. */
  5911. int
  5912. main ()
  5913. {
  5914. ;
  5915. return 0;
  5916. }
  5917. _ACEOF
  5918. if ac_fn_c_try_link "$LINENO"; then :
  5919. lt_cv_ld_exported_symbols_list=yes
  5920. else
  5921. lt_cv_ld_exported_symbols_list=no
  5922. fi
  5923. rm -f core conftest.err conftest.$ac_objext \
  5924. conftest$ac_exeext conftest.$ac_ext
  5925. LDFLAGS="$save_LDFLAGS"
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5928. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5930. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5931. if ${lt_cv_ld_force_load+:} false; then :
  5932. $as_echo_n "(cached) " >&6
  5933. else
  5934. lt_cv_ld_force_load=no
  5935. cat > conftest.c << _LT_EOF
  5936. int forced_loaded() { return 2;}
  5937. _LT_EOF
  5938. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5939. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5940. echo "$AR cru libconftest.a conftest.o" >&5
  5941. $AR cru libconftest.a conftest.o 2>&5
  5942. echo "$RANLIB libconftest.a" >&5
  5943. $RANLIB libconftest.a 2>&5
  5944. cat > conftest.c << _LT_EOF
  5945. int main() { return 0;}
  5946. _LT_EOF
  5947. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5948. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5949. _lt_result=$?
  5950. if test -s conftest.err && $GREP force_load conftest.err; then
  5951. cat conftest.err >&5
  5952. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5953. lt_cv_ld_force_load=yes
  5954. else
  5955. cat conftest.err >&5
  5956. fi
  5957. rm -f conftest.err libconftest.a conftest conftest.c
  5958. rm -rf conftest.dSYM
  5959. fi
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5961. $as_echo "$lt_cv_ld_force_load" >&6; }
  5962. case $host_os in
  5963. rhapsody* | darwin1.[012])
  5964. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5965. darwin1.*)
  5966. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5967. darwin*) # darwin 5.x on
  5968. # if running on 10.5 or later, the deployment target defaults
  5969. # to the OS version, if on x86, and 10.4, the deployment
  5970. # target defaults to 10.4. Don't you love it?
  5971. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5972. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5973. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5974. 10.[012]*)
  5975. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5976. 10.*)
  5977. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5978. esac
  5979. ;;
  5980. esac
  5981. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5982. _lt_dar_single_mod='$single_module'
  5983. fi
  5984. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5985. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5986. else
  5987. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5988. fi
  5989. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5990. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5991. else
  5992. _lt_dsymutil=
  5993. fi
  5994. ;;
  5995. esac
  5996. ac_ext=c
  5997. ac_cpp='$CPP $CPPFLAGS'
  5998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6002. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6003. # On Suns, sometimes $CPP names a directory.
  6004. if test -n "$CPP" && test -d "$CPP"; then
  6005. CPP=
  6006. fi
  6007. if test -z "$CPP"; then
  6008. if ${ac_cv_prog_CPP+:} false; then :
  6009. $as_echo_n "(cached) " >&6
  6010. else
  6011. # Double quotes because CPP needs to be expanded
  6012. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6013. do
  6014. ac_preproc_ok=false
  6015. for ac_c_preproc_warn_flag in '' yes
  6016. do
  6017. # Use a header file that comes with gcc, so configuring glibc
  6018. # with a fresh cross-compiler works.
  6019. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6020. # <limits.h> exists even on freestanding compilers.
  6021. # On the NeXT, cc -E runs the code through the compiler's parser,
  6022. # not just through cpp. "Syntax error" is here to catch this case.
  6023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6024. /* end confdefs.h. */
  6025. #ifdef __STDC__
  6026. # include <limits.h>
  6027. #else
  6028. # include <assert.h>
  6029. #endif
  6030. Syntax error
  6031. _ACEOF
  6032. if ac_fn_c_try_cpp "$LINENO"; then :
  6033. else
  6034. # Broken: fails on valid input.
  6035. continue
  6036. fi
  6037. rm -f conftest.err conftest.i conftest.$ac_ext
  6038. # OK, works on sane cases. Now check whether nonexistent headers
  6039. # can be detected and how.
  6040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6041. /* end confdefs.h. */
  6042. #include <ac_nonexistent.h>
  6043. _ACEOF
  6044. if ac_fn_c_try_cpp "$LINENO"; then :
  6045. # Broken: success on invalid input.
  6046. continue
  6047. else
  6048. # Passes both tests.
  6049. ac_preproc_ok=:
  6050. break
  6051. fi
  6052. rm -f conftest.err conftest.i conftest.$ac_ext
  6053. done
  6054. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6055. rm -f conftest.i conftest.err conftest.$ac_ext
  6056. if $ac_preproc_ok; then :
  6057. break
  6058. fi
  6059. done
  6060. ac_cv_prog_CPP=$CPP
  6061. fi
  6062. CPP=$ac_cv_prog_CPP
  6063. else
  6064. ac_cv_prog_CPP=$CPP
  6065. fi
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6067. $as_echo "$CPP" >&6; }
  6068. ac_preproc_ok=false
  6069. for ac_c_preproc_warn_flag in '' yes
  6070. do
  6071. # Use a header file that comes with gcc, so configuring glibc
  6072. # with a fresh cross-compiler works.
  6073. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6074. # <limits.h> exists even on freestanding compilers.
  6075. # On the NeXT, cc -E runs the code through the compiler's parser,
  6076. # not just through cpp. "Syntax error" is here to catch this case.
  6077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6078. /* end confdefs.h. */
  6079. #ifdef __STDC__
  6080. # include <limits.h>
  6081. #else
  6082. # include <assert.h>
  6083. #endif
  6084. Syntax error
  6085. _ACEOF
  6086. if ac_fn_c_try_cpp "$LINENO"; then :
  6087. else
  6088. # Broken: fails on valid input.
  6089. continue
  6090. fi
  6091. rm -f conftest.err conftest.i conftest.$ac_ext
  6092. # OK, works on sane cases. Now check whether nonexistent headers
  6093. # can be detected and how.
  6094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6095. /* end confdefs.h. */
  6096. #include <ac_nonexistent.h>
  6097. _ACEOF
  6098. if ac_fn_c_try_cpp "$LINENO"; then :
  6099. # Broken: success on invalid input.
  6100. continue
  6101. else
  6102. # Passes both tests.
  6103. ac_preproc_ok=:
  6104. break
  6105. fi
  6106. rm -f conftest.err conftest.i conftest.$ac_ext
  6107. done
  6108. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6109. rm -f conftest.i conftest.err conftest.$ac_ext
  6110. if $ac_preproc_ok; then :
  6111. else
  6112. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6113. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6114. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6115. See \`config.log' for more details" "$LINENO" 5; }
  6116. fi
  6117. ac_ext=c
  6118. ac_cpp='$CPP $CPPFLAGS'
  6119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6123. $as_echo_n "checking for ANSI C header files... " >&6; }
  6124. if ${ac_cv_header_stdc+:} false; then :
  6125. $as_echo_n "(cached) " >&6
  6126. else
  6127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6128. /* end confdefs.h. */
  6129. #include <stdlib.h>
  6130. #include <stdarg.h>
  6131. #include <string.h>
  6132. #include <float.h>
  6133. int
  6134. main ()
  6135. {
  6136. ;
  6137. return 0;
  6138. }
  6139. _ACEOF
  6140. if ac_fn_c_try_compile "$LINENO"; then :
  6141. ac_cv_header_stdc=yes
  6142. else
  6143. ac_cv_header_stdc=no
  6144. fi
  6145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6146. if test $ac_cv_header_stdc = yes; then
  6147. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6149. /* end confdefs.h. */
  6150. #include <string.h>
  6151. _ACEOF
  6152. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6153. $EGREP "memchr" >/dev/null 2>&1; then :
  6154. else
  6155. ac_cv_header_stdc=no
  6156. fi
  6157. rm -f conftest*
  6158. fi
  6159. if test $ac_cv_header_stdc = yes; then
  6160. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6162. /* end confdefs.h. */
  6163. #include <stdlib.h>
  6164. _ACEOF
  6165. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6166. $EGREP "free" >/dev/null 2>&1; then :
  6167. else
  6168. ac_cv_header_stdc=no
  6169. fi
  6170. rm -f conftest*
  6171. fi
  6172. if test $ac_cv_header_stdc = yes; then
  6173. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6174. if test "$cross_compiling" = yes; then :
  6175. :
  6176. else
  6177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6178. /* end confdefs.h. */
  6179. #include <ctype.h>
  6180. #include <stdlib.h>
  6181. #if ((' ' & 0x0FF) == 0x020)
  6182. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6183. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6184. #else
  6185. # define ISLOWER(c) \
  6186. (('a' <= (c) && (c) <= 'i') \
  6187. || ('j' <= (c) && (c) <= 'r') \
  6188. || ('s' <= (c) && (c) <= 'z'))
  6189. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6190. #endif
  6191. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6192. int
  6193. main ()
  6194. {
  6195. int i;
  6196. for (i = 0; i < 256; i++)
  6197. if (XOR (islower (i), ISLOWER (i))
  6198. || toupper (i) != TOUPPER (i))
  6199. return 2;
  6200. return 0;
  6201. }
  6202. _ACEOF
  6203. if ac_fn_c_try_run "$LINENO"; then :
  6204. else
  6205. ac_cv_header_stdc=no
  6206. fi
  6207. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6208. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6209. fi
  6210. fi
  6211. fi
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6213. $as_echo "$ac_cv_header_stdc" >&6; }
  6214. if test $ac_cv_header_stdc = yes; then
  6215. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6216. fi
  6217. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6218. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6219. inttypes.h stdint.h unistd.h
  6220. do :
  6221. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6222. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6223. "
  6224. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6225. cat >>confdefs.h <<_ACEOF
  6226. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6227. _ACEOF
  6228. fi
  6229. done
  6230. for ac_header in dlfcn.h
  6231. do :
  6232. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6233. "
  6234. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6235. cat >>confdefs.h <<_ACEOF
  6236. #define HAVE_DLFCN_H 1
  6237. _ACEOF
  6238. fi
  6239. done
  6240. # Set options
  6241. enable_win32_dll=yes
  6242. case $host in
  6243. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6244. if test -n "$ac_tool_prefix"; then
  6245. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6246. set dummy ${ac_tool_prefix}as; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if ${ac_cv_prog_AS+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$AS"; then
  6253. ac_cv_prog_AS="$AS" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6262. ac_cv_prog_AS="${ac_tool_prefix}as"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. AS=$ac_cv_prog_AS
  6272. if test -n "$AS"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6274. $as_echo "$AS" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. fi
  6280. if test -z "$ac_cv_prog_AS"; then
  6281. ac_ct_AS=$AS
  6282. # Extract the first word of "as", so it can be a program name with args.
  6283. set dummy as; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. if test -n "$ac_ct_AS"; then
  6290. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6299. ac_cv_prog_ac_ct_AS="as"
  6300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6309. if test -n "$ac_ct_AS"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6311. $as_echo "$ac_ct_AS" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. if test "x$ac_ct_AS" = x; then
  6317. AS="false"
  6318. else
  6319. case $cross_compiling:$ac_tool_warned in
  6320. yes:)
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6323. ac_tool_warned=yes ;;
  6324. esac
  6325. AS=$ac_ct_AS
  6326. fi
  6327. else
  6328. AS="$ac_cv_prog_AS"
  6329. fi
  6330. if test -n "$ac_tool_prefix"; then
  6331. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6332. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6334. $as_echo_n "checking for $ac_word... " >&6; }
  6335. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. if test -n "$DLLTOOL"; then
  6339. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6340. else
  6341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6342. for as_dir in $PATH
  6343. do
  6344. IFS=$as_save_IFS
  6345. test -z "$as_dir" && as_dir=.
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6348. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi
  6356. fi
  6357. DLLTOOL=$ac_cv_prog_DLLTOOL
  6358. if test -n "$DLLTOOL"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6360. $as_echo "$DLLTOOL" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6363. $as_echo "no" >&6; }
  6364. fi
  6365. fi
  6366. if test -z "$ac_cv_prog_DLLTOOL"; then
  6367. ac_ct_DLLTOOL=$DLLTOOL
  6368. # Extract the first word of "dlltool", so it can be a program name with args.
  6369. set dummy dlltool; ac_word=$2
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6371. $as_echo_n "checking for $ac_word... " >&6; }
  6372. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. if test -n "$ac_ct_DLLTOOL"; then
  6376. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6377. else
  6378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6379. for as_dir in $PATH
  6380. do
  6381. IFS=$as_save_IFS
  6382. test -z "$as_dir" && as_dir=.
  6383. for ac_exec_ext in '' $ac_executable_extensions; do
  6384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6385. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6387. break 2
  6388. fi
  6389. done
  6390. done
  6391. IFS=$as_save_IFS
  6392. fi
  6393. fi
  6394. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6395. if test -n "$ac_ct_DLLTOOL"; then
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6397. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6398. else
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. $as_echo "no" >&6; }
  6401. fi
  6402. if test "x$ac_ct_DLLTOOL" = x; then
  6403. DLLTOOL="false"
  6404. else
  6405. case $cross_compiling:$ac_tool_warned in
  6406. yes:)
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6409. ac_tool_warned=yes ;;
  6410. esac
  6411. DLLTOOL=$ac_ct_DLLTOOL
  6412. fi
  6413. else
  6414. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6415. fi
  6416. if test -n "$ac_tool_prefix"; then
  6417. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6418. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$OBJDUMP"; then
  6425. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6434. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. OBJDUMP=$ac_cv_prog_OBJDUMP
  6444. if test -n "$OBJDUMP"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6446. $as_echo "$OBJDUMP" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. fi
  6452. if test -z "$ac_cv_prog_OBJDUMP"; then
  6453. ac_ct_OBJDUMP=$OBJDUMP
  6454. # Extract the first word of "objdump", so it can be a program name with args.
  6455. set dummy objdump; ac_word=$2
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. if test -n "$ac_ct_OBJDUMP"; then
  6462. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. test -z "$as_dir" && as_dir=.
  6469. for ac_exec_ext in '' $ac_executable_extensions; do
  6470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6471. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6473. break 2
  6474. fi
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478. fi
  6479. fi
  6480. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6481. if test -n "$ac_ct_OBJDUMP"; then
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6483. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6484. else
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6486. $as_echo "no" >&6; }
  6487. fi
  6488. if test "x$ac_ct_OBJDUMP" = x; then
  6489. OBJDUMP="false"
  6490. else
  6491. case $cross_compiling:$ac_tool_warned in
  6492. yes:)
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6495. ac_tool_warned=yes ;;
  6496. esac
  6497. OBJDUMP=$ac_ct_OBJDUMP
  6498. fi
  6499. else
  6500. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6501. fi
  6502. ;;
  6503. esac
  6504. test -z "$AS" && AS=as
  6505. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6506. test -z "$OBJDUMP" && OBJDUMP=objdump
  6507. enable_dlopen=no
  6508. # Check whether --enable-shared was given.
  6509. if test "${enable_shared+set}" = set; then :
  6510. enableval=$enable_shared; p=${PACKAGE-default}
  6511. case $enableval in
  6512. yes) enable_shared=yes ;;
  6513. no) enable_shared=no ;;
  6514. *)
  6515. enable_shared=no
  6516. # Look at the argument we got. We use all the common list separators.
  6517. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6518. for pkg in $enableval; do
  6519. IFS="$lt_save_ifs"
  6520. if test "X$pkg" = "X$p"; then
  6521. enable_shared=yes
  6522. fi
  6523. done
  6524. IFS="$lt_save_ifs"
  6525. ;;
  6526. esac
  6527. else
  6528. enable_shared=yes
  6529. fi
  6530. # Check whether --enable-static was given.
  6531. if test "${enable_static+set}" = set; then :
  6532. enableval=$enable_static; p=${PACKAGE-default}
  6533. case $enableval in
  6534. yes) enable_static=yes ;;
  6535. no) enable_static=no ;;
  6536. *)
  6537. enable_static=no
  6538. # Look at the argument we got. We use all the common list separators.
  6539. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6540. for pkg in $enableval; do
  6541. IFS="$lt_save_ifs"
  6542. if test "X$pkg" = "X$p"; then
  6543. enable_static=yes
  6544. fi
  6545. done
  6546. IFS="$lt_save_ifs"
  6547. ;;
  6548. esac
  6549. else
  6550. enable_static=yes
  6551. fi
  6552. # Check whether --with-pic was given.
  6553. if test "${with_pic+set}" = set; then :
  6554. withval=$with_pic; lt_p=${PACKAGE-default}
  6555. case $withval in
  6556. yes|no) pic_mode=$withval ;;
  6557. *)
  6558. pic_mode=default
  6559. # Look at the argument we got. We use all the common list separators.
  6560. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6561. for lt_pkg in $withval; do
  6562. IFS="$lt_save_ifs"
  6563. if test "X$lt_pkg" = "X$lt_p"; then
  6564. pic_mode=yes
  6565. fi
  6566. done
  6567. IFS="$lt_save_ifs"
  6568. ;;
  6569. esac
  6570. else
  6571. pic_mode=default
  6572. fi
  6573. test -z "$pic_mode" && pic_mode=default
  6574. # Check whether --enable-fast-install was given.
  6575. if test "${enable_fast_install+set}" = set; then :
  6576. enableval=$enable_fast_install; p=${PACKAGE-default}
  6577. case $enableval in
  6578. yes) enable_fast_install=yes ;;
  6579. no) enable_fast_install=no ;;
  6580. *)
  6581. enable_fast_install=no
  6582. # Look at the argument we got. We use all the common list separators.
  6583. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6584. for pkg in $enableval; do
  6585. IFS="$lt_save_ifs"
  6586. if test "X$pkg" = "X$p"; then
  6587. enable_fast_install=yes
  6588. fi
  6589. done
  6590. IFS="$lt_save_ifs"
  6591. ;;
  6592. esac
  6593. else
  6594. enable_fast_install=yes
  6595. fi
  6596. # This can be used to rebuild libtool when needed
  6597. LIBTOOL_DEPS="$ltmain"
  6598. # Always use our own libtool.
  6599. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6600. test -z "$LN_S" && LN_S="ln -s"
  6601. if test -n "${ZSH_VERSION+set}" ; then
  6602. setopt NO_GLOB_SUBST
  6603. fi
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6605. $as_echo_n "checking for objdir... " >&6; }
  6606. if ${lt_cv_objdir+:} false; then :
  6607. $as_echo_n "(cached) " >&6
  6608. else
  6609. rm -f .libs 2>/dev/null
  6610. mkdir .libs 2>/dev/null
  6611. if test -d .libs; then
  6612. lt_cv_objdir=.libs
  6613. else
  6614. # MS-DOS does not allow filenames that begin with a dot.
  6615. lt_cv_objdir=_libs
  6616. fi
  6617. rmdir .libs 2>/dev/null
  6618. fi
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6620. $as_echo "$lt_cv_objdir" >&6; }
  6621. objdir=$lt_cv_objdir
  6622. cat >>confdefs.h <<_ACEOF
  6623. #define LT_OBJDIR "$lt_cv_objdir/"
  6624. _ACEOF
  6625. case $host_os in
  6626. aix3*)
  6627. # AIX sometimes has problems with the GCC collect2 program. For some
  6628. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6629. # vanish in a puff of smoke.
  6630. if test "X${COLLECT_NAMES+set}" != Xset; then
  6631. COLLECT_NAMES=
  6632. export COLLECT_NAMES
  6633. fi
  6634. ;;
  6635. esac
  6636. # Global variables:
  6637. ofile=libtool
  6638. can_build_shared=yes
  6639. # All known linkers require a `.a' archive for static linking (except MSVC,
  6640. # which needs '.lib').
  6641. libext=a
  6642. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6643. old_CC="$CC"
  6644. old_CFLAGS="$CFLAGS"
  6645. # Set sane defaults for various variables
  6646. test -z "$CC" && CC=cc
  6647. test -z "$LTCC" && LTCC=$CC
  6648. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6649. test -z "$LD" && LD=ld
  6650. test -z "$ac_objext" && ac_objext=o
  6651. for cc_temp in $compiler""; do
  6652. case $cc_temp in
  6653. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6654. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6655. \-*) ;;
  6656. *) break;;
  6657. esac
  6658. done
  6659. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6660. # Only perform the check for file, if the check method requires it
  6661. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6662. case $deplibs_check_method in
  6663. file_magic*)
  6664. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6666. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6667. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6668. $as_echo_n "(cached) " >&6
  6669. else
  6670. case $MAGIC_CMD in
  6671. [\\/*] | ?:[\\/]*)
  6672. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6673. ;;
  6674. *)
  6675. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6676. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6677. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6678. for ac_dir in $ac_dummy; do
  6679. IFS="$lt_save_ifs"
  6680. test -z "$ac_dir" && ac_dir=.
  6681. if test -f $ac_dir/${ac_tool_prefix}file; then
  6682. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6683. if test -n "$file_magic_test_file"; then
  6684. case $deplibs_check_method in
  6685. "file_magic "*)
  6686. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6687. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6688. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6689. $EGREP "$file_magic_regex" > /dev/null; then
  6690. :
  6691. else
  6692. cat <<_LT_EOF 1>&2
  6693. *** Warning: the command libtool uses to detect shared libraries,
  6694. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6695. *** The result is that libtool may fail to recognize shared libraries
  6696. *** as such. This will affect the creation of libtool libraries that
  6697. *** depend on shared libraries, but programs linked with such libtool
  6698. *** libraries will work regardless of this problem. Nevertheless, you
  6699. *** may want to report the problem to your system manager and/or to
  6700. *** bug-libtool@gnu.org
  6701. _LT_EOF
  6702. fi ;;
  6703. esac
  6704. fi
  6705. break
  6706. fi
  6707. done
  6708. IFS="$lt_save_ifs"
  6709. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6710. ;;
  6711. esac
  6712. fi
  6713. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6714. if test -n "$MAGIC_CMD"; then
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6716. $as_echo "$MAGIC_CMD" >&6; }
  6717. else
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6719. $as_echo "no" >&6; }
  6720. fi
  6721. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6722. if test -n "$ac_tool_prefix"; then
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6724. $as_echo_n "checking for file... " >&6; }
  6725. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6726. $as_echo_n "(cached) " >&6
  6727. else
  6728. case $MAGIC_CMD in
  6729. [\\/*] | ?:[\\/]*)
  6730. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6731. ;;
  6732. *)
  6733. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6734. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6735. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6736. for ac_dir in $ac_dummy; do
  6737. IFS="$lt_save_ifs"
  6738. test -z "$ac_dir" && ac_dir=.
  6739. if test -f $ac_dir/file; then
  6740. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6741. if test -n "$file_magic_test_file"; then
  6742. case $deplibs_check_method in
  6743. "file_magic "*)
  6744. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6745. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6746. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6747. $EGREP "$file_magic_regex" > /dev/null; then
  6748. :
  6749. else
  6750. cat <<_LT_EOF 1>&2
  6751. *** Warning: the command libtool uses to detect shared libraries,
  6752. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6753. *** The result is that libtool may fail to recognize shared libraries
  6754. *** as such. This will affect the creation of libtool libraries that
  6755. *** depend on shared libraries, but programs linked with such libtool
  6756. *** libraries will work regardless of this problem. Nevertheless, you
  6757. *** may want to report the problem to your system manager and/or to
  6758. *** bug-libtool@gnu.org
  6759. _LT_EOF
  6760. fi ;;
  6761. esac
  6762. fi
  6763. break
  6764. fi
  6765. done
  6766. IFS="$lt_save_ifs"
  6767. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6768. ;;
  6769. esac
  6770. fi
  6771. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6772. if test -n "$MAGIC_CMD"; then
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6774. $as_echo "$MAGIC_CMD" >&6; }
  6775. else
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6777. $as_echo "no" >&6; }
  6778. fi
  6779. else
  6780. MAGIC_CMD=:
  6781. fi
  6782. fi
  6783. fi
  6784. ;;
  6785. esac
  6786. # Use C for the default configuration in the libtool script
  6787. lt_save_CC="$CC"
  6788. ac_ext=c
  6789. ac_cpp='$CPP $CPPFLAGS'
  6790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6793. # Source file extension for C test sources.
  6794. ac_ext=c
  6795. # Object file extension for compiled C test sources.
  6796. objext=o
  6797. objext=$objext
  6798. # Code to be used in simple compile tests
  6799. lt_simple_compile_test_code="int some_variable = 0;"
  6800. # Code to be used in simple link tests
  6801. lt_simple_link_test_code='int main(){return(0);}'
  6802. # If no C compiler was specified, use CC.
  6803. LTCC=${LTCC-"$CC"}
  6804. # If no C compiler flags were specified, use CFLAGS.
  6805. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6806. # Allow CC to be a program name with arguments.
  6807. compiler=$CC
  6808. # Save the default compiler, since it gets overwritten when the other
  6809. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6810. compiler_DEFAULT=$CC
  6811. # save warnings/boilerplate of simple test code
  6812. ac_outfile=conftest.$ac_objext
  6813. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6814. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6815. _lt_compiler_boilerplate=`cat conftest.err`
  6816. $RM conftest*
  6817. ac_outfile=conftest.$ac_objext
  6818. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6819. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6820. _lt_linker_boilerplate=`cat conftest.err`
  6821. $RM -r conftest*
  6822. ## CAVEAT EMPTOR:
  6823. ## There is no encapsulation within the following macros, do not change
  6824. ## the running order or otherwise move them around unless you know exactly
  6825. ## what you are doing...
  6826. if test -n "$compiler"; then
  6827. lt_prog_compiler_no_builtin_flag=
  6828. if test "$GCC" = yes; then
  6829. case $cc_basename in
  6830. nvcc*)
  6831. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6832. *)
  6833. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6834. esac
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6836. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6837. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6838. $as_echo_n "(cached) " >&6
  6839. else
  6840. lt_cv_prog_compiler_rtti_exceptions=no
  6841. ac_outfile=conftest.$ac_objext
  6842. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6843. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6844. # Insert the option either (1) after the last *FLAGS variable, or
  6845. # (2) before a word containing "conftest.", or (3) at the end.
  6846. # Note that $ac_compile itself does not contain backslashes and begins
  6847. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6848. # The option is referenced via a variable to avoid confusing sed.
  6849. lt_compile=`echo "$ac_compile" | $SED \
  6850. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6851. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6852. -e 's:$: $lt_compiler_flag:'`
  6853. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6854. (eval "$lt_compile" 2>conftest.err)
  6855. ac_status=$?
  6856. cat conftest.err >&5
  6857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6858. if (exit $ac_status) && test -s "$ac_outfile"; then
  6859. # The compiler can only warn and ignore the option if not recognized
  6860. # So say no if there are warnings other than the usual output.
  6861. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6862. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6863. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6864. lt_cv_prog_compiler_rtti_exceptions=yes
  6865. fi
  6866. fi
  6867. $RM conftest*
  6868. fi
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6870. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6871. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6872. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6873. else
  6874. :
  6875. fi
  6876. fi
  6877. lt_prog_compiler_wl=
  6878. lt_prog_compiler_pic=
  6879. lt_prog_compiler_static=
  6880. if test "$GCC" = yes; then
  6881. lt_prog_compiler_wl='-Wl,'
  6882. lt_prog_compiler_static='-static'
  6883. case $host_os in
  6884. aix*)
  6885. # All AIX code is PIC.
  6886. if test "$host_cpu" = ia64; then
  6887. # AIX 5 now supports IA64 processor
  6888. lt_prog_compiler_static='-Bstatic'
  6889. fi
  6890. ;;
  6891. amigaos*)
  6892. case $host_cpu in
  6893. powerpc)
  6894. # see comment about AmigaOS4 .so support
  6895. lt_prog_compiler_pic='-fPIC'
  6896. ;;
  6897. m68k)
  6898. # FIXME: we need at least 68020 code to build shared libraries, but
  6899. # adding the `-m68020' flag to GCC prevents building anything better,
  6900. # like `-m68040'.
  6901. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6902. ;;
  6903. esac
  6904. ;;
  6905. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6906. # PIC is the default for these OSes.
  6907. ;;
  6908. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6909. # This hack is so that the source file can tell whether it is being
  6910. # built for inclusion in a dll (and should export symbols for example).
  6911. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6912. # (--disable-auto-import) libraries
  6913. lt_prog_compiler_pic='-DDLL_EXPORT'
  6914. ;;
  6915. darwin* | rhapsody*)
  6916. # PIC is the default on this platform
  6917. # Common symbols not allowed in MH_DYLIB files
  6918. lt_prog_compiler_pic='-fno-common'
  6919. ;;
  6920. haiku*)
  6921. # PIC is the default for Haiku.
  6922. # The "-static" flag exists, but is broken.
  6923. lt_prog_compiler_static=
  6924. ;;
  6925. hpux*)
  6926. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6927. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6928. # sets the default TLS model and affects inlining.
  6929. case $host_cpu in
  6930. hppa*64*)
  6931. # +Z the default
  6932. ;;
  6933. *)
  6934. lt_prog_compiler_pic='-fPIC'
  6935. ;;
  6936. esac
  6937. ;;
  6938. interix[3-9]*)
  6939. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6940. # Instead, we relocate shared libraries at runtime.
  6941. ;;
  6942. msdosdjgpp*)
  6943. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6944. # on systems that don't support them.
  6945. lt_prog_compiler_can_build_shared=no
  6946. enable_shared=no
  6947. ;;
  6948. *nto* | *qnx*)
  6949. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6950. # it will coredump.
  6951. lt_prog_compiler_pic='-fPIC -shared'
  6952. ;;
  6953. sysv4*MP*)
  6954. if test -d /usr/nec; then
  6955. lt_prog_compiler_pic=-Kconform_pic
  6956. fi
  6957. ;;
  6958. *)
  6959. lt_prog_compiler_pic='-fPIC'
  6960. ;;
  6961. esac
  6962. case $cc_basename in
  6963. nvcc*) # Cuda Compiler Driver 2.2
  6964. lt_prog_compiler_wl='-Xlinker '
  6965. if test -n "$lt_prog_compiler_pic"; then
  6966. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6967. fi
  6968. ;;
  6969. esac
  6970. else
  6971. # PORTME Check for flag to pass linker flags through the system compiler.
  6972. case $host_os in
  6973. aix*)
  6974. lt_prog_compiler_wl='-Wl,'
  6975. if test "$host_cpu" = ia64; then
  6976. # AIX 5 now supports IA64 processor
  6977. lt_prog_compiler_static='-Bstatic'
  6978. else
  6979. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6980. fi
  6981. ;;
  6982. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6983. # This hack is so that the source file can tell whether it is being
  6984. # built for inclusion in a dll (and should export symbols for example).
  6985. lt_prog_compiler_pic='-DDLL_EXPORT'
  6986. ;;
  6987. hpux9* | hpux10* | hpux11*)
  6988. lt_prog_compiler_wl='-Wl,'
  6989. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6990. # not for PA HP-UX.
  6991. case $host_cpu in
  6992. hppa*64*|ia64*)
  6993. # +Z the default
  6994. ;;
  6995. *)
  6996. lt_prog_compiler_pic='+Z'
  6997. ;;
  6998. esac
  6999. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7000. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7001. ;;
  7002. irix5* | irix6* | nonstopux*)
  7003. lt_prog_compiler_wl='-Wl,'
  7004. # PIC (with -KPIC) is the default.
  7005. lt_prog_compiler_static='-non_shared'
  7006. ;;
  7007. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7008. case $cc_basename in
  7009. # old Intel for x86_64 which still supported -KPIC.
  7010. ecc*)
  7011. lt_prog_compiler_wl='-Wl,'
  7012. lt_prog_compiler_pic='-KPIC'
  7013. lt_prog_compiler_static='-static'
  7014. ;;
  7015. # icc used to be incompatible with GCC.
  7016. # ICC 10 doesn't accept -KPIC any more.
  7017. icc* | ifort*)
  7018. lt_prog_compiler_wl='-Wl,'
  7019. lt_prog_compiler_pic='-fPIC'
  7020. lt_prog_compiler_static='-static'
  7021. ;;
  7022. # Lahey Fortran 8.1.
  7023. lf95*)
  7024. lt_prog_compiler_wl='-Wl,'
  7025. lt_prog_compiler_pic='--shared'
  7026. lt_prog_compiler_static='--static'
  7027. ;;
  7028. nagfor*)
  7029. # NAG Fortran compiler
  7030. lt_prog_compiler_wl='-Wl,-Wl,,'
  7031. lt_prog_compiler_pic='-PIC'
  7032. lt_prog_compiler_static='-Bstatic'
  7033. ;;
  7034. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7035. # Portland Group compilers (*not* the Pentium gcc compiler,
  7036. # which looks to be a dead project)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-fpic'
  7039. lt_prog_compiler_static='-Bstatic'
  7040. ;;
  7041. ccc*)
  7042. lt_prog_compiler_wl='-Wl,'
  7043. # All Alpha code is PIC.
  7044. lt_prog_compiler_static='-non_shared'
  7045. ;;
  7046. xl* | bgxl* | bgf* | mpixl*)
  7047. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='-qpic'
  7050. lt_prog_compiler_static='-qstaticlink'
  7051. ;;
  7052. *)
  7053. case `$CC -V 2>&1 | sed 5q` in
  7054. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7055. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7056. lt_prog_compiler_pic='-KPIC'
  7057. lt_prog_compiler_static='-Bstatic'
  7058. lt_prog_compiler_wl=''
  7059. ;;
  7060. *Sun\ F* | *Sun*Fortran*)
  7061. lt_prog_compiler_pic='-KPIC'
  7062. lt_prog_compiler_static='-Bstatic'
  7063. lt_prog_compiler_wl='-Qoption ld '
  7064. ;;
  7065. *Sun\ C*)
  7066. # Sun C 5.9
  7067. lt_prog_compiler_pic='-KPIC'
  7068. lt_prog_compiler_static='-Bstatic'
  7069. lt_prog_compiler_wl='-Wl,'
  7070. ;;
  7071. *Intel*\ [CF]*Compiler*)
  7072. lt_prog_compiler_wl='-Wl,'
  7073. lt_prog_compiler_pic='-fPIC'
  7074. lt_prog_compiler_static='-static'
  7075. ;;
  7076. *Portland\ Group*)
  7077. lt_prog_compiler_wl='-Wl,'
  7078. lt_prog_compiler_pic='-fpic'
  7079. lt_prog_compiler_static='-Bstatic'
  7080. ;;
  7081. esac
  7082. ;;
  7083. esac
  7084. ;;
  7085. newsos6)
  7086. lt_prog_compiler_pic='-KPIC'
  7087. lt_prog_compiler_static='-Bstatic'
  7088. ;;
  7089. *nto* | *qnx*)
  7090. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7091. # it will coredump.
  7092. lt_prog_compiler_pic='-fPIC -shared'
  7093. ;;
  7094. osf3* | osf4* | osf5*)
  7095. lt_prog_compiler_wl='-Wl,'
  7096. # All OSF/1 code is PIC.
  7097. lt_prog_compiler_static='-non_shared'
  7098. ;;
  7099. rdos*)
  7100. lt_prog_compiler_static='-non_shared'
  7101. ;;
  7102. solaris*)
  7103. lt_prog_compiler_pic='-KPIC'
  7104. lt_prog_compiler_static='-Bstatic'
  7105. case $cc_basename in
  7106. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7107. lt_prog_compiler_wl='-Qoption ld ';;
  7108. *)
  7109. lt_prog_compiler_wl='-Wl,';;
  7110. esac
  7111. ;;
  7112. sunos4*)
  7113. lt_prog_compiler_wl='-Qoption ld '
  7114. lt_prog_compiler_pic='-PIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. ;;
  7117. sysv4 | sysv4.2uw2* | sysv4.3*)
  7118. lt_prog_compiler_wl='-Wl,'
  7119. lt_prog_compiler_pic='-KPIC'
  7120. lt_prog_compiler_static='-Bstatic'
  7121. ;;
  7122. sysv4*MP*)
  7123. if test -d /usr/nec ;then
  7124. lt_prog_compiler_pic='-Kconform_pic'
  7125. lt_prog_compiler_static='-Bstatic'
  7126. fi
  7127. ;;
  7128. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7129. lt_prog_compiler_wl='-Wl,'
  7130. lt_prog_compiler_pic='-KPIC'
  7131. lt_prog_compiler_static='-Bstatic'
  7132. ;;
  7133. unicos*)
  7134. lt_prog_compiler_wl='-Wl,'
  7135. lt_prog_compiler_can_build_shared=no
  7136. ;;
  7137. uts4*)
  7138. lt_prog_compiler_pic='-pic'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. *)
  7142. lt_prog_compiler_can_build_shared=no
  7143. ;;
  7144. esac
  7145. fi
  7146. case $host_os in
  7147. # For platforms which do not support PIC, -DPIC is meaningless:
  7148. *djgpp*)
  7149. lt_prog_compiler_pic=
  7150. ;;
  7151. *)
  7152. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7153. ;;
  7154. esac
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7156. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7157. if ${lt_cv_prog_compiler_pic+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7161. fi
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7163. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7164. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7165. #
  7166. # Check to make sure the PIC flag actually works.
  7167. #
  7168. if test -n "$lt_prog_compiler_pic"; then
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7170. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7171. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7172. $as_echo_n "(cached) " >&6
  7173. else
  7174. lt_cv_prog_compiler_pic_works=no
  7175. ac_outfile=conftest.$ac_objext
  7176. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7177. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7178. # Insert the option either (1) after the last *FLAGS variable, or
  7179. # (2) before a word containing "conftest.", or (3) at the end.
  7180. # Note that $ac_compile itself does not contain backslashes and begins
  7181. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7182. # The option is referenced via a variable to avoid confusing sed.
  7183. lt_compile=`echo "$ac_compile" | $SED \
  7184. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7185. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7186. -e 's:$: $lt_compiler_flag:'`
  7187. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7188. (eval "$lt_compile" 2>conftest.err)
  7189. ac_status=$?
  7190. cat conftest.err >&5
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. if (exit $ac_status) && test -s "$ac_outfile"; then
  7193. # The compiler can only warn and ignore the option if not recognized
  7194. # So say no if there are warnings other than the usual output.
  7195. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7196. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7197. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7198. lt_cv_prog_compiler_pic_works=yes
  7199. fi
  7200. fi
  7201. $RM conftest*
  7202. fi
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7204. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7205. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7206. case $lt_prog_compiler_pic in
  7207. "" | " "*) ;;
  7208. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7209. esac
  7210. else
  7211. lt_prog_compiler_pic=
  7212. lt_prog_compiler_can_build_shared=no
  7213. fi
  7214. fi
  7215. #
  7216. # Check to make sure the static flag actually works.
  7217. #
  7218. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7220. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7221. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_static_works=no
  7225. save_LDFLAGS="$LDFLAGS"
  7226. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7227. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7228. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7229. # The linker can only warn and ignore the option if not recognized
  7230. # So say no if there are warnings
  7231. if test -s conftest.err; then
  7232. # Append any errors to the config.log.
  7233. cat conftest.err 1>&5
  7234. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7235. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7236. if diff conftest.exp conftest.er2 >/dev/null; then
  7237. lt_cv_prog_compiler_static_works=yes
  7238. fi
  7239. else
  7240. lt_cv_prog_compiler_static_works=yes
  7241. fi
  7242. fi
  7243. $RM -r conftest*
  7244. LDFLAGS="$save_LDFLAGS"
  7245. fi
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7247. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7248. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7249. :
  7250. else
  7251. lt_prog_compiler_static=
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7254. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7255. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. lt_cv_prog_compiler_c_o=no
  7259. $RM -r conftest 2>/dev/null
  7260. mkdir conftest
  7261. cd conftest
  7262. mkdir out
  7263. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7264. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7265. # Insert the option either (1) after the last *FLAGS variable, or
  7266. # (2) before a word containing "conftest.", or (3) at the end.
  7267. # Note that $ac_compile itself does not contain backslashes and begins
  7268. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7269. lt_compile=`echo "$ac_compile" | $SED \
  7270. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7271. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7272. -e 's:$: $lt_compiler_flag:'`
  7273. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7274. (eval "$lt_compile" 2>out/conftest.err)
  7275. ac_status=$?
  7276. cat out/conftest.err >&5
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7279. then
  7280. # The compiler can only warn and ignore the option if not recognized
  7281. # So say no if there are warnings
  7282. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7283. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7284. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7285. lt_cv_prog_compiler_c_o=yes
  7286. fi
  7287. fi
  7288. chmod u+w . 2>&5
  7289. $RM conftest*
  7290. # SGI C++ compiler will create directory out/ii_files/ for
  7291. # template instantiation
  7292. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7293. $RM out/* && rmdir out
  7294. cd ..
  7295. $RM -r conftest
  7296. $RM conftest*
  7297. fi
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7299. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7301. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7302. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7303. $as_echo_n "(cached) " >&6
  7304. else
  7305. lt_cv_prog_compiler_c_o=no
  7306. $RM -r conftest 2>/dev/null
  7307. mkdir conftest
  7308. cd conftest
  7309. mkdir out
  7310. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7311. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7312. # Insert the option either (1) after the last *FLAGS variable, or
  7313. # (2) before a word containing "conftest.", or (3) at the end.
  7314. # Note that $ac_compile itself does not contain backslashes and begins
  7315. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7316. lt_compile=`echo "$ac_compile" | $SED \
  7317. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7318. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7319. -e 's:$: $lt_compiler_flag:'`
  7320. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7321. (eval "$lt_compile" 2>out/conftest.err)
  7322. ac_status=$?
  7323. cat out/conftest.err >&5
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7326. then
  7327. # The compiler can only warn and ignore the option if not recognized
  7328. # So say no if there are warnings
  7329. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7330. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7331. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7332. lt_cv_prog_compiler_c_o=yes
  7333. fi
  7334. fi
  7335. chmod u+w . 2>&5
  7336. $RM conftest*
  7337. # SGI C++ compiler will create directory out/ii_files/ for
  7338. # template instantiation
  7339. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7340. $RM out/* && rmdir out
  7341. cd ..
  7342. $RM -r conftest
  7343. $RM conftest*
  7344. fi
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7346. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7347. hard_links="nottested"
  7348. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7349. # do not overwrite the value of need_locks provided by the user
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7351. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7352. hard_links=yes
  7353. $RM conftest*
  7354. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7355. touch conftest.a
  7356. ln conftest.a conftest.b 2>&5 || hard_links=no
  7357. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7359. $as_echo "$hard_links" >&6; }
  7360. if test "$hard_links" = no; then
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7362. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7363. need_locks=warn
  7364. fi
  7365. else
  7366. need_locks=no
  7367. fi
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7369. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7370. runpath_var=
  7371. allow_undefined_flag=
  7372. always_export_symbols=no
  7373. archive_cmds=
  7374. archive_expsym_cmds=
  7375. compiler_needs_object=no
  7376. enable_shared_with_static_runtimes=no
  7377. export_dynamic_flag_spec=
  7378. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7379. hardcode_automatic=no
  7380. hardcode_direct=no
  7381. hardcode_direct_absolute=no
  7382. hardcode_libdir_flag_spec=
  7383. hardcode_libdir_separator=
  7384. hardcode_minus_L=no
  7385. hardcode_shlibpath_var=unsupported
  7386. inherit_rpath=no
  7387. link_all_deplibs=unknown
  7388. module_cmds=
  7389. module_expsym_cmds=
  7390. old_archive_from_new_cmds=
  7391. old_archive_from_expsyms_cmds=
  7392. thread_safe_flag_spec=
  7393. whole_archive_flag_spec=
  7394. # include_expsyms should be a list of space-separated symbols to be *always*
  7395. # included in the symbol list
  7396. include_expsyms=
  7397. # exclude_expsyms can be an extended regexp of symbols to exclude
  7398. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7399. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7400. # as well as any symbol that contains `d'.
  7401. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7402. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7403. # platforms (ab)use it in PIC code, but their linkers get confused if
  7404. # the symbol is explicitly referenced. Since portable code cannot
  7405. # rely on this symbol name, it's probably fine to never include it in
  7406. # preloaded symbol tables.
  7407. # Exclude shared library initialization/finalization symbols.
  7408. extract_expsyms_cmds=
  7409. case $host_os in
  7410. cygwin* | mingw* | pw32* | cegcc*)
  7411. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7412. # When not using gcc, we currently assume that we are using
  7413. # Microsoft Visual C++.
  7414. if test "$GCC" != yes; then
  7415. with_gnu_ld=no
  7416. fi
  7417. ;;
  7418. interix*)
  7419. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7420. with_gnu_ld=yes
  7421. ;;
  7422. openbsd*)
  7423. with_gnu_ld=no
  7424. ;;
  7425. esac
  7426. ld_shlibs=yes
  7427. # On some targets, GNU ld is compatible enough with the native linker
  7428. # that we're better off using the native interface for both.
  7429. lt_use_gnu_ld_interface=no
  7430. if test "$with_gnu_ld" = yes; then
  7431. case $host_os in
  7432. aix*)
  7433. # The AIX port of GNU ld has always aspired to compatibility
  7434. # with the native linker. However, as the warning in the GNU ld
  7435. # block says, versions before 2.19.5* couldn't really create working
  7436. # shared libraries, regardless of the interface used.
  7437. case `$LD -v 2>&1` in
  7438. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7439. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7440. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7441. *)
  7442. lt_use_gnu_ld_interface=yes
  7443. ;;
  7444. esac
  7445. ;;
  7446. *)
  7447. lt_use_gnu_ld_interface=yes
  7448. ;;
  7449. esac
  7450. fi
  7451. if test "$lt_use_gnu_ld_interface" = yes; then
  7452. # If archive_cmds runs LD, not CC, wlarc should be empty
  7453. wlarc='${wl}'
  7454. # Set some defaults for GNU ld with shared library support. These
  7455. # are reset later if shared libraries are not supported. Putting them
  7456. # here allows them to be overridden if necessary.
  7457. runpath_var=LD_RUN_PATH
  7458. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7459. export_dynamic_flag_spec='${wl}--export-dynamic'
  7460. # ancient GNU ld didn't support --whole-archive et. al.
  7461. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7462. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7463. else
  7464. whole_archive_flag_spec=
  7465. fi
  7466. supports_anon_versioning=no
  7467. case `$LD -v 2>&1` in
  7468. *GNU\ gold*) supports_anon_versioning=yes ;;
  7469. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7470. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7471. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7472. *\ 2.11.*) ;; # other 2.11 versions
  7473. *) supports_anon_versioning=yes ;;
  7474. esac
  7475. # See if GNU ld supports shared libraries.
  7476. case $host_os in
  7477. aix[3-9]*)
  7478. # On AIX/PPC, the GNU linker is very broken
  7479. if test "$host_cpu" != ia64; then
  7480. ld_shlibs=no
  7481. cat <<_LT_EOF 1>&2
  7482. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7483. *** to be unable to reliably create shared libraries on AIX.
  7484. *** Therefore, libtool is disabling shared libraries support. If you
  7485. *** really care for shared libraries, you may want to install binutils
  7486. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7487. *** You will then need to restart the configuration process.
  7488. _LT_EOF
  7489. fi
  7490. ;;
  7491. amigaos*)
  7492. case $host_cpu in
  7493. powerpc)
  7494. # see comment about AmigaOS4 .so support
  7495. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7496. archive_expsym_cmds=''
  7497. ;;
  7498. m68k)
  7499. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7500. hardcode_libdir_flag_spec='-L$libdir'
  7501. hardcode_minus_L=yes
  7502. ;;
  7503. esac
  7504. ;;
  7505. beos*)
  7506. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7507. allow_undefined_flag=unsupported
  7508. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7509. # support --undefined. This deserves some investigation. FIXME
  7510. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7511. else
  7512. ld_shlibs=no
  7513. fi
  7514. ;;
  7515. cygwin* | mingw* | pw32* | cegcc*)
  7516. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7517. # as there is no search path for DLLs.
  7518. hardcode_libdir_flag_spec='-L$libdir'
  7519. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7520. allow_undefined_flag=unsupported
  7521. always_export_symbols=no
  7522. enable_shared_with_static_runtimes=yes
  7523. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7524. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7525. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7526. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7527. # If the export-symbols file already is a .def file (1st line
  7528. # is EXPORTS), use it as is; otherwise, prepend...
  7529. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7530. cp $export_symbols $output_objdir/$soname.def;
  7531. else
  7532. echo EXPORTS > $output_objdir/$soname.def;
  7533. cat $export_symbols >> $output_objdir/$soname.def;
  7534. fi~
  7535. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7536. else
  7537. ld_shlibs=no
  7538. fi
  7539. ;;
  7540. haiku*)
  7541. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7542. link_all_deplibs=yes
  7543. ;;
  7544. interix[3-9]*)
  7545. hardcode_direct=no
  7546. hardcode_shlibpath_var=no
  7547. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7548. export_dynamic_flag_spec='${wl}-E'
  7549. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7550. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7551. # default) and relocated if they conflict, which is a slow very memory
  7552. # consuming and fragmenting process. To avoid this, we pick a random,
  7553. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7554. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7555. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7556. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7557. ;;
  7558. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7559. tmp_diet=no
  7560. if test "$host_os" = linux-dietlibc; then
  7561. case $cc_basename in
  7562. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7563. esac
  7564. fi
  7565. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7566. && test "$tmp_diet" = no
  7567. then
  7568. tmp_addflag=' $pic_flag'
  7569. tmp_sharedflag='-shared'
  7570. case $cc_basename,$host_cpu in
  7571. pgcc*) # Portland Group C compiler
  7572. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7573. tmp_addflag=' $pic_flag'
  7574. ;;
  7575. pgf77* | pgf90* | pgf95* | pgfortran*)
  7576. # Portland Group f77 and f90 compilers
  7577. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7578. tmp_addflag=' $pic_flag -Mnomain' ;;
  7579. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7580. tmp_addflag=' -i_dynamic' ;;
  7581. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7582. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7583. ifc* | ifort*) # Intel Fortran compiler
  7584. tmp_addflag=' -nofor_main' ;;
  7585. lf95*) # Lahey Fortran 8.1
  7586. whole_archive_flag_spec=
  7587. tmp_sharedflag='--shared' ;;
  7588. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7589. tmp_sharedflag='-qmkshrobj'
  7590. tmp_addflag= ;;
  7591. nvcc*) # Cuda Compiler Driver 2.2
  7592. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7593. compiler_needs_object=yes
  7594. ;;
  7595. esac
  7596. case `$CC -V 2>&1 | sed 5q` in
  7597. *Sun\ C*) # Sun C 5.9
  7598. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7599. compiler_needs_object=yes
  7600. tmp_sharedflag='-G' ;;
  7601. *Sun\ F*) # Sun Fortran 8.3
  7602. tmp_sharedflag='-G' ;;
  7603. esac
  7604. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7605. if test "x$supports_anon_versioning" = xyes; then
  7606. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7607. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7608. echo "local: *; };" >> $output_objdir/$libname.ver~
  7609. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7610. fi
  7611. case $cc_basename in
  7612. xlf* | bgf* | bgxlf* | mpixlf*)
  7613. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7614. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7615. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7616. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7617. if test "x$supports_anon_versioning" = xyes; then
  7618. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7619. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7620. echo "local: *; };" >> $output_objdir/$libname.ver~
  7621. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7622. fi
  7623. ;;
  7624. esac
  7625. else
  7626. ld_shlibs=no
  7627. fi
  7628. ;;
  7629. netbsd*)
  7630. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7631. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7632. wlarc=
  7633. else
  7634. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7635. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7636. fi
  7637. ;;
  7638. solaris*)
  7639. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7640. ld_shlibs=no
  7641. cat <<_LT_EOF 1>&2
  7642. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7643. *** create shared libraries on Solaris systems. Therefore, libtool
  7644. *** is disabling shared libraries support. We urge you to upgrade GNU
  7645. *** binutils to release 2.9.1 or newer. Another option is to modify
  7646. *** your PATH or compiler configuration so that the native linker is
  7647. *** used, and then restart.
  7648. _LT_EOF
  7649. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7650. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7651. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7652. else
  7653. ld_shlibs=no
  7654. fi
  7655. ;;
  7656. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7657. case `$LD -v 2>&1` in
  7658. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7659. ld_shlibs=no
  7660. cat <<_LT_EOF 1>&2
  7661. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7662. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7663. *** is disabling shared libraries support. We urge you to upgrade GNU
  7664. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7665. *** your PATH or compiler configuration so that the native linker is
  7666. *** used, and then restart.
  7667. _LT_EOF
  7668. ;;
  7669. *)
  7670. # For security reasons, it is highly recommended that you always
  7671. # use absolute paths for naming shared libraries, and exclude the
  7672. # DT_RUNPATH tag from executables and libraries. But doing so
  7673. # requires that you compile everything twice, which is a pain.
  7674. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7675. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7676. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7677. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7678. else
  7679. ld_shlibs=no
  7680. fi
  7681. ;;
  7682. esac
  7683. ;;
  7684. sunos4*)
  7685. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7686. wlarc=
  7687. hardcode_direct=yes
  7688. hardcode_shlibpath_var=no
  7689. ;;
  7690. *)
  7691. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7692. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7693. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7694. else
  7695. ld_shlibs=no
  7696. fi
  7697. ;;
  7698. esac
  7699. if test "$ld_shlibs" = no; then
  7700. runpath_var=
  7701. hardcode_libdir_flag_spec=
  7702. export_dynamic_flag_spec=
  7703. whole_archive_flag_spec=
  7704. fi
  7705. else
  7706. # PORTME fill in a description of your system's linker (not GNU ld)
  7707. case $host_os in
  7708. aix3*)
  7709. allow_undefined_flag=unsupported
  7710. always_export_symbols=yes
  7711. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7712. # Note: this linker hardcodes the directories in LIBPATH if there
  7713. # are no directories specified by -L.
  7714. hardcode_minus_L=yes
  7715. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7716. # Neither direct hardcoding nor static linking is supported with a
  7717. # broken collect2.
  7718. hardcode_direct=unsupported
  7719. fi
  7720. ;;
  7721. aix[4-9]*)
  7722. if test "$host_cpu" = ia64; then
  7723. # On IA64, the linker does run time linking by default, so we don't
  7724. # have to do anything special.
  7725. aix_use_runtimelinking=no
  7726. exp_sym_flag='-Bexport'
  7727. no_entry_flag=""
  7728. else
  7729. # If we're using GNU nm, then we don't want the "-C" option.
  7730. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7731. # Also, AIX nm treats weak defined symbols like other global
  7732. # defined symbols, whereas GNU nm marks them as "W".
  7733. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7734. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7735. else
  7736. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7737. fi
  7738. aix_use_runtimelinking=no
  7739. # Test if we are trying to use run time linking or normal
  7740. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7741. # need to do runtime linking.
  7742. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7743. for ld_flag in $LDFLAGS; do
  7744. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7745. aix_use_runtimelinking=yes
  7746. break
  7747. fi
  7748. done
  7749. ;;
  7750. esac
  7751. exp_sym_flag='-bexport'
  7752. no_entry_flag='-bnoentry'
  7753. fi
  7754. # When large executables or shared objects are built, AIX ld can
  7755. # have problems creating the table of contents. If linking a library
  7756. # or program results in "error TOC overflow" add -mminimal-toc to
  7757. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7758. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7759. archive_cmds=''
  7760. hardcode_direct=yes
  7761. hardcode_direct_absolute=yes
  7762. hardcode_libdir_separator=':'
  7763. link_all_deplibs=yes
  7764. file_list_spec='${wl}-f,'
  7765. if test "$GCC" = yes; then
  7766. case $host_os in aix4.[012]|aix4.[012].*)
  7767. # We only want to do this on AIX 4.2 and lower, the check
  7768. # below for broken collect2 doesn't work under 4.3+
  7769. collect2name=`${CC} -print-prog-name=collect2`
  7770. if test -f "$collect2name" &&
  7771. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7772. then
  7773. # We have reworked collect2
  7774. :
  7775. else
  7776. # We have old collect2
  7777. hardcode_direct=unsupported
  7778. # It fails to find uninstalled libraries when the uninstalled
  7779. # path is not listed in the libpath. Setting hardcode_minus_L
  7780. # to unsupported forces relinking
  7781. hardcode_minus_L=yes
  7782. hardcode_libdir_flag_spec='-L$libdir'
  7783. hardcode_libdir_separator=
  7784. fi
  7785. ;;
  7786. esac
  7787. shared_flag='-shared'
  7788. if test "$aix_use_runtimelinking" = yes; then
  7789. shared_flag="$shared_flag "'${wl}-G'
  7790. fi
  7791. else
  7792. # not using gcc
  7793. if test "$host_cpu" = ia64; then
  7794. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7795. # chokes on -Wl,-G. The following line is correct:
  7796. shared_flag='-G'
  7797. else
  7798. if test "$aix_use_runtimelinking" = yes; then
  7799. shared_flag='${wl}-G'
  7800. else
  7801. shared_flag='${wl}-bM:SRE'
  7802. fi
  7803. fi
  7804. fi
  7805. export_dynamic_flag_spec='${wl}-bexpall'
  7806. # It seems that -bexpall does not export symbols beginning with
  7807. # underscore (_), so it is better to generate a list of symbols to export.
  7808. always_export_symbols=yes
  7809. if test "$aix_use_runtimelinking" = yes; then
  7810. # Warning - without using the other runtime loading flags (-brtl),
  7811. # -berok will link without error, but may produce a broken library.
  7812. allow_undefined_flag='-berok'
  7813. # Determine the default libpath from the value encoded in an
  7814. # empty executable.
  7815. if test "${lt_cv_aix_libpath+set}" = set; then
  7816. aix_libpath=$lt_cv_aix_libpath
  7817. else
  7818. if ${lt_cv_aix_libpath_+:} false; then :
  7819. $as_echo_n "(cached) " >&6
  7820. else
  7821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7822. /* end confdefs.h. */
  7823. int
  7824. main ()
  7825. {
  7826. ;
  7827. return 0;
  7828. }
  7829. _ACEOF
  7830. if ac_fn_c_try_link "$LINENO"; then :
  7831. lt_aix_libpath_sed='
  7832. /Import File Strings/,/^$/ {
  7833. /^0/ {
  7834. s/^0 *\([^ ]*\) *$/\1/
  7835. p
  7836. }
  7837. }'
  7838. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7839. # Check for a 64-bit object if we didn't find anything.
  7840. if test -z "$lt_cv_aix_libpath_"; then
  7841. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7842. fi
  7843. fi
  7844. rm -f core conftest.err conftest.$ac_objext \
  7845. conftest$ac_exeext conftest.$ac_ext
  7846. if test -z "$lt_cv_aix_libpath_"; then
  7847. lt_cv_aix_libpath_="/usr/lib:/lib"
  7848. fi
  7849. fi
  7850. aix_libpath=$lt_cv_aix_libpath_
  7851. fi
  7852. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7853. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7854. else
  7855. if test "$host_cpu" = ia64; then
  7856. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7857. allow_undefined_flag="-z nodefs"
  7858. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7859. else
  7860. # Determine the default libpath from the value encoded in an
  7861. # empty executable.
  7862. if test "${lt_cv_aix_libpath+set}" = set; then
  7863. aix_libpath=$lt_cv_aix_libpath
  7864. else
  7865. if ${lt_cv_aix_libpath_+:} false; then :
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7869. /* end confdefs.h. */
  7870. int
  7871. main ()
  7872. {
  7873. ;
  7874. return 0;
  7875. }
  7876. _ACEOF
  7877. if ac_fn_c_try_link "$LINENO"; then :
  7878. lt_aix_libpath_sed='
  7879. /Import File Strings/,/^$/ {
  7880. /^0/ {
  7881. s/^0 *\([^ ]*\) *$/\1/
  7882. p
  7883. }
  7884. }'
  7885. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7886. # Check for a 64-bit object if we didn't find anything.
  7887. if test -z "$lt_cv_aix_libpath_"; then
  7888. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7889. fi
  7890. fi
  7891. rm -f core conftest.err conftest.$ac_objext \
  7892. conftest$ac_exeext conftest.$ac_ext
  7893. if test -z "$lt_cv_aix_libpath_"; then
  7894. lt_cv_aix_libpath_="/usr/lib:/lib"
  7895. fi
  7896. fi
  7897. aix_libpath=$lt_cv_aix_libpath_
  7898. fi
  7899. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7900. # Warning - without using the other run time loading flags,
  7901. # -berok will link without error, but may produce a broken library.
  7902. no_undefined_flag=' ${wl}-bernotok'
  7903. allow_undefined_flag=' ${wl}-berok'
  7904. if test "$with_gnu_ld" = yes; then
  7905. # We only use this code for GNU lds that support --whole-archive.
  7906. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7907. else
  7908. # Exported symbols can be pulled into shared objects from archives
  7909. whole_archive_flag_spec='$convenience'
  7910. fi
  7911. archive_cmds_need_lc=yes
  7912. # This is similar to how AIX traditionally builds its shared libraries.
  7913. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7914. fi
  7915. fi
  7916. ;;
  7917. amigaos*)
  7918. case $host_cpu in
  7919. powerpc)
  7920. # see comment about AmigaOS4 .so support
  7921. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7922. archive_expsym_cmds=''
  7923. ;;
  7924. m68k)
  7925. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7926. hardcode_libdir_flag_spec='-L$libdir'
  7927. hardcode_minus_L=yes
  7928. ;;
  7929. esac
  7930. ;;
  7931. bsdi[45]*)
  7932. export_dynamic_flag_spec=-rdynamic
  7933. ;;
  7934. cygwin* | mingw* | pw32* | cegcc*)
  7935. # When not using gcc, we currently assume that we are using
  7936. # Microsoft Visual C++.
  7937. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7938. # no search path for DLLs.
  7939. case $cc_basename in
  7940. cl*)
  7941. # Native MSVC
  7942. hardcode_libdir_flag_spec=' '
  7943. allow_undefined_flag=unsupported
  7944. always_export_symbols=yes
  7945. file_list_spec='@'
  7946. # Tell ltmain to make .lib files, not .a files.
  7947. libext=lib
  7948. # Tell ltmain to make .dll files, not .so files.
  7949. shrext_cmds=".dll"
  7950. # FIXME: Setting linknames here is a bad hack.
  7951. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7952. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7953. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7954. else
  7955. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7956. fi~
  7957. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7958. linknames='
  7959. # The linker will not automatically build a static lib if we build a DLL.
  7960. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7961. enable_shared_with_static_runtimes=yes
  7962. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7963. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7964. # Don't use ranlib
  7965. old_postinstall_cmds='chmod 644 $oldlib'
  7966. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7967. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7968. case $lt_outputfile in
  7969. *.exe|*.EXE) ;;
  7970. *)
  7971. lt_outputfile="$lt_outputfile.exe"
  7972. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7973. ;;
  7974. esac~
  7975. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7976. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7977. $RM "$lt_outputfile.manifest";
  7978. fi'
  7979. ;;
  7980. *)
  7981. # Assume MSVC wrapper
  7982. hardcode_libdir_flag_spec=' '
  7983. allow_undefined_flag=unsupported
  7984. # Tell ltmain to make .lib files, not .a files.
  7985. libext=lib
  7986. # Tell ltmain to make .dll files, not .so files.
  7987. shrext_cmds=".dll"
  7988. # FIXME: Setting linknames here is a bad hack.
  7989. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7990. # The linker will automatically build a .lib file if we build a DLL.
  7991. old_archive_from_new_cmds='true'
  7992. # FIXME: Should let the user specify the lib program.
  7993. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7994. enable_shared_with_static_runtimes=yes
  7995. ;;
  7996. esac
  7997. ;;
  7998. darwin* | rhapsody*)
  7999. archive_cmds_need_lc=no
  8000. hardcode_direct=no
  8001. hardcode_automatic=yes
  8002. hardcode_shlibpath_var=unsupported
  8003. if test "$lt_cv_ld_force_load" = "yes"; then
  8004. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8005. else
  8006. whole_archive_flag_spec=''
  8007. fi
  8008. link_all_deplibs=yes
  8009. allow_undefined_flag="$_lt_dar_allow_undefined"
  8010. case $cc_basename in
  8011. ifort*) _lt_dar_can_shared=yes ;;
  8012. *) _lt_dar_can_shared=$GCC ;;
  8013. esac
  8014. if test "$_lt_dar_can_shared" = "yes"; then
  8015. output_verbose_link_cmd=func_echo_all
  8016. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8017. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8018. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8019. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8020. else
  8021. ld_shlibs=no
  8022. fi
  8023. ;;
  8024. dgux*)
  8025. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8026. hardcode_libdir_flag_spec='-L$libdir'
  8027. hardcode_shlibpath_var=no
  8028. ;;
  8029. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8030. # support. Future versions do this automatically, but an explicit c++rt0.o
  8031. # does not break anything, and helps significantly (at the cost of a little
  8032. # extra space).
  8033. freebsd2.2*)
  8034. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8035. hardcode_libdir_flag_spec='-R$libdir'
  8036. hardcode_direct=yes
  8037. hardcode_shlibpath_var=no
  8038. ;;
  8039. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8040. freebsd2.*)
  8041. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8042. hardcode_direct=yes
  8043. hardcode_minus_L=yes
  8044. hardcode_shlibpath_var=no
  8045. ;;
  8046. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8047. freebsd* | dragonfly*)
  8048. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8049. hardcode_libdir_flag_spec='-R$libdir'
  8050. hardcode_direct=yes
  8051. hardcode_shlibpath_var=no
  8052. ;;
  8053. hpux9*)
  8054. if test "$GCC" = yes; then
  8055. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8056. else
  8057. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8058. fi
  8059. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8060. hardcode_libdir_separator=:
  8061. hardcode_direct=yes
  8062. # hardcode_minus_L: Not really in the search PATH,
  8063. # but as the default location of the library.
  8064. hardcode_minus_L=yes
  8065. export_dynamic_flag_spec='${wl}-E'
  8066. ;;
  8067. hpux10*)
  8068. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8069. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8070. else
  8071. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8072. fi
  8073. if test "$with_gnu_ld" = no; then
  8074. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8075. hardcode_libdir_separator=:
  8076. hardcode_direct=yes
  8077. hardcode_direct_absolute=yes
  8078. export_dynamic_flag_spec='${wl}-E'
  8079. # hardcode_minus_L: Not really in the search PATH,
  8080. # but as the default location of the library.
  8081. hardcode_minus_L=yes
  8082. fi
  8083. ;;
  8084. hpux11*)
  8085. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8086. case $host_cpu in
  8087. hppa*64*)
  8088. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8089. ;;
  8090. ia64*)
  8091. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8092. ;;
  8093. *)
  8094. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8095. ;;
  8096. esac
  8097. else
  8098. case $host_cpu in
  8099. hppa*64*)
  8100. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8101. ;;
  8102. ia64*)
  8103. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8104. ;;
  8105. *)
  8106. # Older versions of the 11.00 compiler do not understand -b yet
  8107. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8109. $as_echo_n "checking if $CC understands -b... " >&6; }
  8110. if ${lt_cv_prog_compiler__b+:} false; then :
  8111. $as_echo_n "(cached) " >&6
  8112. else
  8113. lt_cv_prog_compiler__b=no
  8114. save_LDFLAGS="$LDFLAGS"
  8115. LDFLAGS="$LDFLAGS -b"
  8116. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8117. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8118. # The linker can only warn and ignore the option if not recognized
  8119. # So say no if there are warnings
  8120. if test -s conftest.err; then
  8121. # Append any errors to the config.log.
  8122. cat conftest.err 1>&5
  8123. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8124. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8125. if diff conftest.exp conftest.er2 >/dev/null; then
  8126. lt_cv_prog_compiler__b=yes
  8127. fi
  8128. else
  8129. lt_cv_prog_compiler__b=yes
  8130. fi
  8131. fi
  8132. $RM -r conftest*
  8133. LDFLAGS="$save_LDFLAGS"
  8134. fi
  8135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8136. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8137. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8138. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8139. else
  8140. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8141. fi
  8142. ;;
  8143. esac
  8144. fi
  8145. if test "$with_gnu_ld" = no; then
  8146. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8147. hardcode_libdir_separator=:
  8148. case $host_cpu in
  8149. hppa*64*|ia64*)
  8150. hardcode_direct=no
  8151. hardcode_shlibpath_var=no
  8152. ;;
  8153. *)
  8154. hardcode_direct=yes
  8155. hardcode_direct_absolute=yes
  8156. export_dynamic_flag_spec='${wl}-E'
  8157. # hardcode_minus_L: Not really in the search PATH,
  8158. # but as the default location of the library.
  8159. hardcode_minus_L=yes
  8160. ;;
  8161. esac
  8162. fi
  8163. ;;
  8164. irix5* | irix6* | nonstopux*)
  8165. if test "$GCC" = yes; then
  8166. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8167. # Try to use the -exported_symbol ld option, if it does not
  8168. # work, assume that -exports_file does not work either and
  8169. # implicitly export all symbols.
  8170. # This should be the same for all languages, so no per-tag cache variable.
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8172. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8173. if ${lt_cv_irix_exported_symbol+:} false; then :
  8174. $as_echo_n "(cached) " >&6
  8175. else
  8176. save_LDFLAGS="$LDFLAGS"
  8177. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8179. /* end confdefs.h. */
  8180. int foo (void) { return 0; }
  8181. _ACEOF
  8182. if ac_fn_c_try_link "$LINENO"; then :
  8183. lt_cv_irix_exported_symbol=yes
  8184. else
  8185. lt_cv_irix_exported_symbol=no
  8186. fi
  8187. rm -f core conftest.err conftest.$ac_objext \
  8188. conftest$ac_exeext conftest.$ac_ext
  8189. LDFLAGS="$save_LDFLAGS"
  8190. fi
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8192. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8193. if test "$lt_cv_irix_exported_symbol" = yes; then
  8194. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8195. fi
  8196. else
  8197. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8198. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8199. fi
  8200. archive_cmds_need_lc='no'
  8201. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8202. hardcode_libdir_separator=:
  8203. inherit_rpath=yes
  8204. link_all_deplibs=yes
  8205. ;;
  8206. netbsd*)
  8207. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8208. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8209. else
  8210. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8211. fi
  8212. hardcode_libdir_flag_spec='-R$libdir'
  8213. hardcode_direct=yes
  8214. hardcode_shlibpath_var=no
  8215. ;;
  8216. newsos6)
  8217. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8218. hardcode_direct=yes
  8219. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8220. hardcode_libdir_separator=:
  8221. hardcode_shlibpath_var=no
  8222. ;;
  8223. *nto* | *qnx*)
  8224. ;;
  8225. openbsd*)
  8226. if test -f /usr/libexec/ld.so; then
  8227. hardcode_direct=yes
  8228. hardcode_shlibpath_var=no
  8229. hardcode_direct_absolute=yes
  8230. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8231. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8232. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8233. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8234. export_dynamic_flag_spec='${wl}-E'
  8235. else
  8236. case $host_os in
  8237. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8238. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8239. hardcode_libdir_flag_spec='-R$libdir'
  8240. ;;
  8241. *)
  8242. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8243. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8244. ;;
  8245. esac
  8246. fi
  8247. else
  8248. ld_shlibs=no
  8249. fi
  8250. ;;
  8251. os2*)
  8252. hardcode_libdir_flag_spec='-L$libdir'
  8253. hardcode_minus_L=yes
  8254. allow_undefined_flag=unsupported
  8255. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8256. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8257. ;;
  8258. osf3*)
  8259. if test "$GCC" = yes; then
  8260. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8261. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8262. else
  8263. allow_undefined_flag=' -expect_unresolved \*'
  8264. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8265. fi
  8266. archive_cmds_need_lc='no'
  8267. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8268. hardcode_libdir_separator=:
  8269. ;;
  8270. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8271. if test "$GCC" = yes; then
  8272. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8273. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8274. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8275. else
  8276. allow_undefined_flag=' -expect_unresolved \*'
  8277. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8278. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8279. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8280. # Both c and cxx compiler support -rpath directly
  8281. hardcode_libdir_flag_spec='-rpath $libdir'
  8282. fi
  8283. archive_cmds_need_lc='no'
  8284. hardcode_libdir_separator=:
  8285. ;;
  8286. solaris*)
  8287. no_undefined_flag=' -z defs'
  8288. if test "$GCC" = yes; then
  8289. wlarc='${wl}'
  8290. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8291. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8292. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8293. else
  8294. case `$CC -V 2>&1` in
  8295. *"Compilers 5.0"*)
  8296. wlarc=''
  8297. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8298. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8299. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8300. ;;
  8301. *)
  8302. wlarc='${wl}'
  8303. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8304. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8305. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8306. ;;
  8307. esac
  8308. fi
  8309. hardcode_libdir_flag_spec='-R$libdir'
  8310. hardcode_shlibpath_var=no
  8311. case $host_os in
  8312. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8313. *)
  8314. # The compiler driver will combine and reorder linker options,
  8315. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8316. # but is careful enough not to reorder.
  8317. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8318. if test "$GCC" = yes; then
  8319. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8320. else
  8321. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8322. fi
  8323. ;;
  8324. esac
  8325. link_all_deplibs=yes
  8326. ;;
  8327. sunos4*)
  8328. if test "x$host_vendor" = xsequent; then
  8329. # Use $CC to link under sequent, because it throws in some extra .o
  8330. # files that make .init and .fini sections work.
  8331. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8332. else
  8333. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8334. fi
  8335. hardcode_libdir_flag_spec='-L$libdir'
  8336. hardcode_direct=yes
  8337. hardcode_minus_L=yes
  8338. hardcode_shlibpath_var=no
  8339. ;;
  8340. sysv4)
  8341. case $host_vendor in
  8342. sni)
  8343. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8344. hardcode_direct=yes # is this really true???
  8345. ;;
  8346. siemens)
  8347. ## LD is ld it makes a PLAMLIB
  8348. ## CC just makes a GrossModule.
  8349. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8350. reload_cmds='$CC -r -o $output$reload_objs'
  8351. hardcode_direct=no
  8352. ;;
  8353. motorola)
  8354. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8355. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8356. ;;
  8357. esac
  8358. runpath_var='LD_RUN_PATH'
  8359. hardcode_shlibpath_var=no
  8360. ;;
  8361. sysv4.3*)
  8362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8363. hardcode_shlibpath_var=no
  8364. export_dynamic_flag_spec='-Bexport'
  8365. ;;
  8366. sysv4*MP*)
  8367. if test -d /usr/nec; then
  8368. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8369. hardcode_shlibpath_var=no
  8370. runpath_var=LD_RUN_PATH
  8371. hardcode_runpath_var=yes
  8372. ld_shlibs=yes
  8373. fi
  8374. ;;
  8375. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8376. no_undefined_flag='${wl}-z,text'
  8377. archive_cmds_need_lc=no
  8378. hardcode_shlibpath_var=no
  8379. runpath_var='LD_RUN_PATH'
  8380. if test "$GCC" = yes; then
  8381. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8382. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8383. else
  8384. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8385. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8386. fi
  8387. ;;
  8388. sysv5* | sco3.2v5* | sco5v6*)
  8389. # Note: We can NOT use -z defs as we might desire, because we do not
  8390. # link with -lc, and that would cause any symbols used from libc to
  8391. # always be unresolved, which means just about no library would
  8392. # ever link correctly. If we're not using GNU ld we use -z text
  8393. # though, which does catch some bad symbols but isn't as heavy-handed
  8394. # as -z defs.
  8395. no_undefined_flag='${wl}-z,text'
  8396. allow_undefined_flag='${wl}-z,nodefs'
  8397. archive_cmds_need_lc=no
  8398. hardcode_shlibpath_var=no
  8399. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8400. hardcode_libdir_separator=':'
  8401. link_all_deplibs=yes
  8402. export_dynamic_flag_spec='${wl}-Bexport'
  8403. runpath_var='LD_RUN_PATH'
  8404. if test "$GCC" = yes; then
  8405. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8406. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8407. else
  8408. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8409. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8410. fi
  8411. ;;
  8412. uts4*)
  8413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8414. hardcode_libdir_flag_spec='-L$libdir'
  8415. hardcode_shlibpath_var=no
  8416. ;;
  8417. *)
  8418. ld_shlibs=no
  8419. ;;
  8420. esac
  8421. if test x$host_vendor = xsni; then
  8422. case $host in
  8423. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8424. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8425. ;;
  8426. esac
  8427. fi
  8428. fi
  8429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8430. $as_echo "$ld_shlibs" >&6; }
  8431. test "$ld_shlibs" = no && can_build_shared=no
  8432. with_gnu_ld=$with_gnu_ld
  8433. #
  8434. # Do we need to explicitly link libc?
  8435. #
  8436. case "x$archive_cmds_need_lc" in
  8437. x|xyes)
  8438. # Assume -lc should be added
  8439. archive_cmds_need_lc=yes
  8440. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8441. case $archive_cmds in
  8442. *'~'*)
  8443. # FIXME: we may have to deal with multi-command sequences.
  8444. ;;
  8445. '$CC '*)
  8446. # Test whether the compiler implicitly links with -lc since on some
  8447. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8448. # to ld, don't add -lc before -lgcc.
  8449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8450. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8451. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8452. $as_echo_n "(cached) " >&6
  8453. else
  8454. $RM conftest*
  8455. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8457. (eval $ac_compile) 2>&5
  8458. ac_status=$?
  8459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8460. test $ac_status = 0; } 2>conftest.err; then
  8461. soname=conftest
  8462. lib=conftest
  8463. libobjs=conftest.$ac_objext
  8464. deplibs=
  8465. wl=$lt_prog_compiler_wl
  8466. pic_flag=$lt_prog_compiler_pic
  8467. compiler_flags=-v
  8468. linker_flags=-v
  8469. verstring=
  8470. output_objdir=.
  8471. libname=conftest
  8472. lt_save_allow_undefined_flag=$allow_undefined_flag
  8473. allow_undefined_flag=
  8474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8475. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8476. ac_status=$?
  8477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8478. test $ac_status = 0; }
  8479. then
  8480. lt_cv_archive_cmds_need_lc=no
  8481. else
  8482. lt_cv_archive_cmds_need_lc=yes
  8483. fi
  8484. allow_undefined_flag=$lt_save_allow_undefined_flag
  8485. else
  8486. cat conftest.err 1>&5
  8487. fi
  8488. $RM conftest*
  8489. fi
  8490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8491. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8492. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8493. ;;
  8494. esac
  8495. fi
  8496. ;;
  8497. esac
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8499. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8500. if test "$GCC" = yes; then
  8501. case $host_os in
  8502. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8503. *) lt_awk_arg="/^libraries:/" ;;
  8504. esac
  8505. case $host_os in
  8506. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8507. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8508. esac
  8509. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8510. case $lt_search_path_spec in
  8511. *\;*)
  8512. # if the path contains ";" then we assume it to be the separator
  8513. # otherwise default to the standard path separator (i.e. ":") - it is
  8514. # assumed that no part of a normal pathname contains ";" but that should
  8515. # okay in the real world where ";" in dirpaths is itself problematic.
  8516. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8517. ;;
  8518. *)
  8519. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8520. ;;
  8521. esac
  8522. # Ok, now we have the path, separated by spaces, we can step through it
  8523. # and add multilib dir if necessary.
  8524. lt_tmp_lt_search_path_spec=
  8525. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8526. for lt_sys_path in $lt_search_path_spec; do
  8527. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8528. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8529. else
  8530. test -d "$lt_sys_path" && \
  8531. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8532. fi
  8533. done
  8534. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8535. BEGIN {RS=" "; FS="/|\n";} {
  8536. lt_foo="";
  8537. lt_count=0;
  8538. for (lt_i = NF; lt_i > 0; lt_i--) {
  8539. if ($lt_i != "" && $lt_i != ".") {
  8540. if ($lt_i == "..") {
  8541. lt_count++;
  8542. } else {
  8543. if (lt_count == 0) {
  8544. lt_foo="/" $lt_i lt_foo;
  8545. } else {
  8546. lt_count--;
  8547. }
  8548. }
  8549. }
  8550. }
  8551. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8552. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8553. }'`
  8554. # AWK program above erroneously prepends '/' to C:/dos/paths
  8555. # for these hosts.
  8556. case $host_os in
  8557. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8558. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8559. esac
  8560. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8561. else
  8562. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8563. fi
  8564. library_names_spec=
  8565. libname_spec='lib$name'
  8566. soname_spec=
  8567. shrext_cmds=".so"
  8568. postinstall_cmds=
  8569. postuninstall_cmds=
  8570. finish_cmds=
  8571. finish_eval=
  8572. shlibpath_var=
  8573. shlibpath_overrides_runpath=unknown
  8574. version_type=none
  8575. dynamic_linker="$host_os ld.so"
  8576. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8577. need_lib_prefix=unknown
  8578. hardcode_into_libs=no
  8579. # when you set need_version to no, make sure it does not cause -set_version
  8580. # flags to be left without arguments
  8581. need_version=unknown
  8582. case $host_os in
  8583. aix3*)
  8584. version_type=linux # correct to gnu/linux during the next big refactor
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8586. shlibpath_var=LIBPATH
  8587. # AIX 3 has no versioning support, so we append a major version to the name.
  8588. soname_spec='${libname}${release}${shared_ext}$major'
  8589. ;;
  8590. aix[4-9]*)
  8591. version_type=linux # correct to gnu/linux during the next big refactor
  8592. need_lib_prefix=no
  8593. need_version=no
  8594. hardcode_into_libs=yes
  8595. if test "$host_cpu" = ia64; then
  8596. # AIX 5 supports IA64
  8597. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8598. shlibpath_var=LD_LIBRARY_PATH
  8599. else
  8600. # With GCC up to 2.95.x, collect2 would create an import file
  8601. # for dependence libraries. The import file would start with
  8602. # the line `#! .'. This would cause the generated library to
  8603. # depend on `.', always an invalid library. This was fixed in
  8604. # development snapshots of GCC prior to 3.0.
  8605. case $host_os in
  8606. aix4 | aix4.[01] | aix4.[01].*)
  8607. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8608. echo ' yes '
  8609. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8610. :
  8611. else
  8612. can_build_shared=no
  8613. fi
  8614. ;;
  8615. esac
  8616. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8617. # soname into executable. Probably we can add versioning support to
  8618. # collect2, so additional links can be useful in future.
  8619. if test "$aix_use_runtimelinking" = yes; then
  8620. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8621. # instead of lib<name>.a to let people know that these are not
  8622. # typical AIX shared libraries.
  8623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8624. else
  8625. # We preserve .a as extension for shared libraries through AIX4.2
  8626. # and later when we are not doing run time linking.
  8627. library_names_spec='${libname}${release}.a $libname.a'
  8628. soname_spec='${libname}${release}${shared_ext}$major'
  8629. fi
  8630. shlibpath_var=LIBPATH
  8631. fi
  8632. ;;
  8633. amigaos*)
  8634. case $host_cpu in
  8635. powerpc)
  8636. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8637. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8639. ;;
  8640. m68k)
  8641. library_names_spec='$libname.ixlibrary $libname.a'
  8642. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8643. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8644. ;;
  8645. esac
  8646. ;;
  8647. beos*)
  8648. library_names_spec='${libname}${shared_ext}'
  8649. dynamic_linker="$host_os ld.so"
  8650. shlibpath_var=LIBRARY_PATH
  8651. ;;
  8652. bsdi[45]*)
  8653. version_type=linux # correct to gnu/linux during the next big refactor
  8654. need_version=no
  8655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8656. soname_spec='${libname}${release}${shared_ext}$major'
  8657. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8658. shlibpath_var=LD_LIBRARY_PATH
  8659. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8660. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8661. # the default ld.so.conf also contains /usr/contrib/lib and
  8662. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8663. # libtool to hard-code these into programs
  8664. ;;
  8665. cygwin* | mingw* | pw32* | cegcc*)
  8666. version_type=windows
  8667. shrext_cmds=".dll"
  8668. need_version=no
  8669. need_lib_prefix=no
  8670. case $GCC,$cc_basename in
  8671. yes,*)
  8672. # gcc
  8673. library_names_spec='$libname.dll.a'
  8674. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8675. postinstall_cmds='base_file=`basename \${file}`~
  8676. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8677. dldir=$destdir/`dirname \$dlpath`~
  8678. test -d \$dldir || mkdir -p \$dldir~
  8679. $install_prog $dir/$dlname \$dldir/$dlname~
  8680. chmod a+x \$dldir/$dlname~
  8681. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8682. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8683. fi'
  8684. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8685. dlpath=$dir/\$dldll~
  8686. $RM \$dlpath'
  8687. shlibpath_overrides_runpath=yes
  8688. case $host_os in
  8689. cygwin*)
  8690. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8691. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8692. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8693. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8694. ;;
  8695. mingw* | cegcc*)
  8696. # MinGW DLLs use traditional 'lib' prefix
  8697. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8698. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8699. ;;
  8700. pw32*)
  8701. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8702. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8703. ;;
  8704. esac
  8705. dynamic_linker='Win32 ld.exe'
  8706. ;;
  8707. *,cl*)
  8708. # Native MSVC
  8709. libname_spec='$name'
  8710. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8711. library_names_spec='${libname}.dll.lib'
  8712. case $build_os in
  8713. mingw*)
  8714. sys_lib_search_path_spec=
  8715. lt_save_ifs=$IFS
  8716. IFS=';'
  8717. for lt_path in $LIB
  8718. do
  8719. IFS=$lt_save_ifs
  8720. # Let DOS variable expansion print the short 8.3 style file name.
  8721. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8722. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8723. done
  8724. IFS=$lt_save_ifs
  8725. # Convert to MSYS style.
  8726. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8727. ;;
  8728. cygwin*)
  8729. # Convert to unix form, then to dos form, then back to unix form
  8730. # but this time dos style (no spaces!) so that the unix form looks
  8731. # like /cygdrive/c/PROGRA~1:/cygdr...
  8732. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8733. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8734. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8735. ;;
  8736. *)
  8737. sys_lib_search_path_spec="$LIB"
  8738. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8739. # It is most probably a Windows format PATH.
  8740. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8741. else
  8742. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8743. fi
  8744. # FIXME: find the short name or the path components, as spaces are
  8745. # common. (e.g. "Program Files" -> "PROGRA~1")
  8746. ;;
  8747. esac
  8748. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8749. postinstall_cmds='base_file=`basename \${file}`~
  8750. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8751. dldir=$destdir/`dirname \$dlpath`~
  8752. test -d \$dldir || mkdir -p \$dldir~
  8753. $install_prog $dir/$dlname \$dldir/$dlname'
  8754. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8755. dlpath=$dir/\$dldll~
  8756. $RM \$dlpath'
  8757. shlibpath_overrides_runpath=yes
  8758. dynamic_linker='Win32 link.exe'
  8759. ;;
  8760. *)
  8761. # Assume MSVC wrapper
  8762. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8763. dynamic_linker='Win32 ld.exe'
  8764. ;;
  8765. esac
  8766. # FIXME: first we should search . and the directory the executable is in
  8767. shlibpath_var=PATH
  8768. ;;
  8769. darwin* | rhapsody*)
  8770. dynamic_linker="$host_os dyld"
  8771. version_type=darwin
  8772. need_lib_prefix=no
  8773. need_version=no
  8774. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8775. soname_spec='${libname}${release}${major}$shared_ext'
  8776. shlibpath_overrides_runpath=yes
  8777. shlibpath_var=DYLD_LIBRARY_PATH
  8778. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8779. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8780. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8781. ;;
  8782. dgux*)
  8783. version_type=linux # correct to gnu/linux during the next big refactor
  8784. need_lib_prefix=no
  8785. need_version=no
  8786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8787. soname_spec='${libname}${release}${shared_ext}$major'
  8788. shlibpath_var=LD_LIBRARY_PATH
  8789. ;;
  8790. freebsd* | dragonfly*)
  8791. # DragonFly does not have aout. When/if they implement a new
  8792. # versioning mechanism, adjust this.
  8793. if test -x /usr/bin/objformat; then
  8794. objformat=`/usr/bin/objformat`
  8795. else
  8796. case $host_os in
  8797. freebsd[23].*) objformat=aout ;;
  8798. *) objformat=elf ;;
  8799. esac
  8800. fi
  8801. version_type=freebsd-$objformat
  8802. case $version_type in
  8803. freebsd-elf*)
  8804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8805. need_version=no
  8806. need_lib_prefix=no
  8807. ;;
  8808. freebsd-*)
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8810. need_version=yes
  8811. ;;
  8812. esac
  8813. shlibpath_var=LD_LIBRARY_PATH
  8814. case $host_os in
  8815. freebsd2.*)
  8816. shlibpath_overrides_runpath=yes
  8817. ;;
  8818. freebsd3.[01]* | freebsdelf3.[01]*)
  8819. shlibpath_overrides_runpath=yes
  8820. hardcode_into_libs=yes
  8821. ;;
  8822. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8823. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8824. shlibpath_overrides_runpath=no
  8825. hardcode_into_libs=yes
  8826. ;;
  8827. *) # from 4.6 on, and DragonFly
  8828. shlibpath_overrides_runpath=yes
  8829. hardcode_into_libs=yes
  8830. ;;
  8831. esac
  8832. ;;
  8833. gnu*)
  8834. version_type=linux # correct to gnu/linux during the next big refactor
  8835. need_lib_prefix=no
  8836. need_version=no
  8837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8838. soname_spec='${libname}${release}${shared_ext}$major'
  8839. shlibpath_var=LD_LIBRARY_PATH
  8840. shlibpath_overrides_runpath=no
  8841. hardcode_into_libs=yes
  8842. ;;
  8843. haiku*)
  8844. version_type=linux # correct to gnu/linux during the next big refactor
  8845. need_lib_prefix=no
  8846. need_version=no
  8847. dynamic_linker="$host_os runtime_loader"
  8848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8849. soname_spec='${libname}${release}${shared_ext}$major'
  8850. shlibpath_var=LIBRARY_PATH
  8851. shlibpath_overrides_runpath=yes
  8852. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8853. hardcode_into_libs=yes
  8854. ;;
  8855. hpux9* | hpux10* | hpux11*)
  8856. # Give a soname corresponding to the major version so that dld.sl refuses to
  8857. # link against other versions.
  8858. version_type=sunos
  8859. need_lib_prefix=no
  8860. need_version=no
  8861. case $host_cpu in
  8862. ia64*)
  8863. shrext_cmds='.so'
  8864. hardcode_into_libs=yes
  8865. dynamic_linker="$host_os dld.so"
  8866. shlibpath_var=LD_LIBRARY_PATH
  8867. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8869. soname_spec='${libname}${release}${shared_ext}$major'
  8870. if test "X$HPUX_IA64_MODE" = X32; then
  8871. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8872. else
  8873. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8874. fi
  8875. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8876. ;;
  8877. hppa*64*)
  8878. shrext_cmds='.sl'
  8879. hardcode_into_libs=yes
  8880. dynamic_linker="$host_os dld.sl"
  8881. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8882. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8884. soname_spec='${libname}${release}${shared_ext}$major'
  8885. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8886. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8887. ;;
  8888. *)
  8889. shrext_cmds='.sl'
  8890. dynamic_linker="$host_os dld.sl"
  8891. shlibpath_var=SHLIB_PATH
  8892. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8894. soname_spec='${libname}${release}${shared_ext}$major'
  8895. ;;
  8896. esac
  8897. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8898. postinstall_cmds='chmod 555 $lib'
  8899. # or fails outright, so override atomically:
  8900. install_override_mode=555
  8901. ;;
  8902. interix[3-9]*)
  8903. version_type=linux # correct to gnu/linux during the next big refactor
  8904. need_lib_prefix=no
  8905. need_version=no
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8909. shlibpath_var=LD_LIBRARY_PATH
  8910. shlibpath_overrides_runpath=no
  8911. hardcode_into_libs=yes
  8912. ;;
  8913. irix5* | irix6* | nonstopux*)
  8914. case $host_os in
  8915. nonstopux*) version_type=nonstopux ;;
  8916. *)
  8917. if test "$lt_cv_prog_gnu_ld" = yes; then
  8918. version_type=linux # correct to gnu/linux during the next big refactor
  8919. else
  8920. version_type=irix
  8921. fi ;;
  8922. esac
  8923. need_lib_prefix=no
  8924. need_version=no
  8925. soname_spec='${libname}${release}${shared_ext}$major'
  8926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8927. case $host_os in
  8928. irix5* | nonstopux*)
  8929. libsuff= shlibsuff=
  8930. ;;
  8931. *)
  8932. case $LD in # libtool.m4 will add one of these switches to LD
  8933. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8934. libsuff= shlibsuff= libmagic=32-bit;;
  8935. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8936. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8937. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8938. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8939. *) libsuff= shlibsuff= libmagic=never-match;;
  8940. esac
  8941. ;;
  8942. esac
  8943. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8944. shlibpath_overrides_runpath=no
  8945. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8946. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8947. hardcode_into_libs=yes
  8948. ;;
  8949. # No shared lib support for Linux oldld, aout, or coff.
  8950. linux*oldld* | linux*aout* | linux*coff*)
  8951. dynamic_linker=no
  8952. ;;
  8953. # This must be glibc/ELF.
  8954. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8955. version_type=linux # correct to gnu/linux during the next big refactor
  8956. need_lib_prefix=no
  8957. need_version=no
  8958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8959. soname_spec='${libname}${release}${shared_ext}$major'
  8960. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. shlibpath_overrides_runpath=no
  8963. # Some binutils ld are patched to set DT_RUNPATH
  8964. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8965. $as_echo_n "(cached) " >&6
  8966. else
  8967. lt_cv_shlibpath_overrides_runpath=no
  8968. save_LDFLAGS=$LDFLAGS
  8969. save_libdir=$libdir
  8970. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8971. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8973. /* end confdefs.h. */
  8974. int
  8975. main ()
  8976. {
  8977. ;
  8978. return 0;
  8979. }
  8980. _ACEOF
  8981. if ac_fn_c_try_link "$LINENO"; then :
  8982. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8983. lt_cv_shlibpath_overrides_runpath=yes
  8984. fi
  8985. fi
  8986. rm -f core conftest.err conftest.$ac_objext \
  8987. conftest$ac_exeext conftest.$ac_ext
  8988. LDFLAGS=$save_LDFLAGS
  8989. libdir=$save_libdir
  8990. fi
  8991. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8992. # This implies no fast_install, which is unacceptable.
  8993. # Some rework will be needed to allow for fast_install
  8994. # before this can be enabled.
  8995. hardcode_into_libs=yes
  8996. # Append ld.so.conf contents to the search path
  8997. if test -f /etc/ld.so.conf; then
  8998. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8999. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9000. fi
  9001. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9002. # powerpc, because MkLinux only supported shared libraries with the
  9003. # GNU dynamic linker. Since this was broken with cross compilers,
  9004. # most powerpc-linux boxes support dynamic linking these days and
  9005. # people can always --disable-shared, the test was removed, and we
  9006. # assume the GNU/Linux dynamic linker is in use.
  9007. dynamic_linker='GNU/Linux ld.so'
  9008. ;;
  9009. netbsd*)
  9010. version_type=sunos
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9015. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9016. dynamic_linker='NetBSD (a.out) ld.so'
  9017. else
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. dynamic_linker='NetBSD ld.elf_so'
  9021. fi
  9022. shlibpath_var=LD_LIBRARY_PATH
  9023. shlibpath_overrides_runpath=yes
  9024. hardcode_into_libs=yes
  9025. ;;
  9026. newsos6)
  9027. version_type=linux # correct to gnu/linux during the next big refactor
  9028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9029. shlibpath_var=LD_LIBRARY_PATH
  9030. shlibpath_overrides_runpath=yes
  9031. ;;
  9032. *nto* | *qnx*)
  9033. version_type=qnx
  9034. need_lib_prefix=no
  9035. need_version=no
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9037. soname_spec='${libname}${release}${shared_ext}$major'
  9038. shlibpath_var=LD_LIBRARY_PATH
  9039. shlibpath_overrides_runpath=no
  9040. hardcode_into_libs=yes
  9041. dynamic_linker='ldqnx.so'
  9042. ;;
  9043. openbsd*)
  9044. version_type=sunos
  9045. sys_lib_dlsearch_path_spec="/usr/lib"
  9046. need_lib_prefix=no
  9047. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9048. case $host_os in
  9049. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9050. *) need_version=no ;;
  9051. esac
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9054. shlibpath_var=LD_LIBRARY_PATH
  9055. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9056. case $host_os in
  9057. openbsd2.[89] | openbsd2.[89].*)
  9058. shlibpath_overrides_runpath=no
  9059. ;;
  9060. *)
  9061. shlibpath_overrides_runpath=yes
  9062. ;;
  9063. esac
  9064. else
  9065. shlibpath_overrides_runpath=yes
  9066. fi
  9067. ;;
  9068. os2*)
  9069. libname_spec='$name'
  9070. shrext_cmds=".dll"
  9071. need_lib_prefix=no
  9072. library_names_spec='$libname${shared_ext} $libname.a'
  9073. dynamic_linker='OS/2 ld.exe'
  9074. shlibpath_var=LIBPATH
  9075. ;;
  9076. osf3* | osf4* | osf5*)
  9077. version_type=osf
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. soname_spec='${libname}${release}${shared_ext}$major'
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9084. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9085. ;;
  9086. rdos*)
  9087. dynamic_linker=no
  9088. ;;
  9089. solaris*)
  9090. version_type=linux # correct to gnu/linux during the next big refactor
  9091. need_lib_prefix=no
  9092. need_version=no
  9093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9094. soname_spec='${libname}${release}${shared_ext}$major'
  9095. shlibpath_var=LD_LIBRARY_PATH
  9096. shlibpath_overrides_runpath=yes
  9097. hardcode_into_libs=yes
  9098. # ldd complains unless libraries are executable
  9099. postinstall_cmds='chmod +x $lib'
  9100. ;;
  9101. sunos4*)
  9102. version_type=sunos
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9104. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. shlibpath_overrides_runpath=yes
  9107. if test "$with_gnu_ld" = yes; then
  9108. need_lib_prefix=no
  9109. fi
  9110. need_version=yes
  9111. ;;
  9112. sysv4 | sysv4.3*)
  9113. version_type=linux # correct to gnu/linux during the next big refactor
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9115. soname_spec='${libname}${release}${shared_ext}$major'
  9116. shlibpath_var=LD_LIBRARY_PATH
  9117. case $host_vendor in
  9118. sni)
  9119. shlibpath_overrides_runpath=no
  9120. need_lib_prefix=no
  9121. runpath_var=LD_RUN_PATH
  9122. ;;
  9123. siemens)
  9124. need_lib_prefix=no
  9125. ;;
  9126. motorola)
  9127. need_lib_prefix=no
  9128. need_version=no
  9129. shlibpath_overrides_runpath=no
  9130. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9131. ;;
  9132. esac
  9133. ;;
  9134. sysv4*MP*)
  9135. if test -d /usr/nec ;then
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9138. soname_spec='$libname${shared_ext}.$major'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. fi
  9141. ;;
  9142. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9143. version_type=freebsd-elf
  9144. need_lib_prefix=no
  9145. need_version=no
  9146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9147. soname_spec='${libname}${release}${shared_ext}$major'
  9148. shlibpath_var=LD_LIBRARY_PATH
  9149. shlibpath_overrides_runpath=yes
  9150. hardcode_into_libs=yes
  9151. if test "$with_gnu_ld" = yes; then
  9152. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9153. else
  9154. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9155. case $host_os in
  9156. sco3.2v5*)
  9157. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9158. ;;
  9159. esac
  9160. fi
  9161. sys_lib_dlsearch_path_spec='/usr/lib'
  9162. ;;
  9163. tpf*)
  9164. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9165. version_type=linux # correct to gnu/linux during the next big refactor
  9166. need_lib_prefix=no
  9167. need_version=no
  9168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9169. shlibpath_var=LD_LIBRARY_PATH
  9170. shlibpath_overrides_runpath=no
  9171. hardcode_into_libs=yes
  9172. ;;
  9173. uts4*)
  9174. version_type=linux # correct to gnu/linux during the next big refactor
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9176. soname_spec='${libname}${release}${shared_ext}$major'
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. ;;
  9179. *)
  9180. dynamic_linker=no
  9181. ;;
  9182. esac
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9184. $as_echo "$dynamic_linker" >&6; }
  9185. test "$dynamic_linker" = no && can_build_shared=no
  9186. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9187. if test "$GCC" = yes; then
  9188. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9189. fi
  9190. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9191. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9192. fi
  9193. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9194. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9195. fi
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9197. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9198. hardcode_action=
  9199. if test -n "$hardcode_libdir_flag_spec" ||
  9200. test -n "$runpath_var" ||
  9201. test "X$hardcode_automatic" = "Xyes" ; then
  9202. # We can hardcode non-existent directories.
  9203. if test "$hardcode_direct" != no &&
  9204. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9205. # have to relink, otherwise we might link with an installed library
  9206. # when we should be linking with a yet-to-be-installed one
  9207. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9208. test "$hardcode_minus_L" != no; then
  9209. # Linking always hardcodes the temporary library directory.
  9210. hardcode_action=relink
  9211. else
  9212. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9213. hardcode_action=immediate
  9214. fi
  9215. else
  9216. # We cannot hardcode anything, or else we can only hardcode existing
  9217. # directories.
  9218. hardcode_action=unsupported
  9219. fi
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9221. $as_echo "$hardcode_action" >&6; }
  9222. if test "$hardcode_action" = relink ||
  9223. test "$inherit_rpath" = yes; then
  9224. # Fast installation is not supported
  9225. enable_fast_install=no
  9226. elif test "$shlibpath_overrides_runpath" = yes ||
  9227. test "$enable_shared" = no; then
  9228. # Fast installation is not necessary
  9229. enable_fast_install=needless
  9230. fi
  9231. if test "x$enable_dlopen" != xyes; then
  9232. enable_dlopen=unknown
  9233. enable_dlopen_self=unknown
  9234. enable_dlopen_self_static=unknown
  9235. else
  9236. lt_cv_dlopen=no
  9237. lt_cv_dlopen_libs=
  9238. case $host_os in
  9239. beos*)
  9240. lt_cv_dlopen="load_add_on"
  9241. lt_cv_dlopen_libs=
  9242. lt_cv_dlopen_self=yes
  9243. ;;
  9244. mingw* | pw32* | cegcc*)
  9245. lt_cv_dlopen="LoadLibrary"
  9246. lt_cv_dlopen_libs=
  9247. ;;
  9248. cygwin*)
  9249. lt_cv_dlopen="dlopen"
  9250. lt_cv_dlopen_libs=
  9251. ;;
  9252. darwin*)
  9253. # if libdl is installed we need to link against it
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9255. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9256. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9257. $as_echo_n "(cached) " >&6
  9258. else
  9259. ac_check_lib_save_LIBS=$LIBS
  9260. LIBS="-ldl $LIBS"
  9261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9262. /* end confdefs.h. */
  9263. /* Override any GCC internal prototype to avoid an error.
  9264. Use char because int might match the return type of a GCC
  9265. builtin and then its argument prototype would still apply. */
  9266. #ifdef __cplusplus
  9267. extern "C"
  9268. #endif
  9269. char dlopen ();
  9270. int
  9271. main ()
  9272. {
  9273. return dlopen ();
  9274. ;
  9275. return 0;
  9276. }
  9277. _ACEOF
  9278. if ac_fn_c_try_link "$LINENO"; then :
  9279. ac_cv_lib_dl_dlopen=yes
  9280. else
  9281. ac_cv_lib_dl_dlopen=no
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext \
  9284. conftest$ac_exeext conftest.$ac_ext
  9285. LIBS=$ac_check_lib_save_LIBS
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9288. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9289. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9290. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9291. else
  9292. lt_cv_dlopen="dyld"
  9293. lt_cv_dlopen_libs=
  9294. lt_cv_dlopen_self=yes
  9295. fi
  9296. ;;
  9297. *)
  9298. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9299. if test "x$ac_cv_func_shl_load" = xyes; then :
  9300. lt_cv_dlopen="shl_load"
  9301. else
  9302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9303. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9304. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9305. $as_echo_n "(cached) " >&6
  9306. else
  9307. ac_check_lib_save_LIBS=$LIBS
  9308. LIBS="-ldld $LIBS"
  9309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9310. /* end confdefs.h. */
  9311. /* Override any GCC internal prototype to avoid an error.
  9312. Use char because int might match the return type of a GCC
  9313. builtin and then its argument prototype would still apply. */
  9314. #ifdef __cplusplus
  9315. extern "C"
  9316. #endif
  9317. char shl_load ();
  9318. int
  9319. main ()
  9320. {
  9321. return shl_load ();
  9322. ;
  9323. return 0;
  9324. }
  9325. _ACEOF
  9326. if ac_fn_c_try_link "$LINENO"; then :
  9327. ac_cv_lib_dld_shl_load=yes
  9328. else
  9329. ac_cv_lib_dld_shl_load=no
  9330. fi
  9331. rm -f core conftest.err conftest.$ac_objext \
  9332. conftest$ac_exeext conftest.$ac_ext
  9333. LIBS=$ac_check_lib_save_LIBS
  9334. fi
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9336. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9337. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9338. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9339. else
  9340. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9341. if test "x$ac_cv_func_dlopen" = xyes; then :
  9342. lt_cv_dlopen="dlopen"
  9343. else
  9344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9345. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9346. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9347. $as_echo_n "(cached) " >&6
  9348. else
  9349. ac_check_lib_save_LIBS=$LIBS
  9350. LIBS="-ldl $LIBS"
  9351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9352. /* end confdefs.h. */
  9353. /* Override any GCC internal prototype to avoid an error.
  9354. Use char because int might match the return type of a GCC
  9355. builtin and then its argument prototype would still apply. */
  9356. #ifdef __cplusplus
  9357. extern "C"
  9358. #endif
  9359. char dlopen ();
  9360. int
  9361. main ()
  9362. {
  9363. return dlopen ();
  9364. ;
  9365. return 0;
  9366. }
  9367. _ACEOF
  9368. if ac_fn_c_try_link "$LINENO"; then :
  9369. ac_cv_lib_dl_dlopen=yes
  9370. else
  9371. ac_cv_lib_dl_dlopen=no
  9372. fi
  9373. rm -f core conftest.err conftest.$ac_objext \
  9374. conftest$ac_exeext conftest.$ac_ext
  9375. LIBS=$ac_check_lib_save_LIBS
  9376. fi
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9378. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9379. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9380. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9381. else
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9383. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9384. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9385. $as_echo_n "(cached) " >&6
  9386. else
  9387. ac_check_lib_save_LIBS=$LIBS
  9388. LIBS="-lsvld $LIBS"
  9389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9390. /* end confdefs.h. */
  9391. /* Override any GCC internal prototype to avoid an error.
  9392. Use char because int might match the return type of a GCC
  9393. builtin and then its argument prototype would still apply. */
  9394. #ifdef __cplusplus
  9395. extern "C"
  9396. #endif
  9397. char dlopen ();
  9398. int
  9399. main ()
  9400. {
  9401. return dlopen ();
  9402. ;
  9403. return 0;
  9404. }
  9405. _ACEOF
  9406. if ac_fn_c_try_link "$LINENO"; then :
  9407. ac_cv_lib_svld_dlopen=yes
  9408. else
  9409. ac_cv_lib_svld_dlopen=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. LIBS=$ac_check_lib_save_LIBS
  9414. fi
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9416. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9417. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9418. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9419. else
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9421. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9422. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. ac_check_lib_save_LIBS=$LIBS
  9426. LIBS="-ldld $LIBS"
  9427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9428. /* end confdefs.h. */
  9429. /* Override any GCC internal prototype to avoid an error.
  9430. Use char because int might match the return type of a GCC
  9431. builtin and then its argument prototype would still apply. */
  9432. #ifdef __cplusplus
  9433. extern "C"
  9434. #endif
  9435. char dld_link ();
  9436. int
  9437. main ()
  9438. {
  9439. return dld_link ();
  9440. ;
  9441. return 0;
  9442. }
  9443. _ACEOF
  9444. if ac_fn_c_try_link "$LINENO"; then :
  9445. ac_cv_lib_dld_dld_link=yes
  9446. else
  9447. ac_cv_lib_dld_dld_link=no
  9448. fi
  9449. rm -f core conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. LIBS=$ac_check_lib_save_LIBS
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9454. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9455. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9456. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9457. fi
  9458. fi
  9459. fi
  9460. fi
  9461. fi
  9462. fi
  9463. ;;
  9464. esac
  9465. if test "x$lt_cv_dlopen" != xno; then
  9466. enable_dlopen=yes
  9467. else
  9468. enable_dlopen=no
  9469. fi
  9470. case $lt_cv_dlopen in
  9471. dlopen)
  9472. save_CPPFLAGS="$CPPFLAGS"
  9473. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9474. save_LDFLAGS="$LDFLAGS"
  9475. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9476. save_LIBS="$LIBS"
  9477. LIBS="$lt_cv_dlopen_libs $LIBS"
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9479. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9480. if ${lt_cv_dlopen_self+:} false; then :
  9481. $as_echo_n "(cached) " >&6
  9482. else
  9483. if test "$cross_compiling" = yes; then :
  9484. lt_cv_dlopen_self=cross
  9485. else
  9486. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9487. lt_status=$lt_dlunknown
  9488. cat > conftest.$ac_ext <<_LT_EOF
  9489. #line $LINENO "configure"
  9490. #include "confdefs.h"
  9491. #if HAVE_DLFCN_H
  9492. #include <dlfcn.h>
  9493. #endif
  9494. #include <stdio.h>
  9495. #ifdef RTLD_GLOBAL
  9496. # define LT_DLGLOBAL RTLD_GLOBAL
  9497. #else
  9498. # ifdef DL_GLOBAL
  9499. # define LT_DLGLOBAL DL_GLOBAL
  9500. # else
  9501. # define LT_DLGLOBAL 0
  9502. # endif
  9503. #endif
  9504. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9505. find out it does not work in some platform. */
  9506. #ifndef LT_DLLAZY_OR_NOW
  9507. # ifdef RTLD_LAZY
  9508. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9509. # else
  9510. # ifdef DL_LAZY
  9511. # define LT_DLLAZY_OR_NOW DL_LAZY
  9512. # else
  9513. # ifdef RTLD_NOW
  9514. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9515. # else
  9516. # ifdef DL_NOW
  9517. # define LT_DLLAZY_OR_NOW DL_NOW
  9518. # else
  9519. # define LT_DLLAZY_OR_NOW 0
  9520. # endif
  9521. # endif
  9522. # endif
  9523. # endif
  9524. #endif
  9525. /* When -fvisbility=hidden is used, assume the code has been annotated
  9526. correspondingly for the symbols needed. */
  9527. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9528. int fnord () __attribute__((visibility("default")));
  9529. #endif
  9530. int fnord () { return 42; }
  9531. int main ()
  9532. {
  9533. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9534. int status = $lt_dlunknown;
  9535. if (self)
  9536. {
  9537. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9538. else
  9539. {
  9540. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9541. else puts (dlerror ());
  9542. }
  9543. /* dlclose (self); */
  9544. }
  9545. else
  9546. puts (dlerror ());
  9547. return status;
  9548. }
  9549. _LT_EOF
  9550. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9551. (eval $ac_link) 2>&5
  9552. ac_status=$?
  9553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9554. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9555. (./conftest; exit; ) >&5 2>/dev/null
  9556. lt_status=$?
  9557. case x$lt_status in
  9558. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9559. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9560. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9561. esac
  9562. else :
  9563. # compilation failed
  9564. lt_cv_dlopen_self=no
  9565. fi
  9566. fi
  9567. rm -fr conftest*
  9568. fi
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9570. $as_echo "$lt_cv_dlopen_self" >&6; }
  9571. if test "x$lt_cv_dlopen_self" = xyes; then
  9572. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9574. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9575. if ${lt_cv_dlopen_self_static+:} false; then :
  9576. $as_echo_n "(cached) " >&6
  9577. else
  9578. if test "$cross_compiling" = yes; then :
  9579. lt_cv_dlopen_self_static=cross
  9580. else
  9581. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9582. lt_status=$lt_dlunknown
  9583. cat > conftest.$ac_ext <<_LT_EOF
  9584. #line $LINENO "configure"
  9585. #include "confdefs.h"
  9586. #if HAVE_DLFCN_H
  9587. #include <dlfcn.h>
  9588. #endif
  9589. #include <stdio.h>
  9590. #ifdef RTLD_GLOBAL
  9591. # define LT_DLGLOBAL RTLD_GLOBAL
  9592. #else
  9593. # ifdef DL_GLOBAL
  9594. # define LT_DLGLOBAL DL_GLOBAL
  9595. # else
  9596. # define LT_DLGLOBAL 0
  9597. # endif
  9598. #endif
  9599. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9600. find out it does not work in some platform. */
  9601. #ifndef LT_DLLAZY_OR_NOW
  9602. # ifdef RTLD_LAZY
  9603. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9604. # else
  9605. # ifdef DL_LAZY
  9606. # define LT_DLLAZY_OR_NOW DL_LAZY
  9607. # else
  9608. # ifdef RTLD_NOW
  9609. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9610. # else
  9611. # ifdef DL_NOW
  9612. # define LT_DLLAZY_OR_NOW DL_NOW
  9613. # else
  9614. # define LT_DLLAZY_OR_NOW 0
  9615. # endif
  9616. # endif
  9617. # endif
  9618. # endif
  9619. #endif
  9620. /* When -fvisbility=hidden is used, assume the code has been annotated
  9621. correspondingly for the symbols needed. */
  9622. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9623. int fnord () __attribute__((visibility("default")));
  9624. #endif
  9625. int fnord () { return 42; }
  9626. int main ()
  9627. {
  9628. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9629. int status = $lt_dlunknown;
  9630. if (self)
  9631. {
  9632. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9633. else
  9634. {
  9635. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9636. else puts (dlerror ());
  9637. }
  9638. /* dlclose (self); */
  9639. }
  9640. else
  9641. puts (dlerror ());
  9642. return status;
  9643. }
  9644. _LT_EOF
  9645. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9646. (eval $ac_link) 2>&5
  9647. ac_status=$?
  9648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9649. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9650. (./conftest; exit; ) >&5 2>/dev/null
  9651. lt_status=$?
  9652. case x$lt_status in
  9653. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9654. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9655. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9656. esac
  9657. else :
  9658. # compilation failed
  9659. lt_cv_dlopen_self_static=no
  9660. fi
  9661. fi
  9662. rm -fr conftest*
  9663. fi
  9664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9665. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9666. fi
  9667. CPPFLAGS="$save_CPPFLAGS"
  9668. LDFLAGS="$save_LDFLAGS"
  9669. LIBS="$save_LIBS"
  9670. ;;
  9671. esac
  9672. case $lt_cv_dlopen_self in
  9673. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9674. *) enable_dlopen_self=unknown ;;
  9675. esac
  9676. case $lt_cv_dlopen_self_static in
  9677. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9678. *) enable_dlopen_self_static=unknown ;;
  9679. esac
  9680. fi
  9681. striplib=
  9682. old_striplib=
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9684. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9685. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9686. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9687. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9689. $as_echo "yes" >&6; }
  9690. else
  9691. # FIXME - insert some real tests, host_os isn't really good enough
  9692. case $host_os in
  9693. darwin*)
  9694. if test -n "$STRIP" ; then
  9695. striplib="$STRIP -x"
  9696. old_striplib="$STRIP -S"
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9698. $as_echo "yes" >&6; }
  9699. else
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9701. $as_echo "no" >&6; }
  9702. fi
  9703. ;;
  9704. *)
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9706. $as_echo "no" >&6; }
  9707. ;;
  9708. esac
  9709. fi
  9710. # Report which library types will actually be built
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9712. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9714. $as_echo "$can_build_shared" >&6; }
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9716. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9717. test "$can_build_shared" = "no" && enable_shared=no
  9718. # On AIX, shared libraries and static libraries use the same namespace, and
  9719. # are all built from PIC.
  9720. case $host_os in
  9721. aix3*)
  9722. test "$enable_shared" = yes && enable_static=no
  9723. if test -n "$RANLIB"; then
  9724. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9725. postinstall_cmds='$RANLIB $lib'
  9726. fi
  9727. ;;
  9728. aix[4-9]*)
  9729. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9730. test "$enable_shared" = yes && enable_static=no
  9731. fi
  9732. ;;
  9733. esac
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9735. $as_echo "$enable_shared" >&6; }
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9737. $as_echo_n "checking whether to build static libraries... " >&6; }
  9738. # Make sure either enable_shared or enable_static is yes.
  9739. test "$enable_shared" = yes || enable_static=yes
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9741. $as_echo "$enable_static" >&6; }
  9742. fi
  9743. ac_ext=c
  9744. ac_cpp='$CPP $CPPFLAGS'
  9745. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9746. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9747. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9748. CC="$lt_save_CC"
  9749. ac_config_commands="$ac_config_commands libtool"
  9750. # Only expand once:
  9751. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9752. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9753. LT_REVISION=$SDL_INTERFACE_AGE
  9754. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9755. ac_ext=c
  9756. ac_cpp='$CPP $CPPFLAGS'
  9757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9760. if test -n "$ac_tool_prefix"; then
  9761. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9762. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9764. $as_echo_n "checking for $ac_word... " >&6; }
  9765. if ${ac_cv_prog_CC+:} false; then :
  9766. $as_echo_n "(cached) " >&6
  9767. else
  9768. if test -n "$CC"; then
  9769. ac_cv_prog_CC="$CC" # Let the user override the test.
  9770. else
  9771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9772. for as_dir in $PATH
  9773. do
  9774. IFS=$as_save_IFS
  9775. test -z "$as_dir" && as_dir=.
  9776. for ac_exec_ext in '' $ac_executable_extensions; do
  9777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9778. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9780. break 2
  9781. fi
  9782. done
  9783. done
  9784. IFS=$as_save_IFS
  9785. fi
  9786. fi
  9787. CC=$ac_cv_prog_CC
  9788. if test -n "$CC"; then
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9790. $as_echo "$CC" >&6; }
  9791. else
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9793. $as_echo "no" >&6; }
  9794. fi
  9795. fi
  9796. if test -z "$ac_cv_prog_CC"; then
  9797. ac_ct_CC=$CC
  9798. # Extract the first word of "gcc", so it can be a program name with args.
  9799. set dummy gcc; ac_word=$2
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9801. $as_echo_n "checking for $ac_word... " >&6; }
  9802. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9803. $as_echo_n "(cached) " >&6
  9804. else
  9805. if test -n "$ac_ct_CC"; then
  9806. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9807. else
  9808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9809. for as_dir in $PATH
  9810. do
  9811. IFS=$as_save_IFS
  9812. test -z "$as_dir" && as_dir=.
  9813. for ac_exec_ext in '' $ac_executable_extensions; do
  9814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9815. ac_cv_prog_ac_ct_CC="gcc"
  9816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9817. break 2
  9818. fi
  9819. done
  9820. done
  9821. IFS=$as_save_IFS
  9822. fi
  9823. fi
  9824. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9825. if test -n "$ac_ct_CC"; then
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9827. $as_echo "$ac_ct_CC" >&6; }
  9828. else
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9830. $as_echo "no" >&6; }
  9831. fi
  9832. if test "x$ac_ct_CC" = x; then
  9833. CC=""
  9834. else
  9835. case $cross_compiling:$ac_tool_warned in
  9836. yes:)
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9839. ac_tool_warned=yes ;;
  9840. esac
  9841. CC=$ac_ct_CC
  9842. fi
  9843. else
  9844. CC="$ac_cv_prog_CC"
  9845. fi
  9846. if test -z "$CC"; then
  9847. if test -n "$ac_tool_prefix"; then
  9848. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9849. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9851. $as_echo_n "checking for $ac_word... " >&6; }
  9852. if ${ac_cv_prog_CC+:} false; then :
  9853. $as_echo_n "(cached) " >&6
  9854. else
  9855. if test -n "$CC"; then
  9856. ac_cv_prog_CC="$CC" # Let the user override the test.
  9857. else
  9858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9859. for as_dir in $PATH
  9860. do
  9861. IFS=$as_save_IFS
  9862. test -z "$as_dir" && as_dir=.
  9863. for ac_exec_ext in '' $ac_executable_extensions; do
  9864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9865. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9867. break 2
  9868. fi
  9869. done
  9870. done
  9871. IFS=$as_save_IFS
  9872. fi
  9873. fi
  9874. CC=$ac_cv_prog_CC
  9875. if test -n "$CC"; then
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9877. $as_echo "$CC" >&6; }
  9878. else
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9880. $as_echo "no" >&6; }
  9881. fi
  9882. fi
  9883. fi
  9884. if test -z "$CC"; then
  9885. # Extract the first word of "cc", so it can be a program name with args.
  9886. set dummy cc; ac_word=$2
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9888. $as_echo_n "checking for $ac_word... " >&6; }
  9889. if ${ac_cv_prog_CC+:} false; then :
  9890. $as_echo_n "(cached) " >&6
  9891. else
  9892. if test -n "$CC"; then
  9893. ac_cv_prog_CC="$CC" # Let the user override the test.
  9894. else
  9895. ac_prog_rejected=no
  9896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9897. for as_dir in $PATH
  9898. do
  9899. IFS=$as_save_IFS
  9900. test -z "$as_dir" && as_dir=.
  9901. for ac_exec_ext in '' $ac_executable_extensions; do
  9902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9903. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9904. ac_prog_rejected=yes
  9905. continue
  9906. fi
  9907. ac_cv_prog_CC="cc"
  9908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9909. break 2
  9910. fi
  9911. done
  9912. done
  9913. IFS=$as_save_IFS
  9914. if test $ac_prog_rejected = yes; then
  9915. # We found a bogon in the path, so make sure we never use it.
  9916. set dummy $ac_cv_prog_CC
  9917. shift
  9918. if test $# != 0; then
  9919. # We chose a different compiler from the bogus one.
  9920. # However, it has the same basename, so the bogon will be chosen
  9921. # first if we set CC to just the basename; use the full file name.
  9922. shift
  9923. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9924. fi
  9925. fi
  9926. fi
  9927. fi
  9928. CC=$ac_cv_prog_CC
  9929. if test -n "$CC"; then
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9931. $as_echo "$CC" >&6; }
  9932. else
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9934. $as_echo "no" >&6; }
  9935. fi
  9936. fi
  9937. if test -z "$CC"; then
  9938. if test -n "$ac_tool_prefix"; then
  9939. for ac_prog in cl.exe
  9940. do
  9941. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9942. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9944. $as_echo_n "checking for $ac_word... " >&6; }
  9945. if ${ac_cv_prog_CC+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. if test -n "$CC"; then
  9949. ac_cv_prog_CC="$CC" # Let the user override the test.
  9950. else
  9951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9952. for as_dir in $PATH
  9953. do
  9954. IFS=$as_save_IFS
  9955. test -z "$as_dir" && as_dir=.
  9956. for ac_exec_ext in '' $ac_executable_extensions; do
  9957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9958. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9960. break 2
  9961. fi
  9962. done
  9963. done
  9964. IFS=$as_save_IFS
  9965. fi
  9966. fi
  9967. CC=$ac_cv_prog_CC
  9968. if test -n "$CC"; then
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9970. $as_echo "$CC" >&6; }
  9971. else
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9973. $as_echo "no" >&6; }
  9974. fi
  9975. test -n "$CC" && break
  9976. done
  9977. fi
  9978. if test -z "$CC"; then
  9979. ac_ct_CC=$CC
  9980. for ac_prog in cl.exe
  9981. do
  9982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9983. set dummy $ac_prog; ac_word=$2
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9985. $as_echo_n "checking for $ac_word... " >&6; }
  9986. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9987. $as_echo_n "(cached) " >&6
  9988. else
  9989. if test -n "$ac_ct_CC"; then
  9990. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9991. else
  9992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9993. for as_dir in $PATH
  9994. do
  9995. IFS=$as_save_IFS
  9996. test -z "$as_dir" && as_dir=.
  9997. for ac_exec_ext in '' $ac_executable_extensions; do
  9998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9999. ac_cv_prog_ac_ct_CC="$ac_prog"
  10000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10001. break 2
  10002. fi
  10003. done
  10004. done
  10005. IFS=$as_save_IFS
  10006. fi
  10007. fi
  10008. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10009. if test -n "$ac_ct_CC"; then
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10011. $as_echo "$ac_ct_CC" >&6; }
  10012. else
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10014. $as_echo "no" >&6; }
  10015. fi
  10016. test -n "$ac_ct_CC" && break
  10017. done
  10018. if test "x$ac_ct_CC" = x; then
  10019. CC=""
  10020. else
  10021. case $cross_compiling:$ac_tool_warned in
  10022. yes:)
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10025. ac_tool_warned=yes ;;
  10026. esac
  10027. CC=$ac_ct_CC
  10028. fi
  10029. fi
  10030. fi
  10031. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10032. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10033. as_fn_error $? "no acceptable C compiler found in \$PATH
  10034. See \`config.log' for more details" "$LINENO" 5; }
  10035. # Provide some information about the compiler.
  10036. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10037. set X $ac_compile
  10038. ac_compiler=$2
  10039. for ac_option in --version -v -V -qversion; do
  10040. { { ac_try="$ac_compiler $ac_option >&5"
  10041. case "(($ac_try" in
  10042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10043. *) ac_try_echo=$ac_try;;
  10044. esac
  10045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10046. $as_echo "$ac_try_echo"; } >&5
  10047. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10048. ac_status=$?
  10049. if test -s conftest.err; then
  10050. sed '10a\
  10051. ... rest of stderr output deleted ...
  10052. 10q' conftest.err >conftest.er1
  10053. cat conftest.er1 >&5
  10054. fi
  10055. rm -f conftest.er1 conftest.err
  10056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10057. test $ac_status = 0; }
  10058. done
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10060. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10061. if ${ac_cv_c_compiler_gnu+:} false; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10065. /* end confdefs.h. */
  10066. int
  10067. main ()
  10068. {
  10069. #ifndef __GNUC__
  10070. choke me
  10071. #endif
  10072. ;
  10073. return 0;
  10074. }
  10075. _ACEOF
  10076. if ac_fn_c_try_compile "$LINENO"; then :
  10077. ac_compiler_gnu=yes
  10078. else
  10079. ac_compiler_gnu=no
  10080. fi
  10081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10082. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10083. fi
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10085. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10086. if test $ac_compiler_gnu = yes; then
  10087. GCC=yes
  10088. else
  10089. GCC=
  10090. fi
  10091. ac_test_CFLAGS=${CFLAGS+set}
  10092. ac_save_CFLAGS=$CFLAGS
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10094. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10095. if ${ac_cv_prog_cc_g+:} false; then :
  10096. $as_echo_n "(cached) " >&6
  10097. else
  10098. ac_save_c_werror_flag=$ac_c_werror_flag
  10099. ac_c_werror_flag=yes
  10100. ac_cv_prog_cc_g=no
  10101. CFLAGS="-g"
  10102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10103. /* end confdefs.h. */
  10104. int
  10105. main ()
  10106. {
  10107. ;
  10108. return 0;
  10109. }
  10110. _ACEOF
  10111. if ac_fn_c_try_compile "$LINENO"; then :
  10112. ac_cv_prog_cc_g=yes
  10113. else
  10114. CFLAGS=""
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. int
  10118. main ()
  10119. {
  10120. ;
  10121. return 0;
  10122. }
  10123. _ACEOF
  10124. if ac_fn_c_try_compile "$LINENO"; then :
  10125. else
  10126. ac_c_werror_flag=$ac_save_c_werror_flag
  10127. CFLAGS="-g"
  10128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10129. /* end confdefs.h. */
  10130. int
  10131. main ()
  10132. {
  10133. ;
  10134. return 0;
  10135. }
  10136. _ACEOF
  10137. if ac_fn_c_try_compile "$LINENO"; then :
  10138. ac_cv_prog_cc_g=yes
  10139. fi
  10140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10141. fi
  10142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10145. ac_c_werror_flag=$ac_save_c_werror_flag
  10146. fi
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10148. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10149. if test "$ac_test_CFLAGS" = set; then
  10150. CFLAGS=$ac_save_CFLAGS
  10151. elif test $ac_cv_prog_cc_g = yes; then
  10152. if test "$GCC" = yes; then
  10153. CFLAGS="-g -O2"
  10154. else
  10155. CFLAGS="-g"
  10156. fi
  10157. else
  10158. if test "$GCC" = yes; then
  10159. CFLAGS="-O2"
  10160. else
  10161. CFLAGS=
  10162. fi
  10163. fi
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10165. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10166. if ${ac_cv_prog_cc_c89+:} false; then :
  10167. $as_echo_n "(cached) " >&6
  10168. else
  10169. ac_cv_prog_cc_c89=no
  10170. ac_save_CC=$CC
  10171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10172. /* end confdefs.h. */
  10173. #include <stdarg.h>
  10174. #include <stdio.h>
  10175. struct stat;
  10176. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10177. struct buf { int x; };
  10178. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10179. static char *e (p, i)
  10180. char **p;
  10181. int i;
  10182. {
  10183. return p[i];
  10184. }
  10185. static char *f (char * (*g) (char **, int), char **p, ...)
  10186. {
  10187. char *s;
  10188. va_list v;
  10189. va_start (v,p);
  10190. s = g (p, va_arg (v,int));
  10191. va_end (v);
  10192. return s;
  10193. }
  10194. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10195. function prototypes and stuff, but not '\xHH' hex character constants.
  10196. These don't provoke an error unfortunately, instead are silently treated
  10197. as 'x'. The following induces an error, until -std is added to get
  10198. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10199. array size at least. It's necessary to write '\x00'==0 to get something
  10200. that's true only with -std. */
  10201. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10202. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10203. inside strings and character constants. */
  10204. #define FOO(x) 'x'
  10205. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10206. int test (int i, double x);
  10207. struct s1 {int (*f) (int a);};
  10208. struct s2 {int (*f) (double a);};
  10209. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10210. int argc;
  10211. char **argv;
  10212. int
  10213. main ()
  10214. {
  10215. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10216. ;
  10217. return 0;
  10218. }
  10219. _ACEOF
  10220. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10221. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10222. do
  10223. CC="$ac_save_CC $ac_arg"
  10224. if ac_fn_c_try_compile "$LINENO"; then :
  10225. ac_cv_prog_cc_c89=$ac_arg
  10226. fi
  10227. rm -f core conftest.err conftest.$ac_objext
  10228. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10229. done
  10230. rm -f conftest.$ac_ext
  10231. CC=$ac_save_CC
  10232. fi
  10233. # AC_CACHE_VAL
  10234. case "x$ac_cv_prog_cc_c89" in
  10235. x)
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10237. $as_echo "none needed" >&6; } ;;
  10238. xno)
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10240. $as_echo "unsupported" >&6; } ;;
  10241. *)
  10242. CC="$CC $ac_cv_prog_cc_c89"
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10244. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10245. esac
  10246. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10247. fi
  10248. ac_ext=c
  10249. ac_cpp='$CPP $CPPFLAGS'
  10250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10253. ac_ext=cpp
  10254. ac_cpp='$CXXCPP $CPPFLAGS'
  10255. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10256. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10257. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10258. if test -z "$CXX"; then
  10259. if test -n "$CCC"; then
  10260. CXX=$CCC
  10261. else
  10262. if test -n "$ac_tool_prefix"; then
  10263. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10264. do
  10265. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10266. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10268. $as_echo_n "checking for $ac_word... " >&6; }
  10269. if ${ac_cv_prog_CXX+:} false; then :
  10270. $as_echo_n "(cached) " >&6
  10271. else
  10272. if test -n "$CXX"; then
  10273. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10274. else
  10275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10276. for as_dir in $PATH
  10277. do
  10278. IFS=$as_save_IFS
  10279. test -z "$as_dir" && as_dir=.
  10280. for ac_exec_ext in '' $ac_executable_extensions; do
  10281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10282. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10284. break 2
  10285. fi
  10286. done
  10287. done
  10288. IFS=$as_save_IFS
  10289. fi
  10290. fi
  10291. CXX=$ac_cv_prog_CXX
  10292. if test -n "$CXX"; then
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10294. $as_echo "$CXX" >&6; }
  10295. else
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10297. $as_echo "no" >&6; }
  10298. fi
  10299. test -n "$CXX" && break
  10300. done
  10301. fi
  10302. if test -z "$CXX"; then
  10303. ac_ct_CXX=$CXX
  10304. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10305. do
  10306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10307. set dummy $ac_prog; ac_word=$2
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10309. $as_echo_n "checking for $ac_word... " >&6; }
  10310. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10311. $as_echo_n "(cached) " >&6
  10312. else
  10313. if test -n "$ac_ct_CXX"; then
  10314. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10315. else
  10316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10317. for as_dir in $PATH
  10318. do
  10319. IFS=$as_save_IFS
  10320. test -z "$as_dir" && as_dir=.
  10321. for ac_exec_ext in '' $ac_executable_extensions; do
  10322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10323. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10325. break 2
  10326. fi
  10327. done
  10328. done
  10329. IFS=$as_save_IFS
  10330. fi
  10331. fi
  10332. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10333. if test -n "$ac_ct_CXX"; then
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10335. $as_echo "$ac_ct_CXX" >&6; }
  10336. else
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10338. $as_echo "no" >&6; }
  10339. fi
  10340. test -n "$ac_ct_CXX" && break
  10341. done
  10342. if test "x$ac_ct_CXX" = x; then
  10343. CXX="g++"
  10344. else
  10345. case $cross_compiling:$ac_tool_warned in
  10346. yes:)
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10349. ac_tool_warned=yes ;;
  10350. esac
  10351. CXX=$ac_ct_CXX
  10352. fi
  10353. fi
  10354. fi
  10355. fi
  10356. # Provide some information about the compiler.
  10357. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10358. set X $ac_compile
  10359. ac_compiler=$2
  10360. for ac_option in --version -v -V -qversion; do
  10361. { { ac_try="$ac_compiler $ac_option >&5"
  10362. case "(($ac_try" in
  10363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10364. *) ac_try_echo=$ac_try;;
  10365. esac
  10366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10367. $as_echo "$ac_try_echo"; } >&5
  10368. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10369. ac_status=$?
  10370. if test -s conftest.err; then
  10371. sed '10a\
  10372. ... rest of stderr output deleted ...
  10373. 10q' conftest.err >conftest.er1
  10374. cat conftest.er1 >&5
  10375. fi
  10376. rm -f conftest.er1 conftest.err
  10377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10378. test $ac_status = 0; }
  10379. done
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10381. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10382. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10383. $as_echo_n "(cached) " >&6
  10384. else
  10385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10386. /* end confdefs.h. */
  10387. int
  10388. main ()
  10389. {
  10390. #ifndef __GNUC__
  10391. choke me
  10392. #endif
  10393. ;
  10394. return 0;
  10395. }
  10396. _ACEOF
  10397. if ac_fn_cxx_try_compile "$LINENO"; then :
  10398. ac_compiler_gnu=yes
  10399. else
  10400. ac_compiler_gnu=no
  10401. fi
  10402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10403. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10404. fi
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10406. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10407. if test $ac_compiler_gnu = yes; then
  10408. GXX=yes
  10409. else
  10410. GXX=
  10411. fi
  10412. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10413. ac_save_CXXFLAGS=$CXXFLAGS
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10415. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10416. if ${ac_cv_prog_cxx_g+:} false; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10420. ac_cxx_werror_flag=yes
  10421. ac_cv_prog_cxx_g=no
  10422. CXXFLAGS="-g"
  10423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10424. /* end confdefs.h. */
  10425. int
  10426. main ()
  10427. {
  10428. ;
  10429. return 0;
  10430. }
  10431. _ACEOF
  10432. if ac_fn_cxx_try_compile "$LINENO"; then :
  10433. ac_cv_prog_cxx_g=yes
  10434. else
  10435. CXXFLAGS=""
  10436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10437. /* end confdefs.h. */
  10438. int
  10439. main ()
  10440. {
  10441. ;
  10442. return 0;
  10443. }
  10444. _ACEOF
  10445. if ac_fn_cxx_try_compile "$LINENO"; then :
  10446. else
  10447. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10448. CXXFLAGS="-g"
  10449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10450. /* end confdefs.h. */
  10451. int
  10452. main ()
  10453. {
  10454. ;
  10455. return 0;
  10456. }
  10457. _ACEOF
  10458. if ac_fn_cxx_try_compile "$LINENO"; then :
  10459. ac_cv_prog_cxx_g=yes
  10460. fi
  10461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10462. fi
  10463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10466. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10469. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10470. if test "$ac_test_CXXFLAGS" = set; then
  10471. CXXFLAGS=$ac_save_CXXFLAGS
  10472. elif test $ac_cv_prog_cxx_g = yes; then
  10473. if test "$GXX" = yes; then
  10474. CXXFLAGS="-g -O2"
  10475. else
  10476. CXXFLAGS="-g"
  10477. fi
  10478. else
  10479. if test "$GXX" = yes; then
  10480. CXXFLAGS="-O2"
  10481. else
  10482. CXXFLAGS=
  10483. fi
  10484. fi
  10485. ac_ext=c
  10486. ac_cpp='$CPP $CPPFLAGS'
  10487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10490. func_stripname_cnf ()
  10491. {
  10492. case ${2} in
  10493. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10494. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10495. esac
  10496. } # func_stripname_cnf
  10497. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10498. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10499. (test "X$CXX" != "Xg++"))) ; then
  10500. ac_ext=cpp
  10501. ac_cpp='$CXXCPP $CPPFLAGS'
  10502. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10503. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10504. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10506. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10507. if test -z "$CXXCPP"; then
  10508. if ${ac_cv_prog_CXXCPP+:} false; then :
  10509. $as_echo_n "(cached) " >&6
  10510. else
  10511. # Double quotes because CXXCPP needs to be expanded
  10512. for CXXCPP in "$CXX -E" "/lib/cpp"
  10513. do
  10514. ac_preproc_ok=false
  10515. for ac_cxx_preproc_warn_flag in '' yes
  10516. do
  10517. # Use a header file that comes with gcc, so configuring glibc
  10518. # with a fresh cross-compiler works.
  10519. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10520. # <limits.h> exists even on freestanding compilers.
  10521. # On the NeXT, cc -E runs the code through the compiler's parser,
  10522. # not just through cpp. "Syntax error" is here to catch this case.
  10523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10524. /* end confdefs.h. */
  10525. #ifdef __STDC__
  10526. # include <limits.h>
  10527. #else
  10528. # include <assert.h>
  10529. #endif
  10530. Syntax error
  10531. _ACEOF
  10532. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10533. else
  10534. # Broken: fails on valid input.
  10535. continue
  10536. fi
  10537. rm -f conftest.err conftest.i conftest.$ac_ext
  10538. # OK, works on sane cases. Now check whether nonexistent headers
  10539. # can be detected and how.
  10540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10541. /* end confdefs.h. */
  10542. #include <ac_nonexistent.h>
  10543. _ACEOF
  10544. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10545. # Broken: success on invalid input.
  10546. continue
  10547. else
  10548. # Passes both tests.
  10549. ac_preproc_ok=:
  10550. break
  10551. fi
  10552. rm -f conftest.err conftest.i conftest.$ac_ext
  10553. done
  10554. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10555. rm -f conftest.i conftest.err conftest.$ac_ext
  10556. if $ac_preproc_ok; then :
  10557. break
  10558. fi
  10559. done
  10560. ac_cv_prog_CXXCPP=$CXXCPP
  10561. fi
  10562. CXXCPP=$ac_cv_prog_CXXCPP
  10563. else
  10564. ac_cv_prog_CXXCPP=$CXXCPP
  10565. fi
  10566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10567. $as_echo "$CXXCPP" >&6; }
  10568. ac_preproc_ok=false
  10569. for ac_cxx_preproc_warn_flag in '' yes
  10570. do
  10571. # Use a header file that comes with gcc, so configuring glibc
  10572. # with a fresh cross-compiler works.
  10573. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10574. # <limits.h> exists even on freestanding compilers.
  10575. # On the NeXT, cc -E runs the code through the compiler's parser,
  10576. # not just through cpp. "Syntax error" is here to catch this case.
  10577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10578. /* end confdefs.h. */
  10579. #ifdef __STDC__
  10580. # include <limits.h>
  10581. #else
  10582. # include <assert.h>
  10583. #endif
  10584. Syntax error
  10585. _ACEOF
  10586. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10587. else
  10588. # Broken: fails on valid input.
  10589. continue
  10590. fi
  10591. rm -f conftest.err conftest.i conftest.$ac_ext
  10592. # OK, works on sane cases. Now check whether nonexistent headers
  10593. # can be detected and how.
  10594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10595. /* end confdefs.h. */
  10596. #include <ac_nonexistent.h>
  10597. _ACEOF
  10598. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10599. # Broken: success on invalid input.
  10600. continue
  10601. else
  10602. # Passes both tests.
  10603. ac_preproc_ok=:
  10604. break
  10605. fi
  10606. rm -f conftest.err conftest.i conftest.$ac_ext
  10607. done
  10608. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10609. rm -f conftest.i conftest.err conftest.$ac_ext
  10610. if $ac_preproc_ok; then :
  10611. else
  10612. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10613. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10614. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10615. See \`config.log' for more details" "$LINENO" 5; }
  10616. fi
  10617. ac_ext=c
  10618. ac_cpp='$CPP $CPPFLAGS'
  10619. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10620. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10621. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10622. else
  10623. _lt_caught_CXX_error=yes
  10624. fi
  10625. ac_ext=cpp
  10626. ac_cpp='$CXXCPP $CPPFLAGS'
  10627. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10628. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10629. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10630. archive_cmds_need_lc_CXX=no
  10631. allow_undefined_flag_CXX=
  10632. always_export_symbols_CXX=no
  10633. archive_expsym_cmds_CXX=
  10634. compiler_needs_object_CXX=no
  10635. export_dynamic_flag_spec_CXX=
  10636. hardcode_direct_CXX=no
  10637. hardcode_direct_absolute_CXX=no
  10638. hardcode_libdir_flag_spec_CXX=
  10639. hardcode_libdir_separator_CXX=
  10640. hardcode_minus_L_CXX=no
  10641. hardcode_shlibpath_var_CXX=unsupported
  10642. hardcode_automatic_CXX=no
  10643. inherit_rpath_CXX=no
  10644. module_cmds_CXX=
  10645. module_expsym_cmds_CXX=
  10646. link_all_deplibs_CXX=unknown
  10647. old_archive_cmds_CXX=$old_archive_cmds
  10648. reload_flag_CXX=$reload_flag
  10649. reload_cmds_CXX=$reload_cmds
  10650. no_undefined_flag_CXX=
  10651. whole_archive_flag_spec_CXX=
  10652. enable_shared_with_static_runtimes_CXX=no
  10653. # Source file extension for C++ test sources.
  10654. ac_ext=cpp
  10655. # Object file extension for compiled C++ test sources.
  10656. objext=o
  10657. objext_CXX=$objext
  10658. # No sense in running all these tests if we already determined that
  10659. # the CXX compiler isn't working. Some variables (like enable_shared)
  10660. # are currently assumed to apply to all compilers on this platform,
  10661. # and will be corrupted by setting them based on a non-working compiler.
  10662. if test "$_lt_caught_CXX_error" != yes; then
  10663. # Code to be used in simple compile tests
  10664. lt_simple_compile_test_code="int some_variable = 0;"
  10665. # Code to be used in simple link tests
  10666. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10667. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10668. # If no C compiler was specified, use CC.
  10669. LTCC=${LTCC-"$CC"}
  10670. # If no C compiler flags were specified, use CFLAGS.
  10671. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10672. # Allow CC to be a program name with arguments.
  10673. compiler=$CC
  10674. # save warnings/boilerplate of simple test code
  10675. ac_outfile=conftest.$ac_objext
  10676. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10677. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10678. _lt_compiler_boilerplate=`cat conftest.err`
  10679. $RM conftest*
  10680. ac_outfile=conftest.$ac_objext
  10681. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10682. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10683. _lt_linker_boilerplate=`cat conftest.err`
  10684. $RM -r conftest*
  10685. # Allow CC to be a program name with arguments.
  10686. lt_save_CC=$CC
  10687. lt_save_CFLAGS=$CFLAGS
  10688. lt_save_LD=$LD
  10689. lt_save_GCC=$GCC
  10690. GCC=$GXX
  10691. lt_save_with_gnu_ld=$with_gnu_ld
  10692. lt_save_path_LD=$lt_cv_path_LD
  10693. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10694. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10695. else
  10696. $as_unset lt_cv_prog_gnu_ld
  10697. fi
  10698. if test -n "${lt_cv_path_LDCXX+set}"; then
  10699. lt_cv_path_LD=$lt_cv_path_LDCXX
  10700. else
  10701. $as_unset lt_cv_path_LD
  10702. fi
  10703. test -z "${LDCXX+set}" || LD=$LDCXX
  10704. CC=${CXX-"c++"}
  10705. CFLAGS=$CXXFLAGS
  10706. compiler=$CC
  10707. compiler_CXX=$CC
  10708. for cc_temp in $compiler""; do
  10709. case $cc_temp in
  10710. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10711. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10712. \-*) ;;
  10713. *) break;;
  10714. esac
  10715. done
  10716. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10717. if test -n "$compiler"; then
  10718. # We don't want -fno-exception when compiling C++ code, so set the
  10719. # no_builtin_flag separately
  10720. if test "$GXX" = yes; then
  10721. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10722. else
  10723. lt_prog_compiler_no_builtin_flag_CXX=
  10724. fi
  10725. if test "$GXX" = yes; then
  10726. # Set up default GNU C++ configuration
  10727. # Check whether --with-gnu-ld was given.
  10728. if test "${with_gnu_ld+set}" = set; then :
  10729. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10730. else
  10731. with_gnu_ld=no
  10732. fi
  10733. ac_prog=ld
  10734. if test "$GCC" = yes; then
  10735. # Check if gcc -print-prog-name=ld gives a path.
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10737. $as_echo_n "checking for ld used by $CC... " >&6; }
  10738. case $host in
  10739. *-*-mingw*)
  10740. # gcc leaves a trailing carriage return which upsets mingw
  10741. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10742. *)
  10743. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10744. esac
  10745. case $ac_prog in
  10746. # Accept absolute paths.
  10747. [\\/]* | ?:[\\/]*)
  10748. re_direlt='/[^/][^/]*/\.\./'
  10749. # Canonicalize the pathname of ld
  10750. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10751. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10752. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10753. done
  10754. test -z "$LD" && LD="$ac_prog"
  10755. ;;
  10756. "")
  10757. # If it fails, then pretend we aren't using GCC.
  10758. ac_prog=ld
  10759. ;;
  10760. *)
  10761. # If it is relative, then search for the first ld in PATH.
  10762. with_gnu_ld=unknown
  10763. ;;
  10764. esac
  10765. elif test "$with_gnu_ld" = yes; then
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10767. $as_echo_n "checking for GNU ld... " >&6; }
  10768. else
  10769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10770. $as_echo_n "checking for non-GNU ld... " >&6; }
  10771. fi
  10772. if ${lt_cv_path_LD+:} false; then :
  10773. $as_echo_n "(cached) " >&6
  10774. else
  10775. if test -z "$LD"; then
  10776. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10777. for ac_dir in $PATH; do
  10778. IFS="$lt_save_ifs"
  10779. test -z "$ac_dir" && ac_dir=.
  10780. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10781. lt_cv_path_LD="$ac_dir/$ac_prog"
  10782. # Check to see if the program is GNU ld. I'd rather use --version,
  10783. # but apparently some variants of GNU ld only accept -v.
  10784. # Break only if it was the GNU/non-GNU ld that we prefer.
  10785. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10786. *GNU* | *'with BFD'*)
  10787. test "$with_gnu_ld" != no && break
  10788. ;;
  10789. *)
  10790. test "$with_gnu_ld" != yes && break
  10791. ;;
  10792. esac
  10793. fi
  10794. done
  10795. IFS="$lt_save_ifs"
  10796. else
  10797. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10798. fi
  10799. fi
  10800. LD="$lt_cv_path_LD"
  10801. if test -n "$LD"; then
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10803. $as_echo "$LD" >&6; }
  10804. else
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10806. $as_echo "no" >&6; }
  10807. fi
  10808. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10810. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10811. if ${lt_cv_prog_gnu_ld+:} false; then :
  10812. $as_echo_n "(cached) " >&6
  10813. else
  10814. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10815. case `$LD -v 2>&1 </dev/null` in
  10816. *GNU* | *'with BFD'*)
  10817. lt_cv_prog_gnu_ld=yes
  10818. ;;
  10819. *)
  10820. lt_cv_prog_gnu_ld=no
  10821. ;;
  10822. esac
  10823. fi
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10825. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10826. with_gnu_ld=$lt_cv_prog_gnu_ld
  10827. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10828. # archiving commands below assume that GNU ld is being used.
  10829. if test "$with_gnu_ld" = yes; then
  10830. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10831. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10832. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10833. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10834. # If archive_cmds runs LD, not CC, wlarc should be empty
  10835. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10836. # investigate it a little bit more. (MM)
  10837. wlarc='${wl}'
  10838. # ancient GNU ld didn't support --whole-archive et. al.
  10839. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10840. $GREP 'no-whole-archive' > /dev/null; then
  10841. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10842. else
  10843. whole_archive_flag_spec_CXX=
  10844. fi
  10845. else
  10846. with_gnu_ld=no
  10847. wlarc=
  10848. # A generic and very simple default shared library creation
  10849. # command for GNU C++ for the case where it uses the native
  10850. # linker, instead of GNU ld. If possible, this setting should
  10851. # overridden to take advantage of the native linker features on
  10852. # the platform it is being used on.
  10853. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10854. fi
  10855. # Commands to make compiler produce verbose output that lists
  10856. # what "hidden" libraries, object files and flags are used when
  10857. # linking a shared library.
  10858. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10859. else
  10860. GXX=no
  10861. with_gnu_ld=no
  10862. wlarc=
  10863. fi
  10864. # PORTME: fill in a description of your system's C++ link characteristics
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10866. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10867. ld_shlibs_CXX=yes
  10868. case $host_os in
  10869. aix3*)
  10870. # FIXME: insert proper C++ library support
  10871. ld_shlibs_CXX=no
  10872. ;;
  10873. aix[4-9]*)
  10874. if test "$host_cpu" = ia64; then
  10875. # On IA64, the linker does run time linking by default, so we don't
  10876. # have to do anything special.
  10877. aix_use_runtimelinking=no
  10878. exp_sym_flag='-Bexport'
  10879. no_entry_flag=""
  10880. else
  10881. aix_use_runtimelinking=no
  10882. # Test if we are trying to use run time linking or normal
  10883. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10884. # need to do runtime linking.
  10885. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10886. for ld_flag in $LDFLAGS; do
  10887. case $ld_flag in
  10888. *-brtl*)
  10889. aix_use_runtimelinking=yes
  10890. break
  10891. ;;
  10892. esac
  10893. done
  10894. ;;
  10895. esac
  10896. exp_sym_flag='-bexport'
  10897. no_entry_flag='-bnoentry'
  10898. fi
  10899. # When large executables or shared objects are built, AIX ld can
  10900. # have problems creating the table of contents. If linking a library
  10901. # or program results in "error TOC overflow" add -mminimal-toc to
  10902. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10903. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10904. archive_cmds_CXX=''
  10905. hardcode_direct_CXX=yes
  10906. hardcode_direct_absolute_CXX=yes
  10907. hardcode_libdir_separator_CXX=':'
  10908. link_all_deplibs_CXX=yes
  10909. file_list_spec_CXX='${wl}-f,'
  10910. if test "$GXX" = yes; then
  10911. case $host_os in aix4.[012]|aix4.[012].*)
  10912. # We only want to do this on AIX 4.2 and lower, the check
  10913. # below for broken collect2 doesn't work under 4.3+
  10914. collect2name=`${CC} -print-prog-name=collect2`
  10915. if test -f "$collect2name" &&
  10916. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10917. then
  10918. # We have reworked collect2
  10919. :
  10920. else
  10921. # We have old collect2
  10922. hardcode_direct_CXX=unsupported
  10923. # It fails to find uninstalled libraries when the uninstalled
  10924. # path is not listed in the libpath. Setting hardcode_minus_L
  10925. # to unsupported forces relinking
  10926. hardcode_minus_L_CXX=yes
  10927. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10928. hardcode_libdir_separator_CXX=
  10929. fi
  10930. esac
  10931. shared_flag='-shared'
  10932. if test "$aix_use_runtimelinking" = yes; then
  10933. shared_flag="$shared_flag "'${wl}-G'
  10934. fi
  10935. else
  10936. # not using gcc
  10937. if test "$host_cpu" = ia64; then
  10938. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10939. # chokes on -Wl,-G. The following line is correct:
  10940. shared_flag='-G'
  10941. else
  10942. if test "$aix_use_runtimelinking" = yes; then
  10943. shared_flag='${wl}-G'
  10944. else
  10945. shared_flag='${wl}-bM:SRE'
  10946. fi
  10947. fi
  10948. fi
  10949. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10950. # It seems that -bexpall does not export symbols beginning with
  10951. # underscore (_), so it is better to generate a list of symbols to
  10952. # export.
  10953. always_export_symbols_CXX=yes
  10954. if test "$aix_use_runtimelinking" = yes; then
  10955. # Warning - without using the other runtime loading flags (-brtl),
  10956. # -berok will link without error, but may produce a broken library.
  10957. allow_undefined_flag_CXX='-berok'
  10958. # Determine the default libpath from the value encoded in an empty
  10959. # executable.
  10960. if test "${lt_cv_aix_libpath+set}" = set; then
  10961. aix_libpath=$lt_cv_aix_libpath
  10962. else
  10963. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10964. $as_echo_n "(cached) " >&6
  10965. else
  10966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10967. /* end confdefs.h. */
  10968. int
  10969. main ()
  10970. {
  10971. ;
  10972. return 0;
  10973. }
  10974. _ACEOF
  10975. if ac_fn_cxx_try_link "$LINENO"; then :
  10976. lt_aix_libpath_sed='
  10977. /Import File Strings/,/^$/ {
  10978. /^0/ {
  10979. s/^0 *\([^ ]*\) *$/\1/
  10980. p
  10981. }
  10982. }'
  10983. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10984. # Check for a 64-bit object if we didn't find anything.
  10985. if test -z "$lt_cv_aix_libpath__CXX"; then
  10986. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10987. fi
  10988. fi
  10989. rm -f core conftest.err conftest.$ac_objext \
  10990. conftest$ac_exeext conftest.$ac_ext
  10991. if test -z "$lt_cv_aix_libpath__CXX"; then
  10992. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10993. fi
  10994. fi
  10995. aix_libpath=$lt_cv_aix_libpath__CXX
  10996. fi
  10997. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10998. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10999. else
  11000. if test "$host_cpu" = ia64; then
  11001. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11002. allow_undefined_flag_CXX="-z nodefs"
  11003. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11004. else
  11005. # Determine the default libpath from the value encoded in an
  11006. # empty executable.
  11007. if test "${lt_cv_aix_libpath+set}" = set; then
  11008. aix_libpath=$lt_cv_aix_libpath
  11009. else
  11010. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11011. $as_echo_n "(cached) " >&6
  11012. else
  11013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11014. /* end confdefs.h. */
  11015. int
  11016. main ()
  11017. {
  11018. ;
  11019. return 0;
  11020. }
  11021. _ACEOF
  11022. if ac_fn_cxx_try_link "$LINENO"; then :
  11023. lt_aix_libpath_sed='
  11024. /Import File Strings/,/^$/ {
  11025. /^0/ {
  11026. s/^0 *\([^ ]*\) *$/\1/
  11027. p
  11028. }
  11029. }'
  11030. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11031. # Check for a 64-bit object if we didn't find anything.
  11032. if test -z "$lt_cv_aix_libpath__CXX"; then
  11033. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11034. fi
  11035. fi
  11036. rm -f core conftest.err conftest.$ac_objext \
  11037. conftest$ac_exeext conftest.$ac_ext
  11038. if test -z "$lt_cv_aix_libpath__CXX"; then
  11039. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11040. fi
  11041. fi
  11042. aix_libpath=$lt_cv_aix_libpath__CXX
  11043. fi
  11044. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11045. # Warning - without using the other run time loading flags,
  11046. # -berok will link without error, but may produce a broken library.
  11047. no_undefined_flag_CXX=' ${wl}-bernotok'
  11048. allow_undefined_flag_CXX=' ${wl}-berok'
  11049. if test "$with_gnu_ld" = yes; then
  11050. # We only use this code for GNU lds that support --whole-archive.
  11051. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11052. else
  11053. # Exported symbols can be pulled into shared objects from archives
  11054. whole_archive_flag_spec_CXX='$convenience'
  11055. fi
  11056. archive_cmds_need_lc_CXX=yes
  11057. # This is similar to how AIX traditionally builds its shared
  11058. # libraries.
  11059. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11060. fi
  11061. fi
  11062. ;;
  11063. beos*)
  11064. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11065. allow_undefined_flag_CXX=unsupported
  11066. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11067. # support --undefined. This deserves some investigation. FIXME
  11068. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11069. else
  11070. ld_shlibs_CXX=no
  11071. fi
  11072. ;;
  11073. chorus*)
  11074. case $cc_basename in
  11075. *)
  11076. # FIXME: insert proper C++ library support
  11077. ld_shlibs_CXX=no
  11078. ;;
  11079. esac
  11080. ;;
  11081. cygwin* | mingw* | pw32* | cegcc*)
  11082. case $GXX,$cc_basename in
  11083. ,cl* | no,cl*)
  11084. # Native MSVC
  11085. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11086. # no search path for DLLs.
  11087. hardcode_libdir_flag_spec_CXX=' '
  11088. allow_undefined_flag_CXX=unsupported
  11089. always_export_symbols_CXX=yes
  11090. file_list_spec_CXX='@'
  11091. # Tell ltmain to make .lib files, not .a files.
  11092. libext=lib
  11093. # Tell ltmain to make .dll files, not .so files.
  11094. shrext_cmds=".dll"
  11095. # FIXME: Setting linknames here is a bad hack.
  11096. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11097. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11098. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11099. else
  11100. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11101. fi~
  11102. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11103. linknames='
  11104. # The linker will not automatically build a static lib if we build a DLL.
  11105. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11106. enable_shared_with_static_runtimes_CXX=yes
  11107. # Don't use ranlib
  11108. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11109. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11110. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11111. case $lt_outputfile in
  11112. *.exe|*.EXE) ;;
  11113. *)
  11114. lt_outputfile="$lt_outputfile.exe"
  11115. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11116. ;;
  11117. esac~
  11118. func_to_tool_file "$lt_outputfile"~
  11119. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11120. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11121. $RM "$lt_outputfile.manifest";
  11122. fi'
  11123. ;;
  11124. *)
  11125. # g++
  11126. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11127. # as there is no search path for DLLs.
  11128. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11129. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11130. allow_undefined_flag_CXX=unsupported
  11131. always_export_symbols_CXX=no
  11132. enable_shared_with_static_runtimes_CXX=yes
  11133. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11134. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11135. # If the export-symbols file already is a .def file (1st line
  11136. # is EXPORTS), use it as is; otherwise, prepend...
  11137. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11138. cp $export_symbols $output_objdir/$soname.def;
  11139. else
  11140. echo EXPORTS > $output_objdir/$soname.def;
  11141. cat $export_symbols >> $output_objdir/$soname.def;
  11142. fi~
  11143. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11144. else
  11145. ld_shlibs_CXX=no
  11146. fi
  11147. ;;
  11148. esac
  11149. ;;
  11150. darwin* | rhapsody*)
  11151. archive_cmds_need_lc_CXX=no
  11152. hardcode_direct_CXX=no
  11153. hardcode_automatic_CXX=yes
  11154. hardcode_shlibpath_var_CXX=unsupported
  11155. if test "$lt_cv_ld_force_load" = "yes"; then
  11156. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11157. else
  11158. whole_archive_flag_spec_CXX=''
  11159. fi
  11160. link_all_deplibs_CXX=yes
  11161. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11162. case $cc_basename in
  11163. ifort*) _lt_dar_can_shared=yes ;;
  11164. *) _lt_dar_can_shared=$GCC ;;
  11165. esac
  11166. if test "$_lt_dar_can_shared" = "yes"; then
  11167. output_verbose_link_cmd=func_echo_all
  11168. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11169. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11170. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11171. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11172. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11173. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11174. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11175. fi
  11176. else
  11177. ld_shlibs_CXX=no
  11178. fi
  11179. ;;
  11180. dgux*)
  11181. case $cc_basename in
  11182. ec++*)
  11183. # FIXME: insert proper C++ library support
  11184. ld_shlibs_CXX=no
  11185. ;;
  11186. ghcx*)
  11187. # Green Hills C++ Compiler
  11188. # FIXME: insert proper C++ library support
  11189. ld_shlibs_CXX=no
  11190. ;;
  11191. *)
  11192. # FIXME: insert proper C++ library support
  11193. ld_shlibs_CXX=no
  11194. ;;
  11195. esac
  11196. ;;
  11197. freebsd2.*)
  11198. # C++ shared libraries reported to be fairly broken before
  11199. # switch to ELF
  11200. ld_shlibs_CXX=no
  11201. ;;
  11202. freebsd-elf*)
  11203. archive_cmds_need_lc_CXX=no
  11204. ;;
  11205. freebsd* | dragonfly*)
  11206. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11207. # conventions
  11208. ld_shlibs_CXX=yes
  11209. ;;
  11210. gnu*)
  11211. ;;
  11212. haiku*)
  11213. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11214. link_all_deplibs_CXX=yes
  11215. ;;
  11216. hpux9*)
  11217. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11218. hardcode_libdir_separator_CXX=:
  11219. export_dynamic_flag_spec_CXX='${wl}-E'
  11220. hardcode_direct_CXX=yes
  11221. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11222. # but as the default
  11223. # location of the library.
  11224. case $cc_basename in
  11225. CC*)
  11226. # FIXME: insert proper C++ library support
  11227. ld_shlibs_CXX=no
  11228. ;;
  11229. aCC*)
  11230. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11231. # Commands to make compiler produce verbose output that lists
  11232. # what "hidden" libraries, object files and flags are used when
  11233. # linking a shared library.
  11234. #
  11235. # There doesn't appear to be a way to prevent this compiler from
  11236. # explicitly linking system object files so we need to strip them
  11237. # from the output so that they don't get included in the library
  11238. # dependencies.
  11239. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11240. ;;
  11241. *)
  11242. if test "$GXX" = yes; then
  11243. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11244. else
  11245. # FIXME: insert proper C++ library support
  11246. ld_shlibs_CXX=no
  11247. fi
  11248. ;;
  11249. esac
  11250. ;;
  11251. hpux10*|hpux11*)
  11252. if test $with_gnu_ld = no; then
  11253. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11254. hardcode_libdir_separator_CXX=:
  11255. case $host_cpu in
  11256. hppa*64*|ia64*)
  11257. ;;
  11258. *)
  11259. export_dynamic_flag_spec_CXX='${wl}-E'
  11260. ;;
  11261. esac
  11262. fi
  11263. case $host_cpu in
  11264. hppa*64*|ia64*)
  11265. hardcode_direct_CXX=no
  11266. hardcode_shlibpath_var_CXX=no
  11267. ;;
  11268. *)
  11269. hardcode_direct_CXX=yes
  11270. hardcode_direct_absolute_CXX=yes
  11271. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11272. # but as the default
  11273. # location of the library.
  11274. ;;
  11275. esac
  11276. case $cc_basename in
  11277. CC*)
  11278. # FIXME: insert proper C++ library support
  11279. ld_shlibs_CXX=no
  11280. ;;
  11281. aCC*)
  11282. case $host_cpu in
  11283. hppa*64*)
  11284. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11285. ;;
  11286. ia64*)
  11287. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11288. ;;
  11289. *)
  11290. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11291. ;;
  11292. esac
  11293. # Commands to make compiler produce verbose output that lists
  11294. # what "hidden" libraries, object files and flags are used when
  11295. # linking a shared library.
  11296. #
  11297. # There doesn't appear to be a way to prevent this compiler from
  11298. # explicitly linking system object files so we need to strip them
  11299. # from the output so that they don't get included in the library
  11300. # dependencies.
  11301. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11302. ;;
  11303. *)
  11304. if test "$GXX" = yes; then
  11305. if test $with_gnu_ld = no; then
  11306. case $host_cpu in
  11307. hppa*64*)
  11308. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11309. ;;
  11310. ia64*)
  11311. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11312. ;;
  11313. *)
  11314. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11315. ;;
  11316. esac
  11317. fi
  11318. else
  11319. # FIXME: insert proper C++ library support
  11320. ld_shlibs_CXX=no
  11321. fi
  11322. ;;
  11323. esac
  11324. ;;
  11325. interix[3-9]*)
  11326. hardcode_direct_CXX=no
  11327. hardcode_shlibpath_var_CXX=no
  11328. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11329. export_dynamic_flag_spec_CXX='${wl}-E'
  11330. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11331. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11332. # default) and relocated if they conflict, which is a slow very memory
  11333. # consuming and fragmenting process. To avoid this, we pick a random,
  11334. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11335. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11336. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11337. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11338. ;;
  11339. irix5* | irix6*)
  11340. case $cc_basename in
  11341. CC*)
  11342. # SGI C++
  11343. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11344. # Archives containing C++ object files must be created using
  11345. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11346. # necessary to make sure instantiated templates are included
  11347. # in the archive.
  11348. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11349. ;;
  11350. *)
  11351. if test "$GXX" = yes; then
  11352. if test "$with_gnu_ld" = no; then
  11353. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11354. else
  11355. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11356. fi
  11357. fi
  11358. link_all_deplibs_CXX=yes
  11359. ;;
  11360. esac
  11361. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11362. hardcode_libdir_separator_CXX=:
  11363. inherit_rpath_CXX=yes
  11364. ;;
  11365. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11366. case $cc_basename in
  11367. KCC*)
  11368. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11369. # KCC will only create a shared library if the output file
  11370. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11371. # to its proper name (with version) after linking.
  11372. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11373. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11374. # Commands to make compiler produce verbose output that lists
  11375. # what "hidden" libraries, object files and flags are used when
  11376. # linking a shared library.
  11377. #
  11378. # There doesn't appear to be a way to prevent this compiler from
  11379. # explicitly linking system object files so we need to strip them
  11380. # from the output so that they don't get included in the library
  11381. # dependencies.
  11382. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11383. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11384. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11385. # Archives containing C++ object files must be created using
  11386. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11387. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11388. ;;
  11389. icpc* | ecpc* )
  11390. # Intel C++
  11391. with_gnu_ld=yes
  11392. # version 8.0 and above of icpc choke on multiply defined symbols
  11393. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11394. # earlier do not add the objects themselves.
  11395. case `$CC -V 2>&1` in
  11396. *"Version 7."*)
  11397. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11398. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11399. ;;
  11400. *) # Version 8.0 or newer
  11401. tmp_idyn=
  11402. case $host_cpu in
  11403. ia64*) tmp_idyn=' -i_dynamic';;
  11404. esac
  11405. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11406. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11407. ;;
  11408. esac
  11409. archive_cmds_need_lc_CXX=no
  11410. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11411. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11412. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11413. ;;
  11414. pgCC* | pgcpp*)
  11415. # Portland Group C++ compiler
  11416. case `$CC -V` in
  11417. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11418. prelink_cmds_CXX='tpldir=Template.dir~
  11419. rm -rf $tpldir~
  11420. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11421. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11422. old_archive_cmds_CXX='tpldir=Template.dir~
  11423. rm -rf $tpldir~
  11424. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11425. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11426. $RANLIB $oldlib'
  11427. archive_cmds_CXX='tpldir=Template.dir~
  11428. rm -rf $tpldir~
  11429. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11430. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11431. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11432. rm -rf $tpldir~
  11433. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11434. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11435. ;;
  11436. *) # Version 6 and above use weak symbols
  11437. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11438. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11439. ;;
  11440. esac
  11441. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11442. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11443. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11444. ;;
  11445. cxx*)
  11446. # Compaq C++
  11447. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11448. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11449. runpath_var=LD_RUN_PATH
  11450. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11451. hardcode_libdir_separator_CXX=:
  11452. # Commands to make compiler produce verbose output that lists
  11453. # what "hidden" libraries, object files and flags are used when
  11454. # linking a shared library.
  11455. #
  11456. # There doesn't appear to be a way to prevent this compiler from
  11457. # explicitly linking system object files so we need to strip them
  11458. # from the output so that they don't get included in the library
  11459. # dependencies.
  11460. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11461. ;;
  11462. xl* | mpixl* | bgxl*)
  11463. # IBM XL 8.0 on PPC, with GNU ld
  11464. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11465. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11466. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11467. if test "x$supports_anon_versioning" = xyes; then
  11468. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11469. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11470. echo "local: *; };" >> $output_objdir/$libname.ver~
  11471. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11472. fi
  11473. ;;
  11474. *)
  11475. case `$CC -V 2>&1 | sed 5q` in
  11476. *Sun\ C*)
  11477. # Sun C++ 5.9
  11478. no_undefined_flag_CXX=' -zdefs'
  11479. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11480. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11481. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11482. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11483. compiler_needs_object_CXX=yes
  11484. # Not sure whether something based on
  11485. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11486. # would be better.
  11487. output_verbose_link_cmd='func_echo_all'
  11488. # Archives containing C++ object files must be created using
  11489. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11490. # necessary to make sure instantiated templates are included
  11491. # in the archive.
  11492. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11493. ;;
  11494. esac
  11495. ;;
  11496. esac
  11497. ;;
  11498. lynxos*)
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. m88k*)
  11503. # FIXME: insert proper C++ library support
  11504. ld_shlibs_CXX=no
  11505. ;;
  11506. mvs*)
  11507. case $cc_basename in
  11508. cxx*)
  11509. # FIXME: insert proper C++ library support
  11510. ld_shlibs_CXX=no
  11511. ;;
  11512. *)
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. ;;
  11516. esac
  11517. ;;
  11518. netbsd*)
  11519. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11520. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11521. wlarc=
  11522. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11523. hardcode_direct_CXX=yes
  11524. hardcode_shlibpath_var_CXX=no
  11525. fi
  11526. # Workaround some broken pre-1.5 toolchains
  11527. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11528. ;;
  11529. *nto* | *qnx*)
  11530. ld_shlibs_CXX=yes
  11531. ;;
  11532. openbsd2*)
  11533. # C++ shared libraries are fairly broken
  11534. ld_shlibs_CXX=no
  11535. ;;
  11536. openbsd*)
  11537. if test -f /usr/libexec/ld.so; then
  11538. hardcode_direct_CXX=yes
  11539. hardcode_shlibpath_var_CXX=no
  11540. hardcode_direct_absolute_CXX=yes
  11541. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11542. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11543. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11544. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11545. export_dynamic_flag_spec_CXX='${wl}-E'
  11546. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11547. fi
  11548. output_verbose_link_cmd=func_echo_all
  11549. else
  11550. ld_shlibs_CXX=no
  11551. fi
  11552. ;;
  11553. osf3* | osf4* | osf5*)
  11554. case $cc_basename in
  11555. KCC*)
  11556. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11557. # KCC will only create a shared library if the output file
  11558. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11559. # to its proper name (with version) after linking.
  11560. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11561. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11562. hardcode_libdir_separator_CXX=:
  11563. # Archives containing C++ object files must be created using
  11564. # the KAI C++ compiler.
  11565. case $host in
  11566. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11567. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11568. esac
  11569. ;;
  11570. RCC*)
  11571. # Rational C++ 2.4.1
  11572. # FIXME: insert proper C++ library support
  11573. ld_shlibs_CXX=no
  11574. ;;
  11575. cxx*)
  11576. case $host in
  11577. osf3*)
  11578. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11579. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11580. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11581. ;;
  11582. *)
  11583. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11584. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11585. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11586. echo "-hidden">> $lib.exp~
  11587. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11588. $RM $lib.exp'
  11589. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11590. ;;
  11591. esac
  11592. hardcode_libdir_separator_CXX=:
  11593. # Commands to make compiler produce verbose output that lists
  11594. # what "hidden" libraries, object files and flags are used when
  11595. # linking a shared library.
  11596. #
  11597. # There doesn't appear to be a way to prevent this compiler from
  11598. # explicitly linking system object files so we need to strip them
  11599. # from the output so that they don't get included in the library
  11600. # dependencies.
  11601. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11602. ;;
  11603. *)
  11604. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11605. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11606. case $host in
  11607. osf3*)
  11608. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11609. ;;
  11610. *)
  11611. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11612. ;;
  11613. esac
  11614. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11615. hardcode_libdir_separator_CXX=:
  11616. # Commands to make compiler produce verbose output that lists
  11617. # what "hidden" libraries, object files and flags are used when
  11618. # linking a shared library.
  11619. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11620. else
  11621. # FIXME: insert proper C++ library support
  11622. ld_shlibs_CXX=no
  11623. fi
  11624. ;;
  11625. esac
  11626. ;;
  11627. psos*)
  11628. # FIXME: insert proper C++ library support
  11629. ld_shlibs_CXX=no
  11630. ;;
  11631. sunos4*)
  11632. case $cc_basename in
  11633. CC*)
  11634. # Sun C++ 4.x
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. ;;
  11638. lcc*)
  11639. # Lucid
  11640. # FIXME: insert proper C++ library support
  11641. ld_shlibs_CXX=no
  11642. ;;
  11643. *)
  11644. # FIXME: insert proper C++ library support
  11645. ld_shlibs_CXX=no
  11646. ;;
  11647. esac
  11648. ;;
  11649. solaris*)
  11650. case $cc_basename in
  11651. CC* | sunCC*)
  11652. # Sun C++ 4.2, 5.x and Centerline C++
  11653. archive_cmds_need_lc_CXX=yes
  11654. no_undefined_flag_CXX=' -zdefs'
  11655. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11656. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11657. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11658. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11659. hardcode_shlibpath_var_CXX=no
  11660. case $host_os in
  11661. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11662. *)
  11663. # The compiler driver will combine and reorder linker options,
  11664. # but understands `-z linker_flag'.
  11665. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11666. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11667. ;;
  11668. esac
  11669. link_all_deplibs_CXX=yes
  11670. output_verbose_link_cmd='func_echo_all'
  11671. # Archives containing C++ object files must be created using
  11672. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11673. # necessary to make sure instantiated templates are included
  11674. # in the archive.
  11675. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11676. ;;
  11677. gcx*)
  11678. # Green Hills C++ Compiler
  11679. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11680. # The C++ compiler must be used to create the archive.
  11681. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11682. ;;
  11683. *)
  11684. # GNU C++ compiler with Solaris linker
  11685. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11686. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11687. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11688. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11689. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11690. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11691. # Commands to make compiler produce verbose output that lists
  11692. # what "hidden" libraries, object files and flags are used when
  11693. # linking a shared library.
  11694. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11695. else
  11696. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11697. # platform.
  11698. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11699. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11700. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11701. # Commands to make compiler produce verbose output that lists
  11702. # what "hidden" libraries, object files and flags are used when
  11703. # linking a shared library.
  11704. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11705. fi
  11706. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11707. case $host_os in
  11708. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11709. *)
  11710. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11711. ;;
  11712. esac
  11713. fi
  11714. ;;
  11715. esac
  11716. ;;
  11717. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11718. no_undefined_flag_CXX='${wl}-z,text'
  11719. archive_cmds_need_lc_CXX=no
  11720. hardcode_shlibpath_var_CXX=no
  11721. runpath_var='LD_RUN_PATH'
  11722. case $cc_basename in
  11723. CC*)
  11724. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11725. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11726. ;;
  11727. *)
  11728. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11729. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11730. ;;
  11731. esac
  11732. ;;
  11733. sysv5* | sco3.2v5* | sco5v6*)
  11734. # Note: We can NOT use -z defs as we might desire, because we do not
  11735. # link with -lc, and that would cause any symbols used from libc to
  11736. # always be unresolved, which means just about no library would
  11737. # ever link correctly. If we're not using GNU ld we use -z text
  11738. # though, which does catch some bad symbols but isn't as heavy-handed
  11739. # as -z defs.
  11740. no_undefined_flag_CXX='${wl}-z,text'
  11741. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11742. archive_cmds_need_lc_CXX=no
  11743. hardcode_shlibpath_var_CXX=no
  11744. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11745. hardcode_libdir_separator_CXX=':'
  11746. link_all_deplibs_CXX=yes
  11747. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11748. runpath_var='LD_RUN_PATH'
  11749. case $cc_basename in
  11750. CC*)
  11751. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11752. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11753. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11754. '"$old_archive_cmds_CXX"
  11755. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11756. '"$reload_cmds_CXX"
  11757. ;;
  11758. *)
  11759. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11760. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11761. ;;
  11762. esac
  11763. ;;
  11764. tandem*)
  11765. case $cc_basename in
  11766. NCC*)
  11767. # NonStop-UX NCC 3.20
  11768. # FIXME: insert proper C++ library support
  11769. ld_shlibs_CXX=no
  11770. ;;
  11771. *)
  11772. # FIXME: insert proper C++ library support
  11773. ld_shlibs_CXX=no
  11774. ;;
  11775. esac
  11776. ;;
  11777. vxworks*)
  11778. # FIXME: insert proper C++ library support
  11779. ld_shlibs_CXX=no
  11780. ;;
  11781. *)
  11782. # FIXME: insert proper C++ library support
  11783. ld_shlibs_CXX=no
  11784. ;;
  11785. esac
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11787. $as_echo "$ld_shlibs_CXX" >&6; }
  11788. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11789. GCC_CXX="$GXX"
  11790. LD_CXX="$LD"
  11791. ## CAVEAT EMPTOR:
  11792. ## There is no encapsulation within the following macros, do not change
  11793. ## the running order or otherwise move them around unless you know exactly
  11794. ## what you are doing...
  11795. # Dependencies to place before and after the object being linked:
  11796. predep_objects_CXX=
  11797. postdep_objects_CXX=
  11798. predeps_CXX=
  11799. postdeps_CXX=
  11800. compiler_lib_search_path_CXX=
  11801. cat > conftest.$ac_ext <<_LT_EOF
  11802. class Foo
  11803. {
  11804. public:
  11805. Foo (void) { a = 0; }
  11806. private:
  11807. int a;
  11808. };
  11809. _LT_EOF
  11810. _lt_libdeps_save_CFLAGS=$CFLAGS
  11811. case "$CC $CFLAGS " in #(
  11812. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11813. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11814. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11815. esac
  11816. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11817. (eval $ac_compile) 2>&5
  11818. ac_status=$?
  11819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11820. test $ac_status = 0; }; then
  11821. # Parse the compiler output and extract the necessary
  11822. # objects, libraries and library flags.
  11823. # Sentinel used to keep track of whether or not we are before
  11824. # the conftest object file.
  11825. pre_test_object_deps_done=no
  11826. for p in `eval "$output_verbose_link_cmd"`; do
  11827. case ${prev}${p} in
  11828. -L* | -R* | -l*)
  11829. # Some compilers place space between "-{L,R}" and the path.
  11830. # Remove the space.
  11831. if test $p = "-L" ||
  11832. test $p = "-R"; then
  11833. prev=$p
  11834. continue
  11835. fi
  11836. # Expand the sysroot to ease extracting the directories later.
  11837. if test -z "$prev"; then
  11838. case $p in
  11839. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11840. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11841. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11842. esac
  11843. fi
  11844. case $p in
  11845. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11846. esac
  11847. if test "$pre_test_object_deps_done" = no; then
  11848. case ${prev} in
  11849. -L | -R)
  11850. # Internal compiler library paths should come after those
  11851. # provided the user. The postdeps already come after the
  11852. # user supplied libs so there is no need to process them.
  11853. if test -z "$compiler_lib_search_path_CXX"; then
  11854. compiler_lib_search_path_CXX="${prev}${p}"
  11855. else
  11856. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11857. fi
  11858. ;;
  11859. # The "-l" case would never come before the object being
  11860. # linked, so don't bother handling this case.
  11861. esac
  11862. else
  11863. if test -z "$postdeps_CXX"; then
  11864. postdeps_CXX="${prev}${p}"
  11865. else
  11866. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11867. fi
  11868. fi
  11869. prev=
  11870. ;;
  11871. *.lto.$objext) ;; # Ignore GCC LTO objects
  11872. *.$objext)
  11873. # This assumes that the test object file only shows up
  11874. # once in the compiler output.
  11875. if test "$p" = "conftest.$objext"; then
  11876. pre_test_object_deps_done=yes
  11877. continue
  11878. fi
  11879. if test "$pre_test_object_deps_done" = no; then
  11880. if test -z "$predep_objects_CXX"; then
  11881. predep_objects_CXX="$p"
  11882. else
  11883. predep_objects_CXX="$predep_objects_CXX $p"
  11884. fi
  11885. else
  11886. if test -z "$postdep_objects_CXX"; then
  11887. postdep_objects_CXX="$p"
  11888. else
  11889. postdep_objects_CXX="$postdep_objects_CXX $p"
  11890. fi
  11891. fi
  11892. ;;
  11893. *) ;; # Ignore the rest.
  11894. esac
  11895. done
  11896. # Clean up.
  11897. rm -f a.out a.exe
  11898. else
  11899. echo "libtool.m4: error: problem compiling CXX test program"
  11900. fi
  11901. $RM -f confest.$objext
  11902. CFLAGS=$_lt_libdeps_save_CFLAGS
  11903. # PORTME: override above test on systems where it is broken
  11904. case $host_os in
  11905. interix[3-9]*)
  11906. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11907. # hack all around it, let's just trust "g++" to DTRT.
  11908. predep_objects_CXX=
  11909. postdep_objects_CXX=
  11910. postdeps_CXX=
  11911. ;;
  11912. linux*)
  11913. case `$CC -V 2>&1 | sed 5q` in
  11914. *Sun\ C*)
  11915. # Sun C++ 5.9
  11916. # The more standards-conforming stlport4 library is
  11917. # incompatible with the Cstd library. Avoid specifying
  11918. # it if it's in CXXFLAGS. Ignore libCrun as
  11919. # -library=stlport4 depends on it.
  11920. case " $CXX $CXXFLAGS " in
  11921. *" -library=stlport4 "*)
  11922. solaris_use_stlport4=yes
  11923. ;;
  11924. esac
  11925. if test "$solaris_use_stlport4" != yes; then
  11926. postdeps_CXX='-library=Cstd -library=Crun'
  11927. fi
  11928. ;;
  11929. esac
  11930. ;;
  11931. solaris*)
  11932. case $cc_basename in
  11933. CC* | sunCC*)
  11934. # The more standards-conforming stlport4 library is
  11935. # incompatible with the Cstd library. Avoid specifying
  11936. # it if it's in CXXFLAGS. Ignore libCrun as
  11937. # -library=stlport4 depends on it.
  11938. case " $CXX $CXXFLAGS " in
  11939. *" -library=stlport4 "*)
  11940. solaris_use_stlport4=yes
  11941. ;;
  11942. esac
  11943. # Adding this requires a known-good setup of shared libraries for
  11944. # Sun compiler versions before 5.6, else PIC objects from an old
  11945. # archive will be linked into the output, leading to subtle bugs.
  11946. if test "$solaris_use_stlport4" != yes; then
  11947. postdeps_CXX='-library=Cstd -library=Crun'
  11948. fi
  11949. ;;
  11950. esac
  11951. ;;
  11952. esac
  11953. case " $postdeps_CXX " in
  11954. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11955. esac
  11956. compiler_lib_search_dirs_CXX=
  11957. if test -n "${compiler_lib_search_path_CXX}"; then
  11958. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11959. fi
  11960. lt_prog_compiler_wl_CXX=
  11961. lt_prog_compiler_pic_CXX=
  11962. lt_prog_compiler_static_CXX=
  11963. # C++ specific cases for pic, static, wl, etc.
  11964. if test "$GXX" = yes; then
  11965. lt_prog_compiler_wl_CXX='-Wl,'
  11966. lt_prog_compiler_static_CXX='-static'
  11967. case $host_os in
  11968. aix*)
  11969. # All AIX code is PIC.
  11970. if test "$host_cpu" = ia64; then
  11971. # AIX 5 now supports IA64 processor
  11972. lt_prog_compiler_static_CXX='-Bstatic'
  11973. fi
  11974. ;;
  11975. amigaos*)
  11976. case $host_cpu in
  11977. powerpc)
  11978. # see comment about AmigaOS4 .so support
  11979. lt_prog_compiler_pic_CXX='-fPIC'
  11980. ;;
  11981. m68k)
  11982. # FIXME: we need at least 68020 code to build shared libraries, but
  11983. # adding the `-m68020' flag to GCC prevents building anything better,
  11984. # like `-m68040'.
  11985. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11986. ;;
  11987. esac
  11988. ;;
  11989. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11990. # PIC is the default for these OSes.
  11991. ;;
  11992. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11993. # This hack is so that the source file can tell whether it is being
  11994. # built for inclusion in a dll (and should export symbols for example).
  11995. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11996. # (--disable-auto-import) libraries
  11997. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11998. ;;
  11999. darwin* | rhapsody*)
  12000. # PIC is the default on this platform
  12001. # Common symbols not allowed in MH_DYLIB files
  12002. lt_prog_compiler_pic_CXX='-fno-common'
  12003. ;;
  12004. *djgpp*)
  12005. # DJGPP does not support shared libraries at all
  12006. lt_prog_compiler_pic_CXX=
  12007. ;;
  12008. haiku*)
  12009. # PIC is the default for Haiku.
  12010. # The "-static" flag exists, but is broken.
  12011. lt_prog_compiler_static_CXX=
  12012. ;;
  12013. interix[3-9]*)
  12014. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12015. # Instead, we relocate shared libraries at runtime.
  12016. ;;
  12017. sysv4*MP*)
  12018. if test -d /usr/nec; then
  12019. lt_prog_compiler_pic_CXX=-Kconform_pic
  12020. fi
  12021. ;;
  12022. hpux*)
  12023. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12024. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12025. # sets the default TLS model and affects inlining.
  12026. case $host_cpu in
  12027. hppa*64*)
  12028. ;;
  12029. *)
  12030. lt_prog_compiler_pic_CXX='-fPIC'
  12031. ;;
  12032. esac
  12033. ;;
  12034. *qnx* | *nto*)
  12035. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12036. # it will coredump.
  12037. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12038. ;;
  12039. *)
  12040. lt_prog_compiler_pic_CXX='-fPIC'
  12041. ;;
  12042. esac
  12043. else
  12044. case $host_os in
  12045. aix[4-9]*)
  12046. # All AIX code is PIC.
  12047. if test "$host_cpu" = ia64; then
  12048. # AIX 5 now supports IA64 processor
  12049. lt_prog_compiler_static_CXX='-Bstatic'
  12050. else
  12051. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12052. fi
  12053. ;;
  12054. chorus*)
  12055. case $cc_basename in
  12056. cxch68*)
  12057. # Green Hills C++ Compiler
  12058. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12059. ;;
  12060. esac
  12061. ;;
  12062. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12063. # This hack is so that the source file can tell whether it is being
  12064. # built for inclusion in a dll (and should export symbols for example).
  12065. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12066. ;;
  12067. dgux*)
  12068. case $cc_basename in
  12069. ec++*)
  12070. lt_prog_compiler_pic_CXX='-KPIC'
  12071. ;;
  12072. ghcx*)
  12073. # Green Hills C++ Compiler
  12074. lt_prog_compiler_pic_CXX='-pic'
  12075. ;;
  12076. *)
  12077. ;;
  12078. esac
  12079. ;;
  12080. freebsd* | dragonfly*)
  12081. # FreeBSD uses GNU C++
  12082. ;;
  12083. hpux9* | hpux10* | hpux11*)
  12084. case $cc_basename in
  12085. CC*)
  12086. lt_prog_compiler_wl_CXX='-Wl,'
  12087. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12088. if test "$host_cpu" != ia64; then
  12089. lt_prog_compiler_pic_CXX='+Z'
  12090. fi
  12091. ;;
  12092. aCC*)
  12093. lt_prog_compiler_wl_CXX='-Wl,'
  12094. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12095. case $host_cpu in
  12096. hppa*64*|ia64*)
  12097. # +Z the default
  12098. ;;
  12099. *)
  12100. lt_prog_compiler_pic_CXX='+Z'
  12101. ;;
  12102. esac
  12103. ;;
  12104. *)
  12105. ;;
  12106. esac
  12107. ;;
  12108. interix*)
  12109. # This is c89, which is MS Visual C++ (no shared libs)
  12110. # Anyone wants to do a port?
  12111. ;;
  12112. irix5* | irix6* | nonstopux*)
  12113. case $cc_basename in
  12114. CC*)
  12115. lt_prog_compiler_wl_CXX='-Wl,'
  12116. lt_prog_compiler_static_CXX='-non_shared'
  12117. # CC pic flag -KPIC is the default.
  12118. ;;
  12119. *)
  12120. ;;
  12121. esac
  12122. ;;
  12123. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12124. case $cc_basename in
  12125. KCC*)
  12126. # KAI C++ Compiler
  12127. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12128. lt_prog_compiler_pic_CXX='-fPIC'
  12129. ;;
  12130. ecpc* )
  12131. # old Intel C++ for x86_64 which still supported -KPIC.
  12132. lt_prog_compiler_wl_CXX='-Wl,'
  12133. lt_prog_compiler_pic_CXX='-KPIC'
  12134. lt_prog_compiler_static_CXX='-static'
  12135. ;;
  12136. icpc* )
  12137. # Intel C++, used to be incompatible with GCC.
  12138. # ICC 10 doesn't accept -KPIC any more.
  12139. lt_prog_compiler_wl_CXX='-Wl,'
  12140. lt_prog_compiler_pic_CXX='-fPIC'
  12141. lt_prog_compiler_static_CXX='-static'
  12142. ;;
  12143. pgCC* | pgcpp*)
  12144. # Portland Group C++ compiler
  12145. lt_prog_compiler_wl_CXX='-Wl,'
  12146. lt_prog_compiler_pic_CXX='-fpic'
  12147. lt_prog_compiler_static_CXX='-Bstatic'
  12148. ;;
  12149. cxx*)
  12150. # Compaq C++
  12151. # Make sure the PIC flag is empty. It appears that all Alpha
  12152. # Linux and Compaq Tru64 Unix objects are PIC.
  12153. lt_prog_compiler_pic_CXX=
  12154. lt_prog_compiler_static_CXX='-non_shared'
  12155. ;;
  12156. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12157. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12158. lt_prog_compiler_wl_CXX='-Wl,'
  12159. lt_prog_compiler_pic_CXX='-qpic'
  12160. lt_prog_compiler_static_CXX='-qstaticlink'
  12161. ;;
  12162. *)
  12163. case `$CC -V 2>&1 | sed 5q` in
  12164. *Sun\ C*)
  12165. # Sun C++ 5.9
  12166. lt_prog_compiler_pic_CXX='-KPIC'
  12167. lt_prog_compiler_static_CXX='-Bstatic'
  12168. lt_prog_compiler_wl_CXX='-Qoption ld '
  12169. ;;
  12170. esac
  12171. ;;
  12172. esac
  12173. ;;
  12174. lynxos*)
  12175. ;;
  12176. m88k*)
  12177. ;;
  12178. mvs*)
  12179. case $cc_basename in
  12180. cxx*)
  12181. lt_prog_compiler_pic_CXX='-W c,exportall'
  12182. ;;
  12183. *)
  12184. ;;
  12185. esac
  12186. ;;
  12187. netbsd*)
  12188. ;;
  12189. *qnx* | *nto*)
  12190. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12191. # it will coredump.
  12192. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12193. ;;
  12194. osf3* | osf4* | osf5*)
  12195. case $cc_basename in
  12196. KCC*)
  12197. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12198. ;;
  12199. RCC*)
  12200. # Rational C++ 2.4.1
  12201. lt_prog_compiler_pic_CXX='-pic'
  12202. ;;
  12203. cxx*)
  12204. # Digital/Compaq C++
  12205. lt_prog_compiler_wl_CXX='-Wl,'
  12206. # Make sure the PIC flag is empty. It appears that all Alpha
  12207. # Linux and Compaq Tru64 Unix objects are PIC.
  12208. lt_prog_compiler_pic_CXX=
  12209. lt_prog_compiler_static_CXX='-non_shared'
  12210. ;;
  12211. *)
  12212. ;;
  12213. esac
  12214. ;;
  12215. psos*)
  12216. ;;
  12217. solaris*)
  12218. case $cc_basename in
  12219. CC* | sunCC*)
  12220. # Sun C++ 4.2, 5.x and Centerline C++
  12221. lt_prog_compiler_pic_CXX='-KPIC'
  12222. lt_prog_compiler_static_CXX='-Bstatic'
  12223. lt_prog_compiler_wl_CXX='-Qoption ld '
  12224. ;;
  12225. gcx*)
  12226. # Green Hills C++ Compiler
  12227. lt_prog_compiler_pic_CXX='-PIC'
  12228. ;;
  12229. *)
  12230. ;;
  12231. esac
  12232. ;;
  12233. sunos4*)
  12234. case $cc_basename in
  12235. CC*)
  12236. # Sun C++ 4.x
  12237. lt_prog_compiler_pic_CXX='-pic'
  12238. lt_prog_compiler_static_CXX='-Bstatic'
  12239. ;;
  12240. lcc*)
  12241. # Lucid
  12242. lt_prog_compiler_pic_CXX='-pic'
  12243. ;;
  12244. *)
  12245. ;;
  12246. esac
  12247. ;;
  12248. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12249. case $cc_basename in
  12250. CC*)
  12251. lt_prog_compiler_wl_CXX='-Wl,'
  12252. lt_prog_compiler_pic_CXX='-KPIC'
  12253. lt_prog_compiler_static_CXX='-Bstatic'
  12254. ;;
  12255. esac
  12256. ;;
  12257. tandem*)
  12258. case $cc_basename in
  12259. NCC*)
  12260. # NonStop-UX NCC 3.20
  12261. lt_prog_compiler_pic_CXX='-KPIC'
  12262. ;;
  12263. *)
  12264. ;;
  12265. esac
  12266. ;;
  12267. vxworks*)
  12268. ;;
  12269. *)
  12270. lt_prog_compiler_can_build_shared_CXX=no
  12271. ;;
  12272. esac
  12273. fi
  12274. case $host_os in
  12275. # For platforms which do not support PIC, -DPIC is meaningless:
  12276. *djgpp*)
  12277. lt_prog_compiler_pic_CXX=
  12278. ;;
  12279. *)
  12280. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12281. ;;
  12282. esac
  12283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12284. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12285. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12286. $as_echo_n "(cached) " >&6
  12287. else
  12288. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12291. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12292. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12293. #
  12294. # Check to make sure the PIC flag actually works.
  12295. #
  12296. if test -n "$lt_prog_compiler_pic_CXX"; then
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12298. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12299. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12300. $as_echo_n "(cached) " >&6
  12301. else
  12302. lt_cv_prog_compiler_pic_works_CXX=no
  12303. ac_outfile=conftest.$ac_objext
  12304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12305. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12306. # Insert the option either (1) after the last *FLAGS variable, or
  12307. # (2) before a word containing "conftest.", or (3) at the end.
  12308. # Note that $ac_compile itself does not contain backslashes and begins
  12309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12310. # The option is referenced via a variable to avoid confusing sed.
  12311. lt_compile=`echo "$ac_compile" | $SED \
  12312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12314. -e 's:$: $lt_compiler_flag:'`
  12315. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12316. (eval "$lt_compile" 2>conftest.err)
  12317. ac_status=$?
  12318. cat conftest.err >&5
  12319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12320. if (exit $ac_status) && test -s "$ac_outfile"; then
  12321. # The compiler can only warn and ignore the option if not recognized
  12322. # So say no if there are warnings other than the usual output.
  12323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12324. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12325. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12326. lt_cv_prog_compiler_pic_works_CXX=yes
  12327. fi
  12328. fi
  12329. $RM conftest*
  12330. fi
  12331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12332. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12333. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12334. case $lt_prog_compiler_pic_CXX in
  12335. "" | " "*) ;;
  12336. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12337. esac
  12338. else
  12339. lt_prog_compiler_pic_CXX=
  12340. lt_prog_compiler_can_build_shared_CXX=no
  12341. fi
  12342. fi
  12343. #
  12344. # Check to make sure the static flag actually works.
  12345. #
  12346. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12348. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12349. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12350. $as_echo_n "(cached) " >&6
  12351. else
  12352. lt_cv_prog_compiler_static_works_CXX=no
  12353. save_LDFLAGS="$LDFLAGS"
  12354. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12355. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12356. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12357. # The linker can only warn and ignore the option if not recognized
  12358. # So say no if there are warnings
  12359. if test -s conftest.err; then
  12360. # Append any errors to the config.log.
  12361. cat conftest.err 1>&5
  12362. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12364. if diff conftest.exp conftest.er2 >/dev/null; then
  12365. lt_cv_prog_compiler_static_works_CXX=yes
  12366. fi
  12367. else
  12368. lt_cv_prog_compiler_static_works_CXX=yes
  12369. fi
  12370. fi
  12371. $RM -r conftest*
  12372. LDFLAGS="$save_LDFLAGS"
  12373. fi
  12374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12375. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12376. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12377. :
  12378. else
  12379. lt_prog_compiler_static_CXX=
  12380. fi
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12382. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12383. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12384. $as_echo_n "(cached) " >&6
  12385. else
  12386. lt_cv_prog_compiler_c_o_CXX=no
  12387. $RM -r conftest 2>/dev/null
  12388. mkdir conftest
  12389. cd conftest
  12390. mkdir out
  12391. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12392. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12393. # Insert the option either (1) after the last *FLAGS variable, or
  12394. # (2) before a word containing "conftest.", or (3) at the end.
  12395. # Note that $ac_compile itself does not contain backslashes and begins
  12396. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12397. lt_compile=`echo "$ac_compile" | $SED \
  12398. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12399. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12400. -e 's:$: $lt_compiler_flag:'`
  12401. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12402. (eval "$lt_compile" 2>out/conftest.err)
  12403. ac_status=$?
  12404. cat out/conftest.err >&5
  12405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12406. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12407. then
  12408. # The compiler can only warn and ignore the option if not recognized
  12409. # So say no if there are warnings
  12410. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12411. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12412. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12413. lt_cv_prog_compiler_c_o_CXX=yes
  12414. fi
  12415. fi
  12416. chmod u+w . 2>&5
  12417. $RM conftest*
  12418. # SGI C++ compiler will create directory out/ii_files/ for
  12419. # template instantiation
  12420. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12421. $RM out/* && rmdir out
  12422. cd ..
  12423. $RM -r conftest
  12424. $RM conftest*
  12425. fi
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12427. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12429. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12430. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12431. $as_echo_n "(cached) " >&6
  12432. else
  12433. lt_cv_prog_compiler_c_o_CXX=no
  12434. $RM -r conftest 2>/dev/null
  12435. mkdir conftest
  12436. cd conftest
  12437. mkdir out
  12438. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12439. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12440. # Insert the option either (1) after the last *FLAGS variable, or
  12441. # (2) before a word containing "conftest.", or (3) at the end.
  12442. # Note that $ac_compile itself does not contain backslashes and begins
  12443. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12444. lt_compile=`echo "$ac_compile" | $SED \
  12445. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12446. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12447. -e 's:$: $lt_compiler_flag:'`
  12448. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12449. (eval "$lt_compile" 2>out/conftest.err)
  12450. ac_status=$?
  12451. cat out/conftest.err >&5
  12452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12453. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12454. then
  12455. # The compiler can only warn and ignore the option if not recognized
  12456. # So say no if there are warnings
  12457. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12458. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12459. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12460. lt_cv_prog_compiler_c_o_CXX=yes
  12461. fi
  12462. fi
  12463. chmod u+w . 2>&5
  12464. $RM conftest*
  12465. # SGI C++ compiler will create directory out/ii_files/ for
  12466. # template instantiation
  12467. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12468. $RM out/* && rmdir out
  12469. cd ..
  12470. $RM -r conftest
  12471. $RM conftest*
  12472. fi
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12474. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12475. hard_links="nottested"
  12476. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12477. # do not overwrite the value of need_locks provided by the user
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12479. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12480. hard_links=yes
  12481. $RM conftest*
  12482. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12483. touch conftest.a
  12484. ln conftest.a conftest.b 2>&5 || hard_links=no
  12485. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12487. $as_echo "$hard_links" >&6; }
  12488. if test "$hard_links" = no; then
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12490. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12491. need_locks=warn
  12492. fi
  12493. else
  12494. need_locks=no
  12495. fi
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12497. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12498. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12499. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12500. case $host_os in
  12501. aix[4-9]*)
  12502. # If we're using GNU nm, then we don't want the "-C" option.
  12503. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12504. # Also, AIX nm treats weak defined symbols like other global defined
  12505. # symbols, whereas GNU nm marks them as "W".
  12506. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12507. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12508. else
  12509. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12510. fi
  12511. ;;
  12512. pw32*)
  12513. export_symbols_cmds_CXX="$ltdll_cmds"
  12514. ;;
  12515. cygwin* | mingw* | cegcc*)
  12516. case $cc_basename in
  12517. cl*)
  12518. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12519. ;;
  12520. *)
  12521. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12522. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12523. ;;
  12524. esac
  12525. ;;
  12526. *)
  12527. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12528. ;;
  12529. esac
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12531. $as_echo "$ld_shlibs_CXX" >&6; }
  12532. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12533. with_gnu_ld_CXX=$with_gnu_ld
  12534. #
  12535. # Do we need to explicitly link libc?
  12536. #
  12537. case "x$archive_cmds_need_lc_CXX" in
  12538. x|xyes)
  12539. # Assume -lc should be added
  12540. archive_cmds_need_lc_CXX=yes
  12541. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12542. case $archive_cmds_CXX in
  12543. *'~'*)
  12544. # FIXME: we may have to deal with multi-command sequences.
  12545. ;;
  12546. '$CC '*)
  12547. # Test whether the compiler implicitly links with -lc since on some
  12548. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12549. # to ld, don't add -lc before -lgcc.
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12551. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12552. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12553. $as_echo_n "(cached) " >&6
  12554. else
  12555. $RM conftest*
  12556. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12557. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12558. (eval $ac_compile) 2>&5
  12559. ac_status=$?
  12560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12561. test $ac_status = 0; } 2>conftest.err; then
  12562. soname=conftest
  12563. lib=conftest
  12564. libobjs=conftest.$ac_objext
  12565. deplibs=
  12566. wl=$lt_prog_compiler_wl_CXX
  12567. pic_flag=$lt_prog_compiler_pic_CXX
  12568. compiler_flags=-v
  12569. linker_flags=-v
  12570. verstring=
  12571. output_objdir=.
  12572. libname=conftest
  12573. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12574. allow_undefined_flag_CXX=
  12575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12576. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12577. ac_status=$?
  12578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12579. test $ac_status = 0; }
  12580. then
  12581. lt_cv_archive_cmds_need_lc_CXX=no
  12582. else
  12583. lt_cv_archive_cmds_need_lc_CXX=yes
  12584. fi
  12585. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12586. else
  12587. cat conftest.err 1>&5
  12588. fi
  12589. $RM conftest*
  12590. fi
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12592. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12593. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12594. ;;
  12595. esac
  12596. fi
  12597. ;;
  12598. esac
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12600. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12601. library_names_spec=
  12602. libname_spec='lib$name'
  12603. soname_spec=
  12604. shrext_cmds=".so"
  12605. postinstall_cmds=
  12606. postuninstall_cmds=
  12607. finish_cmds=
  12608. finish_eval=
  12609. shlibpath_var=
  12610. shlibpath_overrides_runpath=unknown
  12611. version_type=none
  12612. dynamic_linker="$host_os ld.so"
  12613. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12614. need_lib_prefix=unknown
  12615. hardcode_into_libs=no
  12616. # when you set need_version to no, make sure it does not cause -set_version
  12617. # flags to be left without arguments
  12618. need_version=unknown
  12619. case $host_os in
  12620. aix3*)
  12621. version_type=linux # correct to gnu/linux during the next big refactor
  12622. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12623. shlibpath_var=LIBPATH
  12624. # AIX 3 has no versioning support, so we append a major version to the name.
  12625. soname_spec='${libname}${release}${shared_ext}$major'
  12626. ;;
  12627. aix[4-9]*)
  12628. version_type=linux # correct to gnu/linux during the next big refactor
  12629. need_lib_prefix=no
  12630. need_version=no
  12631. hardcode_into_libs=yes
  12632. if test "$host_cpu" = ia64; then
  12633. # AIX 5 supports IA64
  12634. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12635. shlibpath_var=LD_LIBRARY_PATH
  12636. else
  12637. # With GCC up to 2.95.x, collect2 would create an import file
  12638. # for dependence libraries. The import file would start with
  12639. # the line `#! .'. This would cause the generated library to
  12640. # depend on `.', always an invalid library. This was fixed in
  12641. # development snapshots of GCC prior to 3.0.
  12642. case $host_os in
  12643. aix4 | aix4.[01] | aix4.[01].*)
  12644. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12645. echo ' yes '
  12646. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12647. :
  12648. else
  12649. can_build_shared=no
  12650. fi
  12651. ;;
  12652. esac
  12653. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12654. # soname into executable. Probably we can add versioning support to
  12655. # collect2, so additional links can be useful in future.
  12656. if test "$aix_use_runtimelinking" = yes; then
  12657. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12658. # instead of lib<name>.a to let people know that these are not
  12659. # typical AIX shared libraries.
  12660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12661. else
  12662. # We preserve .a as extension for shared libraries through AIX4.2
  12663. # and later when we are not doing run time linking.
  12664. library_names_spec='${libname}${release}.a $libname.a'
  12665. soname_spec='${libname}${release}${shared_ext}$major'
  12666. fi
  12667. shlibpath_var=LIBPATH
  12668. fi
  12669. ;;
  12670. amigaos*)
  12671. case $host_cpu in
  12672. powerpc)
  12673. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12674. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12676. ;;
  12677. m68k)
  12678. library_names_spec='$libname.ixlibrary $libname.a'
  12679. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12680. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12681. ;;
  12682. esac
  12683. ;;
  12684. beos*)
  12685. library_names_spec='${libname}${shared_ext}'
  12686. dynamic_linker="$host_os ld.so"
  12687. shlibpath_var=LIBRARY_PATH
  12688. ;;
  12689. bsdi[45]*)
  12690. version_type=linux # correct to gnu/linux during the next big refactor
  12691. need_version=no
  12692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12693. soname_spec='${libname}${release}${shared_ext}$major'
  12694. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12695. shlibpath_var=LD_LIBRARY_PATH
  12696. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12697. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12698. # the default ld.so.conf also contains /usr/contrib/lib and
  12699. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12700. # libtool to hard-code these into programs
  12701. ;;
  12702. cygwin* | mingw* | pw32* | cegcc*)
  12703. version_type=windows
  12704. shrext_cmds=".dll"
  12705. need_version=no
  12706. need_lib_prefix=no
  12707. case $GCC,$cc_basename in
  12708. yes,*)
  12709. # gcc
  12710. library_names_spec='$libname.dll.a'
  12711. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12712. postinstall_cmds='base_file=`basename \${file}`~
  12713. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12714. dldir=$destdir/`dirname \$dlpath`~
  12715. test -d \$dldir || mkdir -p \$dldir~
  12716. $install_prog $dir/$dlname \$dldir/$dlname~
  12717. chmod a+x \$dldir/$dlname~
  12718. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12719. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12720. fi'
  12721. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12722. dlpath=$dir/\$dldll~
  12723. $RM \$dlpath'
  12724. shlibpath_overrides_runpath=yes
  12725. case $host_os in
  12726. cygwin*)
  12727. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12728. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12729. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12730. ;;
  12731. mingw* | cegcc*)
  12732. # MinGW DLLs use traditional 'lib' prefix
  12733. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12734. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12735. ;;
  12736. pw32*)
  12737. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12738. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12739. ;;
  12740. esac
  12741. dynamic_linker='Win32 ld.exe'
  12742. ;;
  12743. *,cl*)
  12744. # Native MSVC
  12745. libname_spec='$name'
  12746. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12747. library_names_spec='${libname}.dll.lib'
  12748. case $build_os in
  12749. mingw*)
  12750. sys_lib_search_path_spec=
  12751. lt_save_ifs=$IFS
  12752. IFS=';'
  12753. for lt_path in $LIB
  12754. do
  12755. IFS=$lt_save_ifs
  12756. # Let DOS variable expansion print the short 8.3 style file name.
  12757. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12758. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12759. done
  12760. IFS=$lt_save_ifs
  12761. # Convert to MSYS style.
  12762. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12763. ;;
  12764. cygwin*)
  12765. # Convert to unix form, then to dos form, then back to unix form
  12766. # but this time dos style (no spaces!) so that the unix form looks
  12767. # like /cygdrive/c/PROGRA~1:/cygdr...
  12768. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12769. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12770. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12771. ;;
  12772. *)
  12773. sys_lib_search_path_spec="$LIB"
  12774. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12775. # It is most probably a Windows format PATH.
  12776. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12777. else
  12778. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12779. fi
  12780. # FIXME: find the short name or the path components, as spaces are
  12781. # common. (e.g. "Program Files" -> "PROGRA~1")
  12782. ;;
  12783. esac
  12784. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12785. postinstall_cmds='base_file=`basename \${file}`~
  12786. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12787. dldir=$destdir/`dirname \$dlpath`~
  12788. test -d \$dldir || mkdir -p \$dldir~
  12789. $install_prog $dir/$dlname \$dldir/$dlname'
  12790. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12791. dlpath=$dir/\$dldll~
  12792. $RM \$dlpath'
  12793. shlibpath_overrides_runpath=yes
  12794. dynamic_linker='Win32 link.exe'
  12795. ;;
  12796. *)
  12797. # Assume MSVC wrapper
  12798. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12799. dynamic_linker='Win32 ld.exe'
  12800. ;;
  12801. esac
  12802. # FIXME: first we should search . and the directory the executable is in
  12803. shlibpath_var=PATH
  12804. ;;
  12805. darwin* | rhapsody*)
  12806. dynamic_linker="$host_os dyld"
  12807. version_type=darwin
  12808. need_lib_prefix=no
  12809. need_version=no
  12810. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12811. soname_spec='${libname}${release}${major}$shared_ext'
  12812. shlibpath_overrides_runpath=yes
  12813. shlibpath_var=DYLD_LIBRARY_PATH
  12814. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12815. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12816. ;;
  12817. dgux*)
  12818. version_type=linux # correct to gnu/linux during the next big refactor
  12819. need_lib_prefix=no
  12820. need_version=no
  12821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12822. soname_spec='${libname}${release}${shared_ext}$major'
  12823. shlibpath_var=LD_LIBRARY_PATH
  12824. ;;
  12825. freebsd* | dragonfly*)
  12826. # DragonFly does not have aout. When/if they implement a new
  12827. # versioning mechanism, adjust this.
  12828. if test -x /usr/bin/objformat; then
  12829. objformat=`/usr/bin/objformat`
  12830. else
  12831. case $host_os in
  12832. freebsd[23].*) objformat=aout ;;
  12833. *) objformat=elf ;;
  12834. esac
  12835. fi
  12836. version_type=freebsd-$objformat
  12837. case $version_type in
  12838. freebsd-elf*)
  12839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12840. need_version=no
  12841. need_lib_prefix=no
  12842. ;;
  12843. freebsd-*)
  12844. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12845. need_version=yes
  12846. ;;
  12847. esac
  12848. shlibpath_var=LD_LIBRARY_PATH
  12849. case $host_os in
  12850. freebsd2.*)
  12851. shlibpath_overrides_runpath=yes
  12852. ;;
  12853. freebsd3.[01]* | freebsdelf3.[01]*)
  12854. shlibpath_overrides_runpath=yes
  12855. hardcode_into_libs=yes
  12856. ;;
  12857. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12858. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12859. shlibpath_overrides_runpath=no
  12860. hardcode_into_libs=yes
  12861. ;;
  12862. *) # from 4.6 on, and DragonFly
  12863. shlibpath_overrides_runpath=yes
  12864. hardcode_into_libs=yes
  12865. ;;
  12866. esac
  12867. ;;
  12868. gnu*)
  12869. version_type=linux # correct to gnu/linux during the next big refactor
  12870. need_lib_prefix=no
  12871. need_version=no
  12872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12873. soname_spec='${libname}${release}${shared_ext}$major'
  12874. shlibpath_var=LD_LIBRARY_PATH
  12875. shlibpath_overrides_runpath=no
  12876. hardcode_into_libs=yes
  12877. ;;
  12878. haiku*)
  12879. version_type=linux # correct to gnu/linux during the next big refactor
  12880. need_lib_prefix=no
  12881. need_version=no
  12882. dynamic_linker="$host_os runtime_loader"
  12883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12884. soname_spec='${libname}${release}${shared_ext}$major'
  12885. shlibpath_var=LIBRARY_PATH
  12886. shlibpath_overrides_runpath=yes
  12887. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12888. hardcode_into_libs=yes
  12889. ;;
  12890. hpux9* | hpux10* | hpux11*)
  12891. # Give a soname corresponding to the major version so that dld.sl refuses to
  12892. # link against other versions.
  12893. version_type=sunos
  12894. need_lib_prefix=no
  12895. need_version=no
  12896. case $host_cpu in
  12897. ia64*)
  12898. shrext_cmds='.so'
  12899. hardcode_into_libs=yes
  12900. dynamic_linker="$host_os dld.so"
  12901. shlibpath_var=LD_LIBRARY_PATH
  12902. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12904. soname_spec='${libname}${release}${shared_ext}$major'
  12905. if test "X$HPUX_IA64_MODE" = X32; then
  12906. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12907. else
  12908. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12909. fi
  12910. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12911. ;;
  12912. hppa*64*)
  12913. shrext_cmds='.sl'
  12914. hardcode_into_libs=yes
  12915. dynamic_linker="$host_os dld.sl"
  12916. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12917. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12919. soname_spec='${libname}${release}${shared_ext}$major'
  12920. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12922. ;;
  12923. *)
  12924. shrext_cmds='.sl'
  12925. dynamic_linker="$host_os dld.sl"
  12926. shlibpath_var=SHLIB_PATH
  12927. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12929. soname_spec='${libname}${release}${shared_ext}$major'
  12930. ;;
  12931. esac
  12932. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12933. postinstall_cmds='chmod 555 $lib'
  12934. # or fails outright, so override atomically:
  12935. install_override_mode=555
  12936. ;;
  12937. interix[3-9]*)
  12938. version_type=linux # correct to gnu/linux during the next big refactor
  12939. need_lib_prefix=no
  12940. need_version=no
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12944. shlibpath_var=LD_LIBRARY_PATH
  12945. shlibpath_overrides_runpath=no
  12946. hardcode_into_libs=yes
  12947. ;;
  12948. irix5* | irix6* | nonstopux*)
  12949. case $host_os in
  12950. nonstopux*) version_type=nonstopux ;;
  12951. *)
  12952. if test "$lt_cv_prog_gnu_ld" = yes; then
  12953. version_type=linux # correct to gnu/linux during the next big refactor
  12954. else
  12955. version_type=irix
  12956. fi ;;
  12957. esac
  12958. need_lib_prefix=no
  12959. need_version=no
  12960. soname_spec='${libname}${release}${shared_ext}$major'
  12961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12962. case $host_os in
  12963. irix5* | nonstopux*)
  12964. libsuff= shlibsuff=
  12965. ;;
  12966. *)
  12967. case $LD in # libtool.m4 will add one of these switches to LD
  12968. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12969. libsuff= shlibsuff= libmagic=32-bit;;
  12970. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12971. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12972. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12973. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12974. *) libsuff= shlibsuff= libmagic=never-match;;
  12975. esac
  12976. ;;
  12977. esac
  12978. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12979. shlibpath_overrides_runpath=no
  12980. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12981. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12982. hardcode_into_libs=yes
  12983. ;;
  12984. # No shared lib support for Linux oldld, aout, or coff.
  12985. linux*oldld* | linux*aout* | linux*coff*)
  12986. dynamic_linker=no
  12987. ;;
  12988. # This must be glibc/ELF.
  12989. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12990. version_type=linux # correct to gnu/linux during the next big refactor
  12991. need_lib_prefix=no
  12992. need_version=no
  12993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12994. soname_spec='${libname}${release}${shared_ext}$major'
  12995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12996. shlibpath_var=LD_LIBRARY_PATH
  12997. shlibpath_overrides_runpath=no
  12998. # Some binutils ld are patched to set DT_RUNPATH
  12999. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13000. $as_echo_n "(cached) " >&6
  13001. else
  13002. lt_cv_shlibpath_overrides_runpath=no
  13003. save_LDFLAGS=$LDFLAGS
  13004. save_libdir=$libdir
  13005. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13006. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13008. /* end confdefs.h. */
  13009. int
  13010. main ()
  13011. {
  13012. ;
  13013. return 0;
  13014. }
  13015. _ACEOF
  13016. if ac_fn_cxx_try_link "$LINENO"; then :
  13017. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13018. lt_cv_shlibpath_overrides_runpath=yes
  13019. fi
  13020. fi
  13021. rm -f core conftest.err conftest.$ac_objext \
  13022. conftest$ac_exeext conftest.$ac_ext
  13023. LDFLAGS=$save_LDFLAGS
  13024. libdir=$save_libdir
  13025. fi
  13026. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13027. # This implies no fast_install, which is unacceptable.
  13028. # Some rework will be needed to allow for fast_install
  13029. # before this can be enabled.
  13030. hardcode_into_libs=yes
  13031. # Append ld.so.conf contents to the search path
  13032. if test -f /etc/ld.so.conf; then
  13033. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13034. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13035. fi
  13036. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13037. # powerpc, because MkLinux only supported shared libraries with the
  13038. # GNU dynamic linker. Since this was broken with cross compilers,
  13039. # most powerpc-linux boxes support dynamic linking these days and
  13040. # people can always --disable-shared, the test was removed, and we
  13041. # assume the GNU/Linux dynamic linker is in use.
  13042. dynamic_linker='GNU/Linux ld.so'
  13043. ;;
  13044. netbsd*)
  13045. version_type=sunos
  13046. need_lib_prefix=no
  13047. need_version=no
  13048. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13050. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13051. dynamic_linker='NetBSD (a.out) ld.so'
  13052. else
  13053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13054. soname_spec='${libname}${release}${shared_ext}$major'
  13055. dynamic_linker='NetBSD ld.elf_so'
  13056. fi
  13057. shlibpath_var=LD_LIBRARY_PATH
  13058. shlibpath_overrides_runpath=yes
  13059. hardcode_into_libs=yes
  13060. ;;
  13061. newsos6)
  13062. version_type=linux # correct to gnu/linux during the next big refactor
  13063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13064. shlibpath_var=LD_LIBRARY_PATH
  13065. shlibpath_overrides_runpath=yes
  13066. ;;
  13067. *nto* | *qnx*)
  13068. version_type=qnx
  13069. need_lib_prefix=no
  13070. need_version=no
  13071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13072. soname_spec='${libname}${release}${shared_ext}$major'
  13073. shlibpath_var=LD_LIBRARY_PATH
  13074. shlibpath_overrides_runpath=no
  13075. hardcode_into_libs=yes
  13076. dynamic_linker='ldqnx.so'
  13077. ;;
  13078. openbsd*)
  13079. version_type=sunos
  13080. sys_lib_dlsearch_path_spec="/usr/lib"
  13081. need_lib_prefix=no
  13082. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13083. case $host_os in
  13084. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13085. *) need_version=no ;;
  13086. esac
  13087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13088. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13089. shlibpath_var=LD_LIBRARY_PATH
  13090. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13091. case $host_os in
  13092. openbsd2.[89] | openbsd2.[89].*)
  13093. shlibpath_overrides_runpath=no
  13094. ;;
  13095. *)
  13096. shlibpath_overrides_runpath=yes
  13097. ;;
  13098. esac
  13099. else
  13100. shlibpath_overrides_runpath=yes
  13101. fi
  13102. ;;
  13103. os2*)
  13104. libname_spec='$name'
  13105. shrext_cmds=".dll"
  13106. need_lib_prefix=no
  13107. library_names_spec='$libname${shared_ext} $libname.a'
  13108. dynamic_linker='OS/2 ld.exe'
  13109. shlibpath_var=LIBPATH
  13110. ;;
  13111. osf3* | osf4* | osf5*)
  13112. version_type=osf
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. soname_spec='${libname}${release}${shared_ext}$major'
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13119. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13120. ;;
  13121. rdos*)
  13122. dynamic_linker=no
  13123. ;;
  13124. solaris*)
  13125. version_type=linux # correct to gnu/linux during the next big refactor
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13129. soname_spec='${libname}${release}${shared_ext}$major'
  13130. shlibpath_var=LD_LIBRARY_PATH
  13131. shlibpath_overrides_runpath=yes
  13132. hardcode_into_libs=yes
  13133. # ldd complains unless libraries are executable
  13134. postinstall_cmds='chmod +x $lib'
  13135. ;;
  13136. sunos4*)
  13137. version_type=sunos
  13138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13139. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13140. shlibpath_var=LD_LIBRARY_PATH
  13141. shlibpath_overrides_runpath=yes
  13142. if test "$with_gnu_ld" = yes; then
  13143. need_lib_prefix=no
  13144. fi
  13145. need_version=yes
  13146. ;;
  13147. sysv4 | sysv4.3*)
  13148. version_type=linux # correct to gnu/linux during the next big refactor
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. shlibpath_var=LD_LIBRARY_PATH
  13152. case $host_vendor in
  13153. sni)
  13154. shlibpath_overrides_runpath=no
  13155. need_lib_prefix=no
  13156. runpath_var=LD_RUN_PATH
  13157. ;;
  13158. siemens)
  13159. need_lib_prefix=no
  13160. ;;
  13161. motorola)
  13162. need_lib_prefix=no
  13163. need_version=no
  13164. shlibpath_overrides_runpath=no
  13165. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13166. ;;
  13167. esac
  13168. ;;
  13169. sysv4*MP*)
  13170. if test -d /usr/nec ;then
  13171. version_type=linux # correct to gnu/linux during the next big refactor
  13172. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13173. soname_spec='$libname${shared_ext}.$major'
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. fi
  13176. ;;
  13177. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13178. version_type=freebsd-elf
  13179. need_lib_prefix=no
  13180. need_version=no
  13181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13182. soname_spec='${libname}${release}${shared_ext}$major'
  13183. shlibpath_var=LD_LIBRARY_PATH
  13184. shlibpath_overrides_runpath=yes
  13185. hardcode_into_libs=yes
  13186. if test "$with_gnu_ld" = yes; then
  13187. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13188. else
  13189. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13190. case $host_os in
  13191. sco3.2v5*)
  13192. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13193. ;;
  13194. esac
  13195. fi
  13196. sys_lib_dlsearch_path_spec='/usr/lib'
  13197. ;;
  13198. tpf*)
  13199. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13200. version_type=linux # correct to gnu/linux during the next big refactor
  13201. need_lib_prefix=no
  13202. need_version=no
  13203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13204. shlibpath_var=LD_LIBRARY_PATH
  13205. shlibpath_overrides_runpath=no
  13206. hardcode_into_libs=yes
  13207. ;;
  13208. uts4*)
  13209. version_type=linux # correct to gnu/linux during the next big refactor
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13211. soname_spec='${libname}${release}${shared_ext}$major'
  13212. shlibpath_var=LD_LIBRARY_PATH
  13213. ;;
  13214. *)
  13215. dynamic_linker=no
  13216. ;;
  13217. esac
  13218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13219. $as_echo "$dynamic_linker" >&6; }
  13220. test "$dynamic_linker" = no && can_build_shared=no
  13221. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13222. if test "$GCC" = yes; then
  13223. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13224. fi
  13225. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13226. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13227. fi
  13228. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13229. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13230. fi
  13231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13232. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13233. hardcode_action_CXX=
  13234. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13235. test -n "$runpath_var_CXX" ||
  13236. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13237. # We can hardcode non-existent directories.
  13238. if test "$hardcode_direct_CXX" != no &&
  13239. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13240. # have to relink, otherwise we might link with an installed library
  13241. # when we should be linking with a yet-to-be-installed one
  13242. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13243. test "$hardcode_minus_L_CXX" != no; then
  13244. # Linking always hardcodes the temporary library directory.
  13245. hardcode_action_CXX=relink
  13246. else
  13247. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13248. hardcode_action_CXX=immediate
  13249. fi
  13250. else
  13251. # We cannot hardcode anything, or else we can only hardcode existing
  13252. # directories.
  13253. hardcode_action_CXX=unsupported
  13254. fi
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13256. $as_echo "$hardcode_action_CXX" >&6; }
  13257. if test "$hardcode_action_CXX" = relink ||
  13258. test "$inherit_rpath_CXX" = yes; then
  13259. # Fast installation is not supported
  13260. enable_fast_install=no
  13261. elif test "$shlibpath_overrides_runpath" = yes ||
  13262. test "$enable_shared" = no; then
  13263. # Fast installation is not necessary
  13264. enable_fast_install=needless
  13265. fi
  13266. fi # test -n "$compiler"
  13267. CC=$lt_save_CC
  13268. CFLAGS=$lt_save_CFLAGS
  13269. LDCXX=$LD
  13270. LD=$lt_save_LD
  13271. GCC=$lt_save_GCC
  13272. with_gnu_ld=$lt_save_with_gnu_ld
  13273. lt_cv_path_LDCXX=$lt_cv_path_LD
  13274. lt_cv_path_LD=$lt_save_path_LD
  13275. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13276. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13277. fi # test "$_lt_caught_CXX_error" != yes
  13278. ac_ext=c
  13279. ac_cpp='$CPP $CPPFLAGS'
  13280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13283. # Find a good install program. We prefer a C program (faster),
  13284. # so one script is as good as another. But avoid the broken or
  13285. # incompatible versions:
  13286. # SysV /etc/install, /usr/sbin/install
  13287. # SunOS /usr/etc/install
  13288. # IRIX /sbin/install
  13289. # AIX /bin/install
  13290. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13291. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13292. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13293. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13294. # OS/2's system install, which has a completely different semantic
  13295. # ./install, which can be erroneously created by make from ./install.sh.
  13296. # Reject install programs that cannot install multiple files.
  13297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13298. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13299. if test -z "$INSTALL"; then
  13300. if ${ac_cv_path_install+:} false; then :
  13301. $as_echo_n "(cached) " >&6
  13302. else
  13303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13304. for as_dir in $PATH
  13305. do
  13306. IFS=$as_save_IFS
  13307. test -z "$as_dir" && as_dir=.
  13308. # Account for people who put trailing slashes in PATH elements.
  13309. case $as_dir/ in #((
  13310. ./ | .// | /[cC]/* | \
  13311. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13312. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13313. /usr/ucb/* ) ;;
  13314. *)
  13315. # OSF1 and SCO ODT 3.0 have their own names for install.
  13316. # Don't use installbsd from OSF since it installs stuff as root
  13317. # by default.
  13318. for ac_prog in ginstall scoinst install; do
  13319. for ac_exec_ext in '' $ac_executable_extensions; do
  13320. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13321. if test $ac_prog = install &&
  13322. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13323. # AIX install. It has an incompatible calling convention.
  13324. :
  13325. elif test $ac_prog = install &&
  13326. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13327. # program-specific install script used by HP pwplus--don't use.
  13328. :
  13329. else
  13330. rm -rf conftest.one conftest.two conftest.dir
  13331. echo one > conftest.one
  13332. echo two > conftest.two
  13333. mkdir conftest.dir
  13334. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13335. test -s conftest.one && test -s conftest.two &&
  13336. test -s conftest.dir/conftest.one &&
  13337. test -s conftest.dir/conftest.two
  13338. then
  13339. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13340. break 3
  13341. fi
  13342. fi
  13343. fi
  13344. done
  13345. done
  13346. ;;
  13347. esac
  13348. done
  13349. IFS=$as_save_IFS
  13350. rm -rf conftest.one conftest.two conftest.dir
  13351. fi
  13352. if test "${ac_cv_path_install+set}" = set; then
  13353. INSTALL=$ac_cv_path_install
  13354. else
  13355. # As a last resort, use the slow shell script. Don't cache a
  13356. # value for INSTALL within a source directory, because that will
  13357. # break other packages using the cache if that directory is
  13358. # removed, or if the value is a relative name.
  13359. INSTALL=$ac_install_sh
  13360. fi
  13361. fi
  13362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13363. $as_echo "$INSTALL" >&6; }
  13364. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13365. # It thinks the first close brace ends the variable substitution.
  13366. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13367. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13368. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13370. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13371. set x ${MAKE-make}
  13372. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13373. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13374. $as_echo_n "(cached) " >&6
  13375. else
  13376. cat >conftest.make <<\_ACEOF
  13377. SHELL = /bin/sh
  13378. all:
  13379. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13380. _ACEOF
  13381. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13382. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13383. *@@@%%%=?*=@@@%%%*)
  13384. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13385. *)
  13386. eval ac_cv_prog_make_${ac_make}_set=no;;
  13387. esac
  13388. rm -f conftest.make
  13389. fi
  13390. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13392. $as_echo "yes" >&6; }
  13393. SET_MAKE=
  13394. else
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13396. $as_echo "no" >&6; }
  13397. SET_MAKE="MAKE=${MAKE-make}"
  13398. fi
  13399. if test -n "$ac_tool_prefix"; then
  13400. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13401. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13403. $as_echo_n "checking for $ac_word... " >&6; }
  13404. if ${ac_cv_prog_WINDRES+:} false; then :
  13405. $as_echo_n "(cached) " >&6
  13406. else
  13407. if test -n "$WINDRES"; then
  13408. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13409. else
  13410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13411. for as_dir in $PATH
  13412. do
  13413. IFS=$as_save_IFS
  13414. test -z "$as_dir" && as_dir=.
  13415. for ac_exec_ext in '' $ac_executable_extensions; do
  13416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13417. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13419. break 2
  13420. fi
  13421. done
  13422. done
  13423. IFS=$as_save_IFS
  13424. fi
  13425. fi
  13426. WINDRES=$ac_cv_prog_WINDRES
  13427. if test -n "$WINDRES"; then
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13429. $as_echo "$WINDRES" >&6; }
  13430. else
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13432. $as_echo "no" >&6; }
  13433. fi
  13434. fi
  13435. if test -z "$ac_cv_prog_WINDRES"; then
  13436. ac_ct_WINDRES=$WINDRES
  13437. # Extract the first word of "windres", so it can be a program name with args.
  13438. set dummy windres; ac_word=$2
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13440. $as_echo_n "checking for $ac_word... " >&6; }
  13441. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13442. $as_echo_n "(cached) " >&6
  13443. else
  13444. if test -n "$ac_ct_WINDRES"; then
  13445. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13446. else
  13447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13448. for as_dir in $PATH
  13449. do
  13450. IFS=$as_save_IFS
  13451. test -z "$as_dir" && as_dir=.
  13452. for ac_exec_ext in '' $ac_executable_extensions; do
  13453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13454. ac_cv_prog_ac_ct_WINDRES="windres"
  13455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13456. break 2
  13457. fi
  13458. done
  13459. done
  13460. IFS=$as_save_IFS
  13461. fi
  13462. fi
  13463. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13464. if test -n "$ac_ct_WINDRES"; then
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13466. $as_echo "$ac_ct_WINDRES" >&6; }
  13467. else
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13469. $as_echo "no" >&6; }
  13470. fi
  13471. if test "x$ac_ct_WINDRES" = x; then
  13472. WINDRES=":"
  13473. else
  13474. case $cross_compiling:$ac_tool_warned in
  13475. yes:)
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13478. ac_tool_warned=yes ;;
  13479. esac
  13480. WINDRES=$ac_ct_WINDRES
  13481. fi
  13482. else
  13483. WINDRES="$ac_cv_prog_WINDRES"
  13484. fi
  13485. case "$host" in
  13486. *-*-mingw32*)
  13487. # Except on msys, where make can't handle full pathnames (bug 1972)
  13488. ;;
  13489. *)
  13490. srcdir=`cd $srcdir && pwd`
  13491. ;;
  13492. esac
  13493. INCLUDE="-I$srcdir/include"
  13494. if test x$srcdir != x.; then
  13495. INCLUDE="-Iinclude $INCLUDE"
  13496. elif test -d .hg; then
  13497. as_fn_error $? "
  13498. *** When building from Mercurial you should configure and build in a
  13499. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13500. " "$LINENO" 5
  13501. fi
  13502. BASE_CFLAGS=""
  13503. BASE_LDFLAGS=""
  13504. case "$host" in
  13505. *-*-cygwin*)
  13506. # We build SDL on cygwin without the UNIX emulation layer
  13507. save_CFLAGS="$CFLAGS"
  13508. have_no_cygwin=no
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13510. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13511. CFLAGS="$save_CFLAGS -mno-cygwin"
  13512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13513. /* end confdefs.h. */
  13514. int
  13515. main ()
  13516. {
  13517. ;
  13518. return 0;
  13519. }
  13520. _ACEOF
  13521. if ac_fn_c_try_compile "$LINENO"; then :
  13522. have_no_cygwin=yes
  13523. fi
  13524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13526. $as_echo "$have_no_cygwin" >&6; }
  13527. CFLAGS="$save_CFLAGS"
  13528. if test x$have_no_cygwin = xyes; then
  13529. BASE_CFLAGS="-mno-cygwin"
  13530. BASE_LDFLAGS="-mno-cygwin"
  13531. fi
  13532. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13533. ;;
  13534. esac
  13535. # Uncomment the following line if you want to force SDL and applications
  13536. # built with it to be compiled for a particular architecture.
  13537. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13538. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13539. # The default optimization for SDL is -O3 (Bug #31)
  13540. if test "x$orig_CFLAGS" = x; then
  13541. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13542. fi
  13543. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13544. BUILD_LDFLAGS="$LDFLAGS"
  13545. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13546. ## These are common directories to find software packages
  13547. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13548. # if test -d $path/include; then
  13549. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13550. # fi
  13551. # if test -d $path/lib; then
  13552. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13553. # fi
  13554. #done
  13555. SDL_CFLAGS="$BASE_CFLAGS"
  13556. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13557. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13558. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13559. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13560. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13561. find_lib()
  13562. {
  13563. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13564. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13565. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13566. if test "$cross_compiling" = yes; then
  13567. host_lib_path=""
  13568. else
  13569. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13570. fi
  13571. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13572. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13573. if test x$lib != x; then
  13574. echo $lib
  13575. return
  13576. fi
  13577. done
  13578. }
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13580. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13581. if ${ac_cv_c_const+:} false; then :
  13582. $as_echo_n "(cached) " >&6
  13583. else
  13584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13585. /* end confdefs.h. */
  13586. int
  13587. main ()
  13588. {
  13589. #ifndef __cplusplus
  13590. /* Ultrix mips cc rejects this sort of thing. */
  13591. typedef int charset[2];
  13592. const charset cs = { 0, 0 };
  13593. /* SunOS 4.1.1 cc rejects this. */
  13594. char const *const *pcpcc;
  13595. char **ppc;
  13596. /* NEC SVR4.0.2 mips cc rejects this. */
  13597. struct point {int x, y;};
  13598. static struct point const zero = {0,0};
  13599. /* AIX XL C 1.02.0.0 rejects this.
  13600. It does not let you subtract one const X* pointer from another in
  13601. an arm of an if-expression whose if-part is not a constant
  13602. expression */
  13603. const char *g = "string";
  13604. pcpcc = &g + (g ? g-g : 0);
  13605. /* HPUX 7.0 cc rejects these. */
  13606. ++pcpcc;
  13607. ppc = (char**) pcpcc;
  13608. pcpcc = (char const *const *) ppc;
  13609. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13610. char tx;
  13611. char *t = &tx;
  13612. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13613. *t++ = 0;
  13614. if (s) return 0;
  13615. }
  13616. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13617. int x[] = {25, 17};
  13618. const int *foo = &x[0];
  13619. ++foo;
  13620. }
  13621. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13622. typedef const int *iptr;
  13623. iptr p = 0;
  13624. ++p;
  13625. }
  13626. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13627. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13628. struct s { int j; const int *ap[3]; } bx;
  13629. struct s *b = &bx; b->j = 5;
  13630. }
  13631. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13632. const int foo = 10;
  13633. if (!foo) return 0;
  13634. }
  13635. return !cs[0] && !zero.x;
  13636. #endif
  13637. ;
  13638. return 0;
  13639. }
  13640. _ACEOF
  13641. if ac_fn_c_try_compile "$LINENO"; then :
  13642. ac_cv_c_const=yes
  13643. else
  13644. ac_cv_c_const=no
  13645. fi
  13646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13647. fi
  13648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13649. $as_echo "$ac_cv_c_const" >&6; }
  13650. if test $ac_cv_c_const = no; then
  13651. $as_echo "#define const /**/" >>confdefs.h
  13652. fi
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13654. $as_echo_n "checking for inline... " >&6; }
  13655. if ${ac_cv_c_inline+:} false; then :
  13656. $as_echo_n "(cached) " >&6
  13657. else
  13658. ac_cv_c_inline=no
  13659. for ac_kw in inline __inline__ __inline; do
  13660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13661. /* end confdefs.h. */
  13662. #ifndef __cplusplus
  13663. typedef int foo_t;
  13664. static $ac_kw foo_t static_foo () {return 0; }
  13665. $ac_kw foo_t foo () {return 0; }
  13666. #endif
  13667. _ACEOF
  13668. if ac_fn_c_try_compile "$LINENO"; then :
  13669. ac_cv_c_inline=$ac_kw
  13670. fi
  13671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13672. test "$ac_cv_c_inline" != no && break
  13673. done
  13674. fi
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13676. $as_echo "$ac_cv_c_inline" >&6; }
  13677. case $ac_cv_c_inline in
  13678. inline | yes) ;;
  13679. *)
  13680. case $ac_cv_c_inline in
  13681. no) ac_val=;;
  13682. *) ac_val=$ac_cv_c_inline;;
  13683. esac
  13684. cat >>confdefs.h <<_ACEOF
  13685. #ifndef __cplusplus
  13686. #define inline $ac_val
  13687. #endif
  13688. _ACEOF
  13689. ;;
  13690. esac
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13692. $as_echo_n "checking for working volatile... " >&6; }
  13693. if ${ac_cv_c_volatile+:} false; then :
  13694. $as_echo_n "(cached) " >&6
  13695. else
  13696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13697. /* end confdefs.h. */
  13698. int
  13699. main ()
  13700. {
  13701. volatile int x;
  13702. int * volatile y = (int *) 0;
  13703. return !x && !y;
  13704. ;
  13705. return 0;
  13706. }
  13707. _ACEOF
  13708. if ac_fn_c_try_compile "$LINENO"; then :
  13709. ac_cv_c_volatile=yes
  13710. else
  13711. ac_cv_c_volatile=no
  13712. fi
  13713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13714. fi
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13716. $as_echo "$ac_cv_c_volatile" >&6; }
  13717. if test $ac_cv_c_volatile = no; then
  13718. $as_echo "#define volatile /**/" >>confdefs.h
  13719. fi
  13720. # Check whether --enable-assertions was given.
  13721. if test "${enable_assertions+set}" = set; then :
  13722. enableval=$enable_assertions;
  13723. else
  13724. enable_assertions=auto
  13725. fi
  13726. case "$enable_assertions" in
  13727. auto) # Use optimization settings to determine assertion level
  13728. ;;
  13729. disabled)
  13730. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13731. ;;
  13732. release)
  13733. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13734. ;;
  13735. enabled)
  13736. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13737. ;;
  13738. paranoid)
  13739. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13740. ;;
  13741. *)
  13742. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13743. ;;
  13744. esac
  13745. # Check whether --enable-dependency-tracking was given.
  13746. if test "${enable_dependency_tracking+set}" = set; then :
  13747. enableval=$enable_dependency_tracking;
  13748. else
  13749. enable_dependency_tracking=yes
  13750. fi
  13751. if test x$enable_dependency_tracking = xyes; then
  13752. have_gcc_mmd_mt=no
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13754. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13756. /* end confdefs.h. */
  13757. #if !defined(__GNUC__) || __GNUC__ < 3
  13758. #error Dependency tracking requires GCC 3.0 or newer
  13759. #endif
  13760. int
  13761. main ()
  13762. {
  13763. ;
  13764. return 0;
  13765. }
  13766. _ACEOF
  13767. if ac_fn_c_try_compile "$LINENO"; then :
  13768. have_gcc_mmd_mt=yes
  13769. fi
  13770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13772. $as_echo "$have_gcc_mmd_mt" >&6; }
  13773. if test x$have_gcc_mmd_mt = xyes; then
  13774. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13775. fi
  13776. fi
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13778. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13779. have_no_undefined=no
  13780. case "$host" in
  13781. *-*-openbsd*)
  13782. ;;
  13783. *)
  13784. save_LDFLAGS="$LDFLAGS"
  13785. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13787. /* end confdefs.h. */
  13788. int
  13789. main ()
  13790. {
  13791. ;
  13792. return 0;
  13793. }
  13794. _ACEOF
  13795. if ac_fn_c_try_link "$LINENO"; then :
  13796. have_no_undefined=yes
  13797. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13798. fi
  13799. rm -f core conftest.err conftest.$ac_objext \
  13800. conftest$ac_exeext conftest.$ac_ext
  13801. LDFLAGS="$save_LDFLAGS"
  13802. ;;
  13803. esac
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13805. $as_echo "$have_no_undefined" >&6; }
  13806. # Check whether --enable-libc was given.
  13807. if test "${enable_libc+set}" = set; then :
  13808. enableval=$enable_libc;
  13809. else
  13810. enable_libc=yes
  13811. fi
  13812. if test x$enable_libc = xyes; then
  13813. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13815. $as_echo_n "checking for ANSI C header files... " >&6; }
  13816. if ${ac_cv_header_stdc+:} false; then :
  13817. $as_echo_n "(cached) " >&6
  13818. else
  13819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13820. /* end confdefs.h. */
  13821. #include <stdlib.h>
  13822. #include <stdarg.h>
  13823. #include <string.h>
  13824. #include <float.h>
  13825. int
  13826. main ()
  13827. {
  13828. ;
  13829. return 0;
  13830. }
  13831. _ACEOF
  13832. if ac_fn_c_try_compile "$LINENO"; then :
  13833. ac_cv_header_stdc=yes
  13834. else
  13835. ac_cv_header_stdc=no
  13836. fi
  13837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13838. if test $ac_cv_header_stdc = yes; then
  13839. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13841. /* end confdefs.h. */
  13842. #include <string.h>
  13843. _ACEOF
  13844. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13845. $EGREP "memchr" >/dev/null 2>&1; then :
  13846. else
  13847. ac_cv_header_stdc=no
  13848. fi
  13849. rm -f conftest*
  13850. fi
  13851. if test $ac_cv_header_stdc = yes; then
  13852. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. #include <stdlib.h>
  13856. _ACEOF
  13857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13858. $EGREP "free" >/dev/null 2>&1; then :
  13859. else
  13860. ac_cv_header_stdc=no
  13861. fi
  13862. rm -f conftest*
  13863. fi
  13864. if test $ac_cv_header_stdc = yes; then
  13865. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13866. if test "$cross_compiling" = yes; then :
  13867. :
  13868. else
  13869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13870. /* end confdefs.h. */
  13871. #include <ctype.h>
  13872. #include <stdlib.h>
  13873. #if ((' ' & 0x0FF) == 0x020)
  13874. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13875. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13876. #else
  13877. # define ISLOWER(c) \
  13878. (('a' <= (c) && (c) <= 'i') \
  13879. || ('j' <= (c) && (c) <= 'r') \
  13880. || ('s' <= (c) && (c) <= 'z'))
  13881. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13882. #endif
  13883. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13884. int
  13885. main ()
  13886. {
  13887. int i;
  13888. for (i = 0; i < 256; i++)
  13889. if (XOR (islower (i), ISLOWER (i))
  13890. || toupper (i) != TOUPPER (i))
  13891. return 2;
  13892. return 0;
  13893. }
  13894. _ACEOF
  13895. if ac_fn_c_try_run "$LINENO"; then :
  13896. else
  13897. ac_cv_header_stdc=no
  13898. fi
  13899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13900. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13901. fi
  13902. fi
  13903. fi
  13904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13905. $as_echo "$ac_cv_header_stdc" >&6; }
  13906. if test $ac_cv_header_stdc = yes; then
  13907. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13908. fi
  13909. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
  13910. do :
  13911. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13912. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13913. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13914. cat >>confdefs.h <<_ACEOF
  13915. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13916. _ACEOF
  13917. fi
  13918. done
  13919. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13920. if test "x$ac_cv_type_size_t" = xyes; then :
  13921. else
  13922. cat >>confdefs.h <<_ACEOF
  13923. #define size_t unsigned int
  13924. _ACEOF
  13925. fi
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13927. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13928. if ${ac_cv_define_M_PI+:} false; then :
  13929. $as_echo_n "(cached) " >&6
  13930. else
  13931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13932. /* end confdefs.h. */
  13933. #include <math.h>
  13934. #ifdef M_PI
  13935. YES_IS_DEFINED
  13936. #endif
  13937. _ACEOF
  13938. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13939. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13940. ac_cv_define_M_PI=yes
  13941. else
  13942. ac_cv_define_M_PI=no
  13943. fi
  13944. rm -f conftest*
  13945. fi
  13946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13947. $as_echo "$ac_cv_define_M_PI" >&6; }
  13948. if test "$ac_cv_define_M_PI" = "yes" ; then
  13949. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13950. fi
  13951. case "$host" in
  13952. *-*-cygwin* | *-*-mingw32*)
  13953. ;;
  13954. *)
  13955. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13956. # for constant arguments. Useless!
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13958. $as_echo_n "checking for working alloca.h... " >&6; }
  13959. if ${ac_cv_working_alloca_h+:} false; then :
  13960. $as_echo_n "(cached) " >&6
  13961. else
  13962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13963. /* end confdefs.h. */
  13964. #include <alloca.h>
  13965. int
  13966. main ()
  13967. {
  13968. char *p = (char *) alloca (2 * sizeof (int));
  13969. if (p) return 0;
  13970. ;
  13971. return 0;
  13972. }
  13973. _ACEOF
  13974. if ac_fn_c_try_link "$LINENO"; then :
  13975. ac_cv_working_alloca_h=yes
  13976. else
  13977. ac_cv_working_alloca_h=no
  13978. fi
  13979. rm -f core conftest.err conftest.$ac_objext \
  13980. conftest$ac_exeext conftest.$ac_ext
  13981. fi
  13982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13983. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13984. if test $ac_cv_working_alloca_h = yes; then
  13985. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13986. fi
  13987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13988. $as_echo_n "checking for alloca... " >&6; }
  13989. if ${ac_cv_func_alloca_works+:} false; then :
  13990. $as_echo_n "(cached) " >&6
  13991. else
  13992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13993. /* end confdefs.h. */
  13994. #ifdef __GNUC__
  13995. # define alloca __builtin_alloca
  13996. #else
  13997. # ifdef _MSC_VER
  13998. # include <malloc.h>
  13999. # define alloca _alloca
  14000. # else
  14001. # ifdef HAVE_ALLOCA_H
  14002. # include <alloca.h>
  14003. # else
  14004. # ifdef _AIX
  14005. #pragma alloca
  14006. # else
  14007. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14008. void *alloca (size_t);
  14009. # endif
  14010. # endif
  14011. # endif
  14012. # endif
  14013. #endif
  14014. int
  14015. main ()
  14016. {
  14017. char *p = (char *) alloca (1);
  14018. if (p) return 0;
  14019. ;
  14020. return 0;
  14021. }
  14022. _ACEOF
  14023. if ac_fn_c_try_link "$LINENO"; then :
  14024. ac_cv_func_alloca_works=yes
  14025. else
  14026. ac_cv_func_alloca_works=no
  14027. fi
  14028. rm -f core conftest.err conftest.$ac_objext \
  14029. conftest$ac_exeext conftest.$ac_ext
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14032. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14033. if test $ac_cv_func_alloca_works = yes; then
  14034. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14035. else
  14036. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14037. # that cause trouble. Some versions do not even contain alloca or
  14038. # contain a buggy version. If you still want to use their alloca,
  14039. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14040. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14041. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14043. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14044. if ${ac_cv_os_cray+:} false; then :
  14045. $as_echo_n "(cached) " >&6
  14046. else
  14047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14048. /* end confdefs.h. */
  14049. #if defined CRAY && ! defined CRAY2
  14050. webecray
  14051. #else
  14052. wenotbecray
  14053. #endif
  14054. _ACEOF
  14055. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14056. $EGREP "webecray" >/dev/null 2>&1; then :
  14057. ac_cv_os_cray=yes
  14058. else
  14059. ac_cv_os_cray=no
  14060. fi
  14061. rm -f conftest*
  14062. fi
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14064. $as_echo "$ac_cv_os_cray" >&6; }
  14065. if test $ac_cv_os_cray = yes; then
  14066. for ac_func in _getb67 GETB67 getb67; do
  14067. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14068. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14069. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14070. cat >>confdefs.h <<_ACEOF
  14071. #define CRAY_STACKSEG_END $ac_func
  14072. _ACEOF
  14073. break
  14074. fi
  14075. done
  14076. fi
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14078. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14079. if ${ac_cv_c_stack_direction+:} false; then :
  14080. $as_echo_n "(cached) " >&6
  14081. else
  14082. if test "$cross_compiling" = yes; then :
  14083. ac_cv_c_stack_direction=0
  14084. else
  14085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14086. /* end confdefs.h. */
  14087. $ac_includes_default
  14088. int
  14089. find_stack_direction (int *addr, int depth)
  14090. {
  14091. int dir, dummy = 0;
  14092. if (! addr)
  14093. addr = &dummy;
  14094. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14095. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14096. return dir + dummy;
  14097. }
  14098. int
  14099. main (int argc, char **argv)
  14100. {
  14101. return find_stack_direction (0, argc + !argv + 20) < 0;
  14102. }
  14103. _ACEOF
  14104. if ac_fn_c_try_run "$LINENO"; then :
  14105. ac_cv_c_stack_direction=1
  14106. else
  14107. ac_cv_c_stack_direction=-1
  14108. fi
  14109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14110. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14111. fi
  14112. fi
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14114. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14115. cat >>confdefs.h <<_ACEOF
  14116. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14117. _ACEOF
  14118. fi
  14119. ;;
  14120. esac
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14122. $as_echo_n "checking for working memcmp... " >&6; }
  14123. if ${ac_cv_func_memcmp_working+:} false; then :
  14124. $as_echo_n "(cached) " >&6
  14125. else
  14126. if test "$cross_compiling" = yes; then :
  14127. ac_cv_func_memcmp_working=no
  14128. else
  14129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14130. /* end confdefs.h. */
  14131. $ac_includes_default
  14132. int
  14133. main ()
  14134. {
  14135. /* Some versions of memcmp are not 8-bit clean. */
  14136. char c0 = '\100', c1 = '\200', c2 = '\201';
  14137. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14138. return 1;
  14139. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14140. or more and with at least one buffer not starting on a 4-byte boundary.
  14141. William Lewis provided this test program. */
  14142. {
  14143. char foo[21];
  14144. char bar[21];
  14145. int i;
  14146. for (i = 0; i < 4; i++)
  14147. {
  14148. char *a = foo + i;
  14149. char *b = bar + i;
  14150. strcpy (a, "--------01111111");
  14151. strcpy (b, "--------10000000");
  14152. if (memcmp (a, b, 16) >= 0)
  14153. return 1;
  14154. }
  14155. return 0;
  14156. }
  14157. ;
  14158. return 0;
  14159. }
  14160. _ACEOF
  14161. if ac_fn_c_try_run "$LINENO"; then :
  14162. ac_cv_func_memcmp_working=yes
  14163. else
  14164. ac_cv_func_memcmp_working=no
  14165. fi
  14166. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14167. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14168. fi
  14169. fi
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14171. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14172. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14173. *" memcmp.$ac_objext "* ) ;;
  14174. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14175. ;;
  14176. esac
  14177. if test x$ac_cv_func_memcmp_working = xyes; then
  14178. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14179. fi
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14181. $as_echo_n "checking for working strtod... " >&6; }
  14182. if ${ac_cv_func_strtod+:} false; then :
  14183. $as_echo_n "(cached) " >&6
  14184. else
  14185. if test "$cross_compiling" = yes; then :
  14186. ac_cv_func_strtod=no
  14187. else
  14188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14189. /* end confdefs.h. */
  14190. $ac_includes_default
  14191. #ifndef strtod
  14192. double strtod ();
  14193. #endif
  14194. int
  14195. main()
  14196. {
  14197. {
  14198. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14199. char *string = " +69";
  14200. char *term;
  14201. double value;
  14202. value = strtod (string, &term);
  14203. if (value != 69 || term != (string + 4))
  14204. return 1;
  14205. }
  14206. {
  14207. /* Under Solaris 2.4, strtod returns the wrong value for the
  14208. terminating character under some conditions. */
  14209. char *string = "NaN";
  14210. char *term;
  14211. strtod (string, &term);
  14212. if (term != string && *(term - 1) == 0)
  14213. return 1;
  14214. }
  14215. return 0;
  14216. }
  14217. _ACEOF
  14218. if ac_fn_c_try_run "$LINENO"; then :
  14219. ac_cv_func_strtod=yes
  14220. else
  14221. ac_cv_func_strtod=no
  14222. fi
  14223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14224. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14225. fi
  14226. fi
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14228. $as_echo "$ac_cv_func_strtod" >&6; }
  14229. if test $ac_cv_func_strtod = no; then
  14230. case " $LIBOBJS " in
  14231. *" strtod.$ac_objext "* ) ;;
  14232. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14233. ;;
  14234. esac
  14235. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14236. if test "x$ac_cv_func_pow" = xyes; then :
  14237. fi
  14238. if test $ac_cv_func_pow = no; then
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14240. $as_echo_n "checking for pow in -lm... " >&6; }
  14241. if ${ac_cv_lib_m_pow+:} false; then :
  14242. $as_echo_n "(cached) " >&6
  14243. else
  14244. ac_check_lib_save_LIBS=$LIBS
  14245. LIBS="-lm $LIBS"
  14246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14247. /* end confdefs.h. */
  14248. /* Override any GCC internal prototype to avoid an error.
  14249. Use char because int might match the return type of a GCC
  14250. builtin and then its argument prototype would still apply. */
  14251. #ifdef __cplusplus
  14252. extern "C"
  14253. #endif
  14254. char pow ();
  14255. int
  14256. main ()
  14257. {
  14258. return pow ();
  14259. ;
  14260. return 0;
  14261. }
  14262. _ACEOF
  14263. if ac_fn_c_try_link "$LINENO"; then :
  14264. ac_cv_lib_m_pow=yes
  14265. else
  14266. ac_cv_lib_m_pow=no
  14267. fi
  14268. rm -f core conftest.err conftest.$ac_objext \
  14269. conftest$ac_exeext conftest.$ac_ext
  14270. LIBS=$ac_check_lib_save_LIBS
  14271. fi
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14273. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14274. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14275. POW_LIB=-lm
  14276. else
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14278. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14279. fi
  14280. fi
  14281. fi
  14282. if test x$ac_cv_func_strtod = xyes; then
  14283. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14284. fi
  14285. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14286. if test "x$ac_cv_func_mprotect" = xyes; then :
  14287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14288. /* end confdefs.h. */
  14289. #include <sys/types.h>
  14290. #include <sys/mman.h>
  14291. int
  14292. main ()
  14293. {
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. if ac_fn_c_try_compile "$LINENO"; then :
  14299. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14300. fi
  14301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14302. fi
  14303. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
  14304. do :
  14305. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14306. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14307. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14308. cat >>confdefs.h <<_ACEOF
  14309. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14310. _ACEOF
  14311. fi
  14312. done
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14314. $as_echo_n "checking for pow in -lm... " >&6; }
  14315. if ${ac_cv_lib_m_pow+:} false; then :
  14316. $as_echo_n "(cached) " >&6
  14317. else
  14318. ac_check_lib_save_LIBS=$LIBS
  14319. LIBS="-lm $LIBS"
  14320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14321. /* end confdefs.h. */
  14322. /* Override any GCC internal prototype to avoid an error.
  14323. Use char because int might match the return type of a GCC
  14324. builtin and then its argument prototype would still apply. */
  14325. #ifdef __cplusplus
  14326. extern "C"
  14327. #endif
  14328. char pow ();
  14329. int
  14330. main ()
  14331. {
  14332. return pow ();
  14333. ;
  14334. return 0;
  14335. }
  14336. _ACEOF
  14337. if ac_fn_c_try_link "$LINENO"; then :
  14338. ac_cv_lib_m_pow=yes
  14339. else
  14340. ac_cv_lib_m_pow=no
  14341. fi
  14342. rm -f core conftest.err conftest.$ac_objext \
  14343. conftest$ac_exeext conftest.$ac_ext
  14344. LIBS=$ac_check_lib_save_LIBS
  14345. fi
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14347. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14348. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14349. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14350. fi
  14351. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14352. do :
  14353. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14354. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14355. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14356. cat >>confdefs.h <<_ACEOF
  14357. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14358. _ACEOF
  14359. fi
  14360. done
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14362. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14363. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14364. $as_echo_n "(cached) " >&6
  14365. else
  14366. ac_check_lib_save_LIBS=$LIBS
  14367. LIBS="-liconv $LIBS"
  14368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14369. /* end confdefs.h. */
  14370. /* Override any GCC internal prototype to avoid an error.
  14371. Use char because int might match the return type of a GCC
  14372. builtin and then its argument prototype would still apply. */
  14373. #ifdef __cplusplus
  14374. extern "C"
  14375. #endif
  14376. char iconv_open ();
  14377. int
  14378. main ()
  14379. {
  14380. return iconv_open ();
  14381. ;
  14382. return 0;
  14383. }
  14384. _ACEOF
  14385. if ac_fn_c_try_link "$LINENO"; then :
  14386. ac_cv_lib_iconv_iconv_open=yes
  14387. else
  14388. ac_cv_lib_iconv_iconv_open=no
  14389. fi
  14390. rm -f core conftest.err conftest.$ac_objext \
  14391. conftest$ac_exeext conftest.$ac_ext
  14392. LIBS=$ac_check_lib_save_LIBS
  14393. fi
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14395. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14396. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14397. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14398. fi
  14399. for ac_func in iconv
  14400. do :
  14401. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14402. if test "x$ac_cv_func_iconv" = xyes; then :
  14403. cat >>confdefs.h <<_ACEOF
  14404. #define HAVE_ICONV 1
  14405. _ACEOF
  14406. fi
  14407. done
  14408. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14409. "
  14410. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14411. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14412. fi
  14413. fi
  14414. # Check whether --enable-gcc-atomics was given.
  14415. if test "${enable_gcc_atomics+set}" = set; then :
  14416. enableval=$enable_gcc_atomics;
  14417. else
  14418. enable_gcc_atomics=yes
  14419. fi
  14420. if test x$enable_gcc_atomics = xyes; then
  14421. have_gcc_atomics=no
  14422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14423. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14425. /* end confdefs.h. */
  14426. int
  14427. main ()
  14428. {
  14429. int a;
  14430. void *x, *y, *z;
  14431. __sync_lock_test_and_set(&a, 4);
  14432. __sync_lock_test_and_set(&x, y);
  14433. __sync_fetch_and_add(&a, 1);
  14434. __sync_bool_compare_and_swap(&a, 5, 10);
  14435. __sync_bool_compare_and_swap(&x, y, z);
  14436. ;
  14437. return 0;
  14438. }
  14439. _ACEOF
  14440. if ac_fn_c_try_link "$LINENO"; then :
  14441. have_gcc_atomics=yes
  14442. fi
  14443. rm -f core conftest.err conftest.$ac_objext \
  14444. conftest$ac_exeext conftest.$ac_ext
  14445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14446. $as_echo "$have_gcc_atomics" >&6; }
  14447. if test x$have_gcc_atomics = xyes; then
  14448. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14449. else
  14450. # See if we have the minimum operation needed for GCC atomics
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. int
  14454. main ()
  14455. {
  14456. int a;
  14457. __sync_lock_test_and_set(&a, 1);
  14458. __sync_lock_release(&a);
  14459. ;
  14460. return 0;
  14461. }
  14462. _ACEOF
  14463. if ac_fn_c_try_link "$LINENO"; then :
  14464. have_gcc_sync_lock_test_and_set=yes
  14465. fi
  14466. rm -f core conftest.err conftest.$ac_objext \
  14467. conftest$ac_exeext conftest.$ac_ext
  14468. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14469. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14470. fi
  14471. fi
  14472. fi
  14473. # Standard C sources
  14474. SOURCES="$SOURCES $srcdir/src/*.c"
  14475. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14476. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14477. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14478. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14479. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14480. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14481. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14482. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14483. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14484. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14485. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14491. # Check whether --enable-atomic was given.
  14492. if test "${enable_atomic+set}" = set; then :
  14493. enableval=$enable_atomic;
  14494. else
  14495. enable_atomic=yes
  14496. fi
  14497. if test x$enable_atomic != xyes; then
  14498. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14499. fi
  14500. # Check whether --enable-audio was given.
  14501. if test "${enable_audio+set}" = set; then :
  14502. enableval=$enable_audio;
  14503. else
  14504. enable_audio=yes
  14505. fi
  14506. if test x$enable_audio != xyes; then
  14507. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14508. fi
  14509. # Check whether --enable-video was given.
  14510. if test "${enable_video+set}" = set; then :
  14511. enableval=$enable_video;
  14512. else
  14513. enable_video=yes
  14514. fi
  14515. if test x$enable_video != xyes; then
  14516. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14517. fi
  14518. # Check whether --enable-render was given.
  14519. if test "${enable_render+set}" = set; then :
  14520. enableval=$enable_render;
  14521. else
  14522. enable_render=yes
  14523. fi
  14524. if test x$enable_render != xyes; then
  14525. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14526. fi
  14527. # Check whether --enable-events was given.
  14528. if test "${enable_events+set}" = set; then :
  14529. enableval=$enable_events;
  14530. else
  14531. enable_events=yes
  14532. fi
  14533. if test x$enable_events != xyes; then
  14534. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14535. fi
  14536. # Check whether --enable-joystick was given.
  14537. if test "${enable_joystick+set}" = set; then :
  14538. enableval=$enable_joystick;
  14539. else
  14540. enable_joystick=yes
  14541. fi
  14542. if test x$enable_joystick != xyes; then
  14543. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14544. fi
  14545. # Check whether --enable-haptic was given.
  14546. if test "${enable_haptic+set}" = set; then :
  14547. enableval=$enable_haptic;
  14548. else
  14549. enable_haptic=yes
  14550. fi
  14551. if test x$enable_haptic != xyes; then
  14552. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14553. fi
  14554. # Check whether --enable-power was given.
  14555. if test "${enable_power+set}" = set; then :
  14556. enableval=$enable_power;
  14557. else
  14558. enable_power=yes
  14559. fi
  14560. if test x$enable_power != xyes; then
  14561. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14562. fi
  14563. # Check whether --enable-filesystem was given.
  14564. if test "${enable_filesystem+set}" = set; then :
  14565. enableval=$enable_filesystem;
  14566. else
  14567. enable_filesystem=yes
  14568. fi
  14569. if test x$enable_filesystem != xyes; then
  14570. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14571. fi
  14572. # Check whether --enable-threads was given.
  14573. if test "${enable_threads+set}" = set; then :
  14574. enableval=$enable_threads;
  14575. else
  14576. enable_threads=yes
  14577. fi
  14578. if test x$enable_threads != xyes; then
  14579. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14580. fi
  14581. # Check whether --enable-timers was given.
  14582. if test "${enable_timers+set}" = set; then :
  14583. enableval=$enable_timers;
  14584. else
  14585. enable_timers=yes
  14586. fi
  14587. if test x$enable_timers != xyes; then
  14588. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14589. fi
  14590. # Check whether --enable-file was given.
  14591. if test "${enable_file+set}" = set; then :
  14592. enableval=$enable_file;
  14593. else
  14594. enable_file=yes
  14595. fi
  14596. if test x$enable_file != xyes; then
  14597. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14598. fi
  14599. # Check whether --enable-loadso was given.
  14600. if test "${enable_loadso+set}" = set; then :
  14601. enableval=$enable_loadso;
  14602. else
  14603. enable_loadso=yes
  14604. fi
  14605. if test x$enable_loadso != xyes; then
  14606. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14607. fi
  14608. # Check whether --enable-cpuinfo was given.
  14609. if test "${enable_cpuinfo+set}" = set; then :
  14610. enableval=$enable_cpuinfo;
  14611. else
  14612. enable_cpuinfo=yes
  14613. fi
  14614. if test x$enable_cpuinfo != xyes; then
  14615. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14616. fi
  14617. # Check whether --enable-atomic was given.
  14618. if test "${enable_atomic+set}" = set; then :
  14619. enableval=$enable_atomic;
  14620. else
  14621. enable_atomic=yes
  14622. fi
  14623. if test x$enable_atomic != xyes; then
  14624. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14625. fi
  14626. # Check whether --enable-assembly was given.
  14627. if test "${enable_assembly+set}" = set; then :
  14628. enableval=$enable_assembly;
  14629. else
  14630. enable_assembly=yes
  14631. fi
  14632. if test x$enable_assembly = xyes; then
  14633. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14634. # Make sure that we don't generate floating point code that would
  14635. # cause illegal instruction exceptions on older processors
  14636. case "$host" in
  14637. *-*-darwin*)
  14638. # Don't need to worry about Apple hardware, it's all SSE capable
  14639. default_ssemath=yes
  14640. ;;
  14641. *64-*-*)
  14642. # x86 64-bit architectures all have SSE instructions
  14643. default_ssemath=yes
  14644. ;;
  14645. *)
  14646. default_ssemath=no
  14647. ;;
  14648. esac
  14649. # Check whether --enable-ssemath was given.
  14650. if test "${enable_ssemath+set}" = set; then :
  14651. enableval=$enable_ssemath;
  14652. else
  14653. enable_ssemath=$default_ssemath
  14654. fi
  14655. if test x$enable_ssemath = xno; then
  14656. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14657. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14658. fi
  14659. fi
  14660. # Check whether --enable-mmx was given.
  14661. if test "${enable_mmx+set}" = set; then :
  14662. enableval=$enable_mmx;
  14663. else
  14664. enable_mmx=yes
  14665. fi
  14666. if test x$enable_mmx = xyes; then
  14667. save_CFLAGS="$CFLAGS"
  14668. have_gcc_mmx=no
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14670. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14671. mmx_CFLAGS="-mmmx"
  14672. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14674. /* end confdefs.h. */
  14675. #ifdef __MINGW32__
  14676. #include <_mingw.h>
  14677. #ifdef __MINGW64_VERSION_MAJOR
  14678. #include <intrin.h>
  14679. #else
  14680. #include <mmintrin.h>
  14681. #endif
  14682. #else
  14683. #include <mmintrin.h>
  14684. #endif
  14685. #ifndef __MMX__
  14686. #error Assembler CPP flag not enabled
  14687. #endif
  14688. int
  14689. main ()
  14690. {
  14691. ;
  14692. return 0;
  14693. }
  14694. _ACEOF
  14695. if ac_fn_c_try_compile "$LINENO"; then :
  14696. have_gcc_mmx=yes
  14697. fi
  14698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14700. $as_echo "$have_gcc_mmx" >&6; }
  14701. CFLAGS="$save_CFLAGS"
  14702. if test x$have_gcc_mmx = xyes; then
  14703. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14704. fi
  14705. fi
  14706. # Check whether --enable-3dnow was given.
  14707. if test "${enable_3dnow+set}" = set; then :
  14708. enableval=$enable_3dnow;
  14709. else
  14710. enable_3dnow=yes
  14711. fi
  14712. if test x$enable_3dnow = xyes; then
  14713. save_CFLAGS="$CFLAGS"
  14714. have_gcc_3dnow=no
  14715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14716. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14717. amd3dnow_CFLAGS="-m3dnow"
  14718. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14720. /* end confdefs.h. */
  14721. #include <mm3dnow.h>
  14722. #ifndef __3dNOW__
  14723. #error Assembler CPP flag not enabled
  14724. #endif
  14725. int
  14726. main ()
  14727. {
  14728. void *p = 0;
  14729. _m_prefetch(p);
  14730. ;
  14731. return 0;
  14732. }
  14733. _ACEOF
  14734. if ac_fn_c_try_link "$LINENO"; then :
  14735. have_gcc_3dnow=yes
  14736. fi
  14737. rm -f core conftest.err conftest.$ac_objext \
  14738. conftest$ac_exeext conftest.$ac_ext
  14739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14740. $as_echo "$have_gcc_3dnow" >&6; }
  14741. CFLAGS="$save_CFLAGS"
  14742. if test x$have_gcc_3dnow = xyes; then
  14743. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14744. fi
  14745. fi
  14746. # Check whether --enable-sse was given.
  14747. if test "${enable_sse+set}" = set; then :
  14748. enableval=$enable_sse;
  14749. else
  14750. enable_sse=yes
  14751. fi
  14752. if test x$enable_sse = xyes; then
  14753. save_CFLAGS="$CFLAGS"
  14754. have_gcc_sse=no
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14756. $as_echo_n "checking for GCC -msse option... " >&6; }
  14757. sse_CFLAGS="-msse"
  14758. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14760. /* end confdefs.h. */
  14761. #ifdef __MINGW32__
  14762. #include <_mingw.h>
  14763. #ifdef __MINGW64_VERSION_MAJOR
  14764. #include <intrin.h>
  14765. #else
  14766. #include <xmmintrin.h>
  14767. #endif
  14768. #else
  14769. #include <xmmintrin.h>
  14770. #endif
  14771. #ifndef __SSE__
  14772. #error Assembler CPP flag not enabled
  14773. #endif
  14774. int
  14775. main ()
  14776. {
  14777. ;
  14778. return 0;
  14779. }
  14780. _ACEOF
  14781. if ac_fn_c_try_compile "$LINENO"; then :
  14782. have_gcc_sse=yes
  14783. fi
  14784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14786. $as_echo "$have_gcc_sse" >&6; }
  14787. CFLAGS="$save_CFLAGS"
  14788. if test x$have_gcc_sse = xyes; then
  14789. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14790. fi
  14791. fi
  14792. # Check whether --enable-sse2 was given.
  14793. if test "${enable_sse2+set}" = set; then :
  14794. enableval=$enable_sse2;
  14795. else
  14796. enable_sse2=$default_ssemath
  14797. fi
  14798. if test x$enable_sse2 = xyes; then
  14799. save_CFLAGS="$CFLAGS"
  14800. have_gcc_sse2=no
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14802. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14803. sse2_CFLAGS="-msse2"
  14804. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14806. /* end confdefs.h. */
  14807. #ifdef __MINGW32__
  14808. #include <_mingw.h>
  14809. #ifdef __MINGW64_VERSION_MAJOR
  14810. #include <intrin.h>
  14811. #else
  14812. #include <emmintrin.h>
  14813. #endif
  14814. #else
  14815. #include <emmintrin.h>
  14816. #endif
  14817. #ifndef __SSE2__
  14818. #error Assembler CPP flag not enabled
  14819. #endif
  14820. int
  14821. main ()
  14822. {
  14823. ;
  14824. return 0;
  14825. }
  14826. _ACEOF
  14827. if ac_fn_c_try_compile "$LINENO"; then :
  14828. have_gcc_sse2=yes
  14829. fi
  14830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14832. $as_echo "$have_gcc_sse2" >&6; }
  14833. CFLAGS="$save_CFLAGS"
  14834. if test x$have_gcc_sse2 = xyes; then
  14835. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14836. fi
  14837. fi
  14838. # Check whether --enable-altivec was given.
  14839. if test "${enable_altivec+set}" = set; then :
  14840. enableval=$enable_altivec;
  14841. else
  14842. enable_altivec=yes
  14843. fi
  14844. if test x$enable_altivec = xyes; then
  14845. save_CFLAGS="$CFLAGS"
  14846. have_gcc_altivec=no
  14847. have_altivec_h_hdr=no
  14848. altivec_CFLAGS="-maltivec"
  14849. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14851. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14853. /* end confdefs.h. */
  14854. #include <altivec.h>
  14855. vector unsigned int vzero() {
  14856. return vec_splat_u32(0);
  14857. }
  14858. int
  14859. main ()
  14860. {
  14861. ;
  14862. return 0;
  14863. }
  14864. _ACEOF
  14865. if ac_fn_c_try_compile "$LINENO"; then :
  14866. have_gcc_altivec=yes
  14867. have_altivec_h_hdr=yes
  14868. fi
  14869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14871. $as_echo "$have_gcc_altivec" >&6; }
  14872. if test x$have_gcc_altivec = xno; then
  14873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14874. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. vector unsigned int vzero() {
  14878. return vec_splat_u32(0);
  14879. }
  14880. int
  14881. main ()
  14882. {
  14883. ;
  14884. return 0;
  14885. }
  14886. _ACEOF
  14887. if ac_fn_c_try_compile "$LINENO"; then :
  14888. have_gcc_altivec=yes
  14889. fi
  14890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14892. $as_echo "$have_gcc_altivec" >&6; }
  14893. fi
  14894. if test x$have_gcc_altivec = xno; then
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14896. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14897. altivec_CFLAGS="-faltivec"
  14898. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. #include <altivec.h>
  14902. vector unsigned int vzero() {
  14903. return vec_splat_u32(0);
  14904. }
  14905. int
  14906. main ()
  14907. {
  14908. ;
  14909. return 0;
  14910. }
  14911. _ACEOF
  14912. if ac_fn_c_try_compile "$LINENO"; then :
  14913. have_gcc_altivec=yes
  14914. have_altivec_h_hdr=yes
  14915. fi
  14916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14918. $as_echo "$have_gcc_altivec" >&6; }
  14919. fi
  14920. if test x$have_gcc_altivec = xno; then
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14922. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14924. /* end confdefs.h. */
  14925. vector unsigned int vzero() {
  14926. return vec_splat_u32(0);
  14927. }
  14928. int
  14929. main ()
  14930. {
  14931. ;
  14932. return 0;
  14933. }
  14934. _ACEOF
  14935. if ac_fn_c_try_compile "$LINENO"; then :
  14936. have_gcc_altivec=yes
  14937. fi
  14938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14940. $as_echo "$have_gcc_altivec" >&6; }
  14941. fi
  14942. CFLAGS="$save_CFLAGS"
  14943. if test x$have_gcc_altivec = xyes; then
  14944. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14945. if test x$have_altivec_h_hdr = xyes; then
  14946. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14947. fi
  14948. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14949. fi
  14950. fi
  14951. fi
  14952. CheckOSS()
  14953. {
  14954. # Check whether --enable-oss was given.
  14955. if test "${enable_oss+set}" = set; then :
  14956. enableval=$enable_oss;
  14957. else
  14958. enable_oss=maybe
  14959. fi
  14960. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14961. # use sndio instead. So on there, we default to disabled. You can force
  14962. # it on if you really want, though.
  14963. if test x$enable_oss = xmaybe; then
  14964. enable_oss=yes
  14965. case "$host" in
  14966. *-*-openbsd*)
  14967. enable_oss=no;;
  14968. esac
  14969. fi
  14970. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  14972. $as_echo_n "checking for OSS audio support... " >&6; }
  14973. have_oss=no
  14974. if test x$have_oss != xyes; then
  14975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14976. /* end confdefs.h. */
  14977. #include <sys/soundcard.h>
  14978. int
  14979. main ()
  14980. {
  14981. int arg = SNDCTL_DSP_SETFRAGMENT;
  14982. ;
  14983. return 0;
  14984. }
  14985. _ACEOF
  14986. if ac_fn_c_try_compile "$LINENO"; then :
  14987. have_oss=yes
  14988. fi
  14989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14990. fi
  14991. if test x$have_oss != xyes; then
  14992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14993. /* end confdefs.h. */
  14994. #include <soundcard.h>
  14995. int
  14996. main ()
  14997. {
  14998. int arg = SNDCTL_DSP_SETFRAGMENT;
  14999. ;
  15000. return 0;
  15001. }
  15002. _ACEOF
  15003. if ac_fn_c_try_compile "$LINENO"; then :
  15004. have_oss=yes
  15005. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15006. fi
  15007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15008. fi
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15010. $as_echo "$have_oss" >&6; }
  15011. if test x$have_oss = xyes; then
  15012. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15013. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15014. have_audio=yes
  15015. # We may need to link with ossaudio emulation library
  15016. case "$host" in
  15017. *-*-openbsd*|*-*-netbsd*)
  15018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15019. esac
  15020. fi
  15021. fi
  15022. }
  15023. CheckALSA()
  15024. {
  15025. # Check whether --enable-alsa was given.
  15026. if test "${enable_alsa+set}" = set; then :
  15027. enableval=$enable_alsa;
  15028. else
  15029. enable_alsa=yes
  15030. fi
  15031. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15032. alsa_save_CFLAGS="$CFLAGS"
  15033. alsa_save_LDFLAGS="$LDFLAGS"
  15034. alsa_save_LIBS="$LIBS"
  15035. alsa_found=yes
  15036. # Check whether --with-alsa-prefix was given.
  15037. if test "${with_alsa_prefix+set}" = set; then :
  15038. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15039. else
  15040. alsa_prefix=""
  15041. fi
  15042. # Check whether --with-alsa-inc-prefix was given.
  15043. if test "${with_alsa_inc_prefix+set}" = set; then :
  15044. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15045. else
  15046. alsa_inc_prefix=""
  15047. fi
  15048. # Check whether --enable-alsatest was given.
  15049. if test "${enable_alsatest+set}" = set; then :
  15050. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15051. else
  15052. enable_alsatest=yes
  15053. fi
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15055. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15056. if test "$alsa_inc_prefix" != "" ; then
  15057. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15058. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15059. fi
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15061. $as_echo "$ALSA_CFLAGS" >&6; }
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15063. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15064. if test "$alsa_prefix" != "" ; then
  15065. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15066. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15067. fi
  15068. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15069. LIBS=`echo $LIBS | sed 's/-lm//'`
  15070. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15071. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15072. LIBS=`echo $LIBS | sed 's/ //'`
  15073. LIBS="$ALSA_LIBS $LIBS"
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15075. $as_echo "$ALSA_LIBS" >&6; }
  15076. min_alsa_version=0.9.0
  15077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15078. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15079. no_alsa=""
  15080. alsa_min_major_version=`echo $min_alsa_version | \
  15081. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15082. alsa_min_minor_version=`echo $min_alsa_version | \
  15083. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15084. alsa_min_micro_version=`echo $min_alsa_version | \
  15085. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15086. ac_ext=c
  15087. ac_cpp='$CPP $CPPFLAGS'
  15088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15092. /* end confdefs.h. */
  15093. #include <alsa/asoundlib.h>
  15094. int
  15095. main ()
  15096. {
  15097. /* ensure backward compatibility */
  15098. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15099. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15100. #endif
  15101. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15102. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15103. #endif
  15104. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15105. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15106. #endif
  15107. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15108. exit(0);
  15109. # else
  15110. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15111. # error not present
  15112. # endif
  15113. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15114. exit(0);
  15115. # else
  15116. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15117. # error not present
  15118. # endif
  15119. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15120. # error not present
  15121. # endif
  15122. # endif
  15123. # endif
  15124. exit(0);
  15125. ;
  15126. return 0;
  15127. }
  15128. _ACEOF
  15129. if ac_fn_c_try_compile "$LINENO"; then :
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15131. $as_echo "found." >&6; }
  15132. else
  15133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15134. $as_echo "not present." >&6; }
  15135. alsa_found=no
  15136. fi
  15137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15138. ac_ext=c
  15139. ac_cpp='$CPP $CPPFLAGS'
  15140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15143. if test "x$enable_alsatest" = "xyes"; then
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15145. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15146. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15147. $as_echo_n "(cached) " >&6
  15148. else
  15149. ac_check_lib_save_LIBS=$LIBS
  15150. LIBS="-lasound $LIBS"
  15151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15152. /* end confdefs.h. */
  15153. /* Override any GCC internal prototype to avoid an error.
  15154. Use char because int might match the return type of a GCC
  15155. builtin and then its argument prototype would still apply. */
  15156. #ifdef __cplusplus
  15157. extern "C"
  15158. #endif
  15159. char snd_ctl_open ();
  15160. int
  15161. main ()
  15162. {
  15163. return snd_ctl_open ();
  15164. ;
  15165. return 0;
  15166. }
  15167. _ACEOF
  15168. if ac_fn_c_try_link "$LINENO"; then :
  15169. ac_cv_lib_asound_snd_ctl_open=yes
  15170. else
  15171. ac_cv_lib_asound_snd_ctl_open=no
  15172. fi
  15173. rm -f core conftest.err conftest.$ac_objext \
  15174. conftest$ac_exeext conftest.$ac_ext
  15175. LIBS=$ac_check_lib_save_LIBS
  15176. fi
  15177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15178. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15179. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15180. cat >>confdefs.h <<_ACEOF
  15181. #define HAVE_LIBASOUND 1
  15182. _ACEOF
  15183. LIBS="-lasound $LIBS"
  15184. else
  15185. alsa_found=no
  15186. fi
  15187. fi
  15188. if test "x$alsa_found" = "xyes" ; then
  15189. have_alsa=yes
  15190. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15191. LIBS=`echo $LIBS | sed 's/ //'`
  15192. LIBS="-lasound $LIBS"
  15193. fi
  15194. if test "x$alsa_found" = "xno" ; then
  15195. have_alsa=no
  15196. CFLAGS="$alsa_save_CFLAGS"
  15197. LDFLAGS="$alsa_save_LDFLAGS"
  15198. LIBS="$alsa_save_LIBS"
  15199. ALSA_CFLAGS=""
  15200. ALSA_LIBS=""
  15201. fi
  15202. # Restore all flags from before the ALSA detection runs
  15203. CFLAGS="$alsa_save_CFLAGS"
  15204. LDFLAGS="$alsa_save_LDFLAGS"
  15205. LIBS="$alsa_save_LIBS"
  15206. if test x$have_alsa = xyes; then
  15207. # Check whether --enable-alsa-shared was given.
  15208. if test "${enable_alsa_shared+set}" = set; then :
  15209. enableval=$enable_alsa_shared;
  15210. else
  15211. enable_alsa_shared=yes
  15212. fi
  15213. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15214. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15215. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15216. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15217. if test x$have_loadso != xyes && \
  15218. test x$enable_alsa_shared = xyes; then
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15220. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15221. fi
  15222. if test x$have_loadso = xyes && \
  15223. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15224. echo "-- dynamic libasound -> $alsa_lib"
  15225. cat >>confdefs.h <<_ACEOF
  15226. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15227. _ACEOF
  15228. else
  15229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15230. fi
  15231. have_audio=yes
  15232. fi
  15233. fi
  15234. }
  15235. CheckESD()
  15236. {
  15237. # Check whether --enable-esd was given.
  15238. if test "${enable_esd+set}" = set; then :
  15239. enableval=$enable_esd;
  15240. else
  15241. enable_esd=yes
  15242. fi
  15243. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15244. # Check whether --with-esd-prefix was given.
  15245. if test "${with_esd_prefix+set}" = set; then :
  15246. withval=$with_esd_prefix; esd_prefix="$withval"
  15247. else
  15248. esd_prefix=""
  15249. fi
  15250. # Check whether --with-esd-exec-prefix was given.
  15251. if test "${with_esd_exec_prefix+set}" = set; then :
  15252. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15253. else
  15254. esd_exec_prefix=""
  15255. fi
  15256. # Check whether --enable-esdtest was given.
  15257. if test "${enable_esdtest+set}" = set; then :
  15258. enableval=$enable_esdtest;
  15259. else
  15260. enable_esdtest=yes
  15261. fi
  15262. if test x$esd_exec_prefix != x ; then
  15263. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15264. if test x${ESD_CONFIG+set} != xset ; then
  15265. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15266. fi
  15267. fi
  15268. if test x$esd_prefix != x ; then
  15269. esd_args="$esd_args --prefix=$esd_prefix"
  15270. if test x${ESD_CONFIG+set} != xset ; then
  15271. ESD_CONFIG=$esd_prefix/bin/esd-config
  15272. fi
  15273. fi
  15274. # Extract the first word of "esd-config", so it can be a program name with args.
  15275. set dummy esd-config; ac_word=$2
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15277. $as_echo_n "checking for $ac_word... " >&6; }
  15278. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15279. $as_echo_n "(cached) " >&6
  15280. else
  15281. case $ESD_CONFIG in
  15282. [\\/]* | ?:[\\/]*)
  15283. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15284. ;;
  15285. *)
  15286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15287. for as_dir in $PATH
  15288. do
  15289. IFS=$as_save_IFS
  15290. test -z "$as_dir" && as_dir=.
  15291. for ac_exec_ext in '' $ac_executable_extensions; do
  15292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15293. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15295. break 2
  15296. fi
  15297. done
  15298. done
  15299. IFS=$as_save_IFS
  15300. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15301. ;;
  15302. esac
  15303. fi
  15304. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15305. if test -n "$ESD_CONFIG"; then
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15307. $as_echo "$ESD_CONFIG" >&6; }
  15308. else
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15310. $as_echo "no" >&6; }
  15311. fi
  15312. min_esd_version=0.2.8
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15314. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15315. no_esd=""
  15316. if test "$ESD_CONFIG" = "no" ; then
  15317. no_esd=yes
  15318. else
  15319. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15320. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15321. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15322. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15323. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15324. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15325. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15326. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15327. if test "x$enable_esdtest" = "xyes" ; then
  15328. ac_save_CFLAGS="$CFLAGS"
  15329. ac_save_LIBS="$LIBS"
  15330. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15331. LIBS="$LIBS $ESD_LIBS"
  15332. rm -f conf.esdtest
  15333. if test "$cross_compiling" = yes; then :
  15334. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15335. else
  15336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15337. /* end confdefs.h. */
  15338. #include <stdio.h>
  15339. #include <stdlib.h>
  15340. #include <string.h>
  15341. #include <esd.h>
  15342. char*
  15343. my_strdup (char *str)
  15344. {
  15345. char *new_str;
  15346. if (str)
  15347. {
  15348. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15349. strcpy (new_str, str);
  15350. }
  15351. else
  15352. new_str = NULL;
  15353. return new_str;
  15354. }
  15355. int main ()
  15356. {
  15357. int major, minor, micro;
  15358. char *tmp_version;
  15359. system ("touch conf.esdtest");
  15360. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15361. tmp_version = my_strdup("$min_esd_version");
  15362. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15363. printf("%s, bad version string\n", "$min_esd_version");
  15364. exit(1);
  15365. }
  15366. if (($esd_major_version > major) ||
  15367. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15368. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15369. {
  15370. return 0;
  15371. }
  15372. else
  15373. {
  15374. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15375. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15376. printf("*** best to upgrade to the required version.\n");
  15377. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15378. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15379. printf("*** config.cache before re-running configure\n");
  15380. return 1;
  15381. }
  15382. }
  15383. _ACEOF
  15384. if ac_fn_c_try_run "$LINENO"; then :
  15385. else
  15386. no_esd=yes
  15387. fi
  15388. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15389. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15390. fi
  15391. CFLAGS="$ac_save_CFLAGS"
  15392. LIBS="$ac_save_LIBS"
  15393. fi
  15394. fi
  15395. if test "x$no_esd" = x ; then
  15396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15397. $as_echo "yes" >&6; }
  15398. have_esd=yes
  15399. else
  15400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15401. $as_echo "no" >&6; }
  15402. if test "$ESD_CONFIG" = "no" ; then
  15403. echo "*** The esd-config script installed by ESD could not be found"
  15404. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15405. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15406. echo "*** full path to esd-config."
  15407. else
  15408. if test -f conf.esdtest ; then
  15409. :
  15410. else
  15411. echo "*** Could not run ESD test program, checking why..."
  15412. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15413. LIBS="$LIBS $ESD_LIBS"
  15414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15415. /* end confdefs.h. */
  15416. #include <stdio.h>
  15417. #include <esd.h>
  15418. int
  15419. main ()
  15420. {
  15421. return 0;
  15422. ;
  15423. return 0;
  15424. }
  15425. _ACEOF
  15426. if ac_fn_c_try_link "$LINENO"; then :
  15427. echo "*** The test program compiled, but did not run. This usually means"
  15428. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15429. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15430. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15431. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15432. echo "*** is required on your system"
  15433. echo "***"
  15434. echo "*** If you have an old version installed, it is best to remove it, although"
  15435. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15436. else
  15437. echo "*** The test program failed to compile or link. See the file config.log for the"
  15438. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15439. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15440. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15441. fi
  15442. rm -f core conftest.err conftest.$ac_objext \
  15443. conftest$ac_exeext conftest.$ac_ext
  15444. CFLAGS="$ac_save_CFLAGS"
  15445. LIBS="$ac_save_LIBS"
  15446. fi
  15447. fi
  15448. ESD_CFLAGS=""
  15449. ESD_LIBS=""
  15450. have_esd=no
  15451. fi
  15452. rm -f conf.esdtest
  15453. if test x$have_esd = xyes; then
  15454. # Check whether --enable-esd-shared was given.
  15455. if test "${enable_esd_shared+set}" = set; then :
  15456. enableval=$enable_esd_shared;
  15457. else
  15458. enable_esd_shared=yes
  15459. fi
  15460. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15461. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15462. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15463. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15464. if test x$have_loadso != xyes && \
  15465. test x$enable_esd_shared = xyes; then
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15467. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15468. fi
  15469. if test x$have_loadso = xyes && \
  15470. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15471. echo "-- dynamic libesd -> $esd_lib"
  15472. cat >>confdefs.h <<_ACEOF
  15473. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15474. _ACEOF
  15475. else
  15476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15477. fi
  15478. have_audio=yes
  15479. fi
  15480. fi
  15481. }
  15482. CheckPulseAudio()
  15483. {
  15484. # Check whether --enable-pulseaudio was given.
  15485. if test "${enable_pulseaudio+set}" = set; then :
  15486. enableval=$enable_pulseaudio;
  15487. else
  15488. enable_pulseaudio=yes
  15489. fi
  15490. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15491. audio_pulseaudio=no
  15492. PULSEAUDIO_REQUIRED_VERSION=0.9
  15493. # Extract the first word of "pkg-config", so it can be a program name with args.
  15494. set dummy pkg-config; ac_word=$2
  15495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15496. $as_echo_n "checking for $ac_word... " >&6; }
  15497. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15498. $as_echo_n "(cached) " >&6
  15499. else
  15500. case $PKG_CONFIG in
  15501. [\\/]* | ?:[\\/]*)
  15502. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15503. ;;
  15504. *)
  15505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15506. for as_dir in $PATH
  15507. do
  15508. IFS=$as_save_IFS
  15509. test -z "$as_dir" && as_dir=.
  15510. for ac_exec_ext in '' $ac_executable_extensions; do
  15511. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15512. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15514. break 2
  15515. fi
  15516. done
  15517. done
  15518. IFS=$as_save_IFS
  15519. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15520. ;;
  15521. esac
  15522. fi
  15523. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15524. if test -n "$PKG_CONFIG"; then
  15525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15526. $as_echo "$PKG_CONFIG" >&6; }
  15527. else
  15528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15529. $as_echo "no" >&6; }
  15530. fi
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15532. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15533. if test x$PKG_CONFIG != xno; then
  15534. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15535. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15536. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15537. audio_pulseaudio=yes
  15538. fi
  15539. fi
  15540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15541. $as_echo "$audio_pulseaudio" >&6; }
  15542. if test x$audio_pulseaudio = xyes; then
  15543. # Check whether --enable-pulseaudio-shared was given.
  15544. if test "${enable_pulseaudio_shared+set}" = set; then :
  15545. enableval=$enable_pulseaudio_shared;
  15546. else
  15547. enable_pulseaudio_shared=yes
  15548. fi
  15549. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15550. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15551. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15552. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15553. if test x$have_loadso != xyes && \
  15554. test x$enable_pulseaudio_shared = xyes; then
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15556. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15557. fi
  15558. if test x$have_loadso = xyes && \
  15559. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15560. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15561. cat >>confdefs.h <<_ACEOF
  15562. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15563. _ACEOF
  15564. case "$host" in
  15565. # On Solaris, pulseaudio must be linked deferred explicitly
  15566. # to prevent undefined symbol failures.
  15567. *-*-solaris*)
  15568. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15569. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15570. esac
  15571. else
  15572. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15573. fi
  15574. have_audio=yes
  15575. fi
  15576. fi
  15577. }
  15578. CheckARTSC()
  15579. {
  15580. # Check whether --enable-arts was given.
  15581. if test "${enable_arts+set}" = set; then :
  15582. enableval=$enable_arts;
  15583. else
  15584. enable_arts=yes
  15585. fi
  15586. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15587. # Extract the first word of "artsc-config", so it can be a program name with args.
  15588. set dummy artsc-config; ac_word=$2
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15590. $as_echo_n "checking for $ac_word... " >&6; }
  15591. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15592. $as_echo_n "(cached) " >&6
  15593. else
  15594. case $ARTSCONFIG in
  15595. [\\/]* | ?:[\\/]*)
  15596. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15597. ;;
  15598. *)
  15599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15600. for as_dir in $PATH
  15601. do
  15602. IFS=$as_save_IFS
  15603. test -z "$as_dir" && as_dir=.
  15604. for ac_exec_ext in '' $ac_executable_extensions; do
  15605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15606. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15608. break 2
  15609. fi
  15610. done
  15611. done
  15612. IFS=$as_save_IFS
  15613. ;;
  15614. esac
  15615. fi
  15616. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15617. if test -n "$ARTSCONFIG"; then
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15619. $as_echo "$ARTSCONFIG" >&6; }
  15620. else
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15622. $as_echo "no" >&6; }
  15623. fi
  15624. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15625. : # arts isn't installed
  15626. else
  15627. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15628. ARTS_LIBS=`$ARTSCONFIG --libs`
  15629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15630. $as_echo_n "checking for aRts development environment... " >&6; }
  15631. audio_arts=no
  15632. save_CFLAGS="$CFLAGS"
  15633. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15635. /* end confdefs.h. */
  15636. #include <artsc.h>
  15637. int
  15638. main ()
  15639. {
  15640. arts_stream_t stream;
  15641. ;
  15642. return 0;
  15643. }
  15644. _ACEOF
  15645. if ac_fn_c_try_compile "$LINENO"; then :
  15646. audio_arts=yes
  15647. fi
  15648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15649. CFLAGS="$save_CFLAGS"
  15650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15651. $as_echo "$audio_arts" >&6; }
  15652. if test x$audio_arts = xyes; then
  15653. # Check whether --enable-arts-shared was given.
  15654. if test "${enable_arts_shared+set}" = set; then :
  15655. enableval=$enable_arts_shared;
  15656. else
  15657. enable_arts_shared=yes
  15658. fi
  15659. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15660. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15661. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15662. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15663. if test x$have_loadso != xyes && \
  15664. test x$enable_arts_shared = xyes; then
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15666. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15667. fi
  15668. if test x$have_loadso = xyes && \
  15669. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15670. echo "-- dynamic libartsc -> $arts_lib"
  15671. cat >>confdefs.h <<_ACEOF
  15672. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15673. _ACEOF
  15674. else
  15675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15676. fi
  15677. have_audio=yes
  15678. fi
  15679. fi
  15680. fi
  15681. }
  15682. CheckNAS()
  15683. {
  15684. # Check whether --enable-nas was given.
  15685. if test "${enable_nas+set}" = set; then :
  15686. enableval=$enable_nas;
  15687. else
  15688. enable_nas=yes
  15689. fi
  15690. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15691. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15692. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15693. have_nas_hdr=yes
  15694. fi
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15696. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15697. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15698. $as_echo_n "(cached) " >&6
  15699. else
  15700. ac_check_lib_save_LIBS=$LIBS
  15701. LIBS="-laudio $LIBS"
  15702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15703. /* end confdefs.h. */
  15704. /* Override any GCC internal prototype to avoid an error.
  15705. Use char because int might match the return type of a GCC
  15706. builtin and then its argument prototype would still apply. */
  15707. #ifdef __cplusplus
  15708. extern "C"
  15709. #endif
  15710. char AuOpenServer ();
  15711. int
  15712. main ()
  15713. {
  15714. return AuOpenServer ();
  15715. ;
  15716. return 0;
  15717. }
  15718. _ACEOF
  15719. if ac_fn_c_try_link "$LINENO"; then :
  15720. ac_cv_lib_audio_AuOpenServer=yes
  15721. else
  15722. ac_cv_lib_audio_AuOpenServer=no
  15723. fi
  15724. rm -f core conftest.err conftest.$ac_objext \
  15725. conftest$ac_exeext conftest.$ac_ext
  15726. LIBS=$ac_check_lib_save_LIBS
  15727. fi
  15728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15729. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15730. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15731. have_nas_lib=yes
  15732. fi
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15734. $as_echo_n "checking for NAS audio support... " >&6; }
  15735. have_nas=no
  15736. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15737. have_nas=yes
  15738. NAS_LIBS="-laudio"
  15739. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15740. have_nas=yes
  15741. NAS_CFLAGS="-I/usr/X11R6/include/"
  15742. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15743. fi
  15744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15745. $as_echo "$have_nas" >&6; }
  15746. if test x$have_nas = xyes; then
  15747. # Check whether --enable-nas-shared was given.
  15748. if test "${enable_nas_shared+set}" = set; then :
  15749. enableval=$enable_nas_shared;
  15750. else
  15751. enable_nas_shared=yes
  15752. fi
  15753. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15754. if test x$have_loadso != xyes && \
  15755. test x$enable_nas_shared = xyes; then
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15757. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15758. fi
  15759. if test x$have_loadso = xyes && \
  15760. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15761. echo "-- dynamic libaudio -> $nas_lib"
  15762. cat >>confdefs.h <<_ACEOF
  15763. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15764. _ACEOF
  15765. else
  15766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15767. fi
  15768. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15769. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15770. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15771. have_audio=yes
  15772. fi
  15773. fi
  15774. }
  15775. CheckSNDIO()
  15776. {
  15777. # Check whether --enable-sndio was given.
  15778. if test "${enable_sndio+set}" = set; then :
  15779. enableval=$enable_sndio;
  15780. else
  15781. enable_sndio=yes
  15782. fi
  15783. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15784. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15785. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15786. have_sndio_hdr=yes
  15787. fi
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15789. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15790. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15791. $as_echo_n "(cached) " >&6
  15792. else
  15793. ac_check_lib_save_LIBS=$LIBS
  15794. LIBS="-lsndio $LIBS"
  15795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15796. /* end confdefs.h. */
  15797. /* Override any GCC internal prototype to avoid an error.
  15798. Use char because int might match the return type of a GCC
  15799. builtin and then its argument prototype would still apply. */
  15800. #ifdef __cplusplus
  15801. extern "C"
  15802. #endif
  15803. char sio_open ();
  15804. int
  15805. main ()
  15806. {
  15807. return sio_open ();
  15808. ;
  15809. return 0;
  15810. }
  15811. _ACEOF
  15812. if ac_fn_c_try_link "$LINENO"; then :
  15813. ac_cv_lib_sndio_sio_open=yes
  15814. else
  15815. ac_cv_lib_sndio_sio_open=no
  15816. fi
  15817. rm -f core conftest.err conftest.$ac_objext \
  15818. conftest$ac_exeext conftest.$ac_ext
  15819. LIBS=$ac_check_lib_save_LIBS
  15820. fi
  15821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15822. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15823. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15824. have_sndio_lib=yes
  15825. fi
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15827. $as_echo_n "checking for sndio audio support... " >&6; }
  15828. have_sndio=no
  15829. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15830. have_sndio=yes
  15831. SNDIO_LIBS="-lsndio"
  15832. fi
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15834. $as_echo "$have_sndio" >&6; }
  15835. if test x$have_sndio = xyes; then
  15836. # Check whether --enable-sndio-shared was given.
  15837. if test "${enable_sndio_shared+set}" = set; then :
  15838. enableval=$enable_sndio_shared;
  15839. else
  15840. enable_sndio_shared=yes
  15841. fi
  15842. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15843. if test x$have_loadso != xyes && \
  15844. test x$enable_sndio_shared = xyes; then
  15845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15846. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15847. fi
  15848. if test x$have_loadso = xyes && \
  15849. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15850. echo "-- dynamic libsndio -> $sndio_lib"
  15851. cat >>confdefs.h <<_ACEOF
  15852. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15853. _ACEOF
  15854. else
  15855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15856. fi
  15857. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15858. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15859. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15860. have_audio=yes
  15861. fi
  15862. fi
  15863. }
  15864. CheckDiskAudio()
  15865. {
  15866. # Check whether --enable-diskaudio was given.
  15867. if test "${enable_diskaudio+set}" = set; then :
  15868. enableval=$enable_diskaudio;
  15869. else
  15870. enable_diskaudio=yes
  15871. fi
  15872. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15873. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15874. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15875. fi
  15876. }
  15877. CheckDummyAudio()
  15878. {
  15879. # Check whether --enable-dummyaudio was given.
  15880. if test "${enable_dummyaudio+set}" = set; then :
  15881. enableval=$enable_dummyaudio;
  15882. else
  15883. enable_dummyaudio=yes
  15884. fi
  15885. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15886. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15887. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15888. fi
  15889. }
  15890. CheckVisibilityHidden()
  15891. {
  15892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15893. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15894. have_gcc_fvisibility=no
  15895. visibility_CFLAGS="-fvisibility=hidden"
  15896. save_CFLAGS="$CFLAGS"
  15897. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15899. /* end confdefs.h. */
  15900. #if !defined(__GNUC__) || __GNUC__ < 4
  15901. #error SDL only uses visibility attributes in GCC 4 or newer
  15902. #endif
  15903. int
  15904. main ()
  15905. {
  15906. ;
  15907. return 0;
  15908. }
  15909. _ACEOF
  15910. if ac_fn_c_try_compile "$LINENO"; then :
  15911. have_gcc_fvisibility=yes
  15912. fi
  15913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15915. $as_echo "$have_gcc_fvisibility" >&6; }
  15916. CFLAGS="$save_CFLAGS"
  15917. if test x$have_gcc_fvisibility = xyes; then
  15918. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15919. fi
  15920. }
  15921. CheckStackBoundary()
  15922. {
  15923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15924. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15925. have_gcc_preferred_stack_boundary=no
  15926. save_CFLAGS="$CFLAGS"
  15927. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15929. /* end confdefs.h. */
  15930. int x = 0;
  15931. int
  15932. main ()
  15933. {
  15934. ;
  15935. return 0;
  15936. }
  15937. _ACEOF
  15938. if ac_fn_c_try_compile "$LINENO"; then :
  15939. have_gcc_preferred_stack_boundary=yes
  15940. fi
  15941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15943. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15944. CFLAGS="$save_CFLAGS"
  15945. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15946. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15947. fi
  15948. }
  15949. CheckWarnAll()
  15950. {
  15951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  15952. $as_echo_n "checking for GCC -Wall option... " >&6; }
  15953. have_gcc_Wall=no
  15954. save_CFLAGS="$CFLAGS"
  15955. CFLAGS="$save_CFLAGS -Wall"
  15956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15957. /* end confdefs.h. */
  15958. int x = 0;
  15959. int
  15960. main ()
  15961. {
  15962. ;
  15963. return 0;
  15964. }
  15965. _ACEOF
  15966. if ac_fn_c_try_compile "$LINENO"; then :
  15967. have_gcc_Wall=yes
  15968. fi
  15969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  15971. $as_echo "$have_gcc_Wall" >&6; }
  15972. CFLAGS="$save_CFLAGS"
  15973. if test x$have_gcc_Wall = xyes; then
  15974. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  15976. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  15977. need_gcc_Wno_multichar=no
  15978. case "$host" in
  15979. *-*-haiku*)
  15980. need_gcc_Wno_multichar=yes
  15981. ;;
  15982. esac
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  15984. $as_echo "$need_gcc_Wno_multichar" >&6; }
  15985. if test x$need_gcc_Wno_multichar = xyes; then
  15986. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  15987. fi
  15988. fi
  15989. }
  15990. CheckWayland()
  15991. {
  15992. # Check whether --enable-video-wayland was given.
  15993. if test "${enable_video_wayland+set}" = set; then :
  15994. enableval=$enable_video_wayland;
  15995. else
  15996. enable_video_wayland=yes
  15997. fi
  15998. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  15999. # Extract the first word of "pkg-config", so it can be a program name with args.
  16000. set dummy pkg-config; ac_word=$2
  16001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16002. $as_echo_n "checking for $ac_word... " >&6; }
  16003. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16004. $as_echo_n "(cached) " >&6
  16005. else
  16006. case $PKG_CONFIG in
  16007. [\\/]* | ?:[\\/]*)
  16008. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16009. ;;
  16010. *)
  16011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16012. for as_dir in $PATH
  16013. do
  16014. IFS=$as_save_IFS
  16015. test -z "$as_dir" && as_dir=.
  16016. for ac_exec_ext in '' $ac_executable_extensions; do
  16017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16018. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16020. break 2
  16021. fi
  16022. done
  16023. done
  16024. IFS=$as_save_IFS
  16025. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16026. ;;
  16027. esac
  16028. fi
  16029. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16030. if test -n "$PKG_CONFIG"; then
  16031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16032. $as_echo "$PKG_CONFIG" >&6; }
  16033. else
  16034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16035. $as_echo "no" >&6; }
  16036. fi
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16038. $as_echo_n "checking for Wayland support... " >&6; }
  16039. video_wayland=no
  16040. if test x$PKG_CONFIG != xno; then
  16041. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16042. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor egl xkbcommon`
  16043. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor egl xkbcommon`
  16044. video_wayland=yes
  16045. fi
  16046. fi
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16048. $as_echo "$video_wayland" >&6; }
  16049. if test x$video_wayland = xyes; then
  16050. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16051. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16052. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16053. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16054. have_video=yes
  16055. fi
  16056. fi
  16057. }
  16058. CheckX11()
  16059. {
  16060. # Check whether --enable-video-x11 was given.
  16061. if test "${enable_video_x11+set}" = set; then :
  16062. enableval=$enable_video_x11;
  16063. else
  16064. enable_video_x11=yes
  16065. fi
  16066. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16067. case "$host" in
  16068. *-*-darwin*)
  16069. # This isn't necessary for X11, but fixes GLX detection
  16070. if test "x$x_includes" = xNONE && \
  16071. test "x$x_libraries" = xNONE && \
  16072. test -d /usr/X11R6/include && \
  16073. test -d /usr/X11R6/lib; then
  16074. x_includes="/usr/X11R6/include"
  16075. x_libraries="/usr/X11R6/lib"
  16076. fi
  16077. ;;
  16078. esac
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16080. $as_echo_n "checking for X... " >&6; }
  16081. # Check whether --with-x was given.
  16082. if test "${with_x+set}" = set; then :
  16083. withval=$with_x;
  16084. fi
  16085. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16086. if test "x$with_x" = xno; then
  16087. # The user explicitly disabled X.
  16088. have_x=disabled
  16089. else
  16090. case $x_includes,$x_libraries in #(
  16091. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16092. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16093. $as_echo_n "(cached) " >&6
  16094. else
  16095. # One or both of the vars are not set, and there is no cached value.
  16096. ac_x_includes=no ac_x_libraries=no
  16097. rm -f -r conftest.dir
  16098. if mkdir conftest.dir; then
  16099. cd conftest.dir
  16100. cat >Imakefile <<'_ACEOF'
  16101. incroot:
  16102. @echo incroot='${INCROOT}'
  16103. usrlibdir:
  16104. @echo usrlibdir='${USRLIBDIR}'
  16105. libdir:
  16106. @echo libdir='${LIBDIR}'
  16107. _ACEOF
  16108. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16109. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16110. for ac_var in incroot usrlibdir libdir; do
  16111. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16112. done
  16113. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16114. for ac_extension in a so sl dylib la dll; do
  16115. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16116. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16117. ac_im_usrlibdir=$ac_im_libdir; break
  16118. fi
  16119. done
  16120. # Screen out bogus values from the imake configuration. They are
  16121. # bogus both because they are the default anyway, and because
  16122. # using them would break gcc on systems where it needs fixed includes.
  16123. case $ac_im_incroot in
  16124. /usr/include) ac_x_includes= ;;
  16125. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16126. esac
  16127. case $ac_im_usrlibdir in
  16128. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16129. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16130. esac
  16131. fi
  16132. cd ..
  16133. rm -f -r conftest.dir
  16134. fi
  16135. # Standard set of common directories for X headers.
  16136. # Check X11 before X11Rn because it is often a symlink to the current release.
  16137. ac_x_header_dirs='
  16138. /usr/X11/include
  16139. /usr/X11R7/include
  16140. /usr/X11R6/include
  16141. /usr/X11R5/include
  16142. /usr/X11R4/include
  16143. /usr/include/X11
  16144. /usr/include/X11R7
  16145. /usr/include/X11R6
  16146. /usr/include/X11R5
  16147. /usr/include/X11R4
  16148. /usr/local/X11/include
  16149. /usr/local/X11R7/include
  16150. /usr/local/X11R6/include
  16151. /usr/local/X11R5/include
  16152. /usr/local/X11R4/include
  16153. /usr/local/include/X11
  16154. /usr/local/include/X11R7
  16155. /usr/local/include/X11R6
  16156. /usr/local/include/X11R5
  16157. /usr/local/include/X11R4
  16158. /usr/X386/include
  16159. /usr/x386/include
  16160. /usr/XFree86/include/X11
  16161. /usr/include
  16162. /usr/local/include
  16163. /usr/unsupported/include
  16164. /usr/athena/include
  16165. /usr/local/x11r5/include
  16166. /usr/lpp/Xamples/include
  16167. /usr/openwin/include
  16168. /usr/openwin/share/include'
  16169. if test "$ac_x_includes" = no; then
  16170. # Guess where to find include files, by looking for Xlib.h.
  16171. # First, try using that file with no special directory specified.
  16172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16173. /* end confdefs.h. */
  16174. #include <X11/Xlib.h>
  16175. _ACEOF
  16176. if ac_fn_c_try_cpp "$LINENO"; then :
  16177. # We can compile using X headers with no special include directory.
  16178. ac_x_includes=
  16179. else
  16180. for ac_dir in $ac_x_header_dirs; do
  16181. if test -r "$ac_dir/X11/Xlib.h"; then
  16182. ac_x_includes=$ac_dir
  16183. break
  16184. fi
  16185. done
  16186. fi
  16187. rm -f conftest.err conftest.i conftest.$ac_ext
  16188. fi # $ac_x_includes = no
  16189. if test "$ac_x_libraries" = no; then
  16190. # Check for the libraries.
  16191. # See if we find them without any special options.
  16192. # Don't add to $LIBS permanently.
  16193. ac_save_LIBS=$LIBS
  16194. LIBS="-lX11 $LIBS"
  16195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16196. /* end confdefs.h. */
  16197. #include <X11/Xlib.h>
  16198. int
  16199. main ()
  16200. {
  16201. XrmInitialize ()
  16202. ;
  16203. return 0;
  16204. }
  16205. _ACEOF
  16206. if ac_fn_c_try_link "$LINENO"; then :
  16207. LIBS=$ac_save_LIBS
  16208. # We can link X programs with no special library path.
  16209. ac_x_libraries=
  16210. else
  16211. LIBS=$ac_save_LIBS
  16212. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16213. do
  16214. # Don't even attempt the hair of trying to link an X program!
  16215. for ac_extension in a so sl dylib la dll; do
  16216. if test -r "$ac_dir/libX11.$ac_extension"; then
  16217. ac_x_libraries=$ac_dir
  16218. break 2
  16219. fi
  16220. done
  16221. done
  16222. fi
  16223. rm -f core conftest.err conftest.$ac_objext \
  16224. conftest$ac_exeext conftest.$ac_ext
  16225. fi # $ac_x_libraries = no
  16226. case $ac_x_includes,$ac_x_libraries in #(
  16227. no,* | *,no | *\'*)
  16228. # Didn't find X, or a directory has "'" in its name.
  16229. ac_cv_have_x="have_x=no";; #(
  16230. *)
  16231. # Record where we found X for the cache.
  16232. ac_cv_have_x="have_x=yes\
  16233. ac_x_includes='$ac_x_includes'\
  16234. ac_x_libraries='$ac_x_libraries'"
  16235. esac
  16236. fi
  16237. ;; #(
  16238. *) have_x=yes;;
  16239. esac
  16240. eval "$ac_cv_have_x"
  16241. fi # $with_x != no
  16242. if test "$have_x" != yes; then
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16244. $as_echo "$have_x" >&6; }
  16245. no_x=yes
  16246. else
  16247. # If each of the values was on the command line, it overrides each guess.
  16248. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16249. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16250. # Update the cache value to reflect the command line values.
  16251. ac_cv_have_x="have_x=yes\
  16252. ac_x_includes='$x_includes'\
  16253. ac_x_libraries='$x_libraries'"
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16255. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16256. fi
  16257. if test "$no_x" = yes; then
  16258. # Not all programs may use this symbol, but it does not hurt to define it.
  16259. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16260. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16261. else
  16262. if test -n "$x_includes"; then
  16263. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16264. fi
  16265. # It would also be nice to do this for all -L options, not just this one.
  16266. if test -n "$x_libraries"; then
  16267. X_LIBS="$X_LIBS -L$x_libraries"
  16268. # For Solaris; some versions of Sun CC require a space after -R and
  16269. # others require no space. Words are not sufficient . . . .
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16271. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16272. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16273. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16274. ac_c_werror_flag=yes
  16275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16276. /* end confdefs.h. */
  16277. int
  16278. main ()
  16279. {
  16280. ;
  16281. return 0;
  16282. }
  16283. _ACEOF
  16284. if ac_fn_c_try_link "$LINENO"; then :
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16286. $as_echo "no" >&6; }
  16287. X_LIBS="$X_LIBS -R$x_libraries"
  16288. else
  16289. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16291. /* end confdefs.h. */
  16292. int
  16293. main ()
  16294. {
  16295. ;
  16296. return 0;
  16297. }
  16298. _ACEOF
  16299. if ac_fn_c_try_link "$LINENO"; then :
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16301. $as_echo "yes" >&6; }
  16302. X_LIBS="$X_LIBS -R $x_libraries"
  16303. else
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16305. $as_echo "neither works" >&6; }
  16306. fi
  16307. rm -f core conftest.err conftest.$ac_objext \
  16308. conftest$ac_exeext conftest.$ac_ext
  16309. fi
  16310. rm -f core conftest.err conftest.$ac_objext \
  16311. conftest$ac_exeext conftest.$ac_ext
  16312. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16313. LIBS=$ac_xsave_LIBS
  16314. fi
  16315. # Check for system-dependent libraries X programs must link with.
  16316. # Do this before checking for the system-independent R6 libraries
  16317. # (-lICE), since we may need -lsocket or whatever for X linking.
  16318. if test "$ISC" = yes; then
  16319. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16320. else
  16321. # Martyn Johnson says this is needed for Ultrix, if the X
  16322. # libraries were built with DECnet support. And Karl Berry says
  16323. # the Alpha needs dnet_stub (dnet does not exist).
  16324. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16326. /* end confdefs.h. */
  16327. /* Override any GCC internal prototype to avoid an error.
  16328. Use char because int might match the return type of a GCC
  16329. builtin and then its argument prototype would still apply. */
  16330. #ifdef __cplusplus
  16331. extern "C"
  16332. #endif
  16333. char XOpenDisplay ();
  16334. int
  16335. main ()
  16336. {
  16337. return XOpenDisplay ();
  16338. ;
  16339. return 0;
  16340. }
  16341. _ACEOF
  16342. if ac_fn_c_try_link "$LINENO"; then :
  16343. else
  16344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16345. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16346. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16347. $as_echo_n "(cached) " >&6
  16348. else
  16349. ac_check_lib_save_LIBS=$LIBS
  16350. LIBS="-ldnet $LIBS"
  16351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16352. /* end confdefs.h. */
  16353. /* Override any GCC internal prototype to avoid an error.
  16354. Use char because int might match the return type of a GCC
  16355. builtin and then its argument prototype would still apply. */
  16356. #ifdef __cplusplus
  16357. extern "C"
  16358. #endif
  16359. char dnet_ntoa ();
  16360. int
  16361. main ()
  16362. {
  16363. return dnet_ntoa ();
  16364. ;
  16365. return 0;
  16366. }
  16367. _ACEOF
  16368. if ac_fn_c_try_link "$LINENO"; then :
  16369. ac_cv_lib_dnet_dnet_ntoa=yes
  16370. else
  16371. ac_cv_lib_dnet_dnet_ntoa=no
  16372. fi
  16373. rm -f core conftest.err conftest.$ac_objext \
  16374. conftest$ac_exeext conftest.$ac_ext
  16375. LIBS=$ac_check_lib_save_LIBS
  16376. fi
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16378. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16379. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16380. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16381. fi
  16382. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16384. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16385. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16386. $as_echo_n "(cached) " >&6
  16387. else
  16388. ac_check_lib_save_LIBS=$LIBS
  16389. LIBS="-ldnet_stub $LIBS"
  16390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16391. /* end confdefs.h. */
  16392. /* Override any GCC internal prototype to avoid an error.
  16393. Use char because int might match the return type of a GCC
  16394. builtin and then its argument prototype would still apply. */
  16395. #ifdef __cplusplus
  16396. extern "C"
  16397. #endif
  16398. char dnet_ntoa ();
  16399. int
  16400. main ()
  16401. {
  16402. return dnet_ntoa ();
  16403. ;
  16404. return 0;
  16405. }
  16406. _ACEOF
  16407. if ac_fn_c_try_link "$LINENO"; then :
  16408. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16409. else
  16410. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16411. fi
  16412. rm -f core conftest.err conftest.$ac_objext \
  16413. conftest$ac_exeext conftest.$ac_ext
  16414. LIBS=$ac_check_lib_save_LIBS
  16415. fi
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16417. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16418. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16419. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16420. fi
  16421. fi
  16422. fi
  16423. rm -f core conftest.err conftest.$ac_objext \
  16424. conftest$ac_exeext conftest.$ac_ext
  16425. LIBS="$ac_xsave_LIBS"
  16426. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16427. # to get the SysV transport functions.
  16428. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16429. # needs -lnsl.
  16430. # The nsl library prevents programs from opening the X display
  16431. # on Irix 5.2, according to T.E. Dickey.
  16432. # The functions gethostbyname, getservbyname, and inet_addr are
  16433. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16434. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16435. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16436. fi
  16437. if test $ac_cv_func_gethostbyname = no; then
  16438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16439. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16440. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16441. $as_echo_n "(cached) " >&6
  16442. else
  16443. ac_check_lib_save_LIBS=$LIBS
  16444. LIBS="-lnsl $LIBS"
  16445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16446. /* end confdefs.h. */
  16447. /* Override any GCC internal prototype to avoid an error.
  16448. Use char because int might match the return type of a GCC
  16449. builtin and then its argument prototype would still apply. */
  16450. #ifdef __cplusplus
  16451. extern "C"
  16452. #endif
  16453. char gethostbyname ();
  16454. int
  16455. main ()
  16456. {
  16457. return gethostbyname ();
  16458. ;
  16459. return 0;
  16460. }
  16461. _ACEOF
  16462. if ac_fn_c_try_link "$LINENO"; then :
  16463. ac_cv_lib_nsl_gethostbyname=yes
  16464. else
  16465. ac_cv_lib_nsl_gethostbyname=no
  16466. fi
  16467. rm -f core conftest.err conftest.$ac_objext \
  16468. conftest$ac_exeext conftest.$ac_ext
  16469. LIBS=$ac_check_lib_save_LIBS
  16470. fi
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16472. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16473. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16474. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16475. fi
  16476. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16478. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16479. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16480. $as_echo_n "(cached) " >&6
  16481. else
  16482. ac_check_lib_save_LIBS=$LIBS
  16483. LIBS="-lbsd $LIBS"
  16484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16485. /* end confdefs.h. */
  16486. /* Override any GCC internal prototype to avoid an error.
  16487. Use char because int might match the return type of a GCC
  16488. builtin and then its argument prototype would still apply. */
  16489. #ifdef __cplusplus
  16490. extern "C"
  16491. #endif
  16492. char gethostbyname ();
  16493. int
  16494. main ()
  16495. {
  16496. return gethostbyname ();
  16497. ;
  16498. return 0;
  16499. }
  16500. _ACEOF
  16501. if ac_fn_c_try_link "$LINENO"; then :
  16502. ac_cv_lib_bsd_gethostbyname=yes
  16503. else
  16504. ac_cv_lib_bsd_gethostbyname=no
  16505. fi
  16506. rm -f core conftest.err conftest.$ac_objext \
  16507. conftest$ac_exeext conftest.$ac_ext
  16508. LIBS=$ac_check_lib_save_LIBS
  16509. fi
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16511. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16512. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16513. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16514. fi
  16515. fi
  16516. fi
  16517. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16518. # socket/setsockopt and other routines are undefined under SCO ODT
  16519. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16520. # on later versions), says Simon Leinen: it contains gethostby*
  16521. # variants that don't use the name server (or something). -lsocket
  16522. # must be given before -lnsl if both are needed. We assume that
  16523. # if connect needs -lnsl, so does gethostbyname.
  16524. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16525. if test "x$ac_cv_func_connect" = xyes; then :
  16526. fi
  16527. if test $ac_cv_func_connect = no; then
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16529. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16530. if ${ac_cv_lib_socket_connect+:} false; then :
  16531. $as_echo_n "(cached) " >&6
  16532. else
  16533. ac_check_lib_save_LIBS=$LIBS
  16534. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16536. /* end confdefs.h. */
  16537. /* Override any GCC internal prototype to avoid an error.
  16538. Use char because int might match the return type of a GCC
  16539. builtin and then its argument prototype would still apply. */
  16540. #ifdef __cplusplus
  16541. extern "C"
  16542. #endif
  16543. char connect ();
  16544. int
  16545. main ()
  16546. {
  16547. return connect ();
  16548. ;
  16549. return 0;
  16550. }
  16551. _ACEOF
  16552. if ac_fn_c_try_link "$LINENO"; then :
  16553. ac_cv_lib_socket_connect=yes
  16554. else
  16555. ac_cv_lib_socket_connect=no
  16556. fi
  16557. rm -f core conftest.err conftest.$ac_objext \
  16558. conftest$ac_exeext conftest.$ac_ext
  16559. LIBS=$ac_check_lib_save_LIBS
  16560. fi
  16561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16562. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16563. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16564. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16565. fi
  16566. fi
  16567. # Guillermo Gomez says -lposix is necessary on A/UX.
  16568. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16569. if test "x$ac_cv_func_remove" = xyes; then :
  16570. fi
  16571. if test $ac_cv_func_remove = no; then
  16572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16573. $as_echo_n "checking for remove in -lposix... " >&6; }
  16574. if ${ac_cv_lib_posix_remove+:} false; then :
  16575. $as_echo_n "(cached) " >&6
  16576. else
  16577. ac_check_lib_save_LIBS=$LIBS
  16578. LIBS="-lposix $LIBS"
  16579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16580. /* end confdefs.h. */
  16581. /* Override any GCC internal prototype to avoid an error.
  16582. Use char because int might match the return type of a GCC
  16583. builtin and then its argument prototype would still apply. */
  16584. #ifdef __cplusplus
  16585. extern "C"
  16586. #endif
  16587. char remove ();
  16588. int
  16589. main ()
  16590. {
  16591. return remove ();
  16592. ;
  16593. return 0;
  16594. }
  16595. _ACEOF
  16596. if ac_fn_c_try_link "$LINENO"; then :
  16597. ac_cv_lib_posix_remove=yes
  16598. else
  16599. ac_cv_lib_posix_remove=no
  16600. fi
  16601. rm -f core conftest.err conftest.$ac_objext \
  16602. conftest$ac_exeext conftest.$ac_ext
  16603. LIBS=$ac_check_lib_save_LIBS
  16604. fi
  16605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16606. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16607. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16608. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16609. fi
  16610. fi
  16611. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16612. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16613. if test "x$ac_cv_func_shmat" = xyes; then :
  16614. fi
  16615. if test $ac_cv_func_shmat = no; then
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16617. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16618. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16619. $as_echo_n "(cached) " >&6
  16620. else
  16621. ac_check_lib_save_LIBS=$LIBS
  16622. LIBS="-lipc $LIBS"
  16623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16624. /* end confdefs.h. */
  16625. /* Override any GCC internal prototype to avoid an error.
  16626. Use char because int might match the return type of a GCC
  16627. builtin and then its argument prototype would still apply. */
  16628. #ifdef __cplusplus
  16629. extern "C"
  16630. #endif
  16631. char shmat ();
  16632. int
  16633. main ()
  16634. {
  16635. return shmat ();
  16636. ;
  16637. return 0;
  16638. }
  16639. _ACEOF
  16640. if ac_fn_c_try_link "$LINENO"; then :
  16641. ac_cv_lib_ipc_shmat=yes
  16642. else
  16643. ac_cv_lib_ipc_shmat=no
  16644. fi
  16645. rm -f core conftest.err conftest.$ac_objext \
  16646. conftest$ac_exeext conftest.$ac_ext
  16647. LIBS=$ac_check_lib_save_LIBS
  16648. fi
  16649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16650. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16651. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16652. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16653. fi
  16654. fi
  16655. fi
  16656. # Check for libraries that X11R6 Xt/Xaw programs need.
  16657. ac_save_LDFLAGS=$LDFLAGS
  16658. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16659. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16660. # check for ICE first), but we must link in the order -lSM -lICE or
  16661. # we get undefined symbols. So assume we have SM if we have ICE.
  16662. # These have to be linked with before -lX11, unlike the other
  16663. # libraries we check for below, so use a different variable.
  16664. # John Interrante, Karl Berry
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16666. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16667. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16668. $as_echo_n "(cached) " >&6
  16669. else
  16670. ac_check_lib_save_LIBS=$LIBS
  16671. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16673. /* end confdefs.h. */
  16674. /* Override any GCC internal prototype to avoid an error.
  16675. Use char because int might match the return type of a GCC
  16676. builtin and then its argument prototype would still apply. */
  16677. #ifdef __cplusplus
  16678. extern "C"
  16679. #endif
  16680. char IceConnectionNumber ();
  16681. int
  16682. main ()
  16683. {
  16684. return IceConnectionNumber ();
  16685. ;
  16686. return 0;
  16687. }
  16688. _ACEOF
  16689. if ac_fn_c_try_link "$LINENO"; then :
  16690. ac_cv_lib_ICE_IceConnectionNumber=yes
  16691. else
  16692. ac_cv_lib_ICE_IceConnectionNumber=no
  16693. fi
  16694. rm -f core conftest.err conftest.$ac_objext \
  16695. conftest$ac_exeext conftest.$ac_ext
  16696. LIBS=$ac_check_lib_save_LIBS
  16697. fi
  16698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16699. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16700. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16701. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16702. fi
  16703. LDFLAGS=$ac_save_LDFLAGS
  16704. fi
  16705. if test x$have_x = xyes; then
  16706. # Only allow dynamically loaded X11 if the X11 function pointers
  16707. # will not end up in the global namespace, which causes problems
  16708. # with other libraries calling X11 functions.
  16709. x11_symbols_private=$have_gcc_fvisibility
  16710. # Check whether --enable-x11-shared was given.
  16711. if test "${enable_x11_shared+set}" = set; then :
  16712. enableval=$enable_x11_shared;
  16713. else
  16714. enable_x11_shared=maybe
  16715. fi
  16716. case "$host" in
  16717. *-*-darwin*)
  16718. x11_symbols_private=yes
  16719. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16720. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16721. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16722. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16723. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16724. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16725. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16726. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16727. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16728. ;;
  16729. *-*-openbsd*)
  16730. x11_lib='libX11.so'
  16731. x11ext_lib='libXext.so'
  16732. xcursor_lib='libXcursor.so'
  16733. xinerama_lib='libXinerama.so'
  16734. xinput_lib='libXi.so'
  16735. xrandr_lib='libXrandr.so'
  16736. xrender_lib='libXrender.so'
  16737. xss_lib='libXss.so'
  16738. xvidmode_lib='libXxf86vm.so'
  16739. ;;
  16740. *)
  16741. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16742. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16743. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16744. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16745. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16746. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16747. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16748. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16749. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16750. ;;
  16751. esac
  16752. if test x$ac_cv_func_shmat != xyes; then
  16753. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16754. fi
  16755. CFLAGS="$CFLAGS $X_CFLAGS"
  16756. LDFLAGS="$LDFLAGS $X_LIBS"
  16757. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16758. #include <X11/Xproto.h>
  16759. "
  16760. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16761. have_xext_h_hdr=yes
  16762. else
  16763. have_xext_h_hdr=no
  16764. fi
  16765. if test x$have_xext_h_hdr != xyes; then
  16766. as_fn_error $? "
  16767. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16768. " "$LINENO" 5
  16769. fi
  16770. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16771. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16772. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16773. # Needed so SDL applications can include SDL_syswm.h
  16774. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16775. if test x$enable_x11_shared = xmaybe; then
  16776. enable_x11_shared=$x11_symbols_private
  16777. fi
  16778. if test x$have_loadso != xyes && \
  16779. test x$enable_x11_shared = xyes; then
  16780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16781. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16782. enable_x11_shared=no
  16783. fi
  16784. if test x$x11_symbols_private != xyes && \
  16785. test x$enable_x11_shared = xyes; then
  16786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
  16787. $as_echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
  16788. enable_x11_shared=no
  16789. fi
  16790. if test x$have_loadso = xyes && \
  16791. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16792. echo "-- dynamic libX11 -> $x11_lib"
  16793. echo "-- dynamic libX11ext -> $x11ext_lib"
  16794. cat >>confdefs.h <<_ACEOF
  16795. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16796. _ACEOF
  16797. cat >>confdefs.h <<_ACEOF
  16798. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16799. _ACEOF
  16800. else
  16801. enable_x11_shared=no
  16802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16803. fi
  16804. have_video=yes
  16805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16806. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16807. have_const_param_XextAddDisplay=no
  16808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16809. /* end confdefs.h. */
  16810. #include <X11/Xlib.h>
  16811. #include <X11/Xproto.h>
  16812. #include <X11/extensions/Xext.h>
  16813. #include <X11/extensions/extutil.h>
  16814. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16815. int
  16816. main ()
  16817. {
  16818. ;
  16819. return 0;
  16820. }
  16821. _ACEOF
  16822. if ac_fn_c_try_compile "$LINENO"; then :
  16823. have_const_param_XextAddDisplay=yes
  16824. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  16825. fi
  16826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  16828. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  16829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  16830. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  16831. have_const_param_xdata32=no
  16832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16833. /* end confdefs.h. */
  16834. #include <X11/Xlibint.h>
  16835. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  16836. int
  16837. main ()
  16838. {
  16839. ;
  16840. return 0;
  16841. }
  16842. _ACEOF
  16843. if ac_fn_c_try_compile "$LINENO"; then :
  16844. have_const_param_xdata32=yes
  16845. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  16846. fi
  16847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  16849. $as_echo "$have_const_param_xdata32" >&6; }
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  16851. $as_echo_n "checking for XGenericEvent... " >&6; }
  16852. have_XGenericEvent=no
  16853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16854. /* end confdefs.h. */
  16855. #include <X11/Xlib.h>
  16856. int
  16857. main ()
  16858. {
  16859. Display *display;
  16860. XEvent event;
  16861. XGenericEventCookie *cookie = &event.xcookie;
  16862. XNextEvent(display, &event);
  16863. XGetEventData(display, cookie);
  16864. XFreeEventData(display, cookie);
  16865. ;
  16866. return 0;
  16867. }
  16868. _ACEOF
  16869. if ac_fn_c_try_compile "$LINENO"; then :
  16870. have_XGenericEvent=yes
  16871. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  16872. fi
  16873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  16875. $as_echo "$have_XGenericEvent" >&6; }
  16876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  16877. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  16878. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  16879. $as_echo_n "(cached) " >&6
  16880. else
  16881. ac_check_lib_save_LIBS=$LIBS
  16882. LIBS="-lX11 $LIBS"
  16883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16884. /* end confdefs.h. */
  16885. /* Override any GCC internal prototype to avoid an error.
  16886. Use char because int might match the return type of a GCC
  16887. builtin and then its argument prototype would still apply. */
  16888. #ifdef __cplusplus
  16889. extern "C"
  16890. #endif
  16891. char XkbKeycodeToKeysym ();
  16892. int
  16893. main ()
  16894. {
  16895. return XkbKeycodeToKeysym ();
  16896. ;
  16897. return 0;
  16898. }
  16899. _ACEOF
  16900. if ac_fn_c_try_link "$LINENO"; then :
  16901. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  16902. else
  16903. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  16904. fi
  16905. rm -f core conftest.err conftest.$ac_objext \
  16906. conftest$ac_exeext conftest.$ac_ext
  16907. LIBS=$ac_check_lib_save_LIBS
  16908. fi
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  16910. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  16911. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  16912. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  16913. fi
  16914. # Check whether --enable-video-x11-xcursor was given.
  16915. if test "${enable_video_x11_xcursor+set}" = set; then :
  16916. enableval=$enable_video_x11_xcursor;
  16917. else
  16918. enable_video_x11_xcursor=yes
  16919. fi
  16920. if test x$enable_video_x11_xcursor = xyes; then
  16921. definitely_enable_video_x11_xcursor=no
  16922. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  16923. "
  16924. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  16925. have_xcursor_h_hdr=yes
  16926. else
  16927. have_xcursor_h_hdr=no
  16928. fi
  16929. if test x$have_xcursor_h_hdr = xyes; then
  16930. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  16931. echo "-- dynamic libXcursor -> $xcursor_lib"
  16932. cat >>confdefs.h <<_ACEOF
  16933. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  16934. _ACEOF
  16935. definitely_enable_video_x11_xcursor=yes
  16936. else
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  16938. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  16939. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  16940. $as_echo_n "(cached) " >&6
  16941. else
  16942. ac_check_lib_save_LIBS=$LIBS
  16943. LIBS="-lXcursor $LIBS"
  16944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16945. /* end confdefs.h. */
  16946. /* Override any GCC internal prototype to avoid an error.
  16947. Use char because int might match the return type of a GCC
  16948. builtin and then its argument prototype would still apply. */
  16949. #ifdef __cplusplus
  16950. extern "C"
  16951. #endif
  16952. char XcursorImageCreate ();
  16953. int
  16954. main ()
  16955. {
  16956. return XcursorImageCreate ();
  16957. ;
  16958. return 0;
  16959. }
  16960. _ACEOF
  16961. if ac_fn_c_try_link "$LINENO"; then :
  16962. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  16963. else
  16964. ac_cv_lib_Xcursor_XcursorImageCreate=no
  16965. fi
  16966. rm -f core conftest.err conftest.$ac_objext \
  16967. conftest$ac_exeext conftest.$ac_ext
  16968. LIBS=$ac_check_lib_save_LIBS
  16969. fi
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  16971. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  16972. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  16973. have_xcursor_lib=yes
  16974. fi
  16975. if test x$have_xcursor_lib = xyes ; then
  16976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  16977. definitely_enable_video_x11_xcursor=yes
  16978. fi
  16979. fi
  16980. fi
  16981. fi
  16982. if test x$definitely_enable_video_x11_xcursor = xyes; then
  16983. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  16984. fi
  16985. # Check whether --enable-video-x11-xinerama was given.
  16986. if test "${enable_video_x11_xinerama+set}" = set; then :
  16987. enableval=$enable_video_x11_xinerama;
  16988. else
  16989. enable_video_x11_xinerama=yes
  16990. fi
  16991. if test x$enable_video_x11_xinerama = xyes; then
  16992. definitely_enable_video_x11_xinerama=no
  16993. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  16994. "
  16995. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  16996. have_xinerama_h_hdr=yes
  16997. else
  16998. have_xinerama_h_hdr=no
  16999. fi
  17000. if test x$have_xinerama_h_hdr = xyes; then
  17001. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17002. echo "-- dynamic libXinerama -> $xinerama_lib"
  17003. cat >>confdefs.h <<_ACEOF
  17004. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17005. _ACEOF
  17006. definitely_enable_video_x11_xinerama=yes
  17007. else
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17009. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17010. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17011. $as_echo_n "(cached) " >&6
  17012. else
  17013. ac_check_lib_save_LIBS=$LIBS
  17014. LIBS="-lXinerama $LIBS"
  17015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17016. /* end confdefs.h. */
  17017. /* Override any GCC internal prototype to avoid an error.
  17018. Use char because int might match the return type of a GCC
  17019. builtin and then its argument prototype would still apply. */
  17020. #ifdef __cplusplus
  17021. extern "C"
  17022. #endif
  17023. char XineramaQueryExtension ();
  17024. int
  17025. main ()
  17026. {
  17027. return XineramaQueryExtension ();
  17028. ;
  17029. return 0;
  17030. }
  17031. _ACEOF
  17032. if ac_fn_c_try_link "$LINENO"; then :
  17033. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17034. else
  17035. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17036. fi
  17037. rm -f core conftest.err conftest.$ac_objext \
  17038. conftest$ac_exeext conftest.$ac_ext
  17039. LIBS=$ac_check_lib_save_LIBS
  17040. fi
  17041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17042. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17043. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17044. have_xinerama_lib=yes
  17045. fi
  17046. if test x$have_xinerama_lib = xyes ; then
  17047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17048. definitely_enable_video_x11_xinerama=yes
  17049. fi
  17050. fi
  17051. fi
  17052. fi
  17053. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17054. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17055. fi
  17056. # Check whether --enable-video-x11-xinput was given.
  17057. if test "${enable_video_x11_xinput+set}" = set; then :
  17058. enableval=$enable_video_x11_xinput;
  17059. else
  17060. enable_video_x11_xinput=yes
  17061. fi
  17062. if test x$enable_video_x11_xinput = xyes; then
  17063. definitely_enable_video_x11_xinput=no
  17064. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17065. "
  17066. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17067. have_xinput_h_hdr=yes
  17068. else
  17069. have_xinput_h_hdr=no
  17070. fi
  17071. if test x$have_xinput_h_hdr = xyes; then
  17072. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17073. echo "-- dynamic libXi -> $xinput_lib"
  17074. cat >>confdefs.h <<_ACEOF
  17075. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17076. _ACEOF
  17077. definitely_enable_video_x11_xinput=yes
  17078. else
  17079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17080. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17081. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17082. $as_echo_n "(cached) " >&6
  17083. else
  17084. ac_check_lib_save_LIBS=$LIBS
  17085. LIBS="-lXi $LIBS"
  17086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17087. /* end confdefs.h. */
  17088. /* Override any GCC internal prototype to avoid an error.
  17089. Use char because int might match the return type of a GCC
  17090. builtin and then its argument prototype would still apply. */
  17091. #ifdef __cplusplus
  17092. extern "C"
  17093. #endif
  17094. char XOpenDevice ();
  17095. int
  17096. main ()
  17097. {
  17098. return XOpenDevice ();
  17099. ;
  17100. return 0;
  17101. }
  17102. _ACEOF
  17103. if ac_fn_c_try_link "$LINENO"; then :
  17104. ac_cv_lib_Xi_XOpenDevice=yes
  17105. else
  17106. ac_cv_lib_Xi_XOpenDevice=no
  17107. fi
  17108. rm -f core conftest.err conftest.$ac_objext \
  17109. conftest$ac_exeext conftest.$ac_ext
  17110. LIBS=$ac_check_lib_save_LIBS
  17111. fi
  17112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17113. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17114. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17115. have_xinput_lib=yes
  17116. fi
  17117. if test x$have_xinput_lib = xyes ; then
  17118. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17119. definitely_enable_video_x11_xinput=yes
  17120. fi
  17121. fi
  17122. fi
  17123. fi
  17124. if test x$definitely_enable_video_x11_xinput = xyes; then
  17125. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17127. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17128. have_xinput2_multitouch=no
  17129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17130. /* end confdefs.h. */
  17131. #include <X11/Xlib.h>
  17132. #include <X11/Xproto.h>
  17133. #include <X11/extensions/XInput2.h>
  17134. int
  17135. main ()
  17136. {
  17137. int event_type = XI_TouchBegin;
  17138. XITouchClassInfo *t;
  17139. Status
  17140. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17141. {
  17142. return (Status)0;
  17143. }
  17144. ;
  17145. return 0;
  17146. }
  17147. _ACEOF
  17148. if ac_fn_c_try_compile "$LINENO"; then :
  17149. have_xinput2_multitouch=yes
  17150. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17151. fi
  17152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17154. $as_echo "$have_xinput2_multitouch" >&6; }
  17155. fi
  17156. # Check whether --enable-video-x11-xrandr was given.
  17157. if test "${enable_video_x11_xrandr+set}" = set; then :
  17158. enableval=$enable_video_x11_xrandr;
  17159. else
  17160. enable_video_x11_xrandr=yes
  17161. fi
  17162. if test x$enable_video_x11_xrandr = xyes; then
  17163. definitely_enable_video_x11_xrandr=no
  17164. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
  17165. "
  17166. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  17167. have_xrandr_h_hdr=yes
  17168. else
  17169. have_xrandr_h_hdr=no
  17170. fi
  17171. if test x$have_xrandr_h_hdr = xyes; then
  17172. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17173. echo "-- dynamic libXrandr -> $xrandr_lib"
  17174. cat >>confdefs.h <<_ACEOF
  17175. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17176. _ACEOF
  17177. definitely_enable_video_x11_xrandr=yes
  17178. else
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17180. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17181. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17182. $as_echo_n "(cached) " >&6
  17183. else
  17184. ac_check_lib_save_LIBS=$LIBS
  17185. LIBS="-lXrandr $LIBS"
  17186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17187. /* end confdefs.h. */
  17188. /* Override any GCC internal prototype to avoid an error.
  17189. Use char because int might match the return type of a GCC
  17190. builtin and then its argument prototype would still apply. */
  17191. #ifdef __cplusplus
  17192. extern "C"
  17193. #endif
  17194. char XRRQueryExtension ();
  17195. int
  17196. main ()
  17197. {
  17198. return XRRQueryExtension ();
  17199. ;
  17200. return 0;
  17201. }
  17202. _ACEOF
  17203. if ac_fn_c_try_link "$LINENO"; then :
  17204. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17205. else
  17206. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17207. fi
  17208. rm -f core conftest.err conftest.$ac_objext \
  17209. conftest$ac_exeext conftest.$ac_ext
  17210. LIBS=$ac_check_lib_save_LIBS
  17211. fi
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17213. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17214. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17215. have_xrandr_lib=yes
  17216. fi
  17217. if test x$have_xrandr_lib = xyes ; then
  17218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17219. definitely_enable_video_x11_xrandr=yes
  17220. fi
  17221. fi
  17222. fi
  17223. fi
  17224. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17225. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17226. fi
  17227. # Check whether --enable-video-x11-scrnsaver was given.
  17228. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17229. enableval=$enable_video_x11_scrnsaver;
  17230. else
  17231. enable_video_x11_scrnsaver=yes
  17232. fi
  17233. if test x$enable_video_x11_scrnsaver = xyes; then
  17234. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17235. "
  17236. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17237. have_scrnsaver_h_hdr=yes
  17238. else
  17239. have_scrnsaver_h_hdr=no
  17240. fi
  17241. if test x$have_scrnsaver_h_hdr = xyes; then
  17242. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17243. echo "-- dynamic libXss -> $xss_lib"
  17244. cat >>confdefs.h <<_ACEOF
  17245. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17246. _ACEOF
  17247. definitely_enable_video_x11_scrnsaver=yes
  17248. else
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17250. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17251. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17252. $as_echo_n "(cached) " >&6
  17253. else
  17254. ac_check_lib_save_LIBS=$LIBS
  17255. LIBS="-lXss $LIBS"
  17256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17257. /* end confdefs.h. */
  17258. /* Override any GCC internal prototype to avoid an error.
  17259. Use char because int might match the return type of a GCC
  17260. builtin and then its argument prototype would still apply. */
  17261. #ifdef __cplusplus
  17262. extern "C"
  17263. #endif
  17264. char XScreenSaverSuspend ();
  17265. int
  17266. main ()
  17267. {
  17268. return XScreenSaverSuspend ();
  17269. ;
  17270. return 0;
  17271. }
  17272. _ACEOF
  17273. if ac_fn_c_try_link "$LINENO"; then :
  17274. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17275. else
  17276. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17277. fi
  17278. rm -f core conftest.err conftest.$ac_objext \
  17279. conftest$ac_exeext conftest.$ac_ext
  17280. LIBS=$ac_check_lib_save_LIBS
  17281. fi
  17282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17283. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17284. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17285. have_xss_lib=yes
  17286. fi
  17287. if test x$have_xss_lib = xyes ; then
  17288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17289. definitely_enable_video_x11_scrnsaver=yes
  17290. fi
  17291. fi
  17292. fi
  17293. fi
  17294. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17295. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17296. fi
  17297. # Check whether --enable-video-x11-xshape was given.
  17298. if test "${enable_video_x11_xshape+set}" = set; then :
  17299. enableval=$enable_video_x11_xshape;
  17300. else
  17301. enable_video_x11_xshape=yes
  17302. fi
  17303. if test x$enable_video_x11_xshape = xyes; then
  17304. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17305. "
  17306. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17307. have_shape_h_hdr=yes
  17308. else
  17309. have_shape_h_hdr=no
  17310. fi
  17311. if test x$have_shape_h_hdr = xyes; then
  17312. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17313. fi
  17314. fi
  17315. # Check whether --enable-video-x11-vm was given.
  17316. if test "${enable_video_x11_vm+set}" = set; then :
  17317. enableval=$enable_video_x11_vm;
  17318. else
  17319. enable_video_x11_vm=yes
  17320. fi
  17321. if test x$enable_video_x11_vm = xyes; then
  17322. definitely_enable_video_x11_vm=no
  17323. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17324. "
  17325. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17326. have_vm_h_hdr=yes
  17327. else
  17328. have_vm_h_hdr=no
  17329. fi
  17330. if test x$have_vm_h_hdr = xyes; then
  17331. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17332. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17333. cat >>confdefs.h <<_ACEOF
  17334. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17335. _ACEOF
  17336. definitely_enable_video_x11_vm=yes
  17337. else
  17338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17339. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17340. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17341. $as_echo_n "(cached) " >&6
  17342. else
  17343. ac_check_lib_save_LIBS=$LIBS
  17344. LIBS="-lXxf86vm $LIBS"
  17345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17346. /* end confdefs.h. */
  17347. /* Override any GCC internal prototype to avoid an error.
  17348. Use char because int might match the return type of a GCC
  17349. builtin and then its argument prototype would still apply. */
  17350. #ifdef __cplusplus
  17351. extern "C"
  17352. #endif
  17353. char XF86VidModeQueryVersion ();
  17354. int
  17355. main ()
  17356. {
  17357. return XF86VidModeQueryVersion ();
  17358. ;
  17359. return 0;
  17360. }
  17361. _ACEOF
  17362. if ac_fn_c_try_link "$LINENO"; then :
  17363. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17364. else
  17365. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17366. fi
  17367. rm -f core conftest.err conftest.$ac_objext \
  17368. conftest$ac_exeext conftest.$ac_ext
  17369. LIBS=$ac_check_lib_save_LIBS
  17370. fi
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17372. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17373. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17374. have_vm_lib=yes
  17375. fi
  17376. if test x$have_vm_lib = xyes ; then
  17377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17378. definitely_enable_video_x11_vm=yes
  17379. fi
  17380. fi
  17381. fi
  17382. fi
  17383. if test x$definitely_enable_video_x11_vm = xyes; then
  17384. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17385. fi
  17386. fi
  17387. fi
  17388. }
  17389. CheckHaikuVideo()
  17390. {
  17391. if test x$enable_video = xyes; then
  17392. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17393. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17394. have_video=yes
  17395. fi
  17396. }
  17397. CheckCOCOA()
  17398. {
  17399. # Check whether --enable-video-cocoa was given.
  17400. if test "${enable_video_cocoa+set}" = set; then :
  17401. enableval=$enable_video_cocoa;
  17402. else
  17403. enable_video_cocoa=yes
  17404. fi
  17405. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17406. save_CFLAGS="$CFLAGS"
  17407. CFLAGS="$CFLAGS -x objective-c"
  17408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17409. $as_echo_n "checking for Cocoa framework... " >&6; }
  17410. have_cocoa=no
  17411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17412. /* end confdefs.h. */
  17413. #import <Cocoa/Cocoa.h>
  17414. int
  17415. main ()
  17416. {
  17417. ;
  17418. return 0;
  17419. }
  17420. _ACEOF
  17421. if ac_fn_c_try_compile "$LINENO"; then :
  17422. have_cocoa=yes
  17423. fi
  17424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17426. $as_echo "$have_cocoa" >&6; }
  17427. CFLAGS="$save_CFLAGS"
  17428. if test x$have_cocoa = xyes; then
  17429. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17430. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17431. have_video=yes
  17432. fi
  17433. fi
  17434. }
  17435. CheckDirectFB()
  17436. {
  17437. # Check whether --enable-video-directfb was given.
  17438. if test "${enable_video_directfb+set}" = set; then :
  17439. enableval=$enable_video_directfb;
  17440. else
  17441. enable_video_directfb=no
  17442. fi
  17443. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17444. video_directfb=no
  17445. DIRECTFB_REQUIRED_VERSION=1.0.0
  17446. for ac_prog in directfb-config
  17447. do
  17448. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17449. set dummy $ac_prog; ac_word=$2
  17450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17451. $as_echo_n "checking for $ac_word... " >&6; }
  17452. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17453. $as_echo_n "(cached) " >&6
  17454. else
  17455. case $DIRECTFBCONFIG in
  17456. [\\/]* | ?:[\\/]*)
  17457. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17458. ;;
  17459. *)
  17460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17461. as_dummy="$prefix/bin:$PATH"
  17462. for as_dir in $as_dummy
  17463. do
  17464. IFS=$as_save_IFS
  17465. test -z "$as_dir" && as_dir=.
  17466. for ac_exec_ext in '' $ac_executable_extensions; do
  17467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17468. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17470. break 2
  17471. fi
  17472. done
  17473. done
  17474. IFS=$as_save_IFS
  17475. ;;
  17476. esac
  17477. fi
  17478. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17479. if test -n "$DIRECTFBCONFIG"; then
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17481. $as_echo "$DIRECTFBCONFIG" >&6; }
  17482. else
  17483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17484. $as_echo "no" >&6; }
  17485. fi
  17486. test -n "$DIRECTFBCONFIG" && break
  17487. done
  17488. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17489. if test x$DIRECTFBCONFIG = xno; then
  17490. # Extract the first word of "pkg-config", so it can be a program name with args.
  17491. set dummy pkg-config; ac_word=$2
  17492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17493. $as_echo_n "checking for $ac_word... " >&6; }
  17494. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17495. $as_echo_n "(cached) " >&6
  17496. else
  17497. case $PKG_CONFIG in
  17498. [\\/]* | ?:[\\/]*)
  17499. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17500. ;;
  17501. *)
  17502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17503. for as_dir in $PATH
  17504. do
  17505. IFS=$as_save_IFS
  17506. test -z "$as_dir" && as_dir=.
  17507. for ac_exec_ext in '' $ac_executable_extensions; do
  17508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17509. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17511. break 2
  17512. fi
  17513. done
  17514. done
  17515. IFS=$as_save_IFS
  17516. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17517. ;;
  17518. esac
  17519. fi
  17520. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17521. if test -n "$PKG_CONFIG"; then
  17522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17523. $as_echo "$PKG_CONFIG" >&6; }
  17524. else
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17526. $as_echo "no" >&6; }
  17527. fi
  17528. if test x$PKG_CONFIG != xno; then
  17529. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17530. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17531. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17532. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17533. video_directfb=yes
  17534. fi
  17535. fi
  17536. else
  17537. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17538. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17539. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17540. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17541. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17542. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17543. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17544. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17545. video_directfb=yes
  17546. fi
  17547. fi
  17548. if test x$video_directfb = xyes; then
  17549. # SuSE 11.1 installs directfb-config without directfb-devel
  17550. save_CPPFLAGS="$CPPFLAGS"
  17551. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17552. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17553. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17554. have_directfb_hdr=yes
  17555. else
  17556. have_directfb_hdr=no
  17557. fi
  17558. CPPFLAGS="$save_CPPFLAGS"
  17559. video_directfb=$have_directfb_hdr
  17560. fi
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17562. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17564. $as_echo "$video_directfb" >&6; }
  17565. if test x$video_directfb = xyes; then
  17566. # Check whether --enable-directfb-shared was given.
  17567. if test "${enable_directfb_shared+set}" = set; then :
  17568. enableval=$enable_directfb_shared;
  17569. else
  17570. enable_directfb_shared=yes
  17571. fi
  17572. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17573. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17574. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17575. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17577. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17578. directfb_shared=no
  17579. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17580. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17582. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17583. if test x$have_loadso != xyes && \
  17584. test x$enable_directfb_shared = xyes; then
  17585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17586. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17587. fi
  17588. if test x$have_loadso = xyes && \
  17589. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17590. directfb_shared=yes
  17591. echo "-- $directfb_lib_spec -> $directfb_lib"
  17592. cat >>confdefs.h <<_ACEOF
  17593. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17594. _ACEOF
  17595. else
  17596. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17597. fi
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17599. $as_echo "$directfb_shared" >&6; }
  17600. have_video=yes
  17601. fi
  17602. fi
  17603. }
  17604. CheckFusionSound()
  17605. {
  17606. # Check whether --enable-fusionsound was given.
  17607. if test "${enable_fusionsound+set}" = set; then :
  17608. enableval=$enable_fusionsound;
  17609. else
  17610. enable_fusionsound=no
  17611. fi
  17612. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17613. fusionsound=no
  17614. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17615. # Extract the first word of "pkg-config", so it can be a program name with args.
  17616. set dummy pkg-config; ac_word=$2
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17618. $as_echo_n "checking for $ac_word... " >&6; }
  17619. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17620. $as_echo_n "(cached) " >&6
  17621. else
  17622. case $PKG_CONFIG in
  17623. [\\/]* | ?:[\\/]*)
  17624. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17625. ;;
  17626. *)
  17627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17628. for as_dir in $PATH
  17629. do
  17630. IFS=$as_save_IFS
  17631. test -z "$as_dir" && as_dir=.
  17632. for ac_exec_ext in '' $ac_executable_extensions; do
  17633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17634. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17636. break 2
  17637. fi
  17638. done
  17639. done
  17640. IFS=$as_save_IFS
  17641. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17642. ;;
  17643. esac
  17644. fi
  17645. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17646. if test -n "$PKG_CONFIG"; then
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17648. $as_echo "$PKG_CONFIG" >&6; }
  17649. else
  17650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17651. $as_echo "no" >&6; }
  17652. fi
  17653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17654. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17655. if test x$PKG_CONFIG != xno; then
  17656. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17657. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17658. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17659. fusionsound=yes
  17660. fi
  17661. fi
  17662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17663. $as_echo "$fusionsound" >&6; }
  17664. if test x$fusionsound = xyes; then
  17665. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17666. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17667. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17668. # Check whether --enable-fusionsound-shared was given.
  17669. if test "${enable_fusionsound_shared+set}" = set; then :
  17670. enableval=$enable_fusionsound_shared;
  17671. else
  17672. enable_fusionsound_shared=yes
  17673. fi
  17674. fusionsound_shared=no
  17675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17676. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17677. if test x$have_loadso != xyes && \
  17678. test x$enable_fusionsound_shared = xyes; then
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17680. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17681. fi
  17682. if test x$have_loadso = xyes && \
  17683. test x$enable_fusionsound_shared = xyes; then
  17684. cat >>confdefs.h <<_ACEOF
  17685. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17686. _ACEOF
  17687. fusionsound_shared=yes
  17688. else
  17689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17690. fi
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17692. $as_echo "$fusionsound_shared" >&6; }
  17693. have_audio=yes
  17694. fi
  17695. fi
  17696. }
  17697. CheckDummyVideo()
  17698. {
  17699. # Check whether --enable-video-dummy was given.
  17700. if test "${enable_video_dummy+set}" = set; then :
  17701. enableval=$enable_video_dummy;
  17702. else
  17703. enable_video_dummy=yes
  17704. fi
  17705. if test x$enable_video_dummy = xyes; then
  17706. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17707. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17708. have_video=yes
  17709. fi
  17710. }
  17711. # Check whether --enable-video-opengl was given.
  17712. if test "${enable_video_opengl+set}" = set; then :
  17713. enableval=$enable_video_opengl;
  17714. else
  17715. enable_video_opengl=yes
  17716. fi
  17717. CheckOpenGLX11()
  17718. {
  17719. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17721. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17722. video_opengl=no
  17723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17724. /* end confdefs.h. */
  17725. #include <GL/gl.h>
  17726. #include <GL/glx.h>
  17727. int
  17728. main ()
  17729. {
  17730. ;
  17731. return 0;
  17732. }
  17733. _ACEOF
  17734. if ac_fn_c_try_compile "$LINENO"; then :
  17735. video_opengl=yes
  17736. fi
  17737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17739. $as_echo "$video_opengl" >&6; }
  17740. if test x$video_opengl = xyes; then
  17741. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17742. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17743. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17744. fi
  17745. fi
  17746. }
  17747. # Check whether --enable-video-opengles was given.
  17748. if test "${enable_video_opengles+set}" = set; then :
  17749. enableval=$enable_video_opengles;
  17750. else
  17751. enable_video_opengles=yes
  17752. fi
  17753. CheckOpenGLESX11()
  17754. {
  17755. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17757. $as_echo_n "checking for EGL support... " >&6; }
  17758. video_opengl_egl=no
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. #include <EGL/egl.h>
  17762. int
  17763. main ()
  17764. {
  17765. ;
  17766. return 0;
  17767. }
  17768. _ACEOF
  17769. if ac_fn_c_try_compile "$LINENO"; then :
  17770. video_opengl_egl=yes
  17771. fi
  17772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17774. $as_echo "$video_opengl_egl" >&6; }
  17775. if test x$video_opengl_egl = xyes; then
  17776. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17777. fi
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17779. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17780. video_opengles_v1=no
  17781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17782. /* end confdefs.h. */
  17783. #include <GLES/gl.h>
  17784. #include <GLES/glext.h>
  17785. int
  17786. main ()
  17787. {
  17788. ;
  17789. return 0;
  17790. }
  17791. _ACEOF
  17792. if ac_fn_c_try_compile "$LINENO"; then :
  17793. video_opengles_v1=yes
  17794. fi
  17795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  17797. $as_echo "$video_opengles_v1" >&6; }
  17798. if test x$video_opengles_v1 = xyes; then
  17799. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  17800. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  17801. fi
  17802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17803. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17804. video_opengles_v2=no
  17805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17806. /* end confdefs.h. */
  17807. #include <GLES2/gl2.h>
  17808. #include <GLES2/gl2ext.h>
  17809. int
  17810. main ()
  17811. {
  17812. ;
  17813. return 0;
  17814. }
  17815. _ACEOF
  17816. if ac_fn_c_try_compile "$LINENO"; then :
  17817. video_opengles_v2=yes
  17818. fi
  17819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17821. $as_echo "$video_opengles_v2" >&6; }
  17822. if test x$video_opengles_v2 = xyes; then
  17823. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17824. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17825. fi
  17826. fi
  17827. }
  17828. CheckWINDOWSGL()
  17829. {
  17830. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17831. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17832. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  17833. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17834. fi
  17835. }
  17836. CheckWINDOWSGLES()
  17837. {
  17838. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17840. $as_echo_n "checking for EGL support... " >&6; }
  17841. video_opengl_egl=no
  17842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17843. /* end confdefs.h. */
  17844. #include <EGL/egl.h>
  17845. int
  17846. main ()
  17847. {
  17848. ;
  17849. return 0;
  17850. }
  17851. _ACEOF
  17852. if ac_fn_c_try_compile "$LINENO"; then :
  17853. video_opengl_egl=yes
  17854. fi
  17855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17857. $as_echo "$video_opengl_egl" >&6; }
  17858. if test x$video_opengl_egl = xyes; then
  17859. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17860. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17861. fi
  17862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17863. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17864. video_opengles_v2=no
  17865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17866. /* end confdefs.h. */
  17867. #include <GLES2/gl2.h>
  17868. #include <GLES2/gl2ext.h>
  17869. int
  17870. main ()
  17871. {
  17872. ;
  17873. return 0;
  17874. }
  17875. _ACEOF
  17876. if ac_fn_c_try_compile "$LINENO"; then :
  17877. video_opengles_v2=yes
  17878. fi
  17879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17881. $as_echo "$video_opengles_v2" >&6; }
  17882. if test x$video_opengles_v2 = xyes; then
  17883. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17884. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17885. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17886. fi
  17887. fi
  17888. }
  17889. CheckHaikuGL()
  17890. {
  17891. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17892. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17893. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  17894. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  17896. fi
  17897. }
  17898. CheckMacGL()
  17899. {
  17900. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17901. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17902. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  17903. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17904. case "$host" in
  17905. *-*-darwin*)
  17906. if test x$enable_video_cocoa = xyes; then
  17907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  17908. fi
  17909. esac
  17910. fi
  17911. }
  17912. CheckInputEvents()
  17913. {
  17914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  17915. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  17916. use_input_events=no
  17917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17918. /* end confdefs.h. */
  17919. #include <linux/input.h>
  17920. int
  17921. main ()
  17922. {
  17923. #ifndef EVIOCGNAME
  17924. #error EVIOCGNAME() ioctl not available
  17925. #endif
  17926. ;
  17927. return 0;
  17928. }
  17929. _ACEOF
  17930. if ac_fn_c_try_compile "$LINENO"; then :
  17931. use_input_events=yes
  17932. fi
  17933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  17935. $as_echo "$use_input_events" >&6; }
  17936. if test x$use_input_events = xyes; then
  17937. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  17938. fi
  17939. }
  17940. CheckInputKD()
  17941. {
  17942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  17943. $as_echo_n "checking for Linux kd.h... " >&6; }
  17944. use_input_kd=no
  17945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17946. /* end confdefs.h. */
  17947. #include <linux/kd.h>
  17948. #include <linux/keyboard.h>
  17949. int
  17950. main ()
  17951. {
  17952. struct kbentry kbe;
  17953. kbe.kb_table = KG_CTRL;
  17954. ioctl(0, KDGKBENT, &kbe);
  17955. ;
  17956. return 0;
  17957. }
  17958. _ACEOF
  17959. if ac_fn_c_try_compile "$LINENO"; then :
  17960. use_input_kd=yes
  17961. fi
  17962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  17964. $as_echo "$use_input_kd" >&6; }
  17965. if test x$use_input_kd = xyes; then
  17966. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  17967. fi
  17968. }
  17969. CheckLibUDev()
  17970. {
  17971. # Check whether --enable-libudev was given.
  17972. if test "${enable_libudev+set}" = set; then :
  17973. enableval=$enable_libudev;
  17974. else
  17975. enable_libudev=yes
  17976. fi
  17977. if test x$enable_libudev = xyes; then
  17978. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  17979. if test "x$ac_cv_header_libudev_h" = xyes; then :
  17980. have_libudev_h_hdr=yes
  17981. else
  17982. have_libudev_h_hdr=no
  17983. fi
  17984. if test x$have_libudev_h_hdr = xyes; then
  17985. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  17986. fi
  17987. fi
  17988. }
  17989. CheckDBus()
  17990. {
  17991. # Check whether --enable-dbus was given.
  17992. if test "${enable_dbus+set}" = set; then :
  17993. enableval=$enable_dbus;
  17994. else
  17995. enable_dbus=yes
  17996. fi
  17997. if test x$enable_dbus = xyes; then
  17998. # Extract the first word of "pkg-config", so it can be a program name with args.
  17999. set dummy pkg-config; ac_word=$2
  18000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18001. $as_echo_n "checking for $ac_word... " >&6; }
  18002. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18003. $as_echo_n "(cached) " >&6
  18004. else
  18005. case $PKG_CONFIG in
  18006. [\\/]* | ?:[\\/]*)
  18007. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18008. ;;
  18009. *)
  18010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18011. for as_dir in $PATH
  18012. do
  18013. IFS=$as_save_IFS
  18014. test -z "$as_dir" && as_dir=.
  18015. for ac_exec_ext in '' $ac_executable_extensions; do
  18016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18017. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18019. break 2
  18020. fi
  18021. done
  18022. done
  18023. IFS=$as_save_IFS
  18024. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18025. ;;
  18026. esac
  18027. fi
  18028. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18029. if test -n "$PKG_CONFIG"; then
  18030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18031. $as_echo "$PKG_CONFIG" >&6; }
  18032. else
  18033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18034. $as_echo "no" >&6; }
  18035. fi
  18036. if test x$PKG_CONFIG != xno; then
  18037. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18038. save_CFLAGS="$CFLAGS"
  18039. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18040. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18041. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18042. have_dbus_dbus_h_hdr=yes
  18043. else
  18044. have_dbus_dbus_h_hdr=no
  18045. fi
  18046. CFLAGS="$save_CFLAGS"
  18047. if test x$have_dbus_dbus_h_hdr = xyes; then
  18048. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18049. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18050. fi
  18051. fi
  18052. fi
  18053. }
  18054. CheckTslib()
  18055. {
  18056. # Check whether --enable-input-tslib was given.
  18057. if test "${enable_input_tslib+set}" = set; then :
  18058. enableval=$enable_input_tslib;
  18059. else
  18060. enable_input_tslib=yes
  18061. fi
  18062. if test x$enable_input_tslib = xyes; then
  18063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18064. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18065. enable_input_tslib=no
  18066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18067. /* end confdefs.h. */
  18068. #include "tslib.h"
  18069. int
  18070. main ()
  18071. {
  18072. ;
  18073. return 0;
  18074. }
  18075. _ACEOF
  18076. if ac_fn_c_try_compile "$LINENO"; then :
  18077. enable_input_tslib=yes
  18078. fi
  18079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18081. $as_echo "$enable_input_tslib" >&6; }
  18082. if test x$enable_input_tslib = xyes; then
  18083. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18084. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18085. fi
  18086. fi
  18087. }
  18088. CheckPTHREAD()
  18089. {
  18090. # Check whether --enable-pthreads was given.
  18091. if test "${enable_pthreads+set}" = set; then :
  18092. enableval=$enable_pthreads;
  18093. else
  18094. enable_pthreads=yes
  18095. fi
  18096. # Check whether --enable-pthread-sem was given.
  18097. if test "${enable_pthread_sem+set}" = set; then :
  18098. enableval=$enable_pthread_sem;
  18099. else
  18100. enable_pthread_sem=yes
  18101. fi
  18102. case "$host" in
  18103. *-*-linux*|*-*-uclinux*)
  18104. pthread_cflags="-D_REENTRANT"
  18105. pthread_lib="-lpthread"
  18106. ;;
  18107. *-*-bsdi*)
  18108. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18109. pthread_lib=""
  18110. ;;
  18111. *-*-darwin*)
  18112. pthread_cflags="-D_THREAD_SAFE"
  18113. # causes Carbon.p complaints?
  18114. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18115. ;;
  18116. *-*-freebsd*|*-*-dragonfly*)
  18117. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18118. pthread_lib="-pthread"
  18119. ;;
  18120. *-*-netbsd*)
  18121. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18122. pthread_lib="-lpthread"
  18123. ;;
  18124. *-*-openbsd*)
  18125. pthread_cflags="-D_REENTRANT"
  18126. pthread_lib="-pthread"
  18127. ;;
  18128. *-*-solaris2.9)
  18129. # From Solaris 9+, posix4's preferred name is rt.
  18130. pthread_cflags="-D_REENTRANT"
  18131. pthread_lib="-lpthread -lrt"
  18132. ;;
  18133. *-*-solaris2.10)
  18134. # Solaris 10+ merged pthread into libc.
  18135. pthread_cflags="-D_REENTRANT"
  18136. pthread_lib="-lrt"
  18137. ;;
  18138. *-*-solaris*)
  18139. # Solaris 11+ merged rt into libc.
  18140. pthread_cflags="-D_REENTRANT"
  18141. pthread_lib=""
  18142. ;;
  18143. *-*-sysv5*)
  18144. pthread_cflags="-D_REENTRANT -Kthread"
  18145. pthread_lib=""
  18146. ;;
  18147. *-*-aix*)
  18148. pthread_cflags="-D_REENTRANT -mthreads"
  18149. pthread_lib="-lpthread"
  18150. ;;
  18151. *-*-hpux11*)
  18152. pthread_cflags="-D_REENTRANT"
  18153. pthread_lib="-L/usr/lib -lpthread"
  18154. ;;
  18155. *-*-haiku*)
  18156. pthread_cflags="-D_REENTRANT"
  18157. pthread_lib=""
  18158. ;;
  18159. *)
  18160. pthread_cflags="-D_REENTRANT"
  18161. pthread_lib="-lpthread"
  18162. ;;
  18163. esac
  18164. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18165. # Save the original compiler flags and libraries
  18166. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18167. # Add the pthread compiler flags and libraries
  18168. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18169. # Check to see if we have pthread support on this system
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18171. $as_echo_n "checking for pthreads... " >&6; }
  18172. use_pthreads=no
  18173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18174. /* end confdefs.h. */
  18175. #include <pthread.h>
  18176. int
  18177. main ()
  18178. {
  18179. pthread_attr_t type;
  18180. pthread_attr_init(&type);
  18181. ;
  18182. return 0;
  18183. }
  18184. _ACEOF
  18185. if ac_fn_c_try_link "$LINENO"; then :
  18186. use_pthreads=yes
  18187. fi
  18188. rm -f core conftest.err conftest.$ac_objext \
  18189. conftest$ac_exeext conftest.$ac_ext
  18190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18191. $as_echo "$use_pthreads" >&6; }
  18192. # Restore the compiler flags and libraries
  18193. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18194. # Do futher testing if we have pthread support...
  18195. if test x$use_pthreads = xyes; then
  18196. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18197. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18199. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18200. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18201. # Save the original compiler flags and libraries
  18202. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18203. # Add the pthread compiler flags and libraries
  18204. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18205. # Check to see if recursive mutexes are available
  18206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18207. $as_echo_n "checking for recursive mutexes... " >&6; }
  18208. has_recursive_mutexes=no
  18209. if test x$has_recursive_mutexes = xno; then
  18210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18211. /* end confdefs.h. */
  18212. #include <pthread.h>
  18213. int
  18214. main ()
  18215. {
  18216. pthread_mutexattr_t attr;
  18217. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18218. ;
  18219. return 0;
  18220. }
  18221. _ACEOF
  18222. if ac_fn_c_try_compile "$LINENO"; then :
  18223. has_recursive_mutexes=yes
  18224. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18225. fi
  18226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18227. fi
  18228. if test x$has_recursive_mutexes = xno; then
  18229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18230. /* end confdefs.h. */
  18231. #include <pthread.h>
  18232. int
  18233. main ()
  18234. {
  18235. pthread_mutexattr_t attr;
  18236. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_compile "$LINENO"; then :
  18242. has_recursive_mutexes=yes
  18243. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18244. fi
  18245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18246. fi
  18247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18248. $as_echo "$has_recursive_mutexes" >&6; }
  18249. # Check to see if pthread semaphore support is missing
  18250. if test x$enable_pthread_sem = xyes; then
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18252. $as_echo_n "checking for pthread semaphores... " >&6; }
  18253. have_pthread_sem=no
  18254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18255. /* end confdefs.h. */
  18256. #include <pthread.h>
  18257. #include <semaphore.h>
  18258. int
  18259. main ()
  18260. {
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. if ac_fn_c_try_compile "$LINENO"; then :
  18266. have_pthread_sem=yes
  18267. fi
  18268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18270. $as_echo "$have_pthread_sem" >&6; }
  18271. fi
  18272. if test x$have_pthread_sem = xyes; then
  18273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18274. $as_echo_n "checking for sem_timedwait... " >&6; }
  18275. have_sem_timedwait=no
  18276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18277. /* end confdefs.h. */
  18278. #include <pthread.h>
  18279. #include <semaphore.h>
  18280. int
  18281. main ()
  18282. {
  18283. sem_timedwait(NULL, NULL);
  18284. ;
  18285. return 0;
  18286. }
  18287. _ACEOF
  18288. if ac_fn_c_try_link "$LINENO"; then :
  18289. have_sem_timedwait=yes
  18290. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18291. fi
  18292. rm -f core conftest.err conftest.$ac_objext \
  18293. conftest$ac_exeext conftest.$ac_ext
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18295. $as_echo "$have_sem_timedwait" >&6; }
  18296. fi
  18297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18298. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18300. /* end confdefs.h. */
  18301. /* Override any GCC internal prototype to avoid an error.
  18302. Use char because int might match the return type of a GCC
  18303. builtin and then its argument prototype would still apply. */
  18304. #ifdef __cplusplus
  18305. extern "C"
  18306. #endif
  18307. char pthread_spin_trylock ();
  18308. int
  18309. main ()
  18310. {
  18311. return pthread_spin_trylock ();
  18312. ;
  18313. return 0;
  18314. }
  18315. _ACEOF
  18316. if ac_fn_c_try_link "$LINENO"; then :
  18317. has_pthread_spin_trylock=yes
  18318. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18319. else
  18320. has_pthread_spin_trylock=no
  18321. fi
  18322. rm -f core conftest.err conftest.$ac_objext \
  18323. conftest$ac_exeext conftest.$ac_ext
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18325. $as_echo "$has_pthread_spin_trylock" >&6; }
  18326. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18327. "
  18328. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18329. have_pthread_np_h=yes
  18330. else
  18331. have_pthread_np_h=no
  18332. fi
  18333. if test x$have_pthread_np_h = xyes; then
  18334. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18335. fi
  18336. # Check to see if pthread naming is available
  18337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18338. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18340. /* end confdefs.h. */
  18341. /* Override any GCC internal prototype to avoid an error.
  18342. Use char because int might match the return type of a GCC
  18343. builtin and then its argument prototype would still apply. */
  18344. #ifdef __cplusplus
  18345. extern "C"
  18346. #endif
  18347. char pthread_setname_np ();
  18348. int
  18349. main ()
  18350. {
  18351. return pthread_setname_np ();
  18352. ;
  18353. return 0;
  18354. }
  18355. _ACEOF
  18356. if ac_fn_c_try_link "$LINENO"; then :
  18357. has_pthread_setname_np=yes
  18358. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18359. else
  18360. has_pthread_setname_np=no
  18361. fi
  18362. rm -f core conftest.err conftest.$ac_objext \
  18363. conftest$ac_exeext conftest.$ac_ext
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18365. $as_echo "$has_pthread_setname_np" >&6; }
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18367. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18369. /* end confdefs.h. */
  18370. /* Override any GCC internal prototype to avoid an error.
  18371. Use char because int might match the return type of a GCC
  18372. builtin and then its argument prototype would still apply. */
  18373. #ifdef __cplusplus
  18374. extern "C"
  18375. #endif
  18376. char pthread_set_name_np ();
  18377. int
  18378. main ()
  18379. {
  18380. return pthread_set_name_np ();
  18381. ;
  18382. return 0;
  18383. }
  18384. _ACEOF
  18385. if ac_fn_c_try_link "$LINENO"; then :
  18386. has_pthread_set_name_np=yes
  18387. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18388. else
  18389. has_pthread_set_name_np=no
  18390. fi
  18391. rm -f core conftest.err conftest.$ac_objext \
  18392. conftest$ac_exeext conftest.$ac_ext
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18394. $as_echo "$has_pthread_set_name_np" >&6; }
  18395. # Restore the compiler flags and libraries
  18396. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18397. # Basic thread creation functions
  18398. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18399. # Semaphores
  18400. # We can fake these with mutexes and condition variables if necessary
  18401. if test x$have_pthread_sem = xyes; then
  18402. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18403. else
  18404. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18405. fi
  18406. # Mutexes
  18407. # We can fake these with semaphores if necessary
  18408. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18409. # Condition variables
  18410. # We can fake these with semaphores and mutexes if necessary
  18411. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18412. # Thread local storage
  18413. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18414. have_threads=yes
  18415. fi
  18416. fi
  18417. }
  18418. CheckWINDOWS()
  18419. {
  18420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18421. $as_echo_n "checking Windows compiler... " >&6; }
  18422. have_win32_gcc=no
  18423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18424. /* end confdefs.h. */
  18425. #include <windows.h>
  18426. int
  18427. main ()
  18428. {
  18429. ;
  18430. return 0;
  18431. }
  18432. _ACEOF
  18433. if ac_fn_c_try_compile "$LINENO"; then :
  18434. have_win32_gcc=yes
  18435. fi
  18436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18438. $as_echo "$have_win32_gcc" >&6; }
  18439. if test x$have_win32_gcc != xyes; then
  18440. as_fn_error $? "
  18441. *** Your compiler ($CC) does not produce Windows executables!
  18442. " "$LINENO" 5
  18443. fi
  18444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18445. $as_echo_n "checking Windows CE... " >&6; }
  18446. have_wince=no
  18447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18448. /* end confdefs.h. */
  18449. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18450. #error This is not Windows CE
  18451. #endif
  18452. int
  18453. main ()
  18454. {
  18455. ;
  18456. return 0;
  18457. }
  18458. _ACEOF
  18459. if ac_fn_c_try_compile "$LINENO"; then :
  18460. have_wince=yes
  18461. as_fn_error $? "
  18462. *** Sorry, Windows CE is no longer supported.
  18463. " "$LINENO" 5
  18464. fi
  18465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18467. $as_echo "$have_wince" >&6; }
  18468. # This fixes Windows stack alignment with newer GCC
  18469. CheckStackBoundary
  18470. }
  18471. CheckDIRECTX()
  18472. {
  18473. # Check whether --enable-directx was given.
  18474. if test "${enable_directx+set}" = set; then :
  18475. enableval=$enable_directx;
  18476. else
  18477. enable_directx=yes
  18478. fi
  18479. if test x$enable_directx = xyes; then
  18480. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18481. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18482. have_d3d=yes
  18483. fi
  18484. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18485. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18486. have_ddraw=yes
  18487. fi
  18488. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18489. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18490. have_dsound=yes
  18491. fi
  18492. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18493. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18494. have_dinput=yes
  18495. fi
  18496. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18497. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18498. have_xaudio2=yes
  18499. fi
  18500. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18501. # FIXME: ...so force it off for now.
  18502. case "$host" in
  18503. *-*-cygwin*)
  18504. have_dinput=false
  18505. ;;
  18506. esac
  18507. fi
  18508. }
  18509. CheckDLOPEN()
  18510. {
  18511. # Check whether --enable-sdl-dlopen was given.
  18512. if test "${enable_sdl_dlopen+set}" = set; then :
  18513. enableval=$enable_sdl_dlopen;
  18514. else
  18515. enable_sdl_dlopen=yes
  18516. fi
  18517. if test x$enable_sdl_dlopen = xyes; then
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18519. $as_echo_n "checking for dlopen... " >&6; }
  18520. have_dlopen=no
  18521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18522. /* end confdefs.h. */
  18523. #include <dlfcn.h>
  18524. int
  18525. main ()
  18526. {
  18527. void *handle = dlopen("", RTLD_NOW);
  18528. const char *loaderror = (char *) dlerror();
  18529. ;
  18530. return 0;
  18531. }
  18532. _ACEOF
  18533. if ac_fn_c_try_compile "$LINENO"; then :
  18534. have_dlopen=yes
  18535. fi
  18536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18538. $as_echo "$have_dlopen" >&6; }
  18539. if test x$have_dlopen = xyes; then
  18540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18541. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18542. if ${ac_cv_lib_c_dlopen+:} false; then :
  18543. $as_echo_n "(cached) " >&6
  18544. else
  18545. ac_check_lib_save_LIBS=$LIBS
  18546. LIBS="-lc $LIBS"
  18547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18548. /* end confdefs.h. */
  18549. /* Override any GCC internal prototype to avoid an error.
  18550. Use char because int might match the return type of a GCC
  18551. builtin and then its argument prototype would still apply. */
  18552. #ifdef __cplusplus
  18553. extern "C"
  18554. #endif
  18555. char dlopen ();
  18556. int
  18557. main ()
  18558. {
  18559. return dlopen ();
  18560. ;
  18561. return 0;
  18562. }
  18563. _ACEOF
  18564. if ac_fn_c_try_link "$LINENO"; then :
  18565. ac_cv_lib_c_dlopen=yes
  18566. else
  18567. ac_cv_lib_c_dlopen=no
  18568. fi
  18569. rm -f core conftest.err conftest.$ac_objext \
  18570. conftest$ac_exeext conftest.$ac_ext
  18571. LIBS=$ac_check_lib_save_LIBS
  18572. fi
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18574. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18575. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18576. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18577. else
  18578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18579. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18580. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18581. $as_echo_n "(cached) " >&6
  18582. else
  18583. ac_check_lib_save_LIBS=$LIBS
  18584. LIBS="-ldl $LIBS"
  18585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18586. /* end confdefs.h. */
  18587. /* Override any GCC internal prototype to avoid an error.
  18588. Use char because int might match the return type of a GCC
  18589. builtin and then its argument prototype would still apply. */
  18590. #ifdef __cplusplus
  18591. extern "C"
  18592. #endif
  18593. char dlopen ();
  18594. int
  18595. main ()
  18596. {
  18597. return dlopen ();
  18598. ;
  18599. return 0;
  18600. }
  18601. _ACEOF
  18602. if ac_fn_c_try_link "$LINENO"; then :
  18603. ac_cv_lib_dl_dlopen=yes
  18604. else
  18605. ac_cv_lib_dl_dlopen=no
  18606. fi
  18607. rm -f core conftest.err conftest.$ac_objext \
  18608. conftest$ac_exeext conftest.$ac_ext
  18609. LIBS=$ac_check_lib_save_LIBS
  18610. fi
  18611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18612. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18613. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18615. else
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18617. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18618. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18619. $as_echo_n "(cached) " >&6
  18620. else
  18621. ac_check_lib_save_LIBS=$LIBS
  18622. LIBS="-lltdl $LIBS"
  18623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18624. /* end confdefs.h. */
  18625. /* Override any GCC internal prototype to avoid an error.
  18626. Use char because int might match the return type of a GCC
  18627. builtin and then its argument prototype would still apply. */
  18628. #ifdef __cplusplus
  18629. extern "C"
  18630. #endif
  18631. char dlopen ();
  18632. int
  18633. main ()
  18634. {
  18635. return dlopen ();
  18636. ;
  18637. return 0;
  18638. }
  18639. _ACEOF
  18640. if ac_fn_c_try_link "$LINENO"; then :
  18641. ac_cv_lib_ltdl_dlopen=yes
  18642. else
  18643. ac_cv_lib_ltdl_dlopen=no
  18644. fi
  18645. rm -f core conftest.err conftest.$ac_objext \
  18646. conftest$ac_exeext conftest.$ac_ext
  18647. LIBS=$ac_check_lib_save_LIBS
  18648. fi
  18649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18650. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18651. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18652. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18653. fi
  18654. fi
  18655. fi
  18656. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18657. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18658. have_loadso=yes
  18659. fi
  18660. fi
  18661. }
  18662. CheckUSBHID()
  18663. {
  18664. case "$host" in
  18665. *-*-*bsd*)
  18666. if test x$enable_joystick = xyes; then
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18668. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18669. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18670. $as_echo_n "(cached) " >&6
  18671. else
  18672. ac_check_lib_save_LIBS=$LIBS
  18673. LIBS="-lusbhid $LIBS"
  18674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18675. /* end confdefs.h. */
  18676. /* Override any GCC internal prototype to avoid an error.
  18677. Use char because int might match the return type of a GCC
  18678. builtin and then its argument prototype would still apply. */
  18679. #ifdef __cplusplus
  18680. extern "C"
  18681. #endif
  18682. char hid_init ();
  18683. int
  18684. main ()
  18685. {
  18686. return hid_init ();
  18687. ;
  18688. return 0;
  18689. }
  18690. _ACEOF
  18691. if ac_fn_c_try_link "$LINENO"; then :
  18692. ac_cv_lib_usbhid_hid_init=yes
  18693. else
  18694. ac_cv_lib_usbhid_hid_init=no
  18695. fi
  18696. rm -f core conftest.err conftest.$ac_objext \
  18697. conftest$ac_exeext conftest.$ac_ext
  18698. LIBS=$ac_check_lib_save_LIBS
  18699. fi
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18701. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18702. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18703. have_libusbhid=yes
  18704. fi
  18705. if test x$have_libusbhid = xyes; then
  18706. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18707. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18708. USB_CFLAGS="-DHAVE_USBHID_H"
  18709. fi
  18710. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18711. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18712. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18713. fi
  18714. USB_LIBS="$USB_LIBS -lusbhid"
  18715. else
  18716. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18717. if test "x$ac_cv_header_usb_h" = xyes; then :
  18718. USB_CFLAGS="-DHAVE_USB_H"
  18719. fi
  18720. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18721. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18722. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18723. fi
  18724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18725. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18726. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18727. $as_echo_n "(cached) " >&6
  18728. else
  18729. ac_check_lib_save_LIBS=$LIBS
  18730. LIBS="-lusb $LIBS"
  18731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18732. /* end confdefs.h. */
  18733. /* Override any GCC internal prototype to avoid an error.
  18734. Use char because int might match the return type of a GCC
  18735. builtin and then its argument prototype would still apply. */
  18736. #ifdef __cplusplus
  18737. extern "C"
  18738. #endif
  18739. char hid_init ();
  18740. int
  18741. main ()
  18742. {
  18743. return hid_init ();
  18744. ;
  18745. return 0;
  18746. }
  18747. _ACEOF
  18748. if ac_fn_c_try_link "$LINENO"; then :
  18749. ac_cv_lib_usb_hid_init=yes
  18750. else
  18751. ac_cv_lib_usb_hid_init=no
  18752. fi
  18753. rm -f core conftest.err conftest.$ac_objext \
  18754. conftest$ac_exeext conftest.$ac_ext
  18755. LIBS=$ac_check_lib_save_LIBS
  18756. fi
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18758. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18759. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18760. USB_LIBS="$USB_LIBS -lusb"
  18761. fi
  18762. fi
  18763. save_CFLAGS="$CFLAGS"
  18764. CFLAGS="$CFLAGS $USB_CFLAGS"
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18766. $as_echo_n "checking for usbhid... " >&6; }
  18767. have_usbhid=no
  18768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18769. /* end confdefs.h. */
  18770. #include <sys/types.h>
  18771. #if defined(HAVE_USB_H)
  18772. #include <usb.h>
  18773. #endif
  18774. #ifdef __DragonFly__
  18775. # include <bus/usb/usb.h>
  18776. # include <bus/usb/usbhid.h>
  18777. #else
  18778. # include <dev/usb/usb.h>
  18779. # include <dev/usb/usbhid.h>
  18780. #endif
  18781. #if defined(HAVE_USBHID_H)
  18782. #include <usbhid.h>
  18783. #elif defined(HAVE_LIBUSB_H)
  18784. #include <libusb.h>
  18785. #elif defined(HAVE_LIBUSBHID_H)
  18786. #include <libusbhid.h>
  18787. #endif
  18788. int
  18789. main ()
  18790. {
  18791. struct report_desc *repdesc;
  18792. struct usb_ctl_report *repbuf;
  18793. hid_kind_t hidkind;
  18794. ;
  18795. return 0;
  18796. }
  18797. _ACEOF
  18798. if ac_fn_c_try_compile "$LINENO"; then :
  18799. have_usbhid=yes
  18800. fi
  18801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  18803. $as_echo "$have_usbhid" >&6; }
  18804. if test x$have_usbhid = xyes; then
  18805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  18806. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  18807. have_usbhid_ucr_data=no
  18808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18809. /* end confdefs.h. */
  18810. #include <sys/types.h>
  18811. #if defined(HAVE_USB_H)
  18812. #include <usb.h>
  18813. #endif
  18814. #ifdef __DragonFly__
  18815. # include <bus/usb/usb.h>
  18816. # include <bus/usb/usbhid.h>
  18817. #else
  18818. # include <dev/usb/usb.h>
  18819. # include <dev/usb/usbhid.h>
  18820. #endif
  18821. #if defined(HAVE_USBHID_H)
  18822. #include <usbhid.h>
  18823. #elif defined(HAVE_LIBUSB_H)
  18824. #include <libusb.h>
  18825. #elif defined(HAVE_LIBUSBHID_H)
  18826. #include <libusbhid.h>
  18827. #endif
  18828. int
  18829. main ()
  18830. {
  18831. struct usb_ctl_report buf;
  18832. if (buf.ucr_data) { }
  18833. ;
  18834. return 0;
  18835. }
  18836. _ACEOF
  18837. if ac_fn_c_try_compile "$LINENO"; then :
  18838. have_usbhid_ucr_data=yes
  18839. fi
  18840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18841. if test x$have_usbhid_ucr_data = xyes; then
  18842. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  18843. fi
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  18845. $as_echo "$have_usbhid_ucr_data" >&6; }
  18846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  18847. $as_echo_n "checking for new usbhid API... " >&6; }
  18848. have_usbhid_new=no
  18849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18850. /* end confdefs.h. */
  18851. #include <sys/types.h>
  18852. #if defined(HAVE_USB_H)
  18853. #include <usb.h>
  18854. #endif
  18855. #ifdef __DragonFly__
  18856. #include <bus/usb/usb.h>
  18857. #include <bus/usb/usbhid.h>
  18858. #else
  18859. #include <dev/usb/usb.h>
  18860. #include <dev/usb/usbhid.h>
  18861. #endif
  18862. #if defined(HAVE_USBHID_H)
  18863. #include <usbhid.h>
  18864. #elif defined(HAVE_LIBUSB_H)
  18865. #include <libusb.h>
  18866. #elif defined(HAVE_LIBUSBHID_H)
  18867. #include <libusbhid.h>
  18868. #endif
  18869. int
  18870. main ()
  18871. {
  18872. report_desc_t d;
  18873. hid_start_parse(d, 1, 1);
  18874. ;
  18875. return 0;
  18876. }
  18877. _ACEOF
  18878. if ac_fn_c_try_compile "$LINENO"; then :
  18879. have_usbhid_new=yes
  18880. fi
  18881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18882. if test x$have_usbhid_new = xyes; then
  18883. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  18884. fi
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  18886. $as_echo "$have_usbhid_new" >&6; }
  18887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  18888. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  18889. have_machine_joystick=no
  18890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18891. /* end confdefs.h. */
  18892. #include <machine/joystick.h>
  18893. int
  18894. main ()
  18895. {
  18896. struct joystick t;
  18897. ;
  18898. return 0;
  18899. }
  18900. _ACEOF
  18901. if ac_fn_c_try_compile "$LINENO"; then :
  18902. have_machine_joystick=yes
  18903. fi
  18904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18905. if test x$have_machine_joystick = xyes; then
  18906. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  18907. fi
  18908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  18909. $as_echo "$have_machine_joystick" >&6; }
  18910. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  18911. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  18912. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  18913. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  18914. have_joystick=yes
  18915. fi
  18916. CFLAGS="$save_CFLAGS"
  18917. fi
  18918. ;;
  18919. esac
  18920. }
  18921. CheckClockGettime()
  18922. {
  18923. # Check whether --enable-clock_gettime was given.
  18924. if test "${enable_clock_gettime+set}" = set; then :
  18925. enableval=$enable_clock_gettime;
  18926. else
  18927. enable_clock_gettime=yes
  18928. fi
  18929. if test x$enable_clock_gettime = xyes; then
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  18931. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  18932. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  18933. $as_echo_n "(cached) " >&6
  18934. else
  18935. ac_check_lib_save_LIBS=$LIBS
  18936. LIBS="-lrt $LIBS"
  18937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18938. /* end confdefs.h. */
  18939. /* Override any GCC internal prototype to avoid an error.
  18940. Use char because int might match the return type of a GCC
  18941. builtin and then its argument prototype would still apply. */
  18942. #ifdef __cplusplus
  18943. extern "C"
  18944. #endif
  18945. char clock_gettime ();
  18946. int
  18947. main ()
  18948. {
  18949. return clock_gettime ();
  18950. ;
  18951. return 0;
  18952. }
  18953. _ACEOF
  18954. if ac_fn_c_try_link "$LINENO"; then :
  18955. ac_cv_lib_rt_clock_gettime=yes
  18956. else
  18957. ac_cv_lib_rt_clock_gettime=no
  18958. fi
  18959. rm -f core conftest.err conftest.$ac_objext \
  18960. conftest$ac_exeext conftest.$ac_ext
  18961. LIBS=$ac_check_lib_save_LIBS
  18962. fi
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  18964. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  18965. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  18966. have_clock_gettime=yes
  18967. fi
  18968. if test x$have_clock_gettime = xyes; then
  18969. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  18970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  18971. else
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  18973. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  18974. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  18975. $as_echo_n "(cached) " >&6
  18976. else
  18977. ac_check_lib_save_LIBS=$LIBS
  18978. LIBS="-lc $LIBS"
  18979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18980. /* end confdefs.h. */
  18981. /* Override any GCC internal prototype to avoid an error.
  18982. Use char because int might match the return type of a GCC
  18983. builtin and then its argument prototype would still apply. */
  18984. #ifdef __cplusplus
  18985. extern "C"
  18986. #endif
  18987. char clock_gettime ();
  18988. int
  18989. main ()
  18990. {
  18991. return clock_gettime ();
  18992. ;
  18993. return 0;
  18994. }
  18995. _ACEOF
  18996. if ac_fn_c_try_link "$LINENO"; then :
  18997. ac_cv_lib_c_clock_gettime=yes
  18998. else
  18999. ac_cv_lib_c_clock_gettime=no
  19000. fi
  19001. rm -f core conftest.err conftest.$ac_objext \
  19002. conftest$ac_exeext conftest.$ac_ext
  19003. LIBS=$ac_check_lib_save_LIBS
  19004. fi
  19005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19006. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19007. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19008. have_clock_gettime=yes
  19009. fi
  19010. if test x$have_clock_gettime = xyes; then
  19011. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19013. fi
  19014. fi
  19015. fi
  19016. }
  19017. CheckLinuxVersion()
  19018. {
  19019. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19020. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19021. have_linux_version_h=yes
  19022. fi
  19023. if test x$have_linux_version_h = xyes; then
  19024. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19025. fi
  19026. }
  19027. CheckRPATH()
  19028. {
  19029. # Check whether --enable-rpath was given.
  19030. if test "${enable_rpath+set}" = set; then :
  19031. enableval=$enable_rpath;
  19032. else
  19033. enable_rpath=yes
  19034. fi
  19035. }
  19036. case "$host" in
  19037. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19038. case "$host" in
  19039. *-raspberry-linux*)
  19040. # Raspberry Pi
  19041. ARCH=linux
  19042. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19043. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19044. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19045. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19046. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19047. if test x$enable_video = xyes; then
  19048. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19049. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19050. fi
  19051. ;;
  19052. *-*-linux*) ARCH=linux ;;
  19053. *-*-uclinux*) ARCH=linux ;;
  19054. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19055. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19056. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19057. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19058. *-*-bsdi*) ARCH=bsdi ;;
  19059. *-*-freebsd*) ARCH=freebsd ;;
  19060. *-*-dragonfly*) ARCH=freebsd ;;
  19061. *-*-netbsd*) ARCH=netbsd ;;
  19062. *-*-openbsd*) ARCH=openbsd ;;
  19063. *-*-sysv5*) ARCH=sysv5 ;;
  19064. *-*-solaris*) ARCH=solaris ;;
  19065. *-*-hpux*) ARCH=hpux ;;
  19066. *-*-aix*) ARCH=aix ;;
  19067. *-*-minix*) ARCH=minix ;;
  19068. esac
  19069. CheckVisibilityHidden
  19070. CheckDummyVideo
  19071. CheckDiskAudio
  19072. CheckDummyAudio
  19073. CheckDLOPEN
  19074. CheckOSS
  19075. CheckALSA
  19076. CheckPulseAudio
  19077. CheckARTSC
  19078. CheckESD
  19079. CheckNAS
  19080. CheckSNDIO
  19081. CheckX11
  19082. CheckWayland
  19083. CheckDirectFB
  19084. CheckFusionSound
  19085. CheckOpenGLX11
  19086. CheckOpenGLESX11
  19087. CheckLibUDev
  19088. CheckDBus
  19089. CheckInputEvents
  19090. CheckInputKD
  19091. CheckTslib
  19092. CheckUSBHID
  19093. CheckPTHREAD
  19094. CheckClockGettime
  19095. CheckLinuxVersion
  19096. CheckRPATH
  19097. # Set up files for the audio library
  19098. if test x$enable_audio = xyes; then
  19099. case $ARCH in
  19100. sysv5|solaris|hpux)
  19101. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19102. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19103. have_audio=yes
  19104. ;;
  19105. netbsd) # Don't use this on OpenBSD, it's busted.
  19106. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19107. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19108. have_audio=yes
  19109. ;;
  19110. aix)
  19111. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19112. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19113. have_audio=yes
  19114. ;;
  19115. esac
  19116. fi
  19117. # Set up files for the joystick library
  19118. if test x$enable_joystick = xyes; then
  19119. case $ARCH in
  19120. linux)
  19121. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19122. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19123. have_joystick=yes
  19124. ;;
  19125. esac
  19126. fi
  19127. # Set up files for the haptic library
  19128. if test x$enable_haptic = xyes; then
  19129. if test x$use_input_events = xyes; then
  19130. case $ARCH in
  19131. linux)
  19132. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19133. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19134. have_haptic=yes
  19135. ;;
  19136. esac
  19137. fi
  19138. fi
  19139. # Set up files for the power library
  19140. if test x$enable_power = xyes; then
  19141. case $ARCH in
  19142. linux)
  19143. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19144. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19145. have_power=yes
  19146. ;;
  19147. esac
  19148. fi
  19149. # Set up files for the filesystem library
  19150. if test x$enable_filesystem = xyes; then
  19151. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19152. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19153. have_filesystem=yes
  19154. fi
  19155. # Set up files for the timer library
  19156. if test x$enable_timers = xyes; then
  19157. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19158. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19159. have_timers=yes
  19160. fi
  19161. # Set up files for udev hotplugging support
  19162. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19163. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19164. fi
  19165. # Set up files for evdev input
  19166. if test x$use_input_events = xyes; then
  19167. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19168. fi
  19169. ;;
  19170. *-*-cygwin* | *-*-mingw32*)
  19171. ARCH=win32
  19172. if test "$build" != "$host"; then # cross-compiling
  19173. # Default cross-compile location
  19174. ac_default_prefix=/usr/local/cross-tools/$host
  19175. else
  19176. # Look for the location of the tools and install there
  19177. if test "$BUILD_PREFIX" != ""; then
  19178. ac_default_prefix=$BUILD_PREFIX
  19179. fi
  19180. fi
  19181. CheckDummyVideo
  19182. CheckDiskAudio
  19183. CheckDummyAudio
  19184. CheckWINDOWS
  19185. CheckWINDOWSGL
  19186. CheckWINDOWSGLES
  19187. CheckDIRECTX
  19188. # Set up the core platform files
  19189. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19190. # Set up files for the video library
  19191. if test x$enable_video = xyes; then
  19192. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19193. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19194. have_video=yes
  19195. # Check whether --enable-render-d3d was given.
  19196. if test "${enable_render_d3d+set}" = set; then :
  19197. enableval=$enable_render_d3d;
  19198. else
  19199. enable_render_d3d=yes
  19200. fi
  19201. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19202. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19203. fi
  19204. fi
  19205. # Set up files for the audio library
  19206. if test x$enable_audio = xyes; then
  19207. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19208. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19209. if test x$have_dsound = xyes; then
  19210. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19211. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19212. fi
  19213. if test x$have_xaudio2 = xyes; then
  19214. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19215. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19216. fi
  19217. have_audio=yes
  19218. fi
  19219. # Set up files for the joystick library
  19220. if test x$enable_joystick = xyes; then
  19221. if test x$have_dinput = xyes; then
  19222. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19223. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19225. else
  19226. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19227. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19228. fi
  19229. have_joystick=yes
  19230. fi
  19231. if test x$enable_haptic = xyes; then
  19232. if test x$have_dinput = xyes; then
  19233. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19234. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19235. have_haptic=yes
  19236. fi
  19237. fi
  19238. if test x$enable_power = xyes; then
  19239. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19240. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19241. have_power=yes
  19242. fi
  19243. if test x$enable_filesystem = xyes; then
  19244. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19245. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19246. have_filesystem=yes
  19247. fi
  19248. # Set up files for the thread library
  19249. if test x$enable_threads = xyes; then
  19250. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19251. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19252. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19253. have_threads=yes
  19254. fi
  19255. # Set up files for the timer library
  19256. if test x$enable_timers = xyes; then
  19257. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19258. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19259. have_timers=yes
  19260. fi
  19261. # Set up files for the shared object loading library
  19262. if test x$enable_loadso = xyes; then
  19263. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19264. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19265. have_loadso=yes
  19266. fi
  19267. # Set up the system libraries we need
  19268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19269. # The Windows platform requires special setup
  19270. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19271. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19272. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19273. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19274. # Check to see if this is a mingw or cygwin build
  19275. have_mingw32=
  19276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19277. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19278. if ${ac_cv_lib_mingw32_main+:} false; then :
  19279. $as_echo_n "(cached) " >&6
  19280. else
  19281. ac_check_lib_save_LIBS=$LIBS
  19282. LIBS="-lmingw32 $LIBS"
  19283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19284. /* end confdefs.h. */
  19285. int
  19286. main ()
  19287. {
  19288. return main ();
  19289. ;
  19290. return 0;
  19291. }
  19292. _ACEOF
  19293. if ac_fn_c_try_link "$LINENO"; then :
  19294. ac_cv_lib_mingw32_main=yes
  19295. else
  19296. ac_cv_lib_mingw32_main=no
  19297. fi
  19298. rm -f core conftest.err conftest.$ac_objext \
  19299. conftest$ac_exeext conftest.$ac_ext
  19300. LIBS=$ac_check_lib_save_LIBS
  19301. fi
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19303. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19304. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19305. have_mingw32=yes
  19306. fi
  19307. if test x$have_mingw32 = xyes; then
  19308. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19309. else
  19310. SDL_LIBS="-lcygwin $SDL_LIBS"
  19311. fi
  19312. ;;
  19313. *-*-beos*)
  19314. as_fn_error $? "
  19315. *** BeOS support has been removed as of SDL 2.0.2.
  19316. " "$LINENO" 5
  19317. ;;
  19318. *-*-haiku*)
  19319. ARCH=haiku
  19320. ac_default_prefix=/boot/system
  19321. CheckDummyVideo
  19322. CheckDiskAudio
  19323. CheckDummyAudio
  19324. CheckHaikuVideo
  19325. CheckHaikuGL
  19326. CheckPTHREAD
  19327. # Set up files for the audio library
  19328. if test x$enable_audio = xyes; then
  19329. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19330. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19331. have_audio=yes
  19332. fi
  19333. # Set up files for the joystick library
  19334. if test x$enable_joystick = xyes; then
  19335. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19336. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19337. have_joystick=yes
  19338. fi
  19339. # Set up files for the timer library
  19340. if test x$enable_timers = xyes; then
  19341. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19342. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19343. have_timers=yes
  19344. fi
  19345. # Set up files for the shared object loading library
  19346. if test x$enable_loadso = xyes; then
  19347. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19348. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19349. have_loadso=yes
  19350. fi
  19351. # Set up files for the system power library
  19352. if test x$enable_power = xyes; then
  19353. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19354. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19355. have_power=yes
  19356. fi
  19357. # Set up files for the system filesystem library
  19358. if test x$enable_filesystem = xyes; then
  19359. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19360. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19361. have_filesystem=yes
  19362. fi
  19363. # The Haiku platform requires special setup.
  19364. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19366. ;;
  19367. arm*-apple-darwin*)
  19368. # iOS - We are not writing anything to confdefs.h because you have to replace
  19369. # SDL_config.h for SDL_config_iphoneos.h anyway
  19370. ARCH=ios
  19371. CheckVisibilityHidden
  19372. CheckDummyVideo
  19373. CheckDiskAudio
  19374. CheckDummyAudio
  19375. CheckDLOPEN
  19376. CheckCOCOA
  19377. CheckPTHREAD
  19378. # Set up files for the audio library
  19379. if test x$enable_audio = xyes; then
  19380. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19381. have_audio=yes
  19382. fi
  19383. # Set up files for the joystick library
  19384. if test x$enable_joystick = xyes; then
  19385. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19386. have_joystick=yes
  19387. fi
  19388. # Set up files for the haptic library
  19389. #if test x$enable_haptic = xyes; then
  19390. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19391. # have_haptic=yes
  19392. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19393. #fi
  19394. # Set up files for the power library
  19395. if test x$enable_power = xyes; then
  19396. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19397. have_power=yes
  19398. fi
  19399. # Set up files for the filesystem library
  19400. if test x$enable_filesystem = xyes; then
  19401. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19402. have_filesystem=yes
  19403. fi
  19404. # Set up files for the timer library
  19405. if test x$enable_timers = xyes; then
  19406. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19407. have_timers=yes
  19408. fi
  19409. # Set up additional files for the file library
  19410. if test x$enable_file = xyes; then
  19411. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19412. fi
  19413. # The iOS platform requires special setup.
  19414. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19415. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19421. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19422. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19424. ;;
  19425. *-*-darwin* )
  19426. # This could be either full "Mac OS X", or plain "Darwin" which is
  19427. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19428. # Next line is broken, and a few files below require Mac OS X (full)
  19429. ARCH=macosx
  19430. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19431. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19432. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19433. CheckVisibilityHidden
  19434. CheckDummyVideo
  19435. CheckDiskAudio
  19436. CheckDummyAudio
  19437. CheckDLOPEN
  19438. CheckCOCOA
  19439. CheckX11
  19440. CheckMacGL
  19441. CheckOpenGLX11
  19442. CheckPTHREAD
  19443. # Good optimization on Mac OS X, yes...
  19444. EXTRA_CFLAGS="$EXTRA_CFLAGS -falign-loops=16"
  19445. # Need this or things might misbuild on a G3.
  19446. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19447. # Set up files for the audio library
  19448. if test x$enable_audio = xyes; then
  19449. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19450. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19451. have_audio=yes
  19452. fi
  19453. # Set up files for the joystick library
  19454. if test x$enable_joystick = xyes; then
  19455. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19456. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19457. have_joystick=yes
  19458. fi
  19459. # Set up files for the haptic library
  19460. if test x$enable_haptic = xyes; then
  19461. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19462. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19463. have_haptic=yes
  19464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19465. fi
  19466. # Set up files for the power library
  19467. if test x$enable_power = xyes; then
  19468. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19469. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19470. have_power=yes
  19471. fi
  19472. # Set up files for the filesystem library
  19473. if test x$enable_filesystem = xyes; then
  19474. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19475. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19476. have_filesystem=yes
  19477. fi
  19478. # Set up files for the timer library
  19479. if test x$enable_timers = xyes; then
  19480. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19481. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19482. have_timers=yes
  19483. fi
  19484. # Set up additional files for the file library
  19485. if test x$enable_file = xyes; then
  19486. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19487. fi
  19488. # The Mac OS X platform requires special setup.
  19489. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19490. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19491. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19492. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19493. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19494. # If audio is used, add the AudioUnit framework
  19495. if test x$enable_audio = xyes; then
  19496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19497. fi
  19498. ;;
  19499. *)
  19500. as_fn_error $? "
  19501. *** Unsupported host: Please add to configure.in
  19502. " "$LINENO" 5
  19503. ;;
  19504. esac
  19505. CheckWarnAll
  19506. # Verify that we have all the platform specific files we need
  19507. if test x$have_joystick != xyes; then
  19508. if test x$enable_joystick = xyes; then
  19509. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19510. fi
  19511. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19512. fi
  19513. if test x$have_haptic != xyes; then
  19514. if test x$enable_haptic = xyes; then
  19515. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19516. fi
  19517. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19518. fi
  19519. if test x$have_threads != xyes; then
  19520. if test x$enable_threads = xyes; then
  19521. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19522. fi
  19523. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19524. fi
  19525. if test x$have_timers != xyes; then
  19526. if test x$enable_timers = xyes; then
  19527. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19528. fi
  19529. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19530. fi
  19531. if test x$have_filesystem != xyes; then
  19532. if test x$enable_filesystem = xyes; then
  19533. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19534. fi
  19535. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19536. fi
  19537. if test x$have_loadso != xyes; then
  19538. if test x$enable_loadso = xyes; then
  19539. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19540. fi
  19541. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19542. fi
  19543. if test x$SDLMAIN_SOURCES = x; then
  19544. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19545. fi
  19546. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19547. OBJECTS=`echo $SOURCES`
  19548. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19549. for EXT in asm cc m c S; do
  19550. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19551. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19552. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19553. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19554. done
  19555. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19556. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19557. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19558. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19559. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19560. \\$(WINDRES) \\$< \\$@,g"`
  19561. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19562. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19563. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19564. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19565. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19566. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19567. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19568. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19569. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19570. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19571. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19572. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19573. # Set runtime shared library paths as needed
  19574. if test "x$enable_rpath" = "xyes"; then
  19575. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19576. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19577. fi
  19578. if test $ARCH = solaris; then
  19579. SDL_RLD_FLAGS="-R\${libdir}"
  19580. fi
  19581. else
  19582. SDL_RLD_FLAGS=""
  19583. fi
  19584. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19585. if test x$enable_shared = xyes; then
  19586. ENABLE_SHARED_TRUE=
  19587. ENABLE_SHARED_FALSE="#"
  19588. else
  19589. ENABLE_SHARED_TRUE="#"
  19590. ENABLE_SHARED_FALSE=
  19591. fi
  19592. if test x$enable_static = xyes; then
  19593. ENABLE_STATIC_TRUE=
  19594. ENABLE_STATIC_FALSE="#"
  19595. else
  19596. ENABLE_STATIC_TRUE="#"
  19597. ENABLE_STATIC_FALSE=
  19598. fi
  19599. cat >Makefile.rules <<__EOF__
  19600. # Build rules for objects
  19601. -include \$(OBJECTS:.lo=.d)
  19602. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19603. $srcdir/src/SDL.c: update-revision
  19604. $DEPENDS
  19605. $VERSION_DEPENDS
  19606. $SDLMAIN_DEPENDS
  19607. $SDLTEST_DEPENDS
  19608. __EOF__
  19609. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19610. cat >confcache <<\_ACEOF
  19611. # This file is a shell script that caches the results of configure
  19612. # tests run on this system so they can be shared between configure
  19613. # scripts and configure runs, see configure's option --config-cache.
  19614. # It is not useful on other systems. If it contains results you don't
  19615. # want to keep, you may remove or edit it.
  19616. #
  19617. # config.status only pays attention to the cache file if you give it
  19618. # the --recheck option to rerun configure.
  19619. #
  19620. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19621. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19622. # following values.
  19623. _ACEOF
  19624. # The following way of writing the cache mishandles newlines in values,
  19625. # but we know of no workaround that is simple, portable, and efficient.
  19626. # So, we kill variables containing newlines.
  19627. # Ultrix sh set writes to stderr and can't be redirected directly,
  19628. # and sets the high bit in the cache file unless we assign to the vars.
  19629. (
  19630. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19631. eval ac_val=\$$ac_var
  19632. case $ac_val in #(
  19633. *${as_nl}*)
  19634. case $ac_var in #(
  19635. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19636. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19637. esac
  19638. case $ac_var in #(
  19639. _ | IFS | as_nl) ;; #(
  19640. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19641. *) { eval $ac_var=; unset $ac_var;} ;;
  19642. esac ;;
  19643. esac
  19644. done
  19645. (set) 2>&1 |
  19646. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19647. *${as_nl}ac_space=\ *)
  19648. # `set' does not quote correctly, so add quotes: double-quote
  19649. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19650. sed -n \
  19651. "s/'/'\\\\''/g;
  19652. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19653. ;; #(
  19654. *)
  19655. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19656. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19657. ;;
  19658. esac |
  19659. sort
  19660. ) |
  19661. sed '
  19662. /^ac_cv_env_/b end
  19663. t clear
  19664. :clear
  19665. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19666. t end
  19667. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19668. :end' >>confcache
  19669. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19670. if test -w "$cache_file"; then
  19671. if test "x$cache_file" != "x/dev/null"; then
  19672. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19673. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19674. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19675. cat confcache >"$cache_file"
  19676. else
  19677. case $cache_file in #(
  19678. */* | ?:*)
  19679. mv -f confcache "$cache_file"$$ &&
  19680. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19681. *)
  19682. mv -f confcache "$cache_file" ;;
  19683. esac
  19684. fi
  19685. fi
  19686. else
  19687. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19688. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19689. fi
  19690. fi
  19691. rm -f confcache
  19692. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19693. # Let make expand exec_prefix.
  19694. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19695. DEFS=-DHAVE_CONFIG_H
  19696. ac_libobjs=
  19697. ac_ltlibobjs=
  19698. U=
  19699. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19700. # 1. Remove the extension, and $U if already installed.
  19701. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19702. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19703. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19704. # will be set to the directory where LIBOBJS objects are built.
  19705. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19706. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19707. done
  19708. LIBOBJS=$ac_libobjs
  19709. LTLIBOBJS=$ac_ltlibobjs
  19710. : "${CONFIG_STATUS=./config.status}"
  19711. ac_write_fail=0
  19712. ac_clean_files_save=$ac_clean_files
  19713. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19714. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19715. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19716. as_write_fail=0
  19717. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19718. #! $SHELL
  19719. # Generated by $as_me.
  19720. # Run this file to recreate the current configuration.
  19721. # Compiler output produced by configure, useful for debugging
  19722. # configure, is in config.log if it exists.
  19723. debug=false
  19724. ac_cs_recheck=false
  19725. ac_cs_silent=false
  19726. SHELL=\${CONFIG_SHELL-$SHELL}
  19727. export SHELL
  19728. _ASEOF
  19729. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19730. ## -------------------- ##
  19731. ## M4sh Initialization. ##
  19732. ## -------------------- ##
  19733. # Be more Bourne compatible
  19734. DUALCASE=1; export DUALCASE # for MKS sh
  19735. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19736. emulate sh
  19737. NULLCMD=:
  19738. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19739. # is contrary to our usage. Disable this feature.
  19740. alias -g '${1+"$@"}'='"$@"'
  19741. setopt NO_GLOB_SUBST
  19742. else
  19743. case `(set -o) 2>/dev/null` in #(
  19744. *posix*) :
  19745. set -o posix ;; #(
  19746. *) :
  19747. ;;
  19748. esac
  19749. fi
  19750. as_nl='
  19751. '
  19752. export as_nl
  19753. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19754. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19755. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19756. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19757. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19758. # but without wasting forks for bash or zsh.
  19759. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19760. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19761. as_echo='print -r --'
  19762. as_echo_n='print -rn --'
  19763. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19764. as_echo='printf %s\n'
  19765. as_echo_n='printf %s'
  19766. else
  19767. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19768. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19769. as_echo_n='/usr/ucb/echo -n'
  19770. else
  19771. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19772. as_echo_n_body='eval
  19773. arg=$1;
  19774. case $arg in #(
  19775. *"$as_nl"*)
  19776. expr "X$arg" : "X\\(.*\\)$as_nl";
  19777. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19778. esac;
  19779. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19780. '
  19781. export as_echo_n_body
  19782. as_echo_n='sh -c $as_echo_n_body as_echo'
  19783. fi
  19784. export as_echo_body
  19785. as_echo='sh -c $as_echo_body as_echo'
  19786. fi
  19787. # The user is always right.
  19788. if test "${PATH_SEPARATOR+set}" != set; then
  19789. PATH_SEPARATOR=:
  19790. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19791. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19792. PATH_SEPARATOR=';'
  19793. }
  19794. fi
  19795. # IFS
  19796. # We need space, tab and new line, in precisely that order. Quoting is
  19797. # there to prevent editors from complaining about space-tab.
  19798. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19799. # splitting by setting IFS to empty value.)
  19800. IFS=" "" $as_nl"
  19801. # Find who we are. Look in the path if we contain no directory separator.
  19802. as_myself=
  19803. case $0 in #((
  19804. *[\\/]* ) as_myself=$0 ;;
  19805. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19806. for as_dir in $PATH
  19807. do
  19808. IFS=$as_save_IFS
  19809. test -z "$as_dir" && as_dir=.
  19810. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19811. done
  19812. IFS=$as_save_IFS
  19813. ;;
  19814. esac
  19815. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19816. # in which case we are not to be found in the path.
  19817. if test "x$as_myself" = x; then
  19818. as_myself=$0
  19819. fi
  19820. if test ! -f "$as_myself"; then
  19821. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19822. exit 1
  19823. fi
  19824. # Unset variables that we do not need and which cause bugs (e.g. in
  19825. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19826. # suppresses any "Segmentation fault" message there. '((' could
  19827. # trigger a bug in pdksh 5.2.14.
  19828. for as_var in BASH_ENV ENV MAIL MAILPATH
  19829. do eval test x\${$as_var+set} = xset \
  19830. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19831. done
  19832. PS1='$ '
  19833. PS2='> '
  19834. PS4='+ '
  19835. # NLS nuisances.
  19836. LC_ALL=C
  19837. export LC_ALL
  19838. LANGUAGE=C
  19839. export LANGUAGE
  19840. # CDPATH.
  19841. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19842. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19843. # ----------------------------------------
  19844. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19845. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19846. # script with STATUS, using 1 if that was 0.
  19847. as_fn_error ()
  19848. {
  19849. as_status=$1; test $as_status -eq 0 && as_status=1
  19850. if test "$4"; then
  19851. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19852. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19853. fi
  19854. $as_echo "$as_me: error: $2" >&2
  19855. as_fn_exit $as_status
  19856. } # as_fn_error
  19857. # as_fn_set_status STATUS
  19858. # -----------------------
  19859. # Set $? to STATUS, without forking.
  19860. as_fn_set_status ()
  19861. {
  19862. return $1
  19863. } # as_fn_set_status
  19864. # as_fn_exit STATUS
  19865. # -----------------
  19866. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19867. as_fn_exit ()
  19868. {
  19869. set +e
  19870. as_fn_set_status $1
  19871. exit $1
  19872. } # as_fn_exit
  19873. # as_fn_unset VAR
  19874. # ---------------
  19875. # Portably unset VAR.
  19876. as_fn_unset ()
  19877. {
  19878. { eval $1=; unset $1;}
  19879. }
  19880. as_unset=as_fn_unset
  19881. # as_fn_append VAR VALUE
  19882. # ----------------------
  19883. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19884. # advantage of any shell optimizations that allow amortized linear growth over
  19885. # repeated appends, instead of the typical quadratic growth present in naive
  19886. # implementations.
  19887. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19888. eval 'as_fn_append ()
  19889. {
  19890. eval $1+=\$2
  19891. }'
  19892. else
  19893. as_fn_append ()
  19894. {
  19895. eval $1=\$$1\$2
  19896. }
  19897. fi # as_fn_append
  19898. # as_fn_arith ARG...
  19899. # ------------------
  19900. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19901. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19902. # must be portable across $(()) and expr.
  19903. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19904. eval 'as_fn_arith ()
  19905. {
  19906. as_val=$(( $* ))
  19907. }'
  19908. else
  19909. as_fn_arith ()
  19910. {
  19911. as_val=`expr "$@" || test $? -eq 1`
  19912. }
  19913. fi # as_fn_arith
  19914. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19915. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19916. as_expr=expr
  19917. else
  19918. as_expr=false
  19919. fi
  19920. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19921. as_basename=basename
  19922. else
  19923. as_basename=false
  19924. fi
  19925. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19926. as_dirname=dirname
  19927. else
  19928. as_dirname=false
  19929. fi
  19930. as_me=`$as_basename -- "$0" ||
  19931. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19932. X"$0" : 'X\(//\)$' \| \
  19933. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19934. $as_echo X/"$0" |
  19935. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19936. s//\1/
  19937. q
  19938. }
  19939. /^X\/\(\/\/\)$/{
  19940. s//\1/
  19941. q
  19942. }
  19943. /^X\/\(\/\).*/{
  19944. s//\1/
  19945. q
  19946. }
  19947. s/.*/./; q'`
  19948. # Avoid depending upon Character Ranges.
  19949. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19950. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19951. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19952. as_cr_digits='0123456789'
  19953. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19954. ECHO_C= ECHO_N= ECHO_T=
  19955. case `echo -n x` in #(((((
  19956. -n*)
  19957. case `echo 'xy\c'` in
  19958. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19959. xy) ECHO_C='\c';;
  19960. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19961. ECHO_T=' ';;
  19962. esac;;
  19963. *)
  19964. ECHO_N='-n';;
  19965. esac
  19966. rm -f conf$$ conf$$.exe conf$$.file
  19967. if test -d conf$$.dir; then
  19968. rm -f conf$$.dir/conf$$.file
  19969. else
  19970. rm -f conf$$.dir
  19971. mkdir conf$$.dir 2>/dev/null
  19972. fi
  19973. if (echo >conf$$.file) 2>/dev/null; then
  19974. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19975. as_ln_s='ln -s'
  19976. # ... but there are two gotchas:
  19977. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19978. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19979. # In both cases, we have to default to `cp -pR'.
  19980. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19981. as_ln_s='cp -pR'
  19982. elif ln conf$$.file conf$$ 2>/dev/null; then
  19983. as_ln_s=ln
  19984. else
  19985. as_ln_s='cp -pR'
  19986. fi
  19987. else
  19988. as_ln_s='cp -pR'
  19989. fi
  19990. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19991. rmdir conf$$.dir 2>/dev/null
  19992. # as_fn_mkdir_p
  19993. # -------------
  19994. # Create "$as_dir" as a directory, including parents if necessary.
  19995. as_fn_mkdir_p ()
  19996. {
  19997. case $as_dir in #(
  19998. -*) as_dir=./$as_dir;;
  19999. esac
  20000. test -d "$as_dir" || eval $as_mkdir_p || {
  20001. as_dirs=
  20002. while :; do
  20003. case $as_dir in #(
  20004. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20005. *) as_qdir=$as_dir;;
  20006. esac
  20007. as_dirs="'$as_qdir' $as_dirs"
  20008. as_dir=`$as_dirname -- "$as_dir" ||
  20009. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20010. X"$as_dir" : 'X\(//\)[^/]' \| \
  20011. X"$as_dir" : 'X\(//\)$' \| \
  20012. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20013. $as_echo X"$as_dir" |
  20014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20015. s//\1/
  20016. q
  20017. }
  20018. /^X\(\/\/\)[^/].*/{
  20019. s//\1/
  20020. q
  20021. }
  20022. /^X\(\/\/\)$/{
  20023. s//\1/
  20024. q
  20025. }
  20026. /^X\(\/\).*/{
  20027. s//\1/
  20028. q
  20029. }
  20030. s/.*/./; q'`
  20031. test -d "$as_dir" && break
  20032. done
  20033. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20034. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20035. } # as_fn_mkdir_p
  20036. if mkdir -p . 2>/dev/null; then
  20037. as_mkdir_p='mkdir -p "$as_dir"'
  20038. else
  20039. test -d ./-p && rmdir ./-p
  20040. as_mkdir_p=false
  20041. fi
  20042. # as_fn_executable_p FILE
  20043. # -----------------------
  20044. # Test if FILE is an executable regular file.
  20045. as_fn_executable_p ()
  20046. {
  20047. test -f "$1" && test -x "$1"
  20048. } # as_fn_executable_p
  20049. as_test_x='test -x'
  20050. as_executable_p=as_fn_executable_p
  20051. # Sed expression to map a string onto a valid CPP name.
  20052. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20053. # Sed expression to map a string onto a valid variable name.
  20054. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20055. exec 6>&1
  20056. ## ----------------------------------- ##
  20057. ## Main body of $CONFIG_STATUS script. ##
  20058. ## ----------------------------------- ##
  20059. _ASEOF
  20060. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20061. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20062. # Save the log message, to keep $0 and so on meaningful, and to
  20063. # report actual input values of CONFIG_FILES etc. instead of their
  20064. # values after options handling.
  20065. ac_log="
  20066. This file was extended by $as_me, which was
  20067. generated by GNU Autoconf 2.69. Invocation command line was
  20068. CONFIG_FILES = $CONFIG_FILES
  20069. CONFIG_HEADERS = $CONFIG_HEADERS
  20070. CONFIG_LINKS = $CONFIG_LINKS
  20071. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20072. $ $0 $@
  20073. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20074. "
  20075. _ACEOF
  20076. case $ac_config_files in *"
  20077. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20078. esac
  20079. case $ac_config_headers in *"
  20080. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20081. esac
  20082. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20083. # Files that config.status was made for.
  20084. config_files="$ac_config_files"
  20085. config_headers="$ac_config_headers"
  20086. config_commands="$ac_config_commands"
  20087. _ACEOF
  20088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20089. ac_cs_usage="\
  20090. \`$as_me' instantiates files and other configuration actions
  20091. from templates according to the current configuration. Unless the files
  20092. and actions are specified as TAGs, all are instantiated by default.
  20093. Usage: $0 [OPTION]... [TAG]...
  20094. -h, --help print this help, then exit
  20095. -V, --version print version number and configuration settings, then exit
  20096. --config print configuration, then exit
  20097. -q, --quiet, --silent
  20098. do not print progress messages
  20099. -d, --debug don't remove temporary files
  20100. --recheck update $as_me by reconfiguring in the same conditions
  20101. --file=FILE[:TEMPLATE]
  20102. instantiate the configuration file FILE
  20103. --header=FILE[:TEMPLATE]
  20104. instantiate the configuration header FILE
  20105. Configuration files:
  20106. $config_files
  20107. Configuration headers:
  20108. $config_headers
  20109. Configuration commands:
  20110. $config_commands
  20111. Report bugs to the package provider."
  20112. _ACEOF
  20113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20114. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20115. ac_cs_version="\\
  20116. config.status
  20117. configured by $0, generated by GNU Autoconf 2.69,
  20118. with options \\"\$ac_cs_config\\"
  20119. Copyright (C) 2012 Free Software Foundation, Inc.
  20120. This config.status script is free software; the Free Software Foundation
  20121. gives unlimited permission to copy, distribute and modify it."
  20122. ac_pwd='$ac_pwd'
  20123. srcdir='$srcdir'
  20124. INSTALL='$INSTALL'
  20125. AWK='$AWK'
  20126. test -n "\$AWK" || AWK=awk
  20127. _ACEOF
  20128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20129. # The default lists apply if the user does not specify any file.
  20130. ac_need_defaults=:
  20131. while test $# != 0
  20132. do
  20133. case $1 in
  20134. --*=?*)
  20135. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20136. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20137. ac_shift=:
  20138. ;;
  20139. --*=)
  20140. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20141. ac_optarg=
  20142. ac_shift=:
  20143. ;;
  20144. *)
  20145. ac_option=$1
  20146. ac_optarg=$2
  20147. ac_shift=shift
  20148. ;;
  20149. esac
  20150. case $ac_option in
  20151. # Handling of the options.
  20152. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20153. ac_cs_recheck=: ;;
  20154. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20155. $as_echo "$ac_cs_version"; exit ;;
  20156. --config | --confi | --conf | --con | --co | --c )
  20157. $as_echo "$ac_cs_config"; exit ;;
  20158. --debug | --debu | --deb | --de | --d | -d )
  20159. debug=: ;;
  20160. --file | --fil | --fi | --f )
  20161. $ac_shift
  20162. case $ac_optarg in
  20163. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20164. '') as_fn_error $? "missing file argument" ;;
  20165. esac
  20166. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20167. ac_need_defaults=false;;
  20168. --header | --heade | --head | --hea )
  20169. $ac_shift
  20170. case $ac_optarg in
  20171. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20172. esac
  20173. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20174. ac_need_defaults=false;;
  20175. --he | --h)
  20176. # Conflict between --help and --header
  20177. as_fn_error $? "ambiguous option: \`$1'
  20178. Try \`$0 --help' for more information.";;
  20179. --help | --hel | -h )
  20180. $as_echo "$ac_cs_usage"; exit ;;
  20181. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20182. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20183. ac_cs_silent=: ;;
  20184. # This is an error.
  20185. -*) as_fn_error $? "unrecognized option: \`$1'
  20186. Try \`$0 --help' for more information." ;;
  20187. *) as_fn_append ac_config_targets " $1"
  20188. ac_need_defaults=false ;;
  20189. esac
  20190. shift
  20191. done
  20192. ac_configure_extra_args=
  20193. if $ac_cs_silent; then
  20194. exec 6>/dev/null
  20195. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20196. fi
  20197. _ACEOF
  20198. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20199. if \$ac_cs_recheck; then
  20200. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20201. shift
  20202. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20203. CONFIG_SHELL='$SHELL'
  20204. export CONFIG_SHELL
  20205. exec "\$@"
  20206. fi
  20207. _ACEOF
  20208. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20209. exec 5>>config.log
  20210. {
  20211. echo
  20212. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20213. ## Running $as_me. ##
  20214. _ASBOX
  20215. $as_echo "$ac_log"
  20216. } >&5
  20217. _ACEOF
  20218. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20219. #
  20220. # INIT-COMMANDS
  20221. #
  20222. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20223. # if CDPATH is set.
  20224. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20225. sed_quote_subst='$sed_quote_subst'
  20226. double_quote_subst='$double_quote_subst'
  20227. delay_variable_subst='$delay_variable_subst'
  20228. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20229. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20230. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20231. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20232. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20233. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20234. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20235. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20236. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20237. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20238. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20239. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20240. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20241. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20242. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20243. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20244. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20245. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20246. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20247. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20248. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20249. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20250. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20251. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20252. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20253. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20254. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20255. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20256. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20257. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20258. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20259. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20260. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20261. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20262. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20263. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20264. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20265. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20266. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20267. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20268. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20269. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20270. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20271. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20272. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20273. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20274. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20275. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20276. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20277. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20278. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20279. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20280. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20281. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20282. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20283. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20284. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20285. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20286. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20287. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20288. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20289. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20290. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20291. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20292. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20293. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20294. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20295. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20296. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20297. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20298. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20299. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20300. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20301. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20302. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20303. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20304. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20305. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20306. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20307. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20308. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20309. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20310. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20311. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20312. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20313. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20314. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20315. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20316. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20317. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20318. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20319. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20320. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20321. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20322. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20323. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20324. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20325. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20326. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20327. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20328. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20329. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20330. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20331. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20332. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20333. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20334. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20335. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20336. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20337. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20338. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20339. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20340. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20341. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20342. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20343. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20344. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20345. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20346. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20347. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20348. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20349. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20350. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20351. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20352. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20353. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20354. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20355. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20356. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20357. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20358. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20359. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20360. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20361. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20362. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20363. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20364. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20365. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20366. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20367. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20368. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20369. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20370. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20371. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20372. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20373. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20374. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20375. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20376. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20377. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20378. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20379. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20380. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20381. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20382. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20383. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20384. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20385. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20386. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20387. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20388. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20389. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20390. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20391. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20392. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20393. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20394. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20395. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20396. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20397. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20398. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20399. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20400. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20401. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20402. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20403. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20404. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20405. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20406. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20407. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20408. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20409. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20410. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20411. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20412. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20413. LTCC='$LTCC'
  20414. LTCFLAGS='$LTCFLAGS'
  20415. compiler='$compiler_DEFAULT'
  20416. # A function that is used when there is no print builtin or printf.
  20417. func_fallback_echo ()
  20418. {
  20419. eval 'cat <<_LTECHO_EOF
  20420. \$1
  20421. _LTECHO_EOF'
  20422. }
  20423. # Quote evaled strings.
  20424. for var in AS \
  20425. DLLTOOL \
  20426. OBJDUMP \
  20427. SHELL \
  20428. ECHO \
  20429. PATH_SEPARATOR \
  20430. SED \
  20431. GREP \
  20432. EGREP \
  20433. FGREP \
  20434. LD \
  20435. NM \
  20436. LN_S \
  20437. lt_SP2NL \
  20438. lt_NL2SP \
  20439. reload_flag \
  20440. deplibs_check_method \
  20441. file_magic_cmd \
  20442. file_magic_glob \
  20443. want_nocaseglob \
  20444. sharedlib_from_linklib_cmd \
  20445. AR \
  20446. AR_FLAGS \
  20447. archiver_list_spec \
  20448. STRIP \
  20449. RANLIB \
  20450. CC \
  20451. CFLAGS \
  20452. compiler \
  20453. lt_cv_sys_global_symbol_pipe \
  20454. lt_cv_sys_global_symbol_to_cdecl \
  20455. lt_cv_sys_global_symbol_to_c_name_address \
  20456. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20457. nm_file_list_spec \
  20458. lt_prog_compiler_no_builtin_flag \
  20459. lt_prog_compiler_pic \
  20460. lt_prog_compiler_wl \
  20461. lt_prog_compiler_static \
  20462. lt_cv_prog_compiler_c_o \
  20463. need_locks \
  20464. MANIFEST_TOOL \
  20465. DSYMUTIL \
  20466. NMEDIT \
  20467. LIPO \
  20468. OTOOL \
  20469. OTOOL64 \
  20470. shrext_cmds \
  20471. export_dynamic_flag_spec \
  20472. whole_archive_flag_spec \
  20473. compiler_needs_object \
  20474. with_gnu_ld \
  20475. allow_undefined_flag \
  20476. no_undefined_flag \
  20477. hardcode_libdir_flag_spec \
  20478. hardcode_libdir_separator \
  20479. exclude_expsyms \
  20480. include_expsyms \
  20481. file_list_spec \
  20482. variables_saved_for_relink \
  20483. libname_spec \
  20484. library_names_spec \
  20485. soname_spec \
  20486. install_override_mode \
  20487. finish_eval \
  20488. old_striplib \
  20489. striplib \
  20490. compiler_lib_search_dirs \
  20491. predep_objects \
  20492. postdep_objects \
  20493. predeps \
  20494. postdeps \
  20495. compiler_lib_search_path \
  20496. LD_CXX \
  20497. reload_flag_CXX \
  20498. compiler_CXX \
  20499. lt_prog_compiler_no_builtin_flag_CXX \
  20500. lt_prog_compiler_pic_CXX \
  20501. lt_prog_compiler_wl_CXX \
  20502. lt_prog_compiler_static_CXX \
  20503. lt_cv_prog_compiler_c_o_CXX \
  20504. export_dynamic_flag_spec_CXX \
  20505. whole_archive_flag_spec_CXX \
  20506. compiler_needs_object_CXX \
  20507. with_gnu_ld_CXX \
  20508. allow_undefined_flag_CXX \
  20509. no_undefined_flag_CXX \
  20510. hardcode_libdir_flag_spec_CXX \
  20511. hardcode_libdir_separator_CXX \
  20512. exclude_expsyms_CXX \
  20513. include_expsyms_CXX \
  20514. file_list_spec_CXX \
  20515. compiler_lib_search_dirs_CXX \
  20516. predep_objects_CXX \
  20517. postdep_objects_CXX \
  20518. predeps_CXX \
  20519. postdeps_CXX \
  20520. compiler_lib_search_path_CXX; do
  20521. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20522. *[\\\\\\\`\\"\\\$]*)
  20523. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20524. ;;
  20525. *)
  20526. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20527. ;;
  20528. esac
  20529. done
  20530. # Double-quote double-evaled strings.
  20531. for var in reload_cmds \
  20532. old_postinstall_cmds \
  20533. old_postuninstall_cmds \
  20534. old_archive_cmds \
  20535. extract_expsyms_cmds \
  20536. old_archive_from_new_cmds \
  20537. old_archive_from_expsyms_cmds \
  20538. archive_cmds \
  20539. archive_expsym_cmds \
  20540. module_cmds \
  20541. module_expsym_cmds \
  20542. export_symbols_cmds \
  20543. prelink_cmds \
  20544. postlink_cmds \
  20545. postinstall_cmds \
  20546. postuninstall_cmds \
  20547. finish_cmds \
  20548. sys_lib_search_path_spec \
  20549. sys_lib_dlsearch_path_spec \
  20550. reload_cmds_CXX \
  20551. old_archive_cmds_CXX \
  20552. old_archive_from_new_cmds_CXX \
  20553. old_archive_from_expsyms_cmds_CXX \
  20554. archive_cmds_CXX \
  20555. archive_expsym_cmds_CXX \
  20556. module_cmds_CXX \
  20557. module_expsym_cmds_CXX \
  20558. export_symbols_cmds_CXX \
  20559. prelink_cmds_CXX \
  20560. postlink_cmds_CXX; do
  20561. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20562. *[\\\\\\\`\\"\\\$]*)
  20563. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20564. ;;
  20565. *)
  20566. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20567. ;;
  20568. esac
  20569. done
  20570. ac_aux_dir='$ac_aux_dir'
  20571. xsi_shell='$xsi_shell'
  20572. lt_shell_append='$lt_shell_append'
  20573. # See if we are running on zsh, and set the options which allow our
  20574. # commands through without removal of \ escapes INIT.
  20575. if test -n "\${ZSH_VERSION+set}" ; then
  20576. setopt NO_GLOB_SUBST
  20577. fi
  20578. PACKAGE='$PACKAGE'
  20579. VERSION='$VERSION'
  20580. TIMESTAMP='$TIMESTAMP'
  20581. RM='$RM'
  20582. ofile='$ofile'
  20583. _ACEOF
  20584. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20585. # Handling of arguments.
  20586. for ac_config_target in $ac_config_targets
  20587. do
  20588. case $ac_config_target in
  20589. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20590. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20591. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20592. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20593. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20594. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20595. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20596. esac
  20597. done
  20598. # If the user did not use the arguments to specify the items to instantiate,
  20599. # then the envvar interface is used. Set only those that are not.
  20600. # We use the long form for the default assignment because of an extremely
  20601. # bizarre bug on SunOS 4.1.3.
  20602. if $ac_need_defaults; then
  20603. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20604. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20605. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20606. fi
  20607. # Have a temporary directory for convenience. Make it in the build tree
  20608. # simply because there is no reason against having it here, and in addition,
  20609. # creating and moving files from /tmp can sometimes cause problems.
  20610. # Hook for its removal unless debugging.
  20611. # Note that there is a small window in which the directory will not be cleaned:
  20612. # after its creation but before its name has been assigned to `$tmp'.
  20613. $debug ||
  20614. {
  20615. tmp= ac_tmp=
  20616. trap 'exit_status=$?
  20617. : "${ac_tmp:=$tmp}"
  20618. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20619. ' 0
  20620. trap 'as_fn_exit 1' 1 2 13 15
  20621. }
  20622. # Create a (secure) tmp directory for tmp files.
  20623. {
  20624. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20625. test -d "$tmp"
  20626. } ||
  20627. {
  20628. tmp=./conf$$-$RANDOM
  20629. (umask 077 && mkdir "$tmp")
  20630. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20631. ac_tmp=$tmp
  20632. # Set up the scripts for CONFIG_FILES section.
  20633. # No need to generate them if there are no CONFIG_FILES.
  20634. # This happens for instance with `./config.status config.h'.
  20635. if test -n "$CONFIG_FILES"; then
  20636. ac_cr=`echo X | tr X '\015'`
  20637. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20638. # But we know of no other shell where ac_cr would be empty at this
  20639. # point, so we can use a bashism as a fallback.
  20640. if test "x$ac_cr" = x; then
  20641. eval ac_cr=\$\'\\r\'
  20642. fi
  20643. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20644. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20645. ac_cs_awk_cr='\\r'
  20646. else
  20647. ac_cs_awk_cr=$ac_cr
  20648. fi
  20649. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20650. _ACEOF
  20651. {
  20652. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20653. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20654. echo "_ACEOF"
  20655. } >conf$$subs.sh ||
  20656. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20657. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20658. ac_delim='%!_!# '
  20659. for ac_last_try in false false false false false :; do
  20660. . ./conf$$subs.sh ||
  20661. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20662. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20663. if test $ac_delim_n = $ac_delim_num; then
  20664. break
  20665. elif $ac_last_try; then
  20666. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20667. else
  20668. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20669. fi
  20670. done
  20671. rm -f conf$$subs.sh
  20672. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20673. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20674. _ACEOF
  20675. sed -n '
  20676. h
  20677. s/^/S["/; s/!.*/"]=/
  20678. p
  20679. g
  20680. s/^[^!]*!//
  20681. :repl
  20682. t repl
  20683. s/'"$ac_delim"'$//
  20684. t delim
  20685. :nl
  20686. h
  20687. s/\(.\{148\}\)..*/\1/
  20688. t more1
  20689. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20690. p
  20691. n
  20692. b repl
  20693. :more1
  20694. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20695. p
  20696. g
  20697. s/.\{148\}//
  20698. t nl
  20699. :delim
  20700. h
  20701. s/\(.\{148\}\)..*/\1/
  20702. t more2
  20703. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20704. p
  20705. b
  20706. :more2
  20707. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20708. p
  20709. g
  20710. s/.\{148\}//
  20711. t delim
  20712. ' <conf$$subs.awk | sed '
  20713. /^[^""]/{
  20714. N
  20715. s/\n//
  20716. }
  20717. ' >>$CONFIG_STATUS || ac_write_fail=1
  20718. rm -f conf$$subs.awk
  20719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20720. _ACAWK
  20721. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20722. for (key in S) S_is_set[key] = 1
  20723. FS = ""
  20724. }
  20725. {
  20726. line = $ 0
  20727. nfields = split(line, field, "@")
  20728. substed = 0
  20729. len = length(field[1])
  20730. for (i = 2; i < nfields; i++) {
  20731. key = field[i]
  20732. keylen = length(key)
  20733. if (S_is_set[key]) {
  20734. value = S[key]
  20735. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20736. len += length(value) + length(field[++i])
  20737. substed = 1
  20738. } else
  20739. len += 1 + keylen
  20740. }
  20741. print line
  20742. }
  20743. _ACAWK
  20744. _ACEOF
  20745. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20746. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20747. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20748. else
  20749. cat
  20750. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20751. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20752. _ACEOF
  20753. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20754. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20755. # trailing colons and then remove the whole line if VPATH becomes empty
  20756. # (actually we leave an empty line to preserve line numbers).
  20757. if test "x$srcdir" = x.; then
  20758. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20759. h
  20760. s///
  20761. s/^/:/
  20762. s/[ ]*$/:/
  20763. s/:\$(srcdir):/:/g
  20764. s/:\${srcdir}:/:/g
  20765. s/:@srcdir@:/:/g
  20766. s/^:*//
  20767. s/:*$//
  20768. x
  20769. s/\(=[ ]*\).*/\1/
  20770. G
  20771. s/\n//
  20772. s/^[^=]*=[ ]*$//
  20773. }'
  20774. fi
  20775. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20776. fi # test -n "$CONFIG_FILES"
  20777. # Set up the scripts for CONFIG_HEADERS section.
  20778. # No need to generate them if there are no CONFIG_HEADERS.
  20779. # This happens for instance with `./config.status Makefile'.
  20780. if test -n "$CONFIG_HEADERS"; then
  20781. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20782. BEGIN {
  20783. _ACEOF
  20784. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20785. # here-document in config.status, that substitutes the proper values into
  20786. # config.h.in to produce config.h.
  20787. # Create a delimiter string that does not exist in confdefs.h, to ease
  20788. # handling of long lines.
  20789. ac_delim='%!_!# '
  20790. for ac_last_try in false false :; do
  20791. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20792. if test -z "$ac_tt"; then
  20793. break
  20794. elif $ac_last_try; then
  20795. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20796. else
  20797. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20798. fi
  20799. done
  20800. # For the awk script, D is an array of macro values keyed by name,
  20801. # likewise P contains macro parameters if any. Preserve backslash
  20802. # newline sequences.
  20803. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20804. sed -n '
  20805. s/.\{148\}/&'"$ac_delim"'/g
  20806. t rset
  20807. :rset
  20808. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20809. t def
  20810. d
  20811. :def
  20812. s/\\$//
  20813. t bsnl
  20814. s/["\\]/\\&/g
  20815. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20816. D["\1"]=" \3"/p
  20817. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20818. d
  20819. :bsnl
  20820. s/["\\]/\\&/g
  20821. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20822. D["\1"]=" \3\\\\\\n"\\/p
  20823. t cont
  20824. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20825. t cont
  20826. d
  20827. :cont
  20828. n
  20829. s/.\{148\}/&'"$ac_delim"'/g
  20830. t clear
  20831. :clear
  20832. s/\\$//
  20833. t bsnlc
  20834. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20835. d
  20836. :bsnlc
  20837. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20838. b cont
  20839. ' <confdefs.h | sed '
  20840. s/'"$ac_delim"'/"\\\
  20841. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20842. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20843. for (key in D) D_is_set[key] = 1
  20844. FS = ""
  20845. }
  20846. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20847. line = \$ 0
  20848. split(line, arg, " ")
  20849. if (arg[1] == "#") {
  20850. defundef = arg[2]
  20851. mac1 = arg[3]
  20852. } else {
  20853. defundef = substr(arg[1], 2)
  20854. mac1 = arg[2]
  20855. }
  20856. split(mac1, mac2, "(") #)
  20857. macro = mac2[1]
  20858. prefix = substr(line, 1, index(line, defundef) - 1)
  20859. if (D_is_set[macro]) {
  20860. # Preserve the white space surrounding the "#".
  20861. print prefix "define", macro P[macro] D[macro]
  20862. next
  20863. } else {
  20864. # Replace #undef with comments. This is necessary, for example,
  20865. # in the case of _POSIX_SOURCE, which is predefined and required
  20866. # on some systems where configure will not decide to define it.
  20867. if (defundef == "undef") {
  20868. print "/*", prefix defundef, macro, "*/"
  20869. next
  20870. }
  20871. }
  20872. }
  20873. { print }
  20874. _ACAWK
  20875. _ACEOF
  20876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20877. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20878. fi # test -n "$CONFIG_HEADERS"
  20879. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20880. shift
  20881. for ac_tag
  20882. do
  20883. case $ac_tag in
  20884. :[FHLC]) ac_mode=$ac_tag; continue;;
  20885. esac
  20886. case $ac_mode$ac_tag in
  20887. :[FHL]*:*);;
  20888. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20889. :[FH]-) ac_tag=-:-;;
  20890. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20891. esac
  20892. ac_save_IFS=$IFS
  20893. IFS=:
  20894. set x $ac_tag
  20895. IFS=$ac_save_IFS
  20896. shift
  20897. ac_file=$1
  20898. shift
  20899. case $ac_mode in
  20900. :L) ac_source=$1;;
  20901. :[FH])
  20902. ac_file_inputs=
  20903. for ac_f
  20904. do
  20905. case $ac_f in
  20906. -) ac_f="$ac_tmp/stdin";;
  20907. *) # Look for the file first in the build tree, then in the source tree
  20908. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20909. # because $ac_f cannot contain `:'.
  20910. test -f "$ac_f" ||
  20911. case $ac_f in
  20912. [\\/$]*) false;;
  20913. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20914. esac ||
  20915. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20916. esac
  20917. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20918. as_fn_append ac_file_inputs " '$ac_f'"
  20919. done
  20920. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20921. # use $as_me), people would be surprised to read:
  20922. # /* config.h. Generated by config.status. */
  20923. configure_input='Generated from '`
  20924. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20925. `' by configure.'
  20926. if test x"$ac_file" != x-; then
  20927. configure_input="$ac_file. $configure_input"
  20928. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20929. $as_echo "$as_me: creating $ac_file" >&6;}
  20930. fi
  20931. # Neutralize special characters interpreted by sed in replacement strings.
  20932. case $configure_input in #(
  20933. *\&* | *\|* | *\\* )
  20934. ac_sed_conf_input=`$as_echo "$configure_input" |
  20935. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20936. *) ac_sed_conf_input=$configure_input;;
  20937. esac
  20938. case $ac_tag in
  20939. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20940. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20941. esac
  20942. ;;
  20943. esac
  20944. ac_dir=`$as_dirname -- "$ac_file" ||
  20945. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20946. X"$ac_file" : 'X\(//\)[^/]' \| \
  20947. X"$ac_file" : 'X\(//\)$' \| \
  20948. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20949. $as_echo X"$ac_file" |
  20950. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20951. s//\1/
  20952. q
  20953. }
  20954. /^X\(\/\/\)[^/].*/{
  20955. s//\1/
  20956. q
  20957. }
  20958. /^X\(\/\/\)$/{
  20959. s//\1/
  20960. q
  20961. }
  20962. /^X\(\/\).*/{
  20963. s//\1/
  20964. q
  20965. }
  20966. s/.*/./; q'`
  20967. as_dir="$ac_dir"; as_fn_mkdir_p
  20968. ac_builddir=.
  20969. case "$ac_dir" in
  20970. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20971. *)
  20972. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20973. # A ".." for each directory in $ac_dir_suffix.
  20974. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20975. case $ac_top_builddir_sub in
  20976. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20977. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20978. esac ;;
  20979. esac
  20980. ac_abs_top_builddir=$ac_pwd
  20981. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20982. # for backward compatibility:
  20983. ac_top_builddir=$ac_top_build_prefix
  20984. case $srcdir in
  20985. .) # We are building in place.
  20986. ac_srcdir=.
  20987. ac_top_srcdir=$ac_top_builddir_sub
  20988. ac_abs_top_srcdir=$ac_pwd ;;
  20989. [\\/]* | ?:[\\/]* ) # Absolute name.
  20990. ac_srcdir=$srcdir$ac_dir_suffix;
  20991. ac_top_srcdir=$srcdir
  20992. ac_abs_top_srcdir=$srcdir ;;
  20993. *) # Relative name.
  20994. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20995. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20996. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20997. esac
  20998. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20999. case $ac_mode in
  21000. :F)
  21001. #
  21002. # CONFIG_FILE
  21003. #
  21004. case $INSTALL in
  21005. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21006. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21007. esac
  21008. _ACEOF
  21009. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21010. # If the template does not know about datarootdir, expand it.
  21011. # FIXME: This hack should be removed a few years after 2.60.
  21012. ac_datarootdir_hack=; ac_datarootdir_seen=
  21013. ac_sed_dataroot='
  21014. /datarootdir/ {
  21015. p
  21016. q
  21017. }
  21018. /@datadir@/p
  21019. /@docdir@/p
  21020. /@infodir@/p
  21021. /@localedir@/p
  21022. /@mandir@/p'
  21023. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21024. *datarootdir*) ac_datarootdir_seen=yes;;
  21025. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21027. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21028. _ACEOF
  21029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21030. ac_datarootdir_hack='
  21031. s&@datadir@&$datadir&g
  21032. s&@docdir@&$docdir&g
  21033. s&@infodir@&$infodir&g
  21034. s&@localedir@&$localedir&g
  21035. s&@mandir@&$mandir&g
  21036. s&\\\${datarootdir}&$datarootdir&g' ;;
  21037. esac
  21038. _ACEOF
  21039. # Neutralize VPATH when `$srcdir' = `.'.
  21040. # Shell code in configure.ac might set extrasub.
  21041. # FIXME: do we really want to maintain this feature?
  21042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21043. ac_sed_extra="$ac_vpsub
  21044. $extrasub
  21045. _ACEOF
  21046. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21047. :t
  21048. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21049. s|@configure_input@|$ac_sed_conf_input|;t t
  21050. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21051. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21052. s&@srcdir@&$ac_srcdir&;t t
  21053. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21054. s&@top_srcdir@&$ac_top_srcdir&;t t
  21055. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21056. s&@builddir@&$ac_builddir&;t t
  21057. s&@abs_builddir@&$ac_abs_builddir&;t t
  21058. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21059. s&@INSTALL@&$ac_INSTALL&;t t
  21060. $ac_datarootdir_hack
  21061. "
  21062. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21063. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21064. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21065. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21066. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21067. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21069. which seems to be undefined. Please make sure it is defined" >&5
  21070. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21071. which seems to be undefined. Please make sure it is defined" >&2;}
  21072. rm -f "$ac_tmp/stdin"
  21073. case $ac_file in
  21074. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21075. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21076. esac \
  21077. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21078. ;;
  21079. :H)
  21080. #
  21081. # CONFIG_HEADER
  21082. #
  21083. if test x"$ac_file" != x-; then
  21084. {
  21085. $as_echo "/* $configure_input */" \
  21086. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21087. } >"$ac_tmp/config.h" \
  21088. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21089. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21090. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21091. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21092. else
  21093. rm -f "$ac_file"
  21094. mv "$ac_tmp/config.h" "$ac_file" \
  21095. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21096. fi
  21097. else
  21098. $as_echo "/* $configure_input */" \
  21099. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21100. || as_fn_error $? "could not create -" "$LINENO" 5
  21101. fi
  21102. ;;
  21103. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21104. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21105. ;;
  21106. esac
  21107. case $ac_file$ac_mode in
  21108. "libtool":C)
  21109. # See if we are running on zsh, and set the options which allow our
  21110. # commands through without removal of \ escapes.
  21111. if test -n "${ZSH_VERSION+set}" ; then
  21112. setopt NO_GLOB_SUBST
  21113. fi
  21114. cfgfile="${ofile}T"
  21115. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21116. $RM "$cfgfile"
  21117. cat <<_LT_EOF >> "$cfgfile"
  21118. #! $SHELL
  21119. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21120. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21121. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21122. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21123. #
  21124. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21125. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21126. # Foundation, Inc.
  21127. # Written by Gordon Matzigkeit, 1996
  21128. #
  21129. # This file is part of GNU Libtool.
  21130. #
  21131. # GNU Libtool is free software; you can redistribute it and/or
  21132. # modify it under the terms of the GNU General Public License as
  21133. # published by the Free Software Foundation; either version 2 of
  21134. # the License, or (at your option) any later version.
  21135. #
  21136. # As a special exception to the GNU General Public License,
  21137. # if you distribute this file as part of a program or library that
  21138. # is built using GNU Libtool, you may include this file under the
  21139. # same distribution terms that you use for the rest of that program.
  21140. #
  21141. # GNU Libtool is distributed in the hope that it will be useful,
  21142. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21143. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21144. # GNU General Public License for more details.
  21145. #
  21146. # You should have received a copy of the GNU General Public License
  21147. # along with GNU Libtool; see the file COPYING. If not, a copy
  21148. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21149. # obtained by writing to the Free Software Foundation, Inc.,
  21150. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21151. # The names of the tagged configurations supported by this script.
  21152. available_tags="CXX "
  21153. # ### BEGIN LIBTOOL CONFIG
  21154. # Which release of libtool.m4 was used?
  21155. macro_version=$macro_version
  21156. macro_revision=$macro_revision
  21157. # Assembler program.
  21158. AS=$lt_AS
  21159. # DLL creation program.
  21160. DLLTOOL=$lt_DLLTOOL
  21161. # Object dumper program.
  21162. OBJDUMP=$lt_OBJDUMP
  21163. # Whether or not to build shared libraries.
  21164. build_libtool_libs=$enable_shared
  21165. # Whether or not to build static libraries.
  21166. build_old_libs=$enable_static
  21167. # What type of objects to build.
  21168. pic_mode=$pic_mode
  21169. # Whether or not to optimize for fast installation.
  21170. fast_install=$enable_fast_install
  21171. # Shell to use when invoking shell scripts.
  21172. SHELL=$lt_SHELL
  21173. # An echo program that protects backslashes.
  21174. ECHO=$lt_ECHO
  21175. # The PATH separator for the build system.
  21176. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21177. # The host system.
  21178. host_alias=$host_alias
  21179. host=$host
  21180. host_os=$host_os
  21181. # The build system.
  21182. build_alias=$build_alias
  21183. build=$build
  21184. build_os=$build_os
  21185. # A sed program that does not truncate output.
  21186. SED=$lt_SED
  21187. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21188. Xsed="\$SED -e 1s/^X//"
  21189. # A grep program that handles long lines.
  21190. GREP=$lt_GREP
  21191. # An ERE matcher.
  21192. EGREP=$lt_EGREP
  21193. # A literal string matcher.
  21194. FGREP=$lt_FGREP
  21195. # A BSD- or MS-compatible name lister.
  21196. NM=$lt_NM
  21197. # Whether we need soft or hard links.
  21198. LN_S=$lt_LN_S
  21199. # What is the maximum length of a command?
  21200. max_cmd_len=$max_cmd_len
  21201. # Object file suffix (normally "o").
  21202. objext=$ac_objext
  21203. # Executable file suffix (normally "").
  21204. exeext=$exeext
  21205. # whether the shell understands "unset".
  21206. lt_unset=$lt_unset
  21207. # turn spaces into newlines.
  21208. SP2NL=$lt_lt_SP2NL
  21209. # turn newlines into spaces.
  21210. NL2SP=$lt_lt_NL2SP
  21211. # convert \$build file names to \$host format.
  21212. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21213. # convert \$build files to toolchain format.
  21214. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21215. # Method to check whether dependent libraries are shared objects.
  21216. deplibs_check_method=$lt_deplibs_check_method
  21217. # Command to use when deplibs_check_method = "file_magic".
  21218. file_magic_cmd=$lt_file_magic_cmd
  21219. # How to find potential files when deplibs_check_method = "file_magic".
  21220. file_magic_glob=$lt_file_magic_glob
  21221. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21222. want_nocaseglob=$lt_want_nocaseglob
  21223. # Command to associate shared and link libraries.
  21224. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21225. # The archiver.
  21226. AR=$lt_AR
  21227. # Flags to create an archive.
  21228. AR_FLAGS=$lt_AR_FLAGS
  21229. # How to feed a file listing to the archiver.
  21230. archiver_list_spec=$lt_archiver_list_spec
  21231. # A symbol stripping program.
  21232. STRIP=$lt_STRIP
  21233. # Commands used to install an old-style archive.
  21234. RANLIB=$lt_RANLIB
  21235. old_postinstall_cmds=$lt_old_postinstall_cmds
  21236. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21237. # Whether to use a lock for old archive extraction.
  21238. lock_old_archive_extraction=$lock_old_archive_extraction
  21239. # A C compiler.
  21240. LTCC=$lt_CC
  21241. # LTCC compiler flags.
  21242. LTCFLAGS=$lt_CFLAGS
  21243. # Take the output of nm and produce a listing of raw symbols and C names.
  21244. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21245. # Transform the output of nm in a proper C declaration.
  21246. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21247. # Transform the output of nm in a C name address pair.
  21248. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21249. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21250. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21251. # Specify filename containing input files for \$NM.
  21252. nm_file_list_spec=$lt_nm_file_list_spec
  21253. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21254. lt_sysroot=$lt_sysroot
  21255. # The name of the directory that contains temporary libtool files.
  21256. objdir=$objdir
  21257. # Used to examine libraries when file_magic_cmd begins with "file".
  21258. MAGIC_CMD=$MAGIC_CMD
  21259. # Must we lock files when doing compilation?
  21260. need_locks=$lt_need_locks
  21261. # Manifest tool.
  21262. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21263. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21264. DSYMUTIL=$lt_DSYMUTIL
  21265. # Tool to change global to local symbols on Mac OS X.
  21266. NMEDIT=$lt_NMEDIT
  21267. # Tool to manipulate fat objects and archives on Mac OS X.
  21268. LIPO=$lt_LIPO
  21269. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21270. OTOOL=$lt_OTOOL
  21271. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21272. OTOOL64=$lt_OTOOL64
  21273. # Old archive suffix (normally "a").
  21274. libext=$libext
  21275. # Shared library suffix (normally ".so").
  21276. shrext_cmds=$lt_shrext_cmds
  21277. # The commands to extract the exported symbol list from a shared archive.
  21278. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21279. # Variables whose values should be saved in libtool wrapper scripts and
  21280. # restored at link time.
  21281. variables_saved_for_relink=$lt_variables_saved_for_relink
  21282. # Do we need the "lib" prefix for modules?
  21283. need_lib_prefix=$need_lib_prefix
  21284. # Do we need a version for libraries?
  21285. need_version=$need_version
  21286. # Library versioning type.
  21287. version_type=$version_type
  21288. # Shared library runtime path variable.
  21289. runpath_var=$runpath_var
  21290. # Shared library path variable.
  21291. shlibpath_var=$shlibpath_var
  21292. # Is shlibpath searched before the hard-coded library search path?
  21293. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21294. # Format of library name prefix.
  21295. libname_spec=$lt_libname_spec
  21296. # List of archive names. First name is the real one, the rest are links.
  21297. # The last name is the one that the linker finds with -lNAME
  21298. library_names_spec=$lt_library_names_spec
  21299. # The coded name of the library, if different from the real name.
  21300. soname_spec=$lt_soname_spec
  21301. # Permission mode override for installation of shared libraries.
  21302. install_override_mode=$lt_install_override_mode
  21303. # Command to use after installation of a shared archive.
  21304. postinstall_cmds=$lt_postinstall_cmds
  21305. # Command to use after uninstallation of a shared archive.
  21306. postuninstall_cmds=$lt_postuninstall_cmds
  21307. # Commands used to finish a libtool library installation in a directory.
  21308. finish_cmds=$lt_finish_cmds
  21309. # As "finish_cmds", except a single script fragment to be evaled but
  21310. # not shown.
  21311. finish_eval=$lt_finish_eval
  21312. # Whether we should hardcode library paths into libraries.
  21313. hardcode_into_libs=$hardcode_into_libs
  21314. # Compile-time system search path for libraries.
  21315. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21316. # Run-time system search path for libraries.
  21317. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21318. # Whether dlopen is supported.
  21319. dlopen_support=$enable_dlopen
  21320. # Whether dlopen of programs is supported.
  21321. dlopen_self=$enable_dlopen_self
  21322. # Whether dlopen of statically linked programs is supported.
  21323. dlopen_self_static=$enable_dlopen_self_static
  21324. # Commands to strip libraries.
  21325. old_striplib=$lt_old_striplib
  21326. striplib=$lt_striplib
  21327. # The linker used to build libraries.
  21328. LD=$lt_LD
  21329. # How to create reloadable object files.
  21330. reload_flag=$lt_reload_flag
  21331. reload_cmds=$lt_reload_cmds
  21332. # Commands used to build an old-style archive.
  21333. old_archive_cmds=$lt_old_archive_cmds
  21334. # A language specific compiler.
  21335. CC=$lt_compiler
  21336. # Is the compiler the GNU compiler?
  21337. with_gcc=$GCC
  21338. # Compiler flag to turn off builtin functions.
  21339. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21340. # Additional compiler flags for building library objects.
  21341. pic_flag=$lt_lt_prog_compiler_pic
  21342. # How to pass a linker flag through the compiler.
  21343. wl=$lt_lt_prog_compiler_wl
  21344. # Compiler flag to prevent dynamic linking.
  21345. link_static_flag=$lt_lt_prog_compiler_static
  21346. # Does compiler simultaneously support -c and -o options?
  21347. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21348. # Whether or not to add -lc for building shared libraries.
  21349. build_libtool_need_lc=$archive_cmds_need_lc
  21350. # Whether or not to disallow shared libs when runtime libs are static.
  21351. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21352. # Compiler flag to allow reflexive dlopens.
  21353. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21354. # Compiler flag to generate shared objects directly from archives.
  21355. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21356. # Whether the compiler copes with passing no objects directly.
  21357. compiler_needs_object=$lt_compiler_needs_object
  21358. # Create an old-style archive from a shared archive.
  21359. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21360. # Create a temporary old-style archive to link instead of a shared archive.
  21361. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21362. # Commands used to build a shared archive.
  21363. archive_cmds=$lt_archive_cmds
  21364. archive_expsym_cmds=$lt_archive_expsym_cmds
  21365. # Commands used to build a loadable module if different from building
  21366. # a shared archive.
  21367. module_cmds=$lt_module_cmds
  21368. module_expsym_cmds=$lt_module_expsym_cmds
  21369. # Whether we are building with GNU ld or not.
  21370. with_gnu_ld=$lt_with_gnu_ld
  21371. # Flag that allows shared libraries with undefined symbols to be built.
  21372. allow_undefined_flag=$lt_allow_undefined_flag
  21373. # Flag that enforces no undefined symbols.
  21374. no_undefined_flag=$lt_no_undefined_flag
  21375. # Flag to hardcode \$libdir into a binary during linking.
  21376. # This must work even if \$libdir does not exist
  21377. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21378. # Whether we need a single "-rpath" flag with a separated argument.
  21379. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21380. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21381. # DIR into the resulting binary.
  21382. hardcode_direct=$hardcode_direct
  21383. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21384. # DIR into the resulting binary and the resulting library dependency is
  21385. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21386. # library is relocated.
  21387. hardcode_direct_absolute=$hardcode_direct_absolute
  21388. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21389. # into the resulting binary.
  21390. hardcode_minus_L=$hardcode_minus_L
  21391. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21392. # into the resulting binary.
  21393. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21394. # Set to "yes" if building a shared library automatically hardcodes DIR
  21395. # into the library and all subsequent libraries and executables linked
  21396. # against it.
  21397. hardcode_automatic=$hardcode_automatic
  21398. # Set to yes if linker adds runtime paths of dependent libraries
  21399. # to runtime path list.
  21400. inherit_rpath=$inherit_rpath
  21401. # Whether libtool must link a program against all its dependency libraries.
  21402. link_all_deplibs=$link_all_deplibs
  21403. # Set to "yes" if exported symbols are required.
  21404. always_export_symbols=$always_export_symbols
  21405. # The commands to list exported symbols.
  21406. export_symbols_cmds=$lt_export_symbols_cmds
  21407. # Symbols that should not be listed in the preloaded symbols.
  21408. exclude_expsyms=$lt_exclude_expsyms
  21409. # Symbols that must always be exported.
  21410. include_expsyms=$lt_include_expsyms
  21411. # Commands necessary for linking programs (against libraries) with templates.
  21412. prelink_cmds=$lt_prelink_cmds
  21413. # Commands necessary for finishing linking programs.
  21414. postlink_cmds=$lt_postlink_cmds
  21415. # Specify filename containing input files.
  21416. file_list_spec=$lt_file_list_spec
  21417. # How to hardcode a shared library path into an executable.
  21418. hardcode_action=$hardcode_action
  21419. # The directories searched by this compiler when creating a shared library.
  21420. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21421. # Dependencies to place before and after the objects being linked to
  21422. # create a shared library.
  21423. predep_objects=$lt_predep_objects
  21424. postdep_objects=$lt_postdep_objects
  21425. predeps=$lt_predeps
  21426. postdeps=$lt_postdeps
  21427. # The library search path used internally by the compiler when linking
  21428. # a shared library.
  21429. compiler_lib_search_path=$lt_compiler_lib_search_path
  21430. # ### END LIBTOOL CONFIG
  21431. _LT_EOF
  21432. case $host_os in
  21433. aix3*)
  21434. cat <<\_LT_EOF >> "$cfgfile"
  21435. # AIX sometimes has problems with the GCC collect2 program. For some
  21436. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21437. # vanish in a puff of smoke.
  21438. if test "X${COLLECT_NAMES+set}" != Xset; then
  21439. COLLECT_NAMES=
  21440. export COLLECT_NAMES
  21441. fi
  21442. _LT_EOF
  21443. ;;
  21444. esac
  21445. ltmain="$ac_aux_dir/ltmain.sh"
  21446. # We use sed instead of cat because bash on DJGPP gets confused if
  21447. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21448. # text mode, it properly converts lines to CR/LF. This bash problem
  21449. # is reportedly fixed, but why not run on old versions too?
  21450. sed '$q' "$ltmain" >> "$cfgfile" \
  21451. || (rm -f "$cfgfile"; exit 1)
  21452. if test x"$xsi_shell" = xyes; then
  21453. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21454. func_dirname ()\
  21455. {\
  21456. \ case ${1} in\
  21457. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21458. \ * ) func_dirname_result="${3}" ;;\
  21459. \ esac\
  21460. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21461. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21462. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21463. test 0 -eq $? || _lt_function_replace_fail=:
  21464. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21465. func_basename ()\
  21466. {\
  21467. \ func_basename_result="${1##*/}"\
  21468. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21469. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21470. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21471. test 0 -eq $? || _lt_function_replace_fail=:
  21472. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21473. func_dirname_and_basename ()\
  21474. {\
  21475. \ case ${1} in\
  21476. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21477. \ * ) func_dirname_result="${3}" ;;\
  21478. \ esac\
  21479. \ func_basename_result="${1##*/}"\
  21480. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21481. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21482. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21483. test 0 -eq $? || _lt_function_replace_fail=:
  21484. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21485. func_stripname ()\
  21486. {\
  21487. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21488. \ # positional parameters, so assign one to ordinary parameter first.\
  21489. \ func_stripname_result=${3}\
  21490. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21491. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21492. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21493. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21494. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21495. test 0 -eq $? || _lt_function_replace_fail=:
  21496. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21497. func_split_long_opt ()\
  21498. {\
  21499. \ func_split_long_opt_name=${1%%=*}\
  21500. \ func_split_long_opt_arg=${1#*=}\
  21501. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21502. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21503. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21504. test 0 -eq $? || _lt_function_replace_fail=:
  21505. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21506. func_split_short_opt ()\
  21507. {\
  21508. \ func_split_short_opt_arg=${1#??}\
  21509. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21510. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21511. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21512. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21513. test 0 -eq $? || _lt_function_replace_fail=:
  21514. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21515. func_lo2o ()\
  21516. {\
  21517. \ case ${1} in\
  21518. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21519. \ *) func_lo2o_result=${1} ;;\
  21520. \ esac\
  21521. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21522. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21523. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21524. test 0 -eq $? || _lt_function_replace_fail=:
  21525. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21526. func_xform ()\
  21527. {\
  21528. func_xform_result=${1%.*}.lo\
  21529. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21530. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21531. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21532. test 0 -eq $? || _lt_function_replace_fail=:
  21533. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21534. func_arith ()\
  21535. {\
  21536. func_arith_result=$(( $* ))\
  21537. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21538. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21539. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21540. test 0 -eq $? || _lt_function_replace_fail=:
  21541. sed -e '/^func_len ()$/,/^} # func_len /c\
  21542. func_len ()\
  21543. {\
  21544. func_len_result=${#1}\
  21545. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21546. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21547. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21548. test 0 -eq $? || _lt_function_replace_fail=:
  21549. fi
  21550. if test x"$lt_shell_append" = xyes; then
  21551. sed -e '/^func_append ()$/,/^} # func_append /c\
  21552. func_append ()\
  21553. {\
  21554. eval "${1}+=\\${2}"\
  21555. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21556. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21557. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21558. test 0 -eq $? || _lt_function_replace_fail=:
  21559. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21560. func_append_quoted ()\
  21561. {\
  21562. \ func_quote_for_eval "${2}"\
  21563. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21564. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21565. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21566. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21567. test 0 -eq $? || _lt_function_replace_fail=:
  21568. # Save a `func_append' function call where possible by direct use of '+='
  21569. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21570. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21571. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21572. test 0 -eq $? || _lt_function_replace_fail=:
  21573. else
  21574. # Save a `func_append' function call even when '+=' is not available
  21575. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21576. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21577. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21578. test 0 -eq $? || _lt_function_replace_fail=:
  21579. fi
  21580. if test x"$_lt_function_replace_fail" = x":"; then
  21581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21582. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21583. fi
  21584. mv -f "$cfgfile" "$ofile" ||
  21585. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21586. chmod +x "$ofile"
  21587. cat <<_LT_EOF >> "$ofile"
  21588. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21589. # The linker used to build libraries.
  21590. LD=$lt_LD_CXX
  21591. # How to create reloadable object files.
  21592. reload_flag=$lt_reload_flag_CXX
  21593. reload_cmds=$lt_reload_cmds_CXX
  21594. # Commands used to build an old-style archive.
  21595. old_archive_cmds=$lt_old_archive_cmds_CXX
  21596. # A language specific compiler.
  21597. CC=$lt_compiler_CXX
  21598. # Is the compiler the GNU compiler?
  21599. with_gcc=$GCC_CXX
  21600. # Compiler flag to turn off builtin functions.
  21601. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21602. # Additional compiler flags for building library objects.
  21603. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21604. # How to pass a linker flag through the compiler.
  21605. wl=$lt_lt_prog_compiler_wl_CXX
  21606. # Compiler flag to prevent dynamic linking.
  21607. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21608. # Does compiler simultaneously support -c and -o options?
  21609. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21610. # Whether or not to add -lc for building shared libraries.
  21611. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21612. # Whether or not to disallow shared libs when runtime libs are static.
  21613. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21614. # Compiler flag to allow reflexive dlopens.
  21615. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21616. # Compiler flag to generate shared objects directly from archives.
  21617. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21618. # Whether the compiler copes with passing no objects directly.
  21619. compiler_needs_object=$lt_compiler_needs_object_CXX
  21620. # Create an old-style archive from a shared archive.
  21621. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21622. # Create a temporary old-style archive to link instead of a shared archive.
  21623. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21624. # Commands used to build a shared archive.
  21625. archive_cmds=$lt_archive_cmds_CXX
  21626. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21627. # Commands used to build a loadable module if different from building
  21628. # a shared archive.
  21629. module_cmds=$lt_module_cmds_CXX
  21630. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21631. # Whether we are building with GNU ld or not.
  21632. with_gnu_ld=$lt_with_gnu_ld_CXX
  21633. # Flag that allows shared libraries with undefined symbols to be built.
  21634. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21635. # Flag that enforces no undefined symbols.
  21636. no_undefined_flag=$lt_no_undefined_flag_CXX
  21637. # Flag to hardcode \$libdir into a binary during linking.
  21638. # This must work even if \$libdir does not exist
  21639. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21640. # Whether we need a single "-rpath" flag with a separated argument.
  21641. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21642. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21643. # DIR into the resulting binary.
  21644. hardcode_direct=$hardcode_direct_CXX
  21645. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21646. # DIR into the resulting binary and the resulting library dependency is
  21647. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21648. # library is relocated.
  21649. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21650. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21651. # into the resulting binary.
  21652. hardcode_minus_L=$hardcode_minus_L_CXX
  21653. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21654. # into the resulting binary.
  21655. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21656. # Set to "yes" if building a shared library automatically hardcodes DIR
  21657. # into the library and all subsequent libraries and executables linked
  21658. # against it.
  21659. hardcode_automatic=$hardcode_automatic_CXX
  21660. # Set to yes if linker adds runtime paths of dependent libraries
  21661. # to runtime path list.
  21662. inherit_rpath=$inherit_rpath_CXX
  21663. # Whether libtool must link a program against all its dependency libraries.
  21664. link_all_deplibs=$link_all_deplibs_CXX
  21665. # Set to "yes" if exported symbols are required.
  21666. always_export_symbols=$always_export_symbols_CXX
  21667. # The commands to list exported symbols.
  21668. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21669. # Symbols that should not be listed in the preloaded symbols.
  21670. exclude_expsyms=$lt_exclude_expsyms_CXX
  21671. # Symbols that must always be exported.
  21672. include_expsyms=$lt_include_expsyms_CXX
  21673. # Commands necessary for linking programs (against libraries) with templates.
  21674. prelink_cmds=$lt_prelink_cmds_CXX
  21675. # Commands necessary for finishing linking programs.
  21676. postlink_cmds=$lt_postlink_cmds_CXX
  21677. # Specify filename containing input files.
  21678. file_list_spec=$lt_file_list_spec_CXX
  21679. # How to hardcode a shared library path into an executable.
  21680. hardcode_action=$hardcode_action_CXX
  21681. # The directories searched by this compiler when creating a shared library.
  21682. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21683. # Dependencies to place before and after the objects being linked to
  21684. # create a shared library.
  21685. predep_objects=$lt_predep_objects_CXX
  21686. postdep_objects=$lt_postdep_objects_CXX
  21687. predeps=$lt_predeps_CXX
  21688. postdeps=$lt_postdeps_CXX
  21689. # The library search path used internally by the compiler when linking
  21690. # a shared library.
  21691. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21692. # ### END LIBTOOL TAG CONFIG: CXX
  21693. _LT_EOF
  21694. ;;
  21695. esac
  21696. done # for ac_tag
  21697. as_fn_exit 0
  21698. _ACEOF
  21699. ac_clean_files=$ac_clean_files_save
  21700. test $ac_write_fail = 0 ||
  21701. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21702. # configure is writing to config.log, and then calls config.status.
  21703. # config.status does its own redirection, appending to config.log.
  21704. # Unfortunately, on DOS this fails, as config.log is still kept open
  21705. # by configure, so config.status won't be able to write to it; its
  21706. # output is simply discarded. So we exec the FD to /dev/null,
  21707. # effectively closing config.log, so it can be properly (re)opened and
  21708. # appended to by config.status. When coming back to configure, we
  21709. # need to make the FD available again.
  21710. if test "$no_create" != yes; then
  21711. ac_cs_success=:
  21712. ac_config_status_args=
  21713. test "$silent" = yes &&
  21714. ac_config_status_args="$ac_config_status_args --quiet"
  21715. exec 5>/dev/null
  21716. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21717. exec 5>>config.log
  21718. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21719. # would make configure fail if this is the last instruction.
  21720. $ac_cs_success || as_fn_exit 1
  21721. fi
  21722. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21724. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21725. fi
  21726. chmod a+x sdl2-config