configure 743 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453
  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_wayland_qt_touch
  770. enable_video_x11
  771. with_x
  772. enable_x11_shared
  773. enable_video_x11_xcursor
  774. enable_video_x11_xinerama
  775. enable_video_x11_xinput
  776. enable_video_x11_xrandr
  777. enable_video_x11_scrnsaver
  778. enable_video_x11_xshape
  779. enable_video_x11_vm
  780. enable_video_cocoa
  781. enable_video_directfb
  782. enable_directfb_shared
  783. enable_fusionsound
  784. enable_fusionsound_shared
  785. enable_video_dummy
  786. enable_video_opengl
  787. enable_video_opengles
  788. enable_libudev
  789. enable_dbus
  790. enable_input_tslib
  791. enable_pthreads
  792. enable_pthread_sem
  793. enable_directx
  794. enable_sdl_dlopen
  795. enable_clock_gettime
  796. enable_rpath
  797. enable_render_d3d
  798. '
  799. ac_precious_vars='build_alias
  800. host_alias
  801. target_alias
  802. CC
  803. CFLAGS
  804. LDFLAGS
  805. LIBS
  806. CPPFLAGS
  807. CPP
  808. CXX
  809. CXXFLAGS
  810. CCC
  811. CXXCPP
  812. XMKMF'
  813. # Initialize some variables set by options.
  814. ac_init_help=
  815. ac_init_version=false
  816. ac_unrecognized_opts=
  817. ac_unrecognized_sep=
  818. # The variables have the same names as the options, with
  819. # dashes changed to underlines.
  820. cache_file=/dev/null
  821. exec_prefix=NONE
  822. no_create=
  823. no_recursion=
  824. prefix=NONE
  825. program_prefix=NONE
  826. program_suffix=NONE
  827. program_transform_name=s,x,x,
  828. silent=
  829. site=
  830. srcdir=
  831. verbose=
  832. x_includes=NONE
  833. x_libraries=NONE
  834. # Installation directory options.
  835. # These are left unexpanded so users can "make install exec_prefix=/foo"
  836. # and all the variables that are supposed to be based on exec_prefix
  837. # by default will actually change.
  838. # Use braces instead of parens because sh, perl, etc. also accept them.
  839. # (The list follows the same order as the GNU Coding Standards.)
  840. bindir='${exec_prefix}/bin'
  841. sbindir='${exec_prefix}/sbin'
  842. libexecdir='${exec_prefix}/libexec'
  843. datarootdir='${prefix}/share'
  844. datadir='${datarootdir}'
  845. sysconfdir='${prefix}/etc'
  846. sharedstatedir='${prefix}/com'
  847. localstatedir='${prefix}/var'
  848. includedir='${prefix}/include'
  849. oldincludedir='/usr/include'
  850. docdir='${datarootdir}/doc/${PACKAGE}'
  851. infodir='${datarootdir}/info'
  852. htmldir='${docdir}'
  853. dvidir='${docdir}'
  854. pdfdir='${docdir}'
  855. psdir='${docdir}'
  856. libdir='${exec_prefix}/lib'
  857. localedir='${datarootdir}/locale'
  858. mandir='${datarootdir}/man'
  859. ac_prev=
  860. ac_dashdash=
  861. for ac_option
  862. do
  863. # If the previous option needs an argument, assign it.
  864. if test -n "$ac_prev"; then
  865. eval $ac_prev=\$ac_option
  866. ac_prev=
  867. continue
  868. fi
  869. case $ac_option in
  870. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  871. *=) ac_optarg= ;;
  872. *) ac_optarg=yes ;;
  873. esac
  874. # Accept the important Cygnus configure options, so we can diagnose typos.
  875. case $ac_dashdash$ac_option in
  876. --)
  877. ac_dashdash=yes ;;
  878. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  879. ac_prev=bindir ;;
  880. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  881. bindir=$ac_optarg ;;
  882. -build | --build | --buil | --bui | --bu)
  883. ac_prev=build_alias ;;
  884. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  885. build_alias=$ac_optarg ;;
  886. -cache-file | --cache-file | --cache-fil | --cache-fi \
  887. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  888. ac_prev=cache_file ;;
  889. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  890. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  891. cache_file=$ac_optarg ;;
  892. --config-cache | -C)
  893. cache_file=config.cache ;;
  894. -datadir | --datadir | --datadi | --datad)
  895. ac_prev=datadir ;;
  896. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  897. datadir=$ac_optarg ;;
  898. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  899. | --dataroo | --dataro | --datar)
  900. ac_prev=datarootdir ;;
  901. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  902. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  903. datarootdir=$ac_optarg ;;
  904. -disable-* | --disable-*)
  905. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  908. as_fn_error $? "invalid feature name: $ac_useropt"
  909. ac_useropt_orig=$ac_useropt
  910. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  911. case $ac_user_opts in
  912. *"
  913. "enable_$ac_useropt"
  914. "*) ;;
  915. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  916. ac_unrecognized_sep=', ';;
  917. esac
  918. eval enable_$ac_useropt=no ;;
  919. -docdir | --docdir | --docdi | --doc | --do)
  920. ac_prev=docdir ;;
  921. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  922. docdir=$ac_optarg ;;
  923. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  924. ac_prev=dvidir ;;
  925. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  926. dvidir=$ac_optarg ;;
  927. -enable-* | --enable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=\$ac_optarg ;;
  942. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  943. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  944. | --exec | --exe | --ex)
  945. ac_prev=exec_prefix ;;
  946. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  947. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  948. | --exec=* | --exe=* | --ex=*)
  949. exec_prefix=$ac_optarg ;;
  950. -gas | --gas | --ga | --g)
  951. # Obsolete; use --with-gas.
  952. with_gas=yes ;;
  953. -help | --help | --hel | --he | -h)
  954. ac_init_help=long ;;
  955. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  956. ac_init_help=recursive ;;
  957. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  958. ac_init_help=short ;;
  959. -host | --host | --hos | --ho)
  960. ac_prev=host_alias ;;
  961. -host=* | --host=* | --hos=* | --ho=*)
  962. host_alias=$ac_optarg ;;
  963. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  964. ac_prev=htmldir ;;
  965. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  966. | --ht=*)
  967. htmldir=$ac_optarg ;;
  968. -includedir | --includedir | --includedi | --included | --include \
  969. | --includ | --inclu | --incl | --inc)
  970. ac_prev=includedir ;;
  971. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  972. | --includ=* | --inclu=* | --incl=* | --inc=*)
  973. includedir=$ac_optarg ;;
  974. -infodir | --infodir | --infodi | --infod | --info | --inf)
  975. ac_prev=infodir ;;
  976. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  977. infodir=$ac_optarg ;;
  978. -libdir | --libdir | --libdi | --libd)
  979. ac_prev=libdir ;;
  980. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  981. libdir=$ac_optarg ;;
  982. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  983. | --libexe | --libex | --libe)
  984. ac_prev=libexecdir ;;
  985. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  986. | --libexe=* | --libex=* | --libe=*)
  987. libexecdir=$ac_optarg ;;
  988. -localedir | --localedir | --localedi | --localed | --locale)
  989. ac_prev=localedir ;;
  990. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  991. localedir=$ac_optarg ;;
  992. -localstatedir | --localstatedir | --localstatedi | --localstated \
  993. | --localstate | --localstat | --localsta | --localst | --locals)
  994. ac_prev=localstatedir ;;
  995. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  996. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  997. localstatedir=$ac_optarg ;;
  998. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  999. ac_prev=mandir ;;
  1000. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1001. mandir=$ac_optarg ;;
  1002. -nfp | --nfp | --nf)
  1003. # Obsolete; use --without-fp.
  1004. with_fp=no ;;
  1005. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1006. | --no-cr | --no-c | -n)
  1007. no_create=yes ;;
  1008. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1009. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1010. no_recursion=yes ;;
  1011. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1012. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1013. | --oldin | --oldi | --old | --ol | --o)
  1014. ac_prev=oldincludedir ;;
  1015. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1016. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1017. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1018. oldincludedir=$ac_optarg ;;
  1019. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1020. ac_prev=prefix ;;
  1021. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1022. prefix=$ac_optarg ;;
  1023. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1024. | --program-pre | --program-pr | --program-p)
  1025. ac_prev=program_prefix ;;
  1026. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1027. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1028. program_prefix=$ac_optarg ;;
  1029. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1030. | --program-suf | --program-su | --program-s)
  1031. ac_prev=program_suffix ;;
  1032. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1033. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1034. program_suffix=$ac_optarg ;;
  1035. -program-transform-name | --program-transform-name \
  1036. | --program-transform-nam | --program-transform-na \
  1037. | --program-transform-n | --program-transform- \
  1038. | --program-transform | --program-transfor \
  1039. | --program-transfo | --program-transf \
  1040. | --program-trans | --program-tran \
  1041. | --progr-tra | --program-tr | --program-t)
  1042. ac_prev=program_transform_name ;;
  1043. -program-transform-name=* | --program-transform-name=* \
  1044. | --program-transform-nam=* | --program-transform-na=* \
  1045. | --program-transform-n=* | --program-transform-=* \
  1046. | --program-transform=* | --program-transfor=* \
  1047. | --program-transfo=* | --program-transf=* \
  1048. | --program-trans=* | --program-tran=* \
  1049. | --progr-tra=* | --program-tr=* | --program-t=*)
  1050. program_transform_name=$ac_optarg ;;
  1051. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1052. ac_prev=pdfdir ;;
  1053. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1054. pdfdir=$ac_optarg ;;
  1055. -psdir | --psdir | --psdi | --psd | --ps)
  1056. ac_prev=psdir ;;
  1057. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1058. psdir=$ac_optarg ;;
  1059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1060. | -silent | --silent | --silen | --sile | --sil)
  1061. silent=yes ;;
  1062. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1063. ac_prev=sbindir ;;
  1064. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1065. | --sbi=* | --sb=*)
  1066. sbindir=$ac_optarg ;;
  1067. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1068. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1069. | --sharedst | --shareds | --shared | --share | --shar \
  1070. | --sha | --sh)
  1071. ac_prev=sharedstatedir ;;
  1072. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1073. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1074. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1075. | --sha=* | --sh=*)
  1076. sharedstatedir=$ac_optarg ;;
  1077. -site | --site | --sit)
  1078. ac_prev=site ;;
  1079. -site=* | --site=* | --sit=*)
  1080. site=$ac_optarg ;;
  1081. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1082. ac_prev=srcdir ;;
  1083. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1084. srcdir=$ac_optarg ;;
  1085. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1086. | --syscon | --sysco | --sysc | --sys | --sy)
  1087. ac_prev=sysconfdir ;;
  1088. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1089. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1090. sysconfdir=$ac_optarg ;;
  1091. -target | --target | --targe | --targ | --tar | --ta | --t)
  1092. ac_prev=target_alias ;;
  1093. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1094. target_alias=$ac_optarg ;;
  1095. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1096. verbose=yes ;;
  1097. -version | --version | --versio | --versi | --vers | -V)
  1098. ac_init_version=: ;;
  1099. -with-* | --with-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error $? "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=\$ac_optarg ;;
  1114. -without-* | --without-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. as_fn_error $? "invalid package name: $ac_useropt"
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=no ;;
  1129. --x)
  1130. # Obsolete; use --with-x.
  1131. with_x=yes ;;
  1132. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1133. | --x-incl | --x-inc | --x-in | --x-i)
  1134. ac_prev=x_includes ;;
  1135. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1136. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1137. x_includes=$ac_optarg ;;
  1138. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1139. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1140. ac_prev=x_libraries ;;
  1141. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1142. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1143. x_libraries=$ac_optarg ;;
  1144. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1145. Try \`$0 --help' for more information"
  1146. ;;
  1147. *=*)
  1148. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1149. # Reject names that are not valid shell variable names.
  1150. case $ac_envvar in #(
  1151. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1152. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1153. esac
  1154. eval $ac_envvar=\$ac_optarg
  1155. export $ac_envvar ;;
  1156. *)
  1157. # FIXME: should be removed in autoconf 3.0.
  1158. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1159. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1160. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1161. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1162. ;;
  1163. esac
  1164. done
  1165. if test -n "$ac_prev"; then
  1166. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1167. as_fn_error $? "missing argument to $ac_option"
  1168. fi
  1169. if test -n "$ac_unrecognized_opts"; then
  1170. case $enable_option_checking in
  1171. no) ;;
  1172. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1173. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1174. esac
  1175. fi
  1176. # Check all directory arguments for consistency.
  1177. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1178. datadir sysconfdir sharedstatedir localstatedir includedir \
  1179. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1180. libdir localedir mandir
  1181. do
  1182. eval ac_val=\$$ac_var
  1183. # Remove trailing slashes.
  1184. case $ac_val in
  1185. */ )
  1186. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1187. eval $ac_var=\$ac_val;;
  1188. esac
  1189. # Be sure to have absolute directory names.
  1190. case $ac_val in
  1191. [\\/$]* | ?:[\\/]* ) continue;;
  1192. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1193. esac
  1194. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1195. done
  1196. # There might be people who depend on the old broken behavior: `$host'
  1197. # used to hold the argument of --host etc.
  1198. # FIXME: To remove some day.
  1199. build=$build_alias
  1200. host=$host_alias
  1201. target=$target_alias
  1202. # FIXME: To remove some day.
  1203. if test "x$host_alias" != x; then
  1204. if test "x$build_alias" = x; then
  1205. cross_compiling=maybe
  1206. elif test "x$build_alias" != "x$host_alias"; then
  1207. cross_compiling=yes
  1208. fi
  1209. fi
  1210. ac_tool_prefix=
  1211. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1212. test "$silent" = yes && exec 6>/dev/null
  1213. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1214. ac_ls_di=`ls -di .` &&
  1215. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1216. as_fn_error $? "working directory cannot be determined"
  1217. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1218. as_fn_error $? "pwd does not report name of working directory"
  1219. # Find the source files, if location was not specified.
  1220. if test -z "$srcdir"; then
  1221. ac_srcdir_defaulted=yes
  1222. # Try the directory containing this script, then the parent directory.
  1223. ac_confdir=`$as_dirname -- "$as_myself" ||
  1224. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1225. X"$as_myself" : 'X\(//\)[^/]' \| \
  1226. X"$as_myself" : 'X\(//\)$' \| \
  1227. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1228. $as_echo X"$as_myself" |
  1229. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1230. s//\1/
  1231. q
  1232. }
  1233. /^X\(\/\/\)[^/].*/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\).*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. s/.*/./; q'`
  1246. srcdir=$ac_confdir
  1247. if test ! -r "$srcdir/$ac_unique_file"; then
  1248. srcdir=..
  1249. fi
  1250. else
  1251. ac_srcdir_defaulted=no
  1252. fi
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1255. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1256. fi
  1257. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1258. ac_abs_confdir=`(
  1259. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1260. pwd)`
  1261. # When building in place, set srcdir=.
  1262. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1263. srcdir=.
  1264. fi
  1265. # Remove unnecessary trailing slashes from srcdir.
  1266. # Double slashes in file names in object file debugging info
  1267. # mess up M-x gdb in Emacs.
  1268. case $srcdir in
  1269. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1270. esac
  1271. for ac_var in $ac_precious_vars; do
  1272. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1273. eval ac_env_${ac_var}_value=\$${ac_var}
  1274. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1275. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1276. done
  1277. #
  1278. # Report the --help message.
  1279. #
  1280. if test "$ac_init_help" = "long"; then
  1281. # Omit some internal or obsolete options to make the list less imposing.
  1282. # This message is too long to be a string in the A/UX 3.1 sh.
  1283. cat <<_ACEOF
  1284. \`configure' configures this package to adapt to many kinds of systems.
  1285. Usage: $0 [OPTION]... [VAR=VALUE]...
  1286. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1287. VAR=VALUE. See below for descriptions of some of the useful variables.
  1288. Defaults for the options are specified in brackets.
  1289. Configuration:
  1290. -h, --help display this help and exit
  1291. --help=short display options specific to this package
  1292. --help=recursive display the short help of all the included packages
  1293. -V, --version display version information and exit
  1294. -q, --quiet, --silent do not print \`checking ...' messages
  1295. --cache-file=FILE cache test results in FILE [disabled]
  1296. -C, --config-cache alias for \`--cache-file=config.cache'
  1297. -n, --no-create do not create output files
  1298. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1299. Installation directories:
  1300. --prefix=PREFIX install architecture-independent files in PREFIX
  1301. [$ac_default_prefix]
  1302. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1303. [PREFIX]
  1304. By default, \`make install' will install all the files in
  1305. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1306. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1307. for instance \`--prefix=\$HOME'.
  1308. For better control, use the options below.
  1309. Fine tuning of the installation directories:
  1310. --bindir=DIR user executables [EPREFIX/bin]
  1311. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1312. --libexecdir=DIR program executables [EPREFIX/libexec]
  1313. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1314. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1315. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1316. --libdir=DIR object code libraries [EPREFIX/lib]
  1317. --includedir=DIR C header files [PREFIX/include]
  1318. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1319. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1320. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1321. --infodir=DIR info documentation [DATAROOTDIR/info]
  1322. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1323. --mandir=DIR man documentation [DATAROOTDIR/man]
  1324. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1325. --htmldir=DIR html documentation [DOCDIR]
  1326. --dvidir=DIR dvi documentation [DOCDIR]
  1327. --pdfdir=DIR pdf documentation [DOCDIR]
  1328. --psdir=DIR ps documentation [DOCDIR]
  1329. _ACEOF
  1330. cat <<\_ACEOF
  1331. X features:
  1332. --x-includes=DIR X include files are in DIR
  1333. --x-libraries=DIR X library files are in DIR
  1334. System types:
  1335. --build=BUILD configure for building on BUILD [guessed]
  1336. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1337. _ACEOF
  1338. fi
  1339. if test -n "$ac_init_help"; then
  1340. cat <<\_ACEOF
  1341. Optional Features:
  1342. --disable-option-checking ignore unrecognized --enable/--with options
  1343. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1344. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1345. --enable-shared[=PKGS] build shared libraries [default=yes]
  1346. --enable-static[=PKGS] build static libraries [default=yes]
  1347. --enable-fast-install[=PKGS]
  1348. optimize for fast installation [default=yes]
  1349. --disable-libtool-lock avoid locking (might break parallel builds)
  1350. --enable-assertions Enable internal sanity checks
  1351. (auto/disabled/release/enabled/paranoid)
  1352. [[default=auto]]
  1353. --enable-dependency-tracking
  1354. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1355. --enable-libc Use the system C library [[default=yes]]
  1356. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1357. --enable-atomic Enable the atomic operations subsystem
  1358. [[default=yes]]
  1359. --enable-audio Enable the audio subsystem [[default=yes]]
  1360. --enable-video Enable the video subsystem [[default=yes]]
  1361. --enable-render Enable the render subsystem [[default=yes]]
  1362. --enable-events Enable the events subsystem [[default=yes]]
  1363. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1364. --enable-haptic Enable the haptic (force feedback) subsystem
  1365. [[default=yes]]
  1366. --enable-power Enable the power subsystem [[default=yes]]
  1367. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1368. --enable-threads Enable the threading subsystem [[default=yes]]
  1369. --enable-timers Enable the timer subsystem [[default=yes]]
  1370. --enable-file Enable the file subsystem [[default=yes]]
  1371. --enable-loadso Enable the shared object loading subsystem
  1372. [[default=yes]]
  1373. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1374. --enable-atomic Enable the atomic operations [[default=yes]]
  1375. --enable-assembly Enable assembly routines [[default=yes]]
  1376. --enable-ssemath Allow GCC to use SSE floating point math
  1377. [[default=no]]
  1378. --enable-mmx use MMX assembly routines [[default=yes]]
  1379. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1380. --enable-sse use SSE assembly routines [[default=yes]]
  1381. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1382. --enable-altivec use Altivec assembly routines [[default=yes]]
  1383. --enable-oss support the OSS audio API [[default=maybe]]
  1384. --enable-alsa support the ALSA audio API [[default=yes]]
  1385. --disable-alsatest Do not try to compile and run a test Alsa program
  1386. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1387. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1388. --disable-esdtest Do not try to compile and run a test ESD program
  1389. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1390. --enable-pulseaudio use PulseAudio [[default=yes]]
  1391. --enable-pulseaudio-shared
  1392. dynamically load PulseAudio support [[default=yes]]
  1393. --enable-arts support the Analog Real Time Synthesizer
  1394. [[default=yes]]
  1395. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1396. --enable-nas support the NAS audio API [[default=yes]]
  1397. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1398. --enable-sndio support the sndio audio API [[default=yes]]
  1399. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1400. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1401. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1402. --enable-video-wayland use Wayland video driver [[default=yes]]
  1403. --enable-video-wayland-qt-touch
  1404. QtWayland server support for Wayland video driver
  1405. [[default=yes]]
  1406. --enable-video-x11 use X11 video driver [[default=yes]]
  1407. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1408. --enable-video-x11-xcursor
  1409. enable X11 Xcursor support [[default=yes]]
  1410. --enable-video-x11-xinerama
  1411. enable X11 Xinerama support [[default=yes]]
  1412. --enable-video-x11-xinput
  1413. enable X11 XInput extension for manymouse, tablets,
  1414. etc [[default=yes]]
  1415. --enable-video-x11-xrandr
  1416. enable X11 Xrandr extension for fullscreen
  1417. [[default=yes]]
  1418. --enable-video-x11-scrnsaver
  1419. enable X11 screensaver extension [[default=yes]]
  1420. --enable-video-x11-xshape
  1421. enable X11 XShape support [[default=yes]]
  1422. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1423. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1424. --enable-video-directfb use DirectFB video driver [[default=no]]
  1425. --enable-directfb-shared
  1426. dynamically load directfb support [[default=yes]]
  1427. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1428. --enable-fusionsound-shared
  1429. dynamically load fusionsound audio support
  1430. [[default=yes]]
  1431. --enable-video-dummy use dummy video driver [[default=yes]]
  1432. --enable-video-opengl include OpenGL support [[default=yes]]
  1433. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1434. --enable-libudev enable libudev support [[default=yes]]
  1435. --enable-dbus enable D-Bus support [[default=yes]]
  1436. --enable-input-tslib use the Touchscreen library for input
  1437. [[default=yes]]
  1438. --enable-pthreads use POSIX threads for multi-threading
  1439. [[default=yes]]
  1440. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1441. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1442. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1443. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1444. UNIX [[default=yes]]
  1445. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1446. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1447. Optional Packages:
  1448. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1449. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1450. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1451. both]
  1452. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1453. --with-sysroot=DIR Search for dependent libraries within DIR
  1454. (or the compiler's sysroot if not specified).
  1455. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1456. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1457. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1458. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1459. --with-x use the X Window System
  1460. Some influential environment variables:
  1461. CC C compiler command
  1462. CFLAGS C compiler flags
  1463. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1464. nonstandard directory <lib dir>
  1465. LIBS libraries to pass to the linker, e.g. -l<library>
  1466. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1467. you have headers in a nonstandard directory <include dir>
  1468. CPP C preprocessor
  1469. CXX C++ compiler command
  1470. CXXFLAGS C++ compiler flags
  1471. CXXCPP C++ preprocessor
  1472. XMKMF Path to xmkmf, Makefile generator for X Window System
  1473. Use these variables to override the choices made by `configure' or to help
  1474. it to find libraries and programs with nonstandard names/locations.
  1475. Report bugs to the package provider.
  1476. _ACEOF
  1477. ac_status=$?
  1478. fi
  1479. if test "$ac_init_help" = "recursive"; then
  1480. # If there are subdirs, report their specific --help.
  1481. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1482. test -d "$ac_dir" ||
  1483. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1484. continue
  1485. ac_builddir=.
  1486. case "$ac_dir" in
  1487. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1488. *)
  1489. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1490. # A ".." for each directory in $ac_dir_suffix.
  1491. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1492. case $ac_top_builddir_sub in
  1493. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1494. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1495. esac ;;
  1496. esac
  1497. ac_abs_top_builddir=$ac_pwd
  1498. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1499. # for backward compatibility:
  1500. ac_top_builddir=$ac_top_build_prefix
  1501. case $srcdir in
  1502. .) # We are building in place.
  1503. ac_srcdir=.
  1504. ac_top_srcdir=$ac_top_builddir_sub
  1505. ac_abs_top_srcdir=$ac_pwd ;;
  1506. [\\/]* | ?:[\\/]* ) # Absolute name.
  1507. ac_srcdir=$srcdir$ac_dir_suffix;
  1508. ac_top_srcdir=$srcdir
  1509. ac_abs_top_srcdir=$srcdir ;;
  1510. *) # Relative name.
  1511. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1512. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1513. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1514. esac
  1515. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1516. cd "$ac_dir" || { ac_status=$?; continue; }
  1517. # Check for guested configure.
  1518. if test -f "$ac_srcdir/configure.gnu"; then
  1519. echo &&
  1520. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1521. elif test -f "$ac_srcdir/configure"; then
  1522. echo &&
  1523. $SHELL "$ac_srcdir/configure" --help=recursive
  1524. else
  1525. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1526. fi || ac_status=$?
  1527. cd "$ac_pwd" || { ac_status=$?; break; }
  1528. done
  1529. fi
  1530. test -n "$ac_init_help" && exit $ac_status
  1531. if $ac_init_version; then
  1532. cat <<\_ACEOF
  1533. configure
  1534. generated by GNU Autoconf 2.69
  1535. Copyright (C) 2012 Free Software Foundation, Inc.
  1536. This configure script is free software; the Free Software Foundation
  1537. gives unlimited permission to copy, distribute and modify it.
  1538. _ACEOF
  1539. exit
  1540. fi
  1541. ## ------------------------ ##
  1542. ## Autoconf initialization. ##
  1543. ## ------------------------ ##
  1544. # ac_fn_c_try_compile LINENO
  1545. # --------------------------
  1546. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1547. ac_fn_c_try_compile ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. rm -f conftest.$ac_objext
  1551. if { { ac_try="$ac_compile"
  1552. case "(($ac_try" in
  1553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1554. *) ac_try_echo=$ac_try;;
  1555. esac
  1556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1557. $as_echo "$ac_try_echo"; } >&5
  1558. (eval "$ac_compile") 2>conftest.err
  1559. ac_status=$?
  1560. if test -s conftest.err; then
  1561. grep -v '^ *+' conftest.err >conftest.er1
  1562. cat conftest.er1 >&5
  1563. mv -f conftest.er1 conftest.err
  1564. fi
  1565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1566. test $ac_status = 0; } && {
  1567. test -z "$ac_c_werror_flag" ||
  1568. test ! -s conftest.err
  1569. } && test -s conftest.$ac_objext; then :
  1570. ac_retval=0
  1571. else
  1572. $as_echo "$as_me: failed program was:" >&5
  1573. sed 's/^/| /' conftest.$ac_ext >&5
  1574. ac_retval=1
  1575. fi
  1576. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1577. as_fn_set_status $ac_retval
  1578. } # ac_fn_c_try_compile
  1579. # ac_fn_c_try_link LINENO
  1580. # -----------------------
  1581. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1582. ac_fn_c_try_link ()
  1583. {
  1584. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1585. rm -f conftest.$ac_objext conftest$ac_exeext
  1586. if { { ac_try="$ac_link"
  1587. case "(($ac_try" in
  1588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1589. *) ac_try_echo=$ac_try;;
  1590. esac
  1591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1592. $as_echo "$ac_try_echo"; } >&5
  1593. (eval "$ac_link") 2>conftest.err
  1594. ac_status=$?
  1595. if test -s conftest.err; then
  1596. grep -v '^ *+' conftest.err >conftest.er1
  1597. cat conftest.er1 >&5
  1598. mv -f conftest.er1 conftest.err
  1599. fi
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; } && {
  1602. test -z "$ac_c_werror_flag" ||
  1603. test ! -s conftest.err
  1604. } && test -s conftest$ac_exeext && {
  1605. test "$cross_compiling" = yes ||
  1606. test -x conftest$ac_exeext
  1607. }; then :
  1608. ac_retval=0
  1609. else
  1610. $as_echo "$as_me: failed program was:" >&5
  1611. sed 's/^/| /' conftest.$ac_ext >&5
  1612. ac_retval=1
  1613. fi
  1614. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1615. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1616. # interfere with the next link command; also delete a directory that is
  1617. # left behind by Apple's compiler. We do this before executing the actions.
  1618. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1619. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1620. as_fn_set_status $ac_retval
  1621. } # ac_fn_c_try_link
  1622. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1623. # -------------------------------------------------------
  1624. # Tests whether HEADER exists and can be compiled using the include files in
  1625. # INCLUDES, setting the cache variable VAR accordingly.
  1626. ac_fn_c_check_header_compile ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1630. $as_echo_n "checking for $2... " >&6; }
  1631. if eval \${$3+:} false; then :
  1632. $as_echo_n "(cached) " >&6
  1633. else
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. #include <$2>
  1638. _ACEOF
  1639. if ac_fn_c_try_compile "$LINENO"; then :
  1640. eval "$3=yes"
  1641. else
  1642. eval "$3=no"
  1643. fi
  1644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1645. fi
  1646. eval ac_res=\$$3
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1648. $as_echo "$ac_res" >&6; }
  1649. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1650. } # ac_fn_c_check_header_compile
  1651. # ac_fn_c_try_cpp LINENO
  1652. # ----------------------
  1653. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1654. ac_fn_c_try_cpp ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1658. case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. $as_echo "$ac_try_echo"; } >&5
  1664. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1665. ac_status=$?
  1666. if test -s conftest.err; then
  1667. grep -v '^ *+' conftest.err >conftest.er1
  1668. cat conftest.er1 >&5
  1669. mv -f conftest.er1 conftest.err
  1670. fi
  1671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1672. test $ac_status = 0; } > conftest.i && {
  1673. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1674. test ! -s conftest.err
  1675. }; then :
  1676. ac_retval=0
  1677. else
  1678. $as_echo "$as_me: failed program was:" >&5
  1679. sed 's/^/| /' conftest.$ac_ext >&5
  1680. ac_retval=1
  1681. fi
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. as_fn_set_status $ac_retval
  1684. } # ac_fn_c_try_cpp
  1685. # ac_fn_c_try_run LINENO
  1686. # ----------------------
  1687. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1688. # that executables *can* be run.
  1689. ac_fn_c_try_run ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. if { { ac_try="$ac_link"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_link") 2>&5
  1700. ac_status=$?
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1703. { { case "(($ac_try" in
  1704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1705. *) ac_try_echo=$ac_try;;
  1706. esac
  1707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1708. $as_echo "$ac_try_echo"; } >&5
  1709. (eval "$ac_try") 2>&5
  1710. ac_status=$?
  1711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1712. test $ac_status = 0; }; }; then :
  1713. ac_retval=0
  1714. else
  1715. $as_echo "$as_me: program exited with status $ac_status" >&5
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718. ac_retval=$ac_status
  1719. fi
  1720. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1721. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722. as_fn_set_status $ac_retval
  1723. } # ac_fn_c_try_run
  1724. # ac_fn_c_check_func LINENO FUNC VAR
  1725. # ----------------------------------
  1726. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1727. ac_fn_c_check_func ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1731. $as_echo_n "checking for $2... " >&6; }
  1732. if eval \${$3+:} false; then :
  1733. $as_echo_n "(cached) " >&6
  1734. else
  1735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1736. /* end confdefs.h. */
  1737. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1738. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1739. #define $2 innocuous_$2
  1740. /* System header to define __stub macros and hopefully few prototypes,
  1741. which can conflict with char $2 (); below.
  1742. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1743. <limits.h> exists even on freestanding compilers. */
  1744. #ifdef __STDC__
  1745. # include <limits.h>
  1746. #else
  1747. # include <assert.h>
  1748. #endif
  1749. #undef $2
  1750. /* Override any GCC internal prototype to avoid an error.
  1751. Use char because int might match the return type of a GCC
  1752. builtin and then its argument prototype would still apply. */
  1753. #ifdef __cplusplus
  1754. extern "C"
  1755. #endif
  1756. char $2 ();
  1757. /* The GNU C library defines this for functions which it implements
  1758. to always fail with ENOSYS. Some functions are actually named
  1759. something starting with __ and the normal name is an alias. */
  1760. #if defined __stub_$2 || defined __stub___$2
  1761. choke me
  1762. #endif
  1763. int
  1764. main ()
  1765. {
  1766. return $2 ();
  1767. ;
  1768. return 0;
  1769. }
  1770. _ACEOF
  1771. if ac_fn_c_try_link "$LINENO"; then :
  1772. eval "$3=yes"
  1773. else
  1774. eval "$3=no"
  1775. fi
  1776. rm -f core conftest.err conftest.$ac_objext \
  1777. conftest$ac_exeext conftest.$ac_ext
  1778. fi
  1779. eval ac_res=\$$3
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1781. $as_echo "$ac_res" >&6; }
  1782. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1783. } # ac_fn_c_check_func
  1784. # ac_fn_cxx_try_compile LINENO
  1785. # ----------------------------
  1786. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1787. ac_fn_cxx_try_compile ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. rm -f conftest.$ac_objext
  1791. if { { ac_try="$ac_compile"
  1792. case "(($ac_try" in
  1793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794. *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. $as_echo "$ac_try_echo"; } >&5
  1798. (eval "$ac_compile") 2>conftest.err
  1799. ac_status=$?
  1800. if test -s conftest.err; then
  1801. grep -v '^ *+' conftest.err >conftest.er1
  1802. cat conftest.er1 >&5
  1803. mv -f conftest.er1 conftest.err
  1804. fi
  1805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; } && {
  1807. test -z "$ac_cxx_werror_flag" ||
  1808. test ! -s conftest.err
  1809. } && test -s conftest.$ac_objext; then :
  1810. ac_retval=0
  1811. else
  1812. $as_echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. ac_retval=1
  1815. fi
  1816. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1817. as_fn_set_status $ac_retval
  1818. } # ac_fn_cxx_try_compile
  1819. # ac_fn_cxx_try_cpp LINENO
  1820. # ------------------------
  1821. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1822. ac_fn_cxx_try_cpp ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1826. case "(($ac_try" in
  1827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1828. *) ac_try_echo=$ac_try;;
  1829. esac
  1830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1831. $as_echo "$ac_try_echo"; } >&5
  1832. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1833. ac_status=$?
  1834. if test -s conftest.err; then
  1835. grep -v '^ *+' conftest.err >conftest.er1
  1836. cat conftest.er1 >&5
  1837. mv -f conftest.er1 conftest.err
  1838. fi
  1839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1840. test $ac_status = 0; } > conftest.i && {
  1841. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1842. test ! -s conftest.err
  1843. }; then :
  1844. ac_retval=0
  1845. else
  1846. $as_echo "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. ac_retval=1
  1849. fi
  1850. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1851. as_fn_set_status $ac_retval
  1852. } # ac_fn_cxx_try_cpp
  1853. # ac_fn_cxx_try_link LINENO
  1854. # -------------------------
  1855. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1856. ac_fn_cxx_try_link ()
  1857. {
  1858. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1859. rm -f conftest.$ac_objext conftest$ac_exeext
  1860. if { { ac_try="$ac_link"
  1861. case "(($ac_try" in
  1862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1863. *) ac_try_echo=$ac_try;;
  1864. esac
  1865. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1866. $as_echo "$ac_try_echo"; } >&5
  1867. (eval "$ac_link") 2>conftest.err
  1868. ac_status=$?
  1869. if test -s conftest.err; then
  1870. grep -v '^ *+' conftest.err >conftest.er1
  1871. cat conftest.er1 >&5
  1872. mv -f conftest.er1 conftest.err
  1873. fi
  1874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1875. test $ac_status = 0; } && {
  1876. test -z "$ac_cxx_werror_flag" ||
  1877. test ! -s conftest.err
  1878. } && test -s conftest$ac_exeext && {
  1879. test "$cross_compiling" = yes ||
  1880. test -x conftest$ac_exeext
  1881. }; then :
  1882. ac_retval=0
  1883. else
  1884. $as_echo "$as_me: failed program was:" >&5
  1885. sed 's/^/| /' conftest.$ac_ext >&5
  1886. ac_retval=1
  1887. fi
  1888. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1889. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1890. # interfere with the next link command; also delete a directory that is
  1891. # left behind by Apple's compiler. We do this before executing the actions.
  1892. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1894. as_fn_set_status $ac_retval
  1895. } # ac_fn_cxx_try_link
  1896. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1897. # -------------------------------------------------------
  1898. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1899. # the include files in INCLUDES and setting the cache variable VAR
  1900. # accordingly.
  1901. ac_fn_c_check_header_mongrel ()
  1902. {
  1903. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1904. if eval \${$3+:} false; then :
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1906. $as_echo_n "checking for $2... " >&6; }
  1907. if eval \${$3+:} false; then :
  1908. $as_echo_n "(cached) " >&6
  1909. fi
  1910. eval ac_res=\$$3
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. $as_echo "$ac_res" >&6; }
  1913. else
  1914. # Is the header compilable?
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1916. $as_echo_n "checking $2 usability... " >&6; }
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. $4
  1920. #include <$2>
  1921. _ACEOF
  1922. if ac_fn_c_try_compile "$LINENO"; then :
  1923. ac_header_compiler=yes
  1924. else
  1925. ac_header_compiler=no
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1929. $as_echo "$ac_header_compiler" >&6; }
  1930. # Is the header present?
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1932. $as_echo_n "checking $2 presence... " >&6; }
  1933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1934. /* end confdefs.h. */
  1935. #include <$2>
  1936. _ACEOF
  1937. if ac_fn_c_try_cpp "$LINENO"; then :
  1938. ac_header_preproc=yes
  1939. else
  1940. ac_header_preproc=no
  1941. fi
  1942. rm -f conftest.err conftest.i conftest.$ac_ext
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1944. $as_echo "$ac_header_preproc" >&6; }
  1945. # So? What about this header?
  1946. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1947. yes:no: )
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1949. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1951. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1952. ;;
  1953. no:yes:* )
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1955. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1957. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1959. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1961. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1963. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1964. ;;
  1965. esac
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1967. $as_echo_n "checking for $2... " >&6; }
  1968. if eval \${$3+:} false; then :
  1969. $as_echo_n "(cached) " >&6
  1970. else
  1971. eval "$3=\$ac_header_compiler"
  1972. fi
  1973. eval ac_res=\$$3
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1975. $as_echo "$ac_res" >&6; }
  1976. fi
  1977. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1978. } # ac_fn_c_check_header_mongrel
  1979. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1980. # -------------------------------------------
  1981. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1982. # variable VAR accordingly.
  1983. ac_fn_c_check_type ()
  1984. {
  1985. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1987. $as_echo_n "checking for $2... " >&6; }
  1988. if eval \${$3+:} false; then :
  1989. $as_echo_n "(cached) " >&6
  1990. else
  1991. eval "$3=no"
  1992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1993. /* end confdefs.h. */
  1994. $4
  1995. int
  1996. main ()
  1997. {
  1998. if (sizeof ($2))
  1999. return 0;
  2000. ;
  2001. return 0;
  2002. }
  2003. _ACEOF
  2004. if ac_fn_c_try_compile "$LINENO"; then :
  2005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2006. /* end confdefs.h. */
  2007. $4
  2008. int
  2009. main ()
  2010. {
  2011. if (sizeof (($2)))
  2012. return 0;
  2013. ;
  2014. return 0;
  2015. }
  2016. _ACEOF
  2017. if ac_fn_c_try_compile "$LINENO"; then :
  2018. else
  2019. eval "$3=yes"
  2020. fi
  2021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2022. fi
  2023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2024. fi
  2025. eval ac_res=\$$3
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2027. $as_echo "$ac_res" >&6; }
  2028. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2029. } # ac_fn_c_check_type
  2030. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2031. # ----------------------------------------------------
  2032. # Tries to find if the field MEMBER exists in type AGGR, after including
  2033. # INCLUDES, setting cache variable VAR accordingly.
  2034. ac_fn_c_check_member ()
  2035. {
  2036. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2038. $as_echo_n "checking for $2.$3... " >&6; }
  2039. if eval \${$4+:} false; then :
  2040. $as_echo_n "(cached) " >&6
  2041. else
  2042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2043. /* end confdefs.h. */
  2044. $5
  2045. int
  2046. main ()
  2047. {
  2048. static $2 ac_aggr;
  2049. if (ac_aggr.$3)
  2050. return 0;
  2051. ;
  2052. return 0;
  2053. }
  2054. _ACEOF
  2055. if ac_fn_c_try_compile "$LINENO"; then :
  2056. eval "$4=yes"
  2057. else
  2058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2059. /* end confdefs.h. */
  2060. $5
  2061. int
  2062. main ()
  2063. {
  2064. static $2 ac_aggr;
  2065. if (sizeof ac_aggr.$3)
  2066. return 0;
  2067. ;
  2068. return 0;
  2069. }
  2070. _ACEOF
  2071. if ac_fn_c_try_compile "$LINENO"; then :
  2072. eval "$4=yes"
  2073. else
  2074. eval "$4=no"
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2079. fi
  2080. eval ac_res=\$$4
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2082. $as_echo "$ac_res" >&6; }
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. } # ac_fn_c_check_member
  2085. cat >config.log <<_ACEOF
  2086. This file contains any messages produced by compilers while
  2087. running configure, to aid debugging if configure makes a mistake.
  2088. It was created by $as_me, which was
  2089. generated by GNU Autoconf 2.69. Invocation command line was
  2090. $ $0 $@
  2091. _ACEOF
  2092. exec 5>>config.log
  2093. {
  2094. cat <<_ASUNAME
  2095. ## --------- ##
  2096. ## Platform. ##
  2097. ## --------- ##
  2098. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2099. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2100. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2101. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2102. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2103. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2104. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2105. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2106. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2107. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2108. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2109. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2110. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2111. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2112. _ASUNAME
  2113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2114. for as_dir in $PATH
  2115. do
  2116. IFS=$as_save_IFS
  2117. test -z "$as_dir" && as_dir=.
  2118. $as_echo "PATH: $as_dir"
  2119. done
  2120. IFS=$as_save_IFS
  2121. } >&5
  2122. cat >&5 <<_ACEOF
  2123. ## ----------- ##
  2124. ## Core tests. ##
  2125. ## ----------- ##
  2126. _ACEOF
  2127. # Keep a trace of the command line.
  2128. # Strip out --no-create and --no-recursion so they do not pile up.
  2129. # Strip out --silent because we don't want to record it for future runs.
  2130. # Also quote any args containing shell meta-characters.
  2131. # Make two passes to allow for proper duplicate-argument suppression.
  2132. ac_configure_args=
  2133. ac_configure_args0=
  2134. ac_configure_args1=
  2135. ac_must_keep_next=false
  2136. for ac_pass in 1 2
  2137. do
  2138. for ac_arg
  2139. do
  2140. case $ac_arg in
  2141. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2142. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2143. | -silent | --silent | --silen | --sile | --sil)
  2144. continue ;;
  2145. *\'*)
  2146. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2147. esac
  2148. case $ac_pass in
  2149. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2150. 2)
  2151. as_fn_append ac_configure_args1 " '$ac_arg'"
  2152. if test $ac_must_keep_next = true; then
  2153. ac_must_keep_next=false # Got value, back to normal.
  2154. else
  2155. case $ac_arg in
  2156. *=* | --config-cache | -C | -disable-* | --disable-* \
  2157. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2158. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2159. | -with-* | --with-* | -without-* | --without-* | --x)
  2160. case "$ac_configure_args0 " in
  2161. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2162. esac
  2163. ;;
  2164. -* ) ac_must_keep_next=true ;;
  2165. esac
  2166. fi
  2167. as_fn_append ac_configure_args " '$ac_arg'"
  2168. ;;
  2169. esac
  2170. done
  2171. done
  2172. { ac_configure_args0=; unset ac_configure_args0;}
  2173. { ac_configure_args1=; unset ac_configure_args1;}
  2174. # When interrupted or exit'd, cleanup temporary files, and complete
  2175. # config.log. We remove comments because anyway the quotes in there
  2176. # would cause problems or look ugly.
  2177. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2178. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2179. trap 'exit_status=$?
  2180. # Save into config.log some information that might help in debugging.
  2181. {
  2182. echo
  2183. $as_echo "## ---------------- ##
  2184. ## Cache variables. ##
  2185. ## ---------------- ##"
  2186. echo
  2187. # The following way of writing the cache mishandles newlines in values,
  2188. (
  2189. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2190. eval ac_val=\$$ac_var
  2191. case $ac_val in #(
  2192. *${as_nl}*)
  2193. case $ac_var in #(
  2194. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2195. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2196. esac
  2197. case $ac_var in #(
  2198. _ | IFS | as_nl) ;; #(
  2199. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2200. *) { eval $ac_var=; unset $ac_var;} ;;
  2201. esac ;;
  2202. esac
  2203. done
  2204. (set) 2>&1 |
  2205. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2206. *${as_nl}ac_space=\ *)
  2207. sed -n \
  2208. "s/'\''/'\''\\\\'\'''\''/g;
  2209. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2210. ;; #(
  2211. *)
  2212. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2213. ;;
  2214. esac |
  2215. sort
  2216. )
  2217. echo
  2218. $as_echo "## ----------------- ##
  2219. ## Output variables. ##
  2220. ## ----------------- ##"
  2221. echo
  2222. for ac_var in $ac_subst_vars
  2223. do
  2224. eval ac_val=\$$ac_var
  2225. case $ac_val in
  2226. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2227. esac
  2228. $as_echo "$ac_var='\''$ac_val'\''"
  2229. done | sort
  2230. echo
  2231. if test -n "$ac_subst_files"; then
  2232. $as_echo "## ------------------- ##
  2233. ## File substitutions. ##
  2234. ## ------------------- ##"
  2235. echo
  2236. for ac_var in $ac_subst_files
  2237. do
  2238. eval ac_val=\$$ac_var
  2239. case $ac_val in
  2240. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2241. esac
  2242. $as_echo "$ac_var='\''$ac_val'\''"
  2243. done | sort
  2244. echo
  2245. fi
  2246. if test -s confdefs.h; then
  2247. $as_echo "## ----------- ##
  2248. ## confdefs.h. ##
  2249. ## ----------- ##"
  2250. echo
  2251. cat confdefs.h
  2252. echo
  2253. fi
  2254. test "$ac_signal" != 0 &&
  2255. $as_echo "$as_me: caught signal $ac_signal"
  2256. $as_echo "$as_me: exit $exit_status"
  2257. } >&5
  2258. rm -f core *.core core.conftest.* &&
  2259. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2260. exit $exit_status
  2261. ' 0
  2262. for ac_signal in 1 2 13 15; do
  2263. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2264. done
  2265. ac_signal=0
  2266. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2267. rm -f -r conftest* confdefs.h
  2268. $as_echo "/* confdefs.h */" > confdefs.h
  2269. # Predefined preprocessor variables.
  2270. cat >>confdefs.h <<_ACEOF
  2271. #define PACKAGE_NAME "$PACKAGE_NAME"
  2272. _ACEOF
  2273. cat >>confdefs.h <<_ACEOF
  2274. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2275. _ACEOF
  2276. cat >>confdefs.h <<_ACEOF
  2277. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2278. _ACEOF
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_STRING "$PACKAGE_STRING"
  2281. _ACEOF
  2282. cat >>confdefs.h <<_ACEOF
  2283. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2284. _ACEOF
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_URL "$PACKAGE_URL"
  2287. _ACEOF
  2288. # Let the site file select an alternate cache file if it wants to.
  2289. # Prefer an explicitly selected file to automatically selected ones.
  2290. ac_site_file1=NONE
  2291. ac_site_file2=NONE
  2292. if test -n "$CONFIG_SITE"; then
  2293. # We do not want a PATH search for config.site.
  2294. case $CONFIG_SITE in #((
  2295. -*) ac_site_file1=./$CONFIG_SITE;;
  2296. */*) ac_site_file1=$CONFIG_SITE;;
  2297. *) ac_site_file1=./$CONFIG_SITE;;
  2298. esac
  2299. elif test "x$prefix" != xNONE; then
  2300. ac_site_file1=$prefix/share/config.site
  2301. ac_site_file2=$prefix/etc/config.site
  2302. else
  2303. ac_site_file1=$ac_default_prefix/share/config.site
  2304. ac_site_file2=$ac_default_prefix/etc/config.site
  2305. fi
  2306. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2307. do
  2308. test "x$ac_site_file" = xNONE && continue
  2309. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2311. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2312. sed 's/^/| /' "$ac_site_file" >&5
  2313. . "$ac_site_file" \
  2314. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2315. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2316. as_fn_error $? "failed to load site script $ac_site_file
  2317. See \`config.log' for more details" "$LINENO" 5; }
  2318. fi
  2319. done
  2320. if test -r "$cache_file"; then
  2321. # Some versions of bash will fail to source /dev/null (special files
  2322. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2323. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2325. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2326. case $cache_file in
  2327. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2328. *) . "./$cache_file";;
  2329. esac
  2330. fi
  2331. else
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2333. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2334. >$cache_file
  2335. fi
  2336. # Check that the precious variables saved in the cache have kept the same
  2337. # value.
  2338. ac_cache_corrupted=false
  2339. for ac_var in $ac_precious_vars; do
  2340. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2341. eval ac_new_set=\$ac_env_${ac_var}_set
  2342. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2343. eval ac_new_val=\$ac_env_${ac_var}_value
  2344. case $ac_old_set,$ac_new_set in
  2345. set,)
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2347. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2348. ac_cache_corrupted=: ;;
  2349. ,set)
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2351. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2352. ac_cache_corrupted=: ;;
  2353. ,);;
  2354. *)
  2355. if test "x$ac_old_val" != "x$ac_new_val"; then
  2356. # differences in whitespace do not lead to failure.
  2357. ac_old_val_w=`echo x $ac_old_val`
  2358. ac_new_val_w=`echo x $ac_new_val`
  2359. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2361. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2362. ac_cache_corrupted=:
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2365. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2366. eval $ac_var=\$ac_old_val
  2367. fi
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2369. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2371. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2372. fi;;
  2373. esac
  2374. # Pass precious variables to config.status.
  2375. if test "$ac_new_set" = set; then
  2376. case $ac_new_val in
  2377. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2378. *) ac_arg=$ac_var=$ac_new_val ;;
  2379. esac
  2380. case " $ac_configure_args " in
  2381. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2382. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2383. esac
  2384. fi
  2385. done
  2386. if $ac_cache_corrupted; then
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2390. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2391. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2392. fi
  2393. ## -------------------- ##
  2394. ## Main body of script. ##
  2395. ## -------------------- ##
  2396. ac_ext=c
  2397. ac_cpp='$CPP $CPPFLAGS'
  2398. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2399. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2400. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2401. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2402. ac_aux_dir=
  2403. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2404. if 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/install.sh"; then
  2409. ac_aux_dir=$ac_dir
  2410. ac_install_sh="$ac_aux_dir/install.sh -c"
  2411. break
  2412. elif test -f "$ac_dir/shtool"; then
  2413. ac_aux_dir=$ac_dir
  2414. ac_install_sh="$ac_aux_dir/shtool install -c"
  2415. break
  2416. fi
  2417. done
  2418. if test -z "$ac_aux_dir"; then
  2419. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2420. fi
  2421. # These three variables are undocumented and unsupported,
  2422. # and are intended to be withdrawn in a future Autoconf release.
  2423. # They can cause serious problems if a builder's source tree is in a directory
  2424. # whose full name contains unusual characters.
  2425. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2426. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2427. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2428. orig_CFLAGS="$CFLAGS"
  2429. #
  2430. # Making releases:
  2431. # Edit include/SDL_version.h and change the version, then:
  2432. # SDL_MICRO_VERSION += 1;
  2433. # SDL_INTERFACE_AGE += 1;
  2434. # SDL_BINARY_AGE += 1;
  2435. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2436. # if backwards compatibility has been broken,
  2437. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2438. #
  2439. SDL_MAJOR_VERSION=2
  2440. SDL_MINOR_VERSION=0
  2441. SDL_MICRO_VERSION=1
  2442. SDL_INTERFACE_AGE=0
  2443. SDL_BINARY_AGE=1
  2444. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2445. # libtool versioning
  2446. case `pwd` in
  2447. *\ * | *\ *)
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2449. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2450. esac
  2451. macro_version='2.4.2'
  2452. macro_revision='1.3337'
  2453. ltmain="$ac_aux_dir/ltmain.sh"
  2454. # Make sure we can run config.sub.
  2455. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2456. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2458. $as_echo_n "checking build system type... " >&6; }
  2459. if ${ac_cv_build+:} false; then :
  2460. $as_echo_n "(cached) " >&6
  2461. else
  2462. ac_build_alias=$build_alias
  2463. test "x$ac_build_alias" = x &&
  2464. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2465. test "x$ac_build_alias" = x &&
  2466. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2467. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2468. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2469. fi
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2471. $as_echo "$ac_cv_build" >&6; }
  2472. case $ac_cv_build in
  2473. *-*-*) ;;
  2474. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2475. esac
  2476. build=$ac_cv_build
  2477. ac_save_IFS=$IFS; IFS='-'
  2478. set x $ac_cv_build
  2479. shift
  2480. build_cpu=$1
  2481. build_vendor=$2
  2482. shift; shift
  2483. # Remember, the first character of IFS is used to create $*,
  2484. # except with old shells:
  2485. build_os=$*
  2486. IFS=$ac_save_IFS
  2487. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2489. $as_echo_n "checking host system type... " >&6; }
  2490. if ${ac_cv_host+:} false; then :
  2491. $as_echo_n "(cached) " >&6
  2492. else
  2493. if test "x$host_alias" = x; then
  2494. ac_cv_host=$ac_cv_build
  2495. else
  2496. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2497. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2498. fi
  2499. fi
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2501. $as_echo "$ac_cv_host" >&6; }
  2502. case $ac_cv_host in
  2503. *-*-*) ;;
  2504. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2505. esac
  2506. host=$ac_cv_host
  2507. ac_save_IFS=$IFS; IFS='-'
  2508. set x $ac_cv_host
  2509. shift
  2510. host_cpu=$1
  2511. host_vendor=$2
  2512. shift; shift
  2513. # Remember, the first character of IFS is used to create $*,
  2514. # except with old shells:
  2515. host_os=$*
  2516. IFS=$ac_save_IFS
  2517. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2518. # Backslashify metacharacters that are still active within
  2519. # double-quoted strings.
  2520. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2521. # Same as above, but do not quote variable references.
  2522. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2523. # Sed substitution to delay expansion of an escaped shell variable in a
  2524. # double_quote_subst'ed string.
  2525. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2526. # Sed substitution to delay expansion of an escaped single quote.
  2527. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2528. # Sed substitution to avoid accidental globbing in evaled expressions
  2529. no_glob_subst='s/\*/\\\*/g'
  2530. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2531. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2532. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2534. $as_echo_n "checking how to print strings... " >&6; }
  2535. # Test print first, because it will be a builtin if present.
  2536. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2537. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2538. ECHO='print -r --'
  2539. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2540. ECHO='printf %s\n'
  2541. else
  2542. # Use this function as a fallback that always works.
  2543. func_fallback_echo ()
  2544. {
  2545. eval 'cat <<_LTECHO_EOF
  2546. $1
  2547. _LTECHO_EOF'
  2548. }
  2549. ECHO='func_fallback_echo'
  2550. fi
  2551. # func_echo_all arg...
  2552. # Invoke $ECHO with all args, space-separated.
  2553. func_echo_all ()
  2554. {
  2555. $ECHO ""
  2556. }
  2557. case "$ECHO" in
  2558. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2559. $as_echo "printf" >&6; } ;;
  2560. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2561. $as_echo "print -r" >&6; } ;;
  2562. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2563. $as_echo "cat" >&6; } ;;
  2564. esac
  2565. ac_ext=c
  2566. ac_cpp='$CPP $CPPFLAGS'
  2567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2570. if test -n "$ac_tool_prefix"; then
  2571. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2572. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2574. $as_echo_n "checking for $ac_word... " >&6; }
  2575. if ${ac_cv_prog_CC+:} false; then :
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. if test -n "$CC"; then
  2579. ac_cv_prog_CC="$CC" # Let the user override the test.
  2580. else
  2581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2582. for as_dir in $PATH
  2583. do
  2584. IFS=$as_save_IFS
  2585. test -z "$as_dir" && as_dir=.
  2586. for ac_exec_ext in '' $ac_executable_extensions; do
  2587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2588. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2590. break 2
  2591. fi
  2592. done
  2593. done
  2594. IFS=$as_save_IFS
  2595. fi
  2596. fi
  2597. CC=$ac_cv_prog_CC
  2598. if test -n "$CC"; then
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2600. $as_echo "$CC" >&6; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2603. $as_echo "no" >&6; }
  2604. fi
  2605. fi
  2606. if test -z "$ac_cv_prog_CC"; then
  2607. ac_ct_CC=$CC
  2608. # Extract the first word of "gcc", so it can be a program name with args.
  2609. set dummy gcc; ac_word=$2
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2611. $as_echo_n "checking for $ac_word... " >&6; }
  2612. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. if test -n "$ac_ct_CC"; then
  2616. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2617. else
  2618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2619. for as_dir in $PATH
  2620. do
  2621. IFS=$as_save_IFS
  2622. test -z "$as_dir" && as_dir=.
  2623. for ac_exec_ext in '' $ac_executable_extensions; do
  2624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2625. ac_cv_prog_ac_ct_CC="gcc"
  2626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2627. break 2
  2628. fi
  2629. done
  2630. done
  2631. IFS=$as_save_IFS
  2632. fi
  2633. fi
  2634. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2635. if test -n "$ac_ct_CC"; then
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2637. $as_echo "$ac_ct_CC" >&6; }
  2638. else
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2640. $as_echo "no" >&6; }
  2641. fi
  2642. if test "x$ac_ct_CC" = x; then
  2643. CC=""
  2644. else
  2645. case $cross_compiling:$ac_tool_warned in
  2646. yes:)
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2649. ac_tool_warned=yes ;;
  2650. esac
  2651. CC=$ac_ct_CC
  2652. fi
  2653. else
  2654. CC="$ac_cv_prog_CC"
  2655. fi
  2656. if test -z "$CC"; then
  2657. if test -n "$ac_tool_prefix"; then
  2658. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2659. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2661. $as_echo_n "checking for $ac_word... " >&6; }
  2662. if ${ac_cv_prog_CC+:} false; then :
  2663. $as_echo_n "(cached) " >&6
  2664. else
  2665. if test -n "$CC"; then
  2666. ac_cv_prog_CC="$CC" # Let the user override the test.
  2667. else
  2668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2669. for as_dir in $PATH
  2670. do
  2671. IFS=$as_save_IFS
  2672. test -z "$as_dir" && as_dir=.
  2673. for ac_exec_ext in '' $ac_executable_extensions; do
  2674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2675. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2677. break 2
  2678. fi
  2679. done
  2680. done
  2681. IFS=$as_save_IFS
  2682. fi
  2683. fi
  2684. CC=$ac_cv_prog_CC
  2685. if test -n "$CC"; then
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2687. $as_echo "$CC" >&6; }
  2688. else
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2690. $as_echo "no" >&6; }
  2691. fi
  2692. fi
  2693. fi
  2694. if test -z "$CC"; then
  2695. # Extract the first word of "cc", so it can be a program name with args.
  2696. set dummy cc; ac_word=$2
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2698. $as_echo_n "checking for $ac_word... " >&6; }
  2699. if ${ac_cv_prog_CC+:} false; then :
  2700. $as_echo_n "(cached) " >&6
  2701. else
  2702. if test -n "$CC"; then
  2703. ac_cv_prog_CC="$CC" # Let the user override the test.
  2704. else
  2705. ac_prog_rejected=no
  2706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2707. for as_dir in $PATH
  2708. do
  2709. IFS=$as_save_IFS
  2710. test -z "$as_dir" && as_dir=.
  2711. for ac_exec_ext in '' $ac_executable_extensions; do
  2712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2713. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2714. ac_prog_rejected=yes
  2715. continue
  2716. fi
  2717. ac_cv_prog_CC="cc"
  2718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2719. break 2
  2720. fi
  2721. done
  2722. done
  2723. IFS=$as_save_IFS
  2724. if test $ac_prog_rejected = yes; then
  2725. # We found a bogon in the path, so make sure we never use it.
  2726. set dummy $ac_cv_prog_CC
  2727. shift
  2728. if test $# != 0; then
  2729. # We chose a different compiler from the bogus one.
  2730. # However, it has the same basename, so the bogon will be chosen
  2731. # first if we set CC to just the basename; use the full file name.
  2732. shift
  2733. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2734. fi
  2735. fi
  2736. fi
  2737. fi
  2738. CC=$ac_cv_prog_CC
  2739. if test -n "$CC"; then
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2741. $as_echo "$CC" >&6; }
  2742. else
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2744. $as_echo "no" >&6; }
  2745. fi
  2746. fi
  2747. if test -z "$CC"; then
  2748. if test -n "$ac_tool_prefix"; then
  2749. for ac_prog in cl.exe
  2750. do
  2751. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2752. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2754. $as_echo_n "checking for $ac_word... " >&6; }
  2755. if ${ac_cv_prog_CC+:} false; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. if test -n "$CC"; then
  2759. ac_cv_prog_CC="$CC" # Let the user override the test.
  2760. else
  2761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2762. for as_dir in $PATH
  2763. do
  2764. IFS=$as_save_IFS
  2765. test -z "$as_dir" && as_dir=.
  2766. for ac_exec_ext in '' $ac_executable_extensions; do
  2767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2768. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. fi
  2776. fi
  2777. CC=$ac_cv_prog_CC
  2778. if test -n "$CC"; then
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2780. $as_echo "$CC" >&6; }
  2781. else
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2783. $as_echo "no" >&6; }
  2784. fi
  2785. test -n "$CC" && break
  2786. done
  2787. fi
  2788. if test -z "$CC"; then
  2789. ac_ct_CC=$CC
  2790. for ac_prog in cl.exe
  2791. do
  2792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2793. set dummy $ac_prog; ac_word=$2
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2795. $as_echo_n "checking for $ac_word... " >&6; }
  2796. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2797. $as_echo_n "(cached) " >&6
  2798. else
  2799. if test -n "$ac_ct_CC"; then
  2800. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2801. else
  2802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2803. for as_dir in $PATH
  2804. do
  2805. IFS=$as_save_IFS
  2806. test -z "$as_dir" && as_dir=.
  2807. for ac_exec_ext in '' $ac_executable_extensions; do
  2808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2809. ac_cv_prog_ac_ct_CC="$ac_prog"
  2810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2811. break 2
  2812. fi
  2813. done
  2814. done
  2815. IFS=$as_save_IFS
  2816. fi
  2817. fi
  2818. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2819. if test -n "$ac_ct_CC"; then
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2821. $as_echo "$ac_ct_CC" >&6; }
  2822. else
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2824. $as_echo "no" >&6; }
  2825. fi
  2826. test -n "$ac_ct_CC" && break
  2827. done
  2828. if test "x$ac_ct_CC" = x; then
  2829. CC=""
  2830. else
  2831. case $cross_compiling:$ac_tool_warned in
  2832. yes:)
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2835. ac_tool_warned=yes ;;
  2836. esac
  2837. CC=$ac_ct_CC
  2838. fi
  2839. fi
  2840. fi
  2841. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2842. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2843. as_fn_error $? "no acceptable C compiler found in \$PATH
  2844. See \`config.log' for more details" "$LINENO" 5; }
  2845. # Provide some information about the compiler.
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2847. set X $ac_compile
  2848. ac_compiler=$2
  2849. for ac_option in --version -v -V -qversion; do
  2850. { { ac_try="$ac_compiler $ac_option >&5"
  2851. case "(($ac_try" in
  2852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2853. *) ac_try_echo=$ac_try;;
  2854. esac
  2855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2856. $as_echo "$ac_try_echo"; } >&5
  2857. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2858. ac_status=$?
  2859. if test -s conftest.err; then
  2860. sed '10a\
  2861. ... rest of stderr output deleted ...
  2862. 10q' conftest.err >conftest.er1
  2863. cat conftest.er1 >&5
  2864. fi
  2865. rm -f conftest.er1 conftest.err
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2867. test $ac_status = 0; }
  2868. done
  2869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2870. /* end confdefs.h. */
  2871. int
  2872. main ()
  2873. {
  2874. ;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. ac_clean_files_save=$ac_clean_files
  2879. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2880. # Try to create an executable without -o first, disregard a.out.
  2881. # It will help us diagnose broken compilers, and finding out an intuition
  2882. # of exeext.
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2884. $as_echo_n "checking whether the C compiler works... " >&6; }
  2885. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2886. # The possible output files:
  2887. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2888. ac_rmfiles=
  2889. for ac_file in $ac_files
  2890. do
  2891. case $ac_file in
  2892. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2893. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2894. esac
  2895. done
  2896. rm -f $ac_rmfiles
  2897. if { { ac_try="$ac_link_default"
  2898. case "(($ac_try" in
  2899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2900. *) ac_try_echo=$ac_try;;
  2901. esac
  2902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2903. $as_echo "$ac_try_echo"; } >&5
  2904. (eval "$ac_link_default") 2>&5
  2905. ac_status=$?
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2907. test $ac_status = 0; }; then :
  2908. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2909. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2910. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2911. # so that the user can short-circuit this test for compilers unknown to
  2912. # Autoconf.
  2913. for ac_file in $ac_files ''
  2914. do
  2915. test -f "$ac_file" || continue
  2916. case $ac_file in
  2917. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2918. ;;
  2919. [ab].out )
  2920. # We found the default executable, but exeext='' is most
  2921. # certainly right.
  2922. break;;
  2923. *.* )
  2924. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2925. then :; else
  2926. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2927. fi
  2928. # We set ac_cv_exeext here because the later test for it is not
  2929. # safe: cross compilers may not add the suffix if given an `-o'
  2930. # argument, so we may need to know it at that point already.
  2931. # Even if this section looks crufty: it has the advantage of
  2932. # actually working.
  2933. break;;
  2934. * )
  2935. break;;
  2936. esac
  2937. done
  2938. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2939. else
  2940. ac_file=''
  2941. fi
  2942. if test -z "$ac_file"; then :
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. $as_echo "$as_me: failed program was:" >&5
  2946. sed 's/^/| /' conftest.$ac_ext >&5
  2947. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2948. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2949. as_fn_error 77 "C compiler cannot create executables
  2950. See \`config.log' for more details" "$LINENO" 5; }
  2951. else
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2953. $as_echo "yes" >&6; }
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2956. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2958. $as_echo "$ac_file" >&6; }
  2959. ac_exeext=$ac_cv_exeext
  2960. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2961. ac_clean_files=$ac_clean_files_save
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2963. $as_echo_n "checking for suffix of executables... " >&6; }
  2964. if { { ac_try="$ac_link"
  2965. case "(($ac_try" in
  2966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2967. *) ac_try_echo=$ac_try;;
  2968. esac
  2969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2970. $as_echo "$ac_try_echo"; } >&5
  2971. (eval "$ac_link") 2>&5
  2972. ac_status=$?
  2973. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2974. test $ac_status = 0; }; then :
  2975. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2976. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2977. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2978. # `rm'.
  2979. for ac_file in conftest.exe conftest conftest.*; do
  2980. test -f "$ac_file" || continue
  2981. case $ac_file in
  2982. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2983. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2984. break;;
  2985. * ) break;;
  2986. esac
  2987. done
  2988. else
  2989. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2991. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2992. See \`config.log' for more details" "$LINENO" 5; }
  2993. fi
  2994. rm -f conftest conftest$ac_cv_exeext
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2996. $as_echo "$ac_cv_exeext" >&6; }
  2997. rm -f conftest.$ac_ext
  2998. EXEEXT=$ac_cv_exeext
  2999. ac_exeext=$EXEEXT
  3000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3001. /* end confdefs.h. */
  3002. #include <stdio.h>
  3003. int
  3004. main ()
  3005. {
  3006. FILE *f = fopen ("conftest.out", "w");
  3007. return ferror (f) || fclose (f) != 0;
  3008. ;
  3009. return 0;
  3010. }
  3011. _ACEOF
  3012. ac_clean_files="$ac_clean_files conftest.out"
  3013. # Check that the compiler produces executables we can run. If not, either
  3014. # the compiler is broken, or we cross compile.
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3016. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3017. if test "$cross_compiling" != yes; then
  3018. { { ac_try="$ac_link"
  3019. case "(($ac_try" in
  3020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3021. *) ac_try_echo=$ac_try;;
  3022. esac
  3023. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3024. $as_echo "$ac_try_echo"; } >&5
  3025. (eval "$ac_link") 2>&5
  3026. ac_status=$?
  3027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3028. test $ac_status = 0; }
  3029. if { ac_try='./conftest$ac_cv_exeext'
  3030. { { case "(($ac_try" in
  3031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3032. *) ac_try_echo=$ac_try;;
  3033. esac
  3034. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3035. $as_echo "$ac_try_echo"; } >&5
  3036. (eval "$ac_try") 2>&5
  3037. ac_status=$?
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3039. test $ac_status = 0; }; }; then
  3040. cross_compiling=no
  3041. else
  3042. if test "$cross_compiling" = maybe; then
  3043. cross_compiling=yes
  3044. else
  3045. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3047. as_fn_error $? "cannot run C compiled programs.
  3048. If you meant to cross compile, use \`--host'.
  3049. See \`config.log' for more details" "$LINENO" 5; }
  3050. fi
  3051. fi
  3052. fi
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3054. $as_echo "$cross_compiling" >&6; }
  3055. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3056. ac_clean_files=$ac_clean_files_save
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3058. $as_echo_n "checking for suffix of object files... " >&6; }
  3059. if ${ac_cv_objext+:} false; then :
  3060. $as_echo_n "(cached) " >&6
  3061. else
  3062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3063. /* end confdefs.h. */
  3064. int
  3065. main ()
  3066. {
  3067. ;
  3068. return 0;
  3069. }
  3070. _ACEOF
  3071. rm -f conftest.o conftest.obj
  3072. if { { ac_try="$ac_compile"
  3073. case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3078. $as_echo "$ac_try_echo"; } >&5
  3079. (eval "$ac_compile") 2>&5
  3080. ac_status=$?
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3082. test $ac_status = 0; }; then :
  3083. for ac_file in conftest.o conftest.obj conftest.*; do
  3084. test -f "$ac_file" || continue;
  3085. case $ac_file in
  3086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3087. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3088. break;;
  3089. esac
  3090. done
  3091. else
  3092. $as_echo "$as_me: failed program was:" >&5
  3093. sed 's/^/| /' conftest.$ac_ext >&5
  3094. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3096. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3097. See \`config.log' for more details" "$LINENO" 5; }
  3098. fi
  3099. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3100. fi
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3102. $as_echo "$ac_cv_objext" >&6; }
  3103. OBJEXT=$ac_cv_objext
  3104. ac_objext=$OBJEXT
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3106. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3107. if ${ac_cv_c_compiler_gnu+:} false; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. int
  3113. main ()
  3114. {
  3115. #ifndef __GNUC__
  3116. choke me
  3117. #endif
  3118. ;
  3119. return 0;
  3120. }
  3121. _ACEOF
  3122. if ac_fn_c_try_compile "$LINENO"; then :
  3123. ac_compiler_gnu=yes
  3124. else
  3125. ac_compiler_gnu=no
  3126. fi
  3127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3128. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3129. fi
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3131. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3132. if test $ac_compiler_gnu = yes; then
  3133. GCC=yes
  3134. else
  3135. GCC=
  3136. fi
  3137. ac_test_CFLAGS=${CFLAGS+set}
  3138. ac_save_CFLAGS=$CFLAGS
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3140. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3141. if ${ac_cv_prog_cc_g+:} false; then :
  3142. $as_echo_n "(cached) " >&6
  3143. else
  3144. ac_save_c_werror_flag=$ac_c_werror_flag
  3145. ac_c_werror_flag=yes
  3146. ac_cv_prog_cc_g=no
  3147. CFLAGS="-g"
  3148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3149. /* end confdefs.h. */
  3150. int
  3151. main ()
  3152. {
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. if ac_fn_c_try_compile "$LINENO"; then :
  3158. ac_cv_prog_cc_g=yes
  3159. else
  3160. CFLAGS=""
  3161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3162. /* end confdefs.h. */
  3163. int
  3164. main ()
  3165. {
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. if ac_fn_c_try_compile "$LINENO"; then :
  3171. else
  3172. ac_c_werror_flag=$ac_save_c_werror_flag
  3173. CFLAGS="-g"
  3174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3175. /* end confdefs.h. */
  3176. int
  3177. main ()
  3178. {
  3179. ;
  3180. return 0;
  3181. }
  3182. _ACEOF
  3183. if ac_fn_c_try_compile "$LINENO"; then :
  3184. ac_cv_prog_cc_g=yes
  3185. fi
  3186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3187. fi
  3188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3189. fi
  3190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3191. ac_c_werror_flag=$ac_save_c_werror_flag
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3194. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3195. if test "$ac_test_CFLAGS" = set; then
  3196. CFLAGS=$ac_save_CFLAGS
  3197. elif test $ac_cv_prog_cc_g = yes; then
  3198. if test "$GCC" = yes; then
  3199. CFLAGS="-g -O2"
  3200. else
  3201. CFLAGS="-g"
  3202. fi
  3203. else
  3204. if test "$GCC" = yes; then
  3205. CFLAGS="-O2"
  3206. else
  3207. CFLAGS=
  3208. fi
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3211. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3212. if ${ac_cv_prog_cc_c89+:} false; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. ac_cv_prog_cc_c89=no
  3216. ac_save_CC=$CC
  3217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3218. /* end confdefs.h. */
  3219. #include <stdarg.h>
  3220. #include <stdio.h>
  3221. struct stat;
  3222. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3223. struct buf { int x; };
  3224. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3225. static char *e (p, i)
  3226. char **p;
  3227. int i;
  3228. {
  3229. return p[i];
  3230. }
  3231. static char *f (char * (*g) (char **, int), char **p, ...)
  3232. {
  3233. char *s;
  3234. va_list v;
  3235. va_start (v,p);
  3236. s = g (p, va_arg (v,int));
  3237. va_end (v);
  3238. return s;
  3239. }
  3240. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3241. function prototypes and stuff, but not '\xHH' hex character constants.
  3242. These don't provoke an error unfortunately, instead are silently treated
  3243. as 'x'. The following induces an error, until -std is added to get
  3244. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3245. array size at least. It's necessary to write '\x00'==0 to get something
  3246. that's true only with -std. */
  3247. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3248. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3249. inside strings and character constants. */
  3250. #define FOO(x) 'x'
  3251. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3252. int test (int i, double x);
  3253. struct s1 {int (*f) (int a);};
  3254. struct s2 {int (*f) (double a);};
  3255. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3256. int argc;
  3257. char **argv;
  3258. int
  3259. main ()
  3260. {
  3261. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3262. ;
  3263. return 0;
  3264. }
  3265. _ACEOF
  3266. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3267. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3268. do
  3269. CC="$ac_save_CC $ac_arg"
  3270. if ac_fn_c_try_compile "$LINENO"; then :
  3271. ac_cv_prog_cc_c89=$ac_arg
  3272. fi
  3273. rm -f core conftest.err conftest.$ac_objext
  3274. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3275. done
  3276. rm -f conftest.$ac_ext
  3277. CC=$ac_save_CC
  3278. fi
  3279. # AC_CACHE_VAL
  3280. case "x$ac_cv_prog_cc_c89" in
  3281. x)
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3283. $as_echo "none needed" >&6; } ;;
  3284. xno)
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3286. $as_echo "unsupported" >&6; } ;;
  3287. *)
  3288. CC="$CC $ac_cv_prog_cc_c89"
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3290. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3291. esac
  3292. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3293. fi
  3294. ac_ext=c
  3295. ac_cpp='$CPP $CPPFLAGS'
  3296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3300. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3301. if ${ac_cv_path_SED+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3305. for ac_i in 1 2 3 4 5 6 7; do
  3306. ac_script="$ac_script$as_nl$ac_script"
  3307. done
  3308. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3309. { ac_script=; unset ac_script;}
  3310. if test -z "$SED"; then
  3311. ac_path_SED_found=false
  3312. # Loop through the user's path and test for each of PROGNAME-LIST
  3313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3314. for as_dir in $PATH
  3315. do
  3316. IFS=$as_save_IFS
  3317. test -z "$as_dir" && as_dir=.
  3318. for ac_prog in sed gsed; do
  3319. for ac_exec_ext in '' $ac_executable_extensions; do
  3320. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3321. as_fn_executable_p "$ac_path_SED" || continue
  3322. # Check for GNU ac_path_SED and select it if it is found.
  3323. # Check for GNU $ac_path_SED
  3324. case `"$ac_path_SED" --version 2>&1` in
  3325. *GNU*)
  3326. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3327. *)
  3328. ac_count=0
  3329. $as_echo_n 0123456789 >"conftest.in"
  3330. while :
  3331. do
  3332. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3333. mv "conftest.tmp" "conftest.in"
  3334. cp "conftest.in" "conftest.nl"
  3335. $as_echo '' >> "conftest.nl"
  3336. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3337. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3338. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3339. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3340. # Best one so far, save it but keep looking for a better one
  3341. ac_cv_path_SED="$ac_path_SED"
  3342. ac_path_SED_max=$ac_count
  3343. fi
  3344. # 10*(2^10) chars as input seems more than enough
  3345. test $ac_count -gt 10 && break
  3346. done
  3347. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3348. esac
  3349. $ac_path_SED_found && break 3
  3350. done
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. if test -z "$ac_cv_path_SED"; then
  3355. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3356. fi
  3357. else
  3358. ac_cv_path_SED=$SED
  3359. fi
  3360. fi
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3362. $as_echo "$ac_cv_path_SED" >&6; }
  3363. SED="$ac_cv_path_SED"
  3364. rm -f conftest.sed
  3365. test -z "$SED" && SED=sed
  3366. Xsed="$SED -e 1s/^X//"
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3368. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3369. if ${ac_cv_path_GREP+:} false; then :
  3370. $as_echo_n "(cached) " >&6
  3371. else
  3372. if test -z "$GREP"; then
  3373. ac_path_GREP_found=false
  3374. # Loop through the user's path and test for each of PROGNAME-LIST
  3375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3376. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3377. do
  3378. IFS=$as_save_IFS
  3379. test -z "$as_dir" && as_dir=.
  3380. for ac_prog in grep ggrep; do
  3381. for ac_exec_ext in '' $ac_executable_extensions; do
  3382. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3383. as_fn_executable_p "$ac_path_GREP" || continue
  3384. # Check for GNU ac_path_GREP and select it if it is found.
  3385. # Check for GNU $ac_path_GREP
  3386. case `"$ac_path_GREP" --version 2>&1` in
  3387. *GNU*)
  3388. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3389. *)
  3390. ac_count=0
  3391. $as_echo_n 0123456789 >"conftest.in"
  3392. while :
  3393. do
  3394. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3395. mv "conftest.tmp" "conftest.in"
  3396. cp "conftest.in" "conftest.nl"
  3397. $as_echo 'GREP' >> "conftest.nl"
  3398. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3399. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3400. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3401. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3402. # Best one so far, save it but keep looking for a better one
  3403. ac_cv_path_GREP="$ac_path_GREP"
  3404. ac_path_GREP_max=$ac_count
  3405. fi
  3406. # 10*(2^10) chars as input seems more than enough
  3407. test $ac_count -gt 10 && break
  3408. done
  3409. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3410. esac
  3411. $ac_path_GREP_found && break 3
  3412. done
  3413. done
  3414. done
  3415. IFS=$as_save_IFS
  3416. if test -z "$ac_cv_path_GREP"; then
  3417. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3418. fi
  3419. else
  3420. ac_cv_path_GREP=$GREP
  3421. fi
  3422. fi
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3424. $as_echo "$ac_cv_path_GREP" >&6; }
  3425. GREP="$ac_cv_path_GREP"
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3427. $as_echo_n "checking for egrep... " >&6; }
  3428. if ${ac_cv_path_EGREP+:} false; then :
  3429. $as_echo_n "(cached) " >&6
  3430. else
  3431. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3432. then ac_cv_path_EGREP="$GREP -E"
  3433. else
  3434. if test -z "$EGREP"; then
  3435. ac_path_EGREP_found=false
  3436. # Loop through the user's path and test for each of PROGNAME-LIST
  3437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3438. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3439. do
  3440. IFS=$as_save_IFS
  3441. test -z "$as_dir" && as_dir=.
  3442. for ac_prog in egrep; do
  3443. for ac_exec_ext in '' $ac_executable_extensions; do
  3444. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3445. as_fn_executable_p "$ac_path_EGREP" || continue
  3446. # Check for GNU ac_path_EGREP and select it if it is found.
  3447. # Check for GNU $ac_path_EGREP
  3448. case `"$ac_path_EGREP" --version 2>&1` in
  3449. *GNU*)
  3450. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3451. *)
  3452. ac_count=0
  3453. $as_echo_n 0123456789 >"conftest.in"
  3454. while :
  3455. do
  3456. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3457. mv "conftest.tmp" "conftest.in"
  3458. cp "conftest.in" "conftest.nl"
  3459. $as_echo 'EGREP' >> "conftest.nl"
  3460. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3461. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3462. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3463. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3464. # Best one so far, save it but keep looking for a better one
  3465. ac_cv_path_EGREP="$ac_path_EGREP"
  3466. ac_path_EGREP_max=$ac_count
  3467. fi
  3468. # 10*(2^10) chars as input seems more than enough
  3469. test $ac_count -gt 10 && break
  3470. done
  3471. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3472. esac
  3473. $ac_path_EGREP_found && break 3
  3474. done
  3475. done
  3476. done
  3477. IFS=$as_save_IFS
  3478. if test -z "$ac_cv_path_EGREP"; then
  3479. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3480. fi
  3481. else
  3482. ac_cv_path_EGREP=$EGREP
  3483. fi
  3484. fi
  3485. fi
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3487. $as_echo "$ac_cv_path_EGREP" >&6; }
  3488. EGREP="$ac_cv_path_EGREP"
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3490. $as_echo_n "checking for fgrep... " >&6; }
  3491. if ${ac_cv_path_FGREP+:} false; then :
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3495. then ac_cv_path_FGREP="$GREP -F"
  3496. else
  3497. if test -z "$FGREP"; then
  3498. ac_path_FGREP_found=false
  3499. # Loop through the user's path and test for each of PROGNAME-LIST
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_prog in fgrep; do
  3506. for ac_exec_ext in '' $ac_executable_extensions; do
  3507. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3508. as_fn_executable_p "$ac_path_FGREP" || continue
  3509. # Check for GNU ac_path_FGREP and select it if it is found.
  3510. # Check for GNU $ac_path_FGREP
  3511. case `"$ac_path_FGREP" --version 2>&1` in
  3512. *GNU*)
  3513. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3514. *)
  3515. ac_count=0
  3516. $as_echo_n 0123456789 >"conftest.in"
  3517. while :
  3518. do
  3519. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3520. mv "conftest.tmp" "conftest.in"
  3521. cp "conftest.in" "conftest.nl"
  3522. $as_echo 'FGREP' >> "conftest.nl"
  3523. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3524. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3525. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3526. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3527. # Best one so far, save it but keep looking for a better one
  3528. ac_cv_path_FGREP="$ac_path_FGREP"
  3529. ac_path_FGREP_max=$ac_count
  3530. fi
  3531. # 10*(2^10) chars as input seems more than enough
  3532. test $ac_count -gt 10 && break
  3533. done
  3534. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3535. esac
  3536. $ac_path_FGREP_found && break 3
  3537. done
  3538. done
  3539. done
  3540. IFS=$as_save_IFS
  3541. if test -z "$ac_cv_path_FGREP"; then
  3542. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3543. fi
  3544. else
  3545. ac_cv_path_FGREP=$FGREP
  3546. fi
  3547. fi
  3548. fi
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3550. $as_echo "$ac_cv_path_FGREP" >&6; }
  3551. FGREP="$ac_cv_path_FGREP"
  3552. test -z "$GREP" && GREP=grep
  3553. # Check whether --with-gnu-ld was given.
  3554. if test "${with_gnu_ld+set}" = set; then :
  3555. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3556. else
  3557. with_gnu_ld=no
  3558. fi
  3559. ac_prog=ld
  3560. if test "$GCC" = yes; then
  3561. # Check if gcc -print-prog-name=ld gives a path.
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3563. $as_echo_n "checking for ld used by $CC... " >&6; }
  3564. case $host in
  3565. *-*-mingw*)
  3566. # gcc leaves a trailing carriage return which upsets mingw
  3567. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3568. *)
  3569. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3570. esac
  3571. case $ac_prog in
  3572. # Accept absolute paths.
  3573. [\\/]* | ?:[\\/]*)
  3574. re_direlt='/[^/][^/]*/\.\./'
  3575. # Canonicalize the pathname of ld
  3576. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3577. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3578. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3579. done
  3580. test -z "$LD" && LD="$ac_prog"
  3581. ;;
  3582. "")
  3583. # If it fails, then pretend we aren't using GCC.
  3584. ac_prog=ld
  3585. ;;
  3586. *)
  3587. # If it is relative, then search for the first ld in PATH.
  3588. with_gnu_ld=unknown
  3589. ;;
  3590. esac
  3591. elif test "$with_gnu_ld" = yes; then
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3593. $as_echo_n "checking for GNU ld... " >&6; }
  3594. else
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3596. $as_echo_n "checking for non-GNU ld... " >&6; }
  3597. fi
  3598. if ${lt_cv_path_LD+:} false; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. if test -z "$LD"; then
  3602. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3603. for ac_dir in $PATH; do
  3604. IFS="$lt_save_ifs"
  3605. test -z "$ac_dir" && ac_dir=.
  3606. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3607. lt_cv_path_LD="$ac_dir/$ac_prog"
  3608. # Check to see if the program is GNU ld. I'd rather use --version,
  3609. # but apparently some variants of GNU ld only accept -v.
  3610. # Break only if it was the GNU/non-GNU ld that we prefer.
  3611. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3612. *GNU* | *'with BFD'*)
  3613. test "$with_gnu_ld" != no && break
  3614. ;;
  3615. *)
  3616. test "$with_gnu_ld" != yes && break
  3617. ;;
  3618. esac
  3619. fi
  3620. done
  3621. IFS="$lt_save_ifs"
  3622. else
  3623. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3624. fi
  3625. fi
  3626. LD="$lt_cv_path_LD"
  3627. if test -n "$LD"; then
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3629. $as_echo "$LD" >&6; }
  3630. else
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3632. $as_echo "no" >&6; }
  3633. fi
  3634. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3636. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3637. if ${lt_cv_prog_gnu_ld+:} false; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3641. case `$LD -v 2>&1 </dev/null` in
  3642. *GNU* | *'with BFD'*)
  3643. lt_cv_prog_gnu_ld=yes
  3644. ;;
  3645. *)
  3646. lt_cv_prog_gnu_ld=no
  3647. ;;
  3648. esac
  3649. fi
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3651. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3652. with_gnu_ld=$lt_cv_prog_gnu_ld
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3654. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3655. if ${lt_cv_path_NM+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$NM"; then
  3659. # Let the user override the test.
  3660. lt_cv_path_NM="$NM"
  3661. else
  3662. lt_nm_to_check="${ac_tool_prefix}nm"
  3663. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3664. lt_nm_to_check="$lt_nm_to_check nm"
  3665. fi
  3666. for lt_tmp_nm in $lt_nm_to_check; do
  3667. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3668. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3669. IFS="$lt_save_ifs"
  3670. test -z "$ac_dir" && ac_dir=.
  3671. tmp_nm="$ac_dir/$lt_tmp_nm"
  3672. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3673. # Check to see if the nm accepts a BSD-compat flag.
  3674. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3675. # nm: unknown option "B" ignored
  3676. # Tru64's nm complains that /dev/null is an invalid object file
  3677. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3678. */dev/null* | *'Invalid file or object type'*)
  3679. lt_cv_path_NM="$tmp_nm -B"
  3680. break
  3681. ;;
  3682. *)
  3683. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3684. */dev/null*)
  3685. lt_cv_path_NM="$tmp_nm -p"
  3686. break
  3687. ;;
  3688. *)
  3689. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3690. continue # so that we can try to find one that supports BSD flags
  3691. ;;
  3692. esac
  3693. ;;
  3694. esac
  3695. fi
  3696. done
  3697. IFS="$lt_save_ifs"
  3698. done
  3699. : ${lt_cv_path_NM=no}
  3700. fi
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3703. $as_echo "$lt_cv_path_NM" >&6; }
  3704. if test "$lt_cv_path_NM" != "no"; then
  3705. NM="$lt_cv_path_NM"
  3706. else
  3707. # Didn't find any BSD compatible name lister, look for dumpbin.
  3708. if test -n "$DUMPBIN"; then :
  3709. # Let the user override the test.
  3710. else
  3711. if test -n "$ac_tool_prefix"; then
  3712. for ac_prog in dumpbin "link -dump"
  3713. do
  3714. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3715. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3717. $as_echo_n "checking for $ac_word... " >&6; }
  3718. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3719. $as_echo_n "(cached) " >&6
  3720. else
  3721. if test -n "$DUMPBIN"; then
  3722. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3723. else
  3724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3725. for as_dir in $PATH
  3726. do
  3727. IFS=$as_save_IFS
  3728. test -z "$as_dir" && as_dir=.
  3729. for ac_exec_ext in '' $ac_executable_extensions; do
  3730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3731. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3733. break 2
  3734. fi
  3735. done
  3736. done
  3737. IFS=$as_save_IFS
  3738. fi
  3739. fi
  3740. DUMPBIN=$ac_cv_prog_DUMPBIN
  3741. if test -n "$DUMPBIN"; then
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3743. $as_echo "$DUMPBIN" >&6; }
  3744. else
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3746. $as_echo "no" >&6; }
  3747. fi
  3748. test -n "$DUMPBIN" && break
  3749. done
  3750. fi
  3751. if test -z "$DUMPBIN"; then
  3752. ac_ct_DUMPBIN=$DUMPBIN
  3753. for ac_prog in dumpbin "link -dump"
  3754. do
  3755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3756. set dummy $ac_prog; ac_word=$2
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3758. $as_echo_n "checking for $ac_word... " >&6; }
  3759. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. if test -n "$ac_ct_DUMPBIN"; then
  3763. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3764. else
  3765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766. for as_dir in $PATH
  3767. do
  3768. IFS=$as_save_IFS
  3769. test -z "$as_dir" && as_dir=.
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3772. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3774. break 2
  3775. fi
  3776. done
  3777. done
  3778. IFS=$as_save_IFS
  3779. fi
  3780. fi
  3781. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3782. if test -n "$ac_ct_DUMPBIN"; then
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3784. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3785. else
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3787. $as_echo "no" >&6; }
  3788. fi
  3789. test -n "$ac_ct_DUMPBIN" && break
  3790. done
  3791. if test "x$ac_ct_DUMPBIN" = x; then
  3792. DUMPBIN=":"
  3793. else
  3794. case $cross_compiling:$ac_tool_warned in
  3795. yes:)
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3798. ac_tool_warned=yes ;;
  3799. esac
  3800. DUMPBIN=$ac_ct_DUMPBIN
  3801. fi
  3802. fi
  3803. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3804. *COFF*)
  3805. DUMPBIN="$DUMPBIN -symbols"
  3806. ;;
  3807. *)
  3808. DUMPBIN=:
  3809. ;;
  3810. esac
  3811. fi
  3812. if test "$DUMPBIN" != ":"; then
  3813. NM="$DUMPBIN"
  3814. fi
  3815. fi
  3816. test -z "$NM" && NM=nm
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3818. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3819. if ${lt_cv_nm_interface+:} false; then :
  3820. $as_echo_n "(cached) " >&6
  3821. else
  3822. lt_cv_nm_interface="BSD nm"
  3823. echo "int some_variable = 0;" > conftest.$ac_ext
  3824. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3825. (eval "$ac_compile" 2>conftest.err)
  3826. cat conftest.err >&5
  3827. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3828. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3829. cat conftest.err >&5
  3830. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3831. cat conftest.out >&5
  3832. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3833. lt_cv_nm_interface="MS dumpbin"
  3834. fi
  3835. rm -f conftest*
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3838. $as_echo "$lt_cv_nm_interface" >&6; }
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3840. $as_echo_n "checking whether ln -s works... " >&6; }
  3841. LN_S=$as_ln_s
  3842. if test "$LN_S" = "ln -s"; then
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3844. $as_echo "yes" >&6; }
  3845. else
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3847. $as_echo "no, using $LN_S" >&6; }
  3848. fi
  3849. # find the maximum length of command line arguments
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3851. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3852. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. i=0
  3856. teststring="ABCD"
  3857. case $build_os in
  3858. msdosdjgpp*)
  3859. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3860. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3861. # during glob expansion). Even if it were fixed, the result of this
  3862. # check would be larger than it should be.
  3863. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3864. ;;
  3865. gnu*)
  3866. # Under GNU Hurd, this test is not required because there is
  3867. # no limit to the length of command line arguments.
  3868. # Libtool will interpret -1 as no limit whatsoever
  3869. lt_cv_sys_max_cmd_len=-1;
  3870. ;;
  3871. cygwin* | mingw* | cegcc*)
  3872. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3873. # about 5 minutes as the teststring grows exponentially.
  3874. # Worse, since 9x/ME are not pre-emptively multitasking,
  3875. # you end up with a "frozen" computer, even though with patience
  3876. # the test eventually succeeds (with a max line length of 256k).
  3877. # Instead, let's just punt: use the minimum linelength reported by
  3878. # all of the supported platforms: 8192 (on NT/2K/XP).
  3879. lt_cv_sys_max_cmd_len=8192;
  3880. ;;
  3881. mint*)
  3882. # On MiNT this can take a long time and run out of memory.
  3883. lt_cv_sys_max_cmd_len=8192;
  3884. ;;
  3885. amigaos*)
  3886. # On AmigaOS with pdksh, this test takes hours, literally.
  3887. # So we just punt and use a minimum line length of 8192.
  3888. lt_cv_sys_max_cmd_len=8192;
  3889. ;;
  3890. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3891. # This has been around since 386BSD, at least. Likely further.
  3892. if test -x /sbin/sysctl; then
  3893. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3894. elif test -x /usr/sbin/sysctl; then
  3895. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3896. else
  3897. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3898. fi
  3899. # And add a safety zone
  3900. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3902. ;;
  3903. interix*)
  3904. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3905. lt_cv_sys_max_cmd_len=196608
  3906. ;;
  3907. os2*)
  3908. # The test takes a long time on OS/2.
  3909. lt_cv_sys_max_cmd_len=8192
  3910. ;;
  3911. osf*)
  3912. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3913. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3914. # nice to cause kernel panics so lets avoid the loop below.
  3915. # First set a reasonable default.
  3916. lt_cv_sys_max_cmd_len=16384
  3917. #
  3918. if test -x /sbin/sysconfig; then
  3919. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3920. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3921. esac
  3922. fi
  3923. ;;
  3924. sco3.2v5*)
  3925. lt_cv_sys_max_cmd_len=102400
  3926. ;;
  3927. sysv5* | sco5v6* | sysv4.2uw2*)
  3928. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3929. if test -n "$kargmax"; then
  3930. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3931. else
  3932. lt_cv_sys_max_cmd_len=32768
  3933. fi
  3934. ;;
  3935. *)
  3936. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3937. if test -n "$lt_cv_sys_max_cmd_len"; then
  3938. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3939. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3940. else
  3941. # Make teststring a little bigger before we do anything with it.
  3942. # a 1K string should be a reasonable start.
  3943. for i in 1 2 3 4 5 6 7 8 ; do
  3944. teststring=$teststring$teststring
  3945. done
  3946. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3947. # If test is not a shell built-in, we'll probably end up computing a
  3948. # maximum length that is only half of the actual maximum length, but
  3949. # we can't tell.
  3950. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3951. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3952. test $i != 17 # 1/2 MB should be enough
  3953. do
  3954. i=`expr $i + 1`
  3955. teststring=$teststring$teststring
  3956. done
  3957. # Only check the string length outside the loop.
  3958. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3959. teststring=
  3960. # Add a significant safety factor because C++ compilers can tack on
  3961. # massive amounts of additional arguments before passing them to the
  3962. # linker. It appears as though 1/2 is a usable value.
  3963. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3964. fi
  3965. ;;
  3966. esac
  3967. fi
  3968. if test -n $lt_cv_sys_max_cmd_len ; then
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3970. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3971. else
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3973. $as_echo "none" >&6; }
  3974. fi
  3975. max_cmd_len=$lt_cv_sys_max_cmd_len
  3976. : ${CP="cp -f"}
  3977. : ${MV="mv -f"}
  3978. : ${RM="rm -f"}
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3980. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3981. # Try some XSI features
  3982. xsi_shell=no
  3983. ( _lt_dummy="a/b/c"
  3984. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3985. = c,a/b,b/c, \
  3986. && eval 'test $(( 1 + 1 )) -eq 2 \
  3987. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3988. && xsi_shell=yes
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3990. $as_echo "$xsi_shell" >&6; }
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3992. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3993. lt_shell_append=no
  3994. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3995. >/dev/null 2>&1 \
  3996. && lt_shell_append=yes
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3998. $as_echo "$lt_shell_append" >&6; }
  3999. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4000. lt_unset=unset
  4001. else
  4002. lt_unset=false
  4003. fi
  4004. # test EBCDIC or ASCII
  4005. case `echo X|tr X '\101'` in
  4006. A) # ASCII based system
  4007. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4008. lt_SP2NL='tr \040 \012'
  4009. lt_NL2SP='tr \015\012 \040\040'
  4010. ;;
  4011. *) # EBCDIC based system
  4012. lt_SP2NL='tr \100 \n'
  4013. lt_NL2SP='tr \r\n \100\100'
  4014. ;;
  4015. esac
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4017. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4018. if ${lt_cv_to_host_file_cmd+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. case $host in
  4022. *-*-mingw* )
  4023. case $build in
  4024. *-*-mingw* ) # actually msys
  4025. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4026. ;;
  4027. *-*-cygwin* )
  4028. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4029. ;;
  4030. * ) # otherwise, assume *nix
  4031. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4032. ;;
  4033. esac
  4034. ;;
  4035. *-*-cygwin* )
  4036. case $build in
  4037. *-*-mingw* ) # actually msys
  4038. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4039. ;;
  4040. *-*-cygwin* )
  4041. lt_cv_to_host_file_cmd=func_convert_file_noop
  4042. ;;
  4043. * ) # otherwise, assume *nix
  4044. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4045. ;;
  4046. esac
  4047. ;;
  4048. * ) # unhandled hosts (and "normal" native builds)
  4049. lt_cv_to_host_file_cmd=func_convert_file_noop
  4050. ;;
  4051. esac
  4052. fi
  4053. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4055. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4057. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4058. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. #assume ordinary cross tools, or native build.
  4062. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4063. case $host in
  4064. *-*-mingw* )
  4065. case $build in
  4066. *-*-mingw* ) # actually msys
  4067. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4068. ;;
  4069. esac
  4070. ;;
  4071. esac
  4072. fi
  4073. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4075. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4077. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4078. if ${lt_cv_ld_reload_flag+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. lt_cv_ld_reload_flag='-r'
  4082. fi
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4084. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4085. reload_flag=$lt_cv_ld_reload_flag
  4086. case $reload_flag in
  4087. "" | " "*) ;;
  4088. *) reload_flag=" $reload_flag" ;;
  4089. esac
  4090. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4091. case $host_os in
  4092. cygwin* | mingw* | pw32* | cegcc*)
  4093. if test "$GCC" != yes; then
  4094. reload_cmds=false
  4095. fi
  4096. ;;
  4097. darwin*)
  4098. if test "$GCC" = yes; then
  4099. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4100. else
  4101. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4102. fi
  4103. ;;
  4104. esac
  4105. if test -n "$ac_tool_prefix"; then
  4106. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4107. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4109. $as_echo_n "checking for $ac_word... " >&6; }
  4110. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4111. $as_echo_n "(cached) " >&6
  4112. else
  4113. if test -n "$OBJDUMP"; then
  4114. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4115. else
  4116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4117. for as_dir in $PATH
  4118. do
  4119. IFS=$as_save_IFS
  4120. test -z "$as_dir" && as_dir=.
  4121. for ac_exec_ext in '' $ac_executable_extensions; do
  4122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4123. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4125. break 2
  4126. fi
  4127. done
  4128. done
  4129. IFS=$as_save_IFS
  4130. fi
  4131. fi
  4132. OBJDUMP=$ac_cv_prog_OBJDUMP
  4133. if test -n "$OBJDUMP"; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4135. $as_echo "$OBJDUMP" >&6; }
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4138. $as_echo "no" >&6; }
  4139. fi
  4140. fi
  4141. if test -z "$ac_cv_prog_OBJDUMP"; then
  4142. ac_ct_OBJDUMP=$OBJDUMP
  4143. # Extract the first word of "objdump", so it can be a program name with args.
  4144. set dummy objdump; ac_word=$2
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4146. $as_echo_n "checking for $ac_word... " >&6; }
  4147. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$ac_ct_OBJDUMP"; then
  4151. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. for ac_exec_ext in '' $ac_executable_extensions; do
  4159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4160. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4162. break 2
  4163. fi
  4164. done
  4165. done
  4166. IFS=$as_save_IFS
  4167. fi
  4168. fi
  4169. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4170. if test -n "$ac_ct_OBJDUMP"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4172. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. if test "x$ac_ct_OBJDUMP" = x; then
  4178. OBJDUMP="false"
  4179. else
  4180. case $cross_compiling:$ac_tool_warned in
  4181. yes:)
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4184. ac_tool_warned=yes ;;
  4185. esac
  4186. OBJDUMP=$ac_ct_OBJDUMP
  4187. fi
  4188. else
  4189. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4190. fi
  4191. test -z "$OBJDUMP" && OBJDUMP=objdump
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4193. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4194. if ${lt_cv_deplibs_check_method+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4198. lt_cv_file_magic_test_file=
  4199. lt_cv_deplibs_check_method='unknown'
  4200. # Need to set the preceding variable on all platforms that support
  4201. # interlibrary dependencies.
  4202. # 'none' -- dependencies not supported.
  4203. # `unknown' -- same as none, but documents that we really don't know.
  4204. # 'pass_all' -- all dependencies passed with no checks.
  4205. # 'test_compile' -- check by making test program.
  4206. # 'file_magic [[regex]]' -- check by looking for files in library path
  4207. # which responds to the $file_magic_cmd with a given extended regex.
  4208. # If you have `file' or equivalent on your system and you're not sure
  4209. # whether `pass_all' will *always* work, you probably want this one.
  4210. case $host_os in
  4211. aix[4-9]*)
  4212. lt_cv_deplibs_check_method=pass_all
  4213. ;;
  4214. beos*)
  4215. lt_cv_deplibs_check_method=pass_all
  4216. ;;
  4217. bsdi[45]*)
  4218. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4219. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4220. lt_cv_file_magic_test_file=/shlib/libc.so
  4221. ;;
  4222. cygwin*)
  4223. # func_win32_libid is a shell function defined in ltmain.sh
  4224. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4225. lt_cv_file_magic_cmd='func_win32_libid'
  4226. lt_cv_deplibs_check_method=pass_all
  4227. ;;
  4228. mingw* | pw32*)
  4229. # Base MSYS/MinGW do not provide the 'file' command needed by
  4230. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4231. # unless we find 'file', for example because we are cross-compiling.
  4232. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4233. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4234. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4235. lt_cv_file_magic_cmd='func_win32_libid'
  4236. else
  4237. # Keep this pattern in sync with the one in func_win32_libid.
  4238. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4239. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4240. fi
  4241. lt_cv_deplibs_check_method=pass_all
  4242. ;;
  4243. cegcc*)
  4244. # use the weaker test based on 'objdump'. See mingw*.
  4245. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4246. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4247. ;;
  4248. darwin* | rhapsody*)
  4249. lt_cv_deplibs_check_method=pass_all
  4250. ;;
  4251. freebsd* | dragonfly*)
  4252. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4253. case $host_cpu in
  4254. i*86 )
  4255. # Not sure whether the presence of OpenBSD here was a mistake.
  4256. # Let's accept both of them until this is cleared up.
  4257. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4258. lt_cv_file_magic_cmd=/usr/bin/file
  4259. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4260. ;;
  4261. esac
  4262. else
  4263. lt_cv_deplibs_check_method=pass_all
  4264. fi
  4265. ;;
  4266. gnu*)
  4267. lt_cv_deplibs_check_method=pass_all
  4268. ;;
  4269. haiku*)
  4270. lt_cv_deplibs_check_method=pass_all
  4271. ;;
  4272. hpux10.20* | hpux11*)
  4273. lt_cv_file_magic_cmd=/usr/bin/file
  4274. case $host_cpu in
  4275. ia64*)
  4276. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4277. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4278. ;;
  4279. hppa*64*)
  4280. 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]'
  4281. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4282. ;;
  4283. *)
  4284. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4285. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4286. ;;
  4287. esac
  4288. ;;
  4289. interix[3-9]*)
  4290. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4291. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4292. ;;
  4293. irix5* | irix6* | nonstopux*)
  4294. case $LD in
  4295. *-32|*"-32 ") libmagic=32-bit;;
  4296. *-n32|*"-n32 ") libmagic=N32;;
  4297. *-64|*"-64 ") libmagic=64-bit;;
  4298. *) libmagic=never-match;;
  4299. esac
  4300. lt_cv_deplibs_check_method=pass_all
  4301. ;;
  4302. # This must be glibc/ELF.
  4303. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4304. lt_cv_deplibs_check_method=pass_all
  4305. ;;
  4306. netbsd*)
  4307. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4309. else
  4310. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4311. fi
  4312. ;;
  4313. newos6*)
  4314. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4315. lt_cv_file_magic_cmd=/usr/bin/file
  4316. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4317. ;;
  4318. *nto* | *qnx*)
  4319. lt_cv_deplibs_check_method=pass_all
  4320. ;;
  4321. openbsd*)
  4322. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4324. else
  4325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4326. fi
  4327. ;;
  4328. osf3* | osf4* | osf5*)
  4329. lt_cv_deplibs_check_method=pass_all
  4330. ;;
  4331. rdos*)
  4332. lt_cv_deplibs_check_method=pass_all
  4333. ;;
  4334. solaris*)
  4335. lt_cv_deplibs_check_method=pass_all
  4336. ;;
  4337. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4338. lt_cv_deplibs_check_method=pass_all
  4339. ;;
  4340. sysv4 | sysv4.3*)
  4341. case $host_vendor in
  4342. motorola)
  4343. 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]'
  4344. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4345. ;;
  4346. ncr)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. sequent)
  4350. lt_cv_file_magic_cmd='/bin/file'
  4351. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4352. ;;
  4353. sni)
  4354. lt_cv_file_magic_cmd='/bin/file'
  4355. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4356. lt_cv_file_magic_test_file=/lib/libc.so
  4357. ;;
  4358. siemens)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. pc)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. esac
  4365. ;;
  4366. tpf*)
  4367. lt_cv_deplibs_check_method=pass_all
  4368. ;;
  4369. esac
  4370. fi
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4372. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4373. file_magic_glob=
  4374. want_nocaseglob=no
  4375. if test "$build" = "$host"; then
  4376. case $host_os in
  4377. mingw* | pw32*)
  4378. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4379. want_nocaseglob=yes
  4380. else
  4381. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4382. fi
  4383. ;;
  4384. esac
  4385. fi
  4386. file_magic_cmd=$lt_cv_file_magic_cmd
  4387. deplibs_check_method=$lt_cv_deplibs_check_method
  4388. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4389. if test -n "$ac_tool_prefix"; then
  4390. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4391. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4393. $as_echo_n "checking for $ac_word... " >&6; }
  4394. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. if test -n "$DLLTOOL"; then
  4398. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4399. else
  4400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4401. for as_dir in $PATH
  4402. do
  4403. IFS=$as_save_IFS
  4404. test -z "$as_dir" && as_dir=.
  4405. for ac_exec_ext in '' $ac_executable_extensions; do
  4406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4407. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4409. break 2
  4410. fi
  4411. done
  4412. done
  4413. IFS=$as_save_IFS
  4414. fi
  4415. fi
  4416. DLLTOOL=$ac_cv_prog_DLLTOOL
  4417. if test -n "$DLLTOOL"; then
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4419. $as_echo "$DLLTOOL" >&6; }
  4420. else
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4422. $as_echo "no" >&6; }
  4423. fi
  4424. fi
  4425. if test -z "$ac_cv_prog_DLLTOOL"; then
  4426. ac_ct_DLLTOOL=$DLLTOOL
  4427. # Extract the first word of "dlltool", so it can be a program name with args.
  4428. set dummy dlltool; ac_word=$2
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4430. $as_echo_n "checking for $ac_word... " >&6; }
  4431. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4432. $as_echo_n "(cached) " >&6
  4433. else
  4434. if test -n "$ac_ct_DLLTOOL"; then
  4435. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4436. else
  4437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4438. for as_dir in $PATH
  4439. do
  4440. IFS=$as_save_IFS
  4441. test -z "$as_dir" && as_dir=.
  4442. for ac_exec_ext in '' $ac_executable_extensions; do
  4443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4444. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4446. break 2
  4447. fi
  4448. done
  4449. done
  4450. IFS=$as_save_IFS
  4451. fi
  4452. fi
  4453. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4454. if test -n "$ac_ct_DLLTOOL"; then
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4456. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4457. else
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4459. $as_echo "no" >&6; }
  4460. fi
  4461. if test "x$ac_ct_DLLTOOL" = x; then
  4462. DLLTOOL="false"
  4463. else
  4464. case $cross_compiling:$ac_tool_warned in
  4465. yes:)
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4467. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4468. ac_tool_warned=yes ;;
  4469. esac
  4470. DLLTOOL=$ac_ct_DLLTOOL
  4471. fi
  4472. else
  4473. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4474. fi
  4475. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4477. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4478. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4482. case $host_os in
  4483. cygwin* | mingw* | pw32* | cegcc*)
  4484. # two different shell functions defined in ltmain.sh
  4485. # decide which to use based on capabilities of $DLLTOOL
  4486. case `$DLLTOOL --help 2>&1` in
  4487. *--identify-strict*)
  4488. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4489. ;;
  4490. *)
  4491. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4492. ;;
  4493. esac
  4494. ;;
  4495. *)
  4496. # fallback: assume linklib IS sharedlib
  4497. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4498. ;;
  4499. esac
  4500. fi
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4502. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4503. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4504. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4505. if test -n "$ac_tool_prefix"; then
  4506. for ac_prog in ar
  4507. do
  4508. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4509. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4511. $as_echo_n "checking for $ac_word... " >&6; }
  4512. if ${ac_cv_prog_AR+:} false; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. if test -n "$AR"; then
  4516. ac_cv_prog_AR="$AR" # Let the user override the test.
  4517. else
  4518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4519. for as_dir in $PATH
  4520. do
  4521. IFS=$as_save_IFS
  4522. test -z "$as_dir" && as_dir=.
  4523. for ac_exec_ext in '' $ac_executable_extensions; do
  4524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4525. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4527. break 2
  4528. fi
  4529. done
  4530. done
  4531. IFS=$as_save_IFS
  4532. fi
  4533. fi
  4534. AR=$ac_cv_prog_AR
  4535. if test -n "$AR"; then
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4537. $as_echo "$AR" >&6; }
  4538. else
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4540. $as_echo "no" >&6; }
  4541. fi
  4542. test -n "$AR" && break
  4543. done
  4544. fi
  4545. if test -z "$AR"; then
  4546. ac_ct_AR=$AR
  4547. for ac_prog in ar
  4548. do
  4549. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4550. set dummy $ac_prog; ac_word=$2
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4552. $as_echo_n "checking for $ac_word... " >&6; }
  4553. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. if test -n "$ac_ct_AR"; then
  4557. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4558. else
  4559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4560. for as_dir in $PATH
  4561. do
  4562. IFS=$as_save_IFS
  4563. test -z "$as_dir" && as_dir=.
  4564. for ac_exec_ext in '' $ac_executable_extensions; do
  4565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4566. ac_cv_prog_ac_ct_AR="$ac_prog"
  4567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4568. break 2
  4569. fi
  4570. done
  4571. done
  4572. IFS=$as_save_IFS
  4573. fi
  4574. fi
  4575. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4576. if test -n "$ac_ct_AR"; then
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4578. $as_echo "$ac_ct_AR" >&6; }
  4579. else
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4581. $as_echo "no" >&6; }
  4582. fi
  4583. test -n "$ac_ct_AR" && break
  4584. done
  4585. if test "x$ac_ct_AR" = x; then
  4586. AR="false"
  4587. else
  4588. case $cross_compiling:$ac_tool_warned in
  4589. yes:)
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4592. ac_tool_warned=yes ;;
  4593. esac
  4594. AR=$ac_ct_AR
  4595. fi
  4596. fi
  4597. : ${AR=ar}
  4598. : ${AR_FLAGS=cru}
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4600. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4601. if ${lt_cv_ar_at_file+:} false; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. lt_cv_ar_at_file=no
  4605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4606. /* end confdefs.h. */
  4607. int
  4608. main ()
  4609. {
  4610. ;
  4611. return 0;
  4612. }
  4613. _ACEOF
  4614. if ac_fn_c_try_compile "$LINENO"; then :
  4615. echo conftest.$ac_objext > conftest.lst
  4616. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4617. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4618. (eval $lt_ar_try) 2>&5
  4619. ac_status=$?
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4621. test $ac_status = 0; }
  4622. if test "$ac_status" -eq 0; then
  4623. # Ensure the archiver fails upon bogus file names.
  4624. rm -f conftest.$ac_objext libconftest.a
  4625. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4626. (eval $lt_ar_try) 2>&5
  4627. ac_status=$?
  4628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4629. test $ac_status = 0; }
  4630. if test "$ac_status" -ne 0; then
  4631. lt_cv_ar_at_file=@
  4632. fi
  4633. fi
  4634. rm -f conftest.* libconftest.a
  4635. fi
  4636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4637. fi
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4639. $as_echo "$lt_cv_ar_at_file" >&6; }
  4640. if test "x$lt_cv_ar_at_file" = xno; then
  4641. archiver_list_spec=
  4642. else
  4643. archiver_list_spec=$lt_cv_ar_at_file
  4644. fi
  4645. if test -n "$ac_tool_prefix"; then
  4646. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4647. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4649. $as_echo_n "checking for $ac_word... " >&6; }
  4650. if ${ac_cv_prog_STRIP+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. if test -n "$STRIP"; then
  4654. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4655. else
  4656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4657. for as_dir in $PATH
  4658. do
  4659. IFS=$as_save_IFS
  4660. test -z "$as_dir" && as_dir=.
  4661. for ac_exec_ext in '' $ac_executable_extensions; do
  4662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4663. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4665. break 2
  4666. fi
  4667. done
  4668. done
  4669. IFS=$as_save_IFS
  4670. fi
  4671. fi
  4672. STRIP=$ac_cv_prog_STRIP
  4673. if test -n "$STRIP"; then
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4675. $as_echo "$STRIP" >&6; }
  4676. else
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4678. $as_echo "no" >&6; }
  4679. fi
  4680. fi
  4681. if test -z "$ac_cv_prog_STRIP"; then
  4682. ac_ct_STRIP=$STRIP
  4683. # Extract the first word of "strip", so it can be a program name with args.
  4684. set dummy strip; ac_word=$2
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4686. $as_echo_n "checking for $ac_word... " >&6; }
  4687. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. if test -n "$ac_ct_STRIP"; then
  4691. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4692. else
  4693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4694. for as_dir in $PATH
  4695. do
  4696. IFS=$as_save_IFS
  4697. test -z "$as_dir" && as_dir=.
  4698. for ac_exec_ext in '' $ac_executable_extensions; do
  4699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4700. ac_cv_prog_ac_ct_STRIP="strip"
  4701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4702. break 2
  4703. fi
  4704. done
  4705. done
  4706. IFS=$as_save_IFS
  4707. fi
  4708. fi
  4709. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4710. if test -n "$ac_ct_STRIP"; then
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4712. $as_echo "$ac_ct_STRIP" >&6; }
  4713. else
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4715. $as_echo "no" >&6; }
  4716. fi
  4717. if test "x$ac_ct_STRIP" = x; then
  4718. STRIP=":"
  4719. else
  4720. case $cross_compiling:$ac_tool_warned in
  4721. yes:)
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4723. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4724. ac_tool_warned=yes ;;
  4725. esac
  4726. STRIP=$ac_ct_STRIP
  4727. fi
  4728. else
  4729. STRIP="$ac_cv_prog_STRIP"
  4730. fi
  4731. test -z "$STRIP" && STRIP=:
  4732. if test -n "$ac_tool_prefix"; then
  4733. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4734. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4736. $as_echo_n "checking for $ac_word... " >&6; }
  4737. if ${ac_cv_prog_RANLIB+:} false; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. if test -n "$RANLIB"; then
  4741. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4742. else
  4743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4744. for as_dir in $PATH
  4745. do
  4746. IFS=$as_save_IFS
  4747. test -z "$as_dir" && as_dir=.
  4748. for ac_exec_ext in '' $ac_executable_extensions; do
  4749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4750. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4752. break 2
  4753. fi
  4754. done
  4755. done
  4756. IFS=$as_save_IFS
  4757. fi
  4758. fi
  4759. RANLIB=$ac_cv_prog_RANLIB
  4760. if test -n "$RANLIB"; then
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4762. $as_echo "$RANLIB" >&6; }
  4763. else
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4765. $as_echo "no" >&6; }
  4766. fi
  4767. fi
  4768. if test -z "$ac_cv_prog_RANLIB"; then
  4769. ac_ct_RANLIB=$RANLIB
  4770. # Extract the first word of "ranlib", so it can be a program name with args.
  4771. set dummy ranlib; ac_word=$2
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4773. $as_echo_n "checking for $ac_word... " >&6; }
  4774. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. if test -n "$ac_ct_RANLIB"; then
  4778. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4779. else
  4780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4781. for as_dir in $PATH
  4782. do
  4783. IFS=$as_save_IFS
  4784. test -z "$as_dir" && as_dir=.
  4785. for ac_exec_ext in '' $ac_executable_extensions; do
  4786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4787. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4789. break 2
  4790. fi
  4791. done
  4792. done
  4793. IFS=$as_save_IFS
  4794. fi
  4795. fi
  4796. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4797. if test -n "$ac_ct_RANLIB"; then
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4799. $as_echo "$ac_ct_RANLIB" >&6; }
  4800. else
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4802. $as_echo "no" >&6; }
  4803. fi
  4804. if test "x$ac_ct_RANLIB" = x; then
  4805. RANLIB=":"
  4806. else
  4807. case $cross_compiling:$ac_tool_warned in
  4808. yes:)
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4811. ac_tool_warned=yes ;;
  4812. esac
  4813. RANLIB=$ac_ct_RANLIB
  4814. fi
  4815. else
  4816. RANLIB="$ac_cv_prog_RANLIB"
  4817. fi
  4818. test -z "$RANLIB" && RANLIB=:
  4819. # Determine commands to create old-style static archives.
  4820. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4821. old_postinstall_cmds='chmod 644 $oldlib'
  4822. old_postuninstall_cmds=
  4823. if test -n "$RANLIB"; then
  4824. case $host_os in
  4825. openbsd*)
  4826. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4827. ;;
  4828. *)
  4829. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4830. ;;
  4831. esac
  4832. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4833. fi
  4834. case $host_os in
  4835. darwin*)
  4836. lock_old_archive_extraction=yes ;;
  4837. *)
  4838. lock_old_archive_extraction=no ;;
  4839. esac
  4840. for ac_prog in gawk mawk nawk awk
  4841. do
  4842. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4843. set dummy $ac_prog; ac_word=$2
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4845. $as_echo_n "checking for $ac_word... " >&6; }
  4846. if ${ac_cv_prog_AWK+:} false; then :
  4847. $as_echo_n "(cached) " >&6
  4848. else
  4849. if test -n "$AWK"; then
  4850. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4851. else
  4852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4853. for as_dir in $PATH
  4854. do
  4855. IFS=$as_save_IFS
  4856. test -z "$as_dir" && as_dir=.
  4857. for ac_exec_ext in '' $ac_executable_extensions; do
  4858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4859. ac_cv_prog_AWK="$ac_prog"
  4860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4861. break 2
  4862. fi
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. fi
  4867. fi
  4868. AWK=$ac_cv_prog_AWK
  4869. if test -n "$AWK"; then
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4871. $as_echo "$AWK" >&6; }
  4872. else
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4874. $as_echo "no" >&6; }
  4875. fi
  4876. test -n "$AWK" && break
  4877. done
  4878. # If no C compiler was specified, use CC.
  4879. LTCC=${LTCC-"$CC"}
  4880. # If no C compiler flags were specified, use CFLAGS.
  4881. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4882. # Allow CC to be a program name with arguments.
  4883. compiler=$CC
  4884. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4886. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4887. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. # These are sane defaults that work on at least a few old systems.
  4891. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4892. # Character class describing NM global symbol codes.
  4893. symcode='[BCDEGRST]'
  4894. # Regexp to match symbols that can be accessed directly from C.
  4895. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4896. # Define system-specific variables.
  4897. case $host_os in
  4898. aix*)
  4899. symcode='[BCDT]'
  4900. ;;
  4901. cygwin* | mingw* | pw32* | cegcc*)
  4902. symcode='[ABCDGISTW]'
  4903. ;;
  4904. hpux*)
  4905. if test "$host_cpu" = ia64; then
  4906. symcode='[ABCDEGRST]'
  4907. fi
  4908. ;;
  4909. irix* | nonstopux*)
  4910. symcode='[BCDEGRST]'
  4911. ;;
  4912. osf*)
  4913. symcode='[BCDEGQRST]'
  4914. ;;
  4915. solaris*)
  4916. symcode='[BDRT]'
  4917. ;;
  4918. sco3.2v5*)
  4919. symcode='[DT]'
  4920. ;;
  4921. sysv4.2uw2*)
  4922. symcode='[DT]'
  4923. ;;
  4924. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4925. symcode='[ABDT]'
  4926. ;;
  4927. sysv4)
  4928. symcode='[DFNSTU]'
  4929. ;;
  4930. esac
  4931. # If we're using GNU nm, then use its standard symbol codes.
  4932. case `$NM -V 2>&1` in
  4933. *GNU* | *'with BFD'*)
  4934. symcode='[ABCDGIRSTW]' ;;
  4935. esac
  4936. # Transform an extracted symbol line into a proper C declaration.
  4937. # Some systems (esp. on ia64) link data and code symbols differently,
  4938. # so use this general approach.
  4939. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4940. # Transform an extracted symbol line into symbol name and symbol address
  4941. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4942. 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'"
  4943. # Handle CRLF in mingw tool chain
  4944. opt_cr=
  4945. case $build_os in
  4946. mingw*)
  4947. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4948. ;;
  4949. esac
  4950. # Try without a prefix underscore, then with it.
  4951. for ac_symprfx in "" "_"; do
  4952. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4953. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4954. # Write the raw and C identifiers.
  4955. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4956. # Fake it for dumpbin and say T for any non-static function
  4957. # and D for any global variable.
  4958. # Also find C++ and __fastcall symbols from MSVC++,
  4959. # which start with @ or ?.
  4960. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4961. " {last_section=section; section=\$ 3};"\
  4962. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4963. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4964. " \$ 0!~/External *\|/{next};"\
  4965. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4966. " {if(hide[section]) next};"\
  4967. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4968. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4969. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4970. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4971. " ' prfx=^$ac_symprfx"
  4972. else
  4973. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4974. fi
  4975. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4976. # Check to see that the pipe works correctly.
  4977. pipe_works=no
  4978. rm -f conftest*
  4979. cat > conftest.$ac_ext <<_LT_EOF
  4980. #ifdef __cplusplus
  4981. extern "C" {
  4982. #endif
  4983. char nm_test_var;
  4984. void nm_test_func(void);
  4985. void nm_test_func(void){}
  4986. #ifdef __cplusplus
  4987. }
  4988. #endif
  4989. int main(){nm_test_var='a';nm_test_func();return(0);}
  4990. _LT_EOF
  4991. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4992. (eval $ac_compile) 2>&5
  4993. ac_status=$?
  4994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4995. test $ac_status = 0; }; then
  4996. # Now try to grab the symbols.
  4997. nlist=conftest.nm
  4998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4999. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5000. ac_status=$?
  5001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5002. test $ac_status = 0; } && test -s "$nlist"; then
  5003. # Try sorting and uniquifying the output.
  5004. if sort "$nlist" | uniq > "$nlist"T; then
  5005. mv -f "$nlist"T "$nlist"
  5006. else
  5007. rm -f "$nlist"T
  5008. fi
  5009. # Make sure that we snagged all the symbols we need.
  5010. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5011. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5012. cat <<_LT_EOF > conftest.$ac_ext
  5013. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5014. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5015. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5016. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5017. # define LT_DLSYM_CONST
  5018. #elif defined(__osf__)
  5019. /* This system does not cope well with relocations in const data. */
  5020. # define LT_DLSYM_CONST
  5021. #else
  5022. # define LT_DLSYM_CONST const
  5023. #endif
  5024. #ifdef __cplusplus
  5025. extern "C" {
  5026. #endif
  5027. _LT_EOF
  5028. # Now generate the symbol file.
  5029. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5030. cat <<_LT_EOF >> conftest.$ac_ext
  5031. /* The mapping between symbol names and symbols. */
  5032. LT_DLSYM_CONST struct {
  5033. const char *name;
  5034. void *address;
  5035. }
  5036. lt__PROGRAM__LTX_preloaded_symbols[] =
  5037. {
  5038. { "@PROGRAM@", (void *) 0 },
  5039. _LT_EOF
  5040. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5041. cat <<\_LT_EOF >> conftest.$ac_ext
  5042. {0, (void *) 0}
  5043. };
  5044. /* This works around a problem in FreeBSD linker */
  5045. #ifdef FREEBSD_WORKAROUND
  5046. static const void *lt_preloaded_setup() {
  5047. return lt__PROGRAM__LTX_preloaded_symbols;
  5048. }
  5049. #endif
  5050. #ifdef __cplusplus
  5051. }
  5052. #endif
  5053. _LT_EOF
  5054. # Now try linking the two files.
  5055. mv conftest.$ac_objext conftstm.$ac_objext
  5056. lt_globsym_save_LIBS=$LIBS
  5057. lt_globsym_save_CFLAGS=$CFLAGS
  5058. LIBS="conftstm.$ac_objext"
  5059. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5060. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5061. (eval $ac_link) 2>&5
  5062. ac_status=$?
  5063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5064. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5065. pipe_works=yes
  5066. fi
  5067. LIBS=$lt_globsym_save_LIBS
  5068. CFLAGS=$lt_globsym_save_CFLAGS
  5069. else
  5070. echo "cannot find nm_test_func in $nlist" >&5
  5071. fi
  5072. else
  5073. echo "cannot find nm_test_var in $nlist" >&5
  5074. fi
  5075. else
  5076. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5077. fi
  5078. else
  5079. echo "$progname: failed program was:" >&5
  5080. cat conftest.$ac_ext >&5
  5081. fi
  5082. rm -rf conftest* conftst*
  5083. # Do not use the global_symbol_pipe unless it works.
  5084. if test "$pipe_works" = yes; then
  5085. break
  5086. else
  5087. lt_cv_sys_global_symbol_pipe=
  5088. fi
  5089. done
  5090. fi
  5091. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5092. lt_cv_sys_global_symbol_to_cdecl=
  5093. fi
  5094. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5096. $as_echo "failed" >&6; }
  5097. else
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5099. $as_echo "ok" >&6; }
  5100. fi
  5101. # Response file support.
  5102. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5103. nm_file_list_spec='@'
  5104. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5105. nm_file_list_spec='@'
  5106. fi
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5108. $as_echo_n "checking for sysroot... " >&6; }
  5109. # Check whether --with-sysroot was given.
  5110. if test "${with_sysroot+set}" = set; then :
  5111. withval=$with_sysroot;
  5112. else
  5113. with_sysroot=no
  5114. fi
  5115. lt_sysroot=
  5116. case ${with_sysroot} in #(
  5117. yes)
  5118. if test "$GCC" = yes; then
  5119. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5120. fi
  5121. ;; #(
  5122. /*)
  5123. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5124. ;; #(
  5125. no|'')
  5126. ;; #(
  5127. *)
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5129. $as_echo "${with_sysroot}" >&6; }
  5130. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5131. ;;
  5132. esac
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5134. $as_echo "${lt_sysroot:-no}" >&6; }
  5135. # Check whether --enable-libtool-lock was given.
  5136. if test "${enable_libtool_lock+set}" = set; then :
  5137. enableval=$enable_libtool_lock;
  5138. fi
  5139. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5140. # Some flags need to be propagated to the compiler or linker for good
  5141. # libtool support.
  5142. case $host in
  5143. ia64-*-hpux*)
  5144. # Find out which ABI we are using.
  5145. echo 'int i;' > conftest.$ac_ext
  5146. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5147. (eval $ac_compile) 2>&5
  5148. ac_status=$?
  5149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5150. test $ac_status = 0; }; then
  5151. case `/usr/bin/file conftest.$ac_objext` in
  5152. *ELF-32*)
  5153. HPUX_IA64_MODE="32"
  5154. ;;
  5155. *ELF-64*)
  5156. HPUX_IA64_MODE="64"
  5157. ;;
  5158. esac
  5159. fi
  5160. rm -rf conftest*
  5161. ;;
  5162. *-*-irix6*)
  5163. # Find out which ABI we are using.
  5164. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5165. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5166. (eval $ac_compile) 2>&5
  5167. ac_status=$?
  5168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5169. test $ac_status = 0; }; then
  5170. if test "$lt_cv_prog_gnu_ld" = yes; then
  5171. case `/usr/bin/file conftest.$ac_objext` in
  5172. *32-bit*)
  5173. LD="${LD-ld} -melf32bsmip"
  5174. ;;
  5175. *N32*)
  5176. LD="${LD-ld} -melf32bmipn32"
  5177. ;;
  5178. *64-bit*)
  5179. LD="${LD-ld} -melf64bmip"
  5180. ;;
  5181. esac
  5182. else
  5183. case `/usr/bin/file conftest.$ac_objext` in
  5184. *32-bit*)
  5185. LD="${LD-ld} -32"
  5186. ;;
  5187. *N32*)
  5188. LD="${LD-ld} -n32"
  5189. ;;
  5190. *64-bit*)
  5191. LD="${LD-ld} -64"
  5192. ;;
  5193. esac
  5194. fi
  5195. fi
  5196. rm -rf conftest*
  5197. ;;
  5198. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5199. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5200. # Find out which ABI we are using.
  5201. echo 'int i;' > conftest.$ac_ext
  5202. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5203. (eval $ac_compile) 2>&5
  5204. ac_status=$?
  5205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5206. test $ac_status = 0; }; then
  5207. case `/usr/bin/file conftest.o` in
  5208. *32-bit*)
  5209. case $host in
  5210. x86_64-*kfreebsd*-gnu)
  5211. LD="${LD-ld} -m elf_i386_fbsd"
  5212. ;;
  5213. x86_64-*linux*)
  5214. LD="${LD-ld} -m elf_i386"
  5215. ;;
  5216. ppc64-*linux*|powerpc64-*linux*)
  5217. LD="${LD-ld} -m elf32ppclinux"
  5218. ;;
  5219. s390x-*linux*)
  5220. LD="${LD-ld} -m elf_s390"
  5221. ;;
  5222. sparc64-*linux*)
  5223. LD="${LD-ld} -m elf32_sparc"
  5224. ;;
  5225. esac
  5226. ;;
  5227. *64-bit*)
  5228. case $host in
  5229. x86_64-*kfreebsd*-gnu)
  5230. LD="${LD-ld} -m elf_x86_64_fbsd"
  5231. ;;
  5232. x86_64-*linux*)
  5233. LD="${LD-ld} -m elf_x86_64"
  5234. ;;
  5235. ppc*-*linux*|powerpc*-*linux*)
  5236. LD="${LD-ld} -m elf64ppc"
  5237. ;;
  5238. s390*-*linux*|s390*-*tpf*)
  5239. LD="${LD-ld} -m elf64_s390"
  5240. ;;
  5241. sparc*-*linux*)
  5242. LD="${LD-ld} -m elf64_sparc"
  5243. ;;
  5244. esac
  5245. ;;
  5246. esac
  5247. fi
  5248. rm -rf conftest*
  5249. ;;
  5250. *-*-sco3.2v5*)
  5251. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5252. SAVE_CFLAGS="$CFLAGS"
  5253. CFLAGS="$CFLAGS -belf"
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5255. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5256. if ${lt_cv_cc_needs_belf+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. ac_ext=c
  5260. ac_cpp='$CPP $CPPFLAGS'
  5261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5265. /* end confdefs.h. */
  5266. int
  5267. main ()
  5268. {
  5269. ;
  5270. return 0;
  5271. }
  5272. _ACEOF
  5273. if ac_fn_c_try_link "$LINENO"; then :
  5274. lt_cv_cc_needs_belf=yes
  5275. else
  5276. lt_cv_cc_needs_belf=no
  5277. fi
  5278. rm -f core conftest.err conftest.$ac_objext \
  5279. conftest$ac_exeext conftest.$ac_ext
  5280. ac_ext=c
  5281. ac_cpp='$CPP $CPPFLAGS'
  5282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5285. fi
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5287. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5288. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5289. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5290. CFLAGS="$SAVE_CFLAGS"
  5291. fi
  5292. ;;
  5293. *-*solaris*)
  5294. # Find out which ABI we are using.
  5295. echo 'int i;' > conftest.$ac_ext
  5296. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5297. (eval $ac_compile) 2>&5
  5298. ac_status=$?
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5300. test $ac_status = 0; }; then
  5301. case `/usr/bin/file conftest.o` in
  5302. *64-bit*)
  5303. case $lt_cv_prog_gnu_ld in
  5304. yes*)
  5305. case $host in
  5306. i?86-*-solaris*)
  5307. LD="${LD-ld} -m elf_x86_64"
  5308. ;;
  5309. sparc*-*-solaris*)
  5310. LD="${LD-ld} -m elf64_sparc"
  5311. ;;
  5312. esac
  5313. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5314. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5315. LD="${LD-ld}_sol2"
  5316. fi
  5317. ;;
  5318. *)
  5319. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5320. LD="${LD-ld} -64"
  5321. fi
  5322. ;;
  5323. esac
  5324. ;;
  5325. esac
  5326. fi
  5327. rm -rf conftest*
  5328. ;;
  5329. esac
  5330. need_locks="$enable_libtool_lock"
  5331. if test -n "$ac_tool_prefix"; then
  5332. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5333. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5335. $as_echo_n "checking for $ac_word... " >&6; }
  5336. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5337. $as_echo_n "(cached) " >&6
  5338. else
  5339. if test -n "$MANIFEST_TOOL"; then
  5340. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5341. else
  5342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5343. for as_dir in $PATH
  5344. do
  5345. IFS=$as_save_IFS
  5346. test -z "$as_dir" && as_dir=.
  5347. for ac_exec_ext in '' $ac_executable_extensions; do
  5348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5349. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5351. break 2
  5352. fi
  5353. done
  5354. done
  5355. IFS=$as_save_IFS
  5356. fi
  5357. fi
  5358. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5359. if test -n "$MANIFEST_TOOL"; then
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5361. $as_echo "$MANIFEST_TOOL" >&6; }
  5362. else
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5364. $as_echo "no" >&6; }
  5365. fi
  5366. fi
  5367. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5368. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5369. # Extract the first word of "mt", so it can be a program name with args.
  5370. set dummy mt; ac_word=$2
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5372. $as_echo_n "checking for $ac_word... " >&6; }
  5373. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5374. $as_echo_n "(cached) " >&6
  5375. else
  5376. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5377. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5378. else
  5379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5380. for as_dir in $PATH
  5381. do
  5382. IFS=$as_save_IFS
  5383. test -z "$as_dir" && as_dir=.
  5384. for ac_exec_ext in '' $ac_executable_extensions; do
  5385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5386. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5388. break 2
  5389. fi
  5390. done
  5391. done
  5392. IFS=$as_save_IFS
  5393. fi
  5394. fi
  5395. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5396. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5398. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5399. else
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5401. $as_echo "no" >&6; }
  5402. fi
  5403. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5404. MANIFEST_TOOL=":"
  5405. else
  5406. case $cross_compiling:$ac_tool_warned in
  5407. yes:)
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5409. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5410. ac_tool_warned=yes ;;
  5411. esac
  5412. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5413. fi
  5414. else
  5415. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5416. fi
  5417. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5419. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5420. if ${lt_cv_path_mainfest_tool+:} false; then :
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. lt_cv_path_mainfest_tool=no
  5424. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5425. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5426. cat conftest.err >&5
  5427. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5428. lt_cv_path_mainfest_tool=yes
  5429. fi
  5430. rm -f conftest*
  5431. fi
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5433. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5434. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5435. MANIFEST_TOOL=:
  5436. fi
  5437. case $host_os in
  5438. rhapsody* | darwin*)
  5439. if test -n "$ac_tool_prefix"; then
  5440. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5441. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5443. $as_echo_n "checking for $ac_word... " >&6; }
  5444. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. if test -n "$DSYMUTIL"; then
  5448. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. test -z "$as_dir" && as_dir=.
  5455. for ac_exec_ext in '' $ac_executable_extensions; do
  5456. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5457. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5459. break 2
  5460. fi
  5461. done
  5462. done
  5463. IFS=$as_save_IFS
  5464. fi
  5465. fi
  5466. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5467. if test -n "$DSYMUTIL"; then
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5469. $as_echo "$DSYMUTIL" >&6; }
  5470. else
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5472. $as_echo "no" >&6; }
  5473. fi
  5474. fi
  5475. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5476. ac_ct_DSYMUTIL=$DSYMUTIL
  5477. # Extract the first word of "dsymutil", so it can be a program name with args.
  5478. set dummy dsymutil; ac_word=$2
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5480. $as_echo_n "checking for $ac_word... " >&6; }
  5481. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. if test -n "$ac_ct_DSYMUTIL"; then
  5485. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5486. else
  5487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5488. for as_dir in $PATH
  5489. do
  5490. IFS=$as_save_IFS
  5491. test -z "$as_dir" && as_dir=.
  5492. for ac_exec_ext in '' $ac_executable_extensions; do
  5493. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5494. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5496. break 2
  5497. fi
  5498. done
  5499. done
  5500. IFS=$as_save_IFS
  5501. fi
  5502. fi
  5503. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5504. if test -n "$ac_ct_DSYMUTIL"; then
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5506. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5507. else
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5509. $as_echo "no" >&6; }
  5510. fi
  5511. if test "x$ac_ct_DSYMUTIL" = x; then
  5512. DSYMUTIL=":"
  5513. else
  5514. case $cross_compiling:$ac_tool_warned in
  5515. yes:)
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5518. ac_tool_warned=yes ;;
  5519. esac
  5520. DSYMUTIL=$ac_ct_DSYMUTIL
  5521. fi
  5522. else
  5523. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5524. fi
  5525. if test -n "$ac_tool_prefix"; then
  5526. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5527. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_NMEDIT+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$NMEDIT"; then
  5534. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. NMEDIT=$ac_cv_prog_NMEDIT
  5553. if test -n "$NMEDIT"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5555. $as_echo "$NMEDIT" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. fi
  5561. if test -z "$ac_cv_prog_NMEDIT"; then
  5562. ac_ct_NMEDIT=$NMEDIT
  5563. # Extract the first word of "nmedit", so it can be a program name with args.
  5564. set dummy nmedit; ac_word=$2
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5566. $as_echo_n "checking for $ac_word... " >&6; }
  5567. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5568. $as_echo_n "(cached) " >&6
  5569. else
  5570. if test -n "$ac_ct_NMEDIT"; then
  5571. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5572. else
  5573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5574. for as_dir in $PATH
  5575. do
  5576. IFS=$as_save_IFS
  5577. test -z "$as_dir" && as_dir=.
  5578. for ac_exec_ext in '' $ac_executable_extensions; do
  5579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5580. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5582. break 2
  5583. fi
  5584. done
  5585. done
  5586. IFS=$as_save_IFS
  5587. fi
  5588. fi
  5589. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5590. if test -n "$ac_ct_NMEDIT"; then
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5592. $as_echo "$ac_ct_NMEDIT" >&6; }
  5593. else
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5595. $as_echo "no" >&6; }
  5596. fi
  5597. if test "x$ac_ct_NMEDIT" = x; then
  5598. NMEDIT=":"
  5599. else
  5600. case $cross_compiling:$ac_tool_warned in
  5601. yes:)
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5603. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5604. ac_tool_warned=yes ;;
  5605. esac
  5606. NMEDIT=$ac_ct_NMEDIT
  5607. fi
  5608. else
  5609. NMEDIT="$ac_cv_prog_NMEDIT"
  5610. fi
  5611. if test -n "$ac_tool_prefix"; then
  5612. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5613. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5615. $as_echo_n "checking for $ac_word... " >&6; }
  5616. if ${ac_cv_prog_LIPO+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. if test -n "$LIPO"; then
  5620. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5621. else
  5622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5623. for as_dir in $PATH
  5624. do
  5625. IFS=$as_save_IFS
  5626. test -z "$as_dir" && as_dir=.
  5627. for ac_exec_ext in '' $ac_executable_extensions; do
  5628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5629. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5631. break 2
  5632. fi
  5633. done
  5634. done
  5635. IFS=$as_save_IFS
  5636. fi
  5637. fi
  5638. LIPO=$ac_cv_prog_LIPO
  5639. if test -n "$LIPO"; then
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5641. $as_echo "$LIPO" >&6; }
  5642. else
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5644. $as_echo "no" >&6; }
  5645. fi
  5646. fi
  5647. if test -z "$ac_cv_prog_LIPO"; then
  5648. ac_ct_LIPO=$LIPO
  5649. # Extract the first word of "lipo", so it can be a program name with args.
  5650. set dummy lipo; ac_word=$2
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5652. $as_echo_n "checking for $ac_word... " >&6; }
  5653. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5654. $as_echo_n "(cached) " >&6
  5655. else
  5656. if test -n "$ac_ct_LIPO"; then
  5657. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5658. else
  5659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5660. for as_dir in $PATH
  5661. do
  5662. IFS=$as_save_IFS
  5663. test -z "$as_dir" && as_dir=.
  5664. for ac_exec_ext in '' $ac_executable_extensions; do
  5665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5666. ac_cv_prog_ac_ct_LIPO="lipo"
  5667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5668. break 2
  5669. fi
  5670. done
  5671. done
  5672. IFS=$as_save_IFS
  5673. fi
  5674. fi
  5675. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5676. if test -n "$ac_ct_LIPO"; then
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5678. $as_echo "$ac_ct_LIPO" >&6; }
  5679. else
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5681. $as_echo "no" >&6; }
  5682. fi
  5683. if test "x$ac_ct_LIPO" = x; then
  5684. LIPO=":"
  5685. else
  5686. case $cross_compiling:$ac_tool_warned in
  5687. yes:)
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5689. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5690. ac_tool_warned=yes ;;
  5691. esac
  5692. LIPO=$ac_ct_LIPO
  5693. fi
  5694. else
  5695. LIPO="$ac_cv_prog_LIPO"
  5696. fi
  5697. if test -n "$ac_tool_prefix"; then
  5698. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5699. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if ${ac_cv_prog_OTOOL+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$OTOOL"; then
  5706. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5715. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. OTOOL=$ac_cv_prog_OTOOL
  5725. if test -n "$OTOOL"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5727. $as_echo "$OTOOL" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. fi
  5733. if test -z "$ac_cv_prog_OTOOL"; then
  5734. ac_ct_OTOOL=$OTOOL
  5735. # Extract the first word of "otool", so it can be a program name with args.
  5736. set dummy otool; ac_word=$2
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5738. $as_echo_n "checking for $ac_word... " >&6; }
  5739. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. if test -n "$ac_ct_OTOOL"; then
  5743. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5744. else
  5745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5746. for as_dir in $PATH
  5747. do
  5748. IFS=$as_save_IFS
  5749. test -z "$as_dir" && as_dir=.
  5750. for ac_exec_ext in '' $ac_executable_extensions; do
  5751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5752. ac_cv_prog_ac_ct_OTOOL="otool"
  5753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5754. break 2
  5755. fi
  5756. done
  5757. done
  5758. IFS=$as_save_IFS
  5759. fi
  5760. fi
  5761. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5762. if test -n "$ac_ct_OTOOL"; then
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5764. $as_echo "$ac_ct_OTOOL" >&6; }
  5765. else
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5767. $as_echo "no" >&6; }
  5768. fi
  5769. if test "x$ac_ct_OTOOL" = x; then
  5770. OTOOL=":"
  5771. else
  5772. case $cross_compiling:$ac_tool_warned in
  5773. yes:)
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5776. ac_tool_warned=yes ;;
  5777. esac
  5778. OTOOL=$ac_ct_OTOOL
  5779. fi
  5780. else
  5781. OTOOL="$ac_cv_prog_OTOOL"
  5782. fi
  5783. if test -n "$ac_tool_prefix"; then
  5784. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5785. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_OTOOL64+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$OTOOL64"; then
  5792. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5801. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. OTOOL64=$ac_cv_prog_OTOOL64
  5811. if test -n "$OTOOL64"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5813. $as_echo "$OTOOL64" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. fi
  5819. if test -z "$ac_cv_prog_OTOOL64"; then
  5820. ac_ct_OTOOL64=$OTOOL64
  5821. # Extract the first word of "otool64", so it can be a program name with args.
  5822. set dummy otool64; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. if test -n "$ac_ct_OTOOL64"; then
  5829. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5830. else
  5831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5832. for as_dir in $PATH
  5833. do
  5834. IFS=$as_save_IFS
  5835. test -z "$as_dir" && as_dir=.
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5838. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5848. if test -n "$ac_ct_OTOOL64"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5850. $as_echo "$ac_ct_OTOOL64" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. $as_echo "no" >&6; }
  5854. fi
  5855. if test "x$ac_ct_OTOOL64" = x; then
  5856. OTOOL64=":"
  5857. else
  5858. case $cross_compiling:$ac_tool_warned in
  5859. yes:)
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5862. ac_tool_warned=yes ;;
  5863. esac
  5864. OTOOL64=$ac_ct_OTOOL64
  5865. fi
  5866. else
  5867. OTOOL64="$ac_cv_prog_OTOOL64"
  5868. fi
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5870. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5871. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. lt_cv_apple_cc_single_mod=no
  5875. if test -z "${LT_MULTI_MODULE}"; then
  5876. # By default we will add the -single_module flag. You can override
  5877. # by either setting the environment variable LT_MULTI_MODULE
  5878. # non-empty at configure time, or by adding -multi_module to the
  5879. # link flags.
  5880. rm -rf libconftest.dylib*
  5881. echo "int foo(void){return 1;}" > conftest.c
  5882. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5883. -dynamiclib -Wl,-single_module conftest.c" >&5
  5884. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5885. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5886. _lt_result=$?
  5887. # If there is a non-empty error log, and "single_module"
  5888. # appears in it, assume the flag caused a linker warning
  5889. if test -s conftest.err && $GREP single_module conftest.err; then
  5890. cat conftest.err >&5
  5891. # Otherwise, if the output was created with a 0 exit code from
  5892. # the compiler, it worked.
  5893. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5894. lt_cv_apple_cc_single_mod=yes
  5895. else
  5896. cat conftest.err >&5
  5897. fi
  5898. rm -rf libconftest.dylib*
  5899. rm -f conftest.*
  5900. fi
  5901. fi
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5903. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5905. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5906. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. lt_cv_ld_exported_symbols_list=no
  5910. save_LDFLAGS=$LDFLAGS
  5911. echo "_main" > conftest.sym
  5912. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5914. /* end confdefs.h. */
  5915. int
  5916. main ()
  5917. {
  5918. ;
  5919. return 0;
  5920. }
  5921. _ACEOF
  5922. if ac_fn_c_try_link "$LINENO"; then :
  5923. lt_cv_ld_exported_symbols_list=yes
  5924. else
  5925. lt_cv_ld_exported_symbols_list=no
  5926. fi
  5927. rm -f core conftest.err conftest.$ac_objext \
  5928. conftest$ac_exeext conftest.$ac_ext
  5929. LDFLAGS="$save_LDFLAGS"
  5930. fi
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5932. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5934. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5935. if ${lt_cv_ld_force_load+:} false; then :
  5936. $as_echo_n "(cached) " >&6
  5937. else
  5938. lt_cv_ld_force_load=no
  5939. cat > conftest.c << _LT_EOF
  5940. int forced_loaded() { return 2;}
  5941. _LT_EOF
  5942. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5943. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5944. echo "$AR cru libconftest.a conftest.o" >&5
  5945. $AR cru libconftest.a conftest.o 2>&5
  5946. echo "$RANLIB libconftest.a" >&5
  5947. $RANLIB libconftest.a 2>&5
  5948. cat > conftest.c << _LT_EOF
  5949. int main() { return 0;}
  5950. _LT_EOF
  5951. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5952. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5953. _lt_result=$?
  5954. if test -s conftest.err && $GREP force_load conftest.err; then
  5955. cat conftest.err >&5
  5956. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5957. lt_cv_ld_force_load=yes
  5958. else
  5959. cat conftest.err >&5
  5960. fi
  5961. rm -f conftest.err libconftest.a conftest conftest.c
  5962. rm -rf conftest.dSYM
  5963. fi
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5965. $as_echo "$lt_cv_ld_force_load" >&6; }
  5966. case $host_os in
  5967. rhapsody* | darwin1.[012])
  5968. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5969. darwin1.*)
  5970. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5971. darwin*) # darwin 5.x on
  5972. # if running on 10.5 or later, the deployment target defaults
  5973. # to the OS version, if on x86, and 10.4, the deployment
  5974. # target defaults to 10.4. Don't you love it?
  5975. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5976. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5977. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5978. 10.[012]*)
  5979. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5980. 10.*)
  5981. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5982. esac
  5983. ;;
  5984. esac
  5985. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5986. _lt_dar_single_mod='$single_module'
  5987. fi
  5988. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5989. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5990. else
  5991. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5992. fi
  5993. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5994. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5995. else
  5996. _lt_dsymutil=
  5997. fi
  5998. ;;
  5999. esac
  6000. ac_ext=c
  6001. ac_cpp='$CPP $CPPFLAGS'
  6002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6006. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6007. # On Suns, sometimes $CPP names a directory.
  6008. if test -n "$CPP" && test -d "$CPP"; then
  6009. CPP=
  6010. fi
  6011. if test -z "$CPP"; then
  6012. if ${ac_cv_prog_CPP+:} false; then :
  6013. $as_echo_n "(cached) " >&6
  6014. else
  6015. # Double quotes because CPP needs to be expanded
  6016. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6017. do
  6018. ac_preproc_ok=false
  6019. for ac_c_preproc_warn_flag in '' yes
  6020. do
  6021. # Use a header file that comes with gcc, so configuring glibc
  6022. # with a fresh cross-compiler works.
  6023. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6024. # <limits.h> exists even on freestanding compilers.
  6025. # On the NeXT, cc -E runs the code through the compiler's parser,
  6026. # not just through cpp. "Syntax error" is here to catch this case.
  6027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6028. /* end confdefs.h. */
  6029. #ifdef __STDC__
  6030. # include <limits.h>
  6031. #else
  6032. # include <assert.h>
  6033. #endif
  6034. Syntax error
  6035. _ACEOF
  6036. if ac_fn_c_try_cpp "$LINENO"; then :
  6037. else
  6038. # Broken: fails on valid input.
  6039. continue
  6040. fi
  6041. rm -f conftest.err conftest.i conftest.$ac_ext
  6042. # OK, works on sane cases. Now check whether nonexistent headers
  6043. # can be detected and how.
  6044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6045. /* end confdefs.h. */
  6046. #include <ac_nonexistent.h>
  6047. _ACEOF
  6048. if ac_fn_c_try_cpp "$LINENO"; then :
  6049. # Broken: success on invalid input.
  6050. continue
  6051. else
  6052. # Passes both tests.
  6053. ac_preproc_ok=:
  6054. break
  6055. fi
  6056. rm -f conftest.err conftest.i conftest.$ac_ext
  6057. done
  6058. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6059. rm -f conftest.i conftest.err conftest.$ac_ext
  6060. if $ac_preproc_ok; then :
  6061. break
  6062. fi
  6063. done
  6064. ac_cv_prog_CPP=$CPP
  6065. fi
  6066. CPP=$ac_cv_prog_CPP
  6067. else
  6068. ac_cv_prog_CPP=$CPP
  6069. fi
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6071. $as_echo "$CPP" >&6; }
  6072. ac_preproc_ok=false
  6073. for ac_c_preproc_warn_flag in '' yes
  6074. do
  6075. # Use a header file that comes with gcc, so configuring glibc
  6076. # with a fresh cross-compiler works.
  6077. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6078. # <limits.h> exists even on freestanding compilers.
  6079. # On the NeXT, cc -E runs the code through the compiler's parser,
  6080. # not just through cpp. "Syntax error" is here to catch this case.
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6082. /* end confdefs.h. */
  6083. #ifdef __STDC__
  6084. # include <limits.h>
  6085. #else
  6086. # include <assert.h>
  6087. #endif
  6088. Syntax error
  6089. _ACEOF
  6090. if ac_fn_c_try_cpp "$LINENO"; then :
  6091. else
  6092. # Broken: fails on valid input.
  6093. continue
  6094. fi
  6095. rm -f conftest.err conftest.i conftest.$ac_ext
  6096. # OK, works on sane cases. Now check whether nonexistent headers
  6097. # can be detected and how.
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. #include <ac_nonexistent.h>
  6101. _ACEOF
  6102. if ac_fn_c_try_cpp "$LINENO"; then :
  6103. # Broken: success on invalid input.
  6104. continue
  6105. else
  6106. # Passes both tests.
  6107. ac_preproc_ok=:
  6108. break
  6109. fi
  6110. rm -f conftest.err conftest.i conftest.$ac_ext
  6111. done
  6112. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6113. rm -f conftest.i conftest.err conftest.$ac_ext
  6114. if $ac_preproc_ok; then :
  6115. else
  6116. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6117. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6118. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6119. See \`config.log' for more details" "$LINENO" 5; }
  6120. fi
  6121. ac_ext=c
  6122. ac_cpp='$CPP $CPPFLAGS'
  6123. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6124. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6127. $as_echo_n "checking for ANSI C header files... " >&6; }
  6128. if ${ac_cv_header_stdc+:} false; then :
  6129. $as_echo_n "(cached) " >&6
  6130. else
  6131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6132. /* end confdefs.h. */
  6133. #include <stdlib.h>
  6134. #include <stdarg.h>
  6135. #include <string.h>
  6136. #include <float.h>
  6137. int
  6138. main ()
  6139. {
  6140. ;
  6141. return 0;
  6142. }
  6143. _ACEOF
  6144. if ac_fn_c_try_compile "$LINENO"; then :
  6145. ac_cv_header_stdc=yes
  6146. else
  6147. ac_cv_header_stdc=no
  6148. fi
  6149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6150. if test $ac_cv_header_stdc = yes; then
  6151. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6153. /* end confdefs.h. */
  6154. #include <string.h>
  6155. _ACEOF
  6156. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6157. $EGREP "memchr" >/dev/null 2>&1; then :
  6158. else
  6159. ac_cv_header_stdc=no
  6160. fi
  6161. rm -f conftest*
  6162. fi
  6163. if test $ac_cv_header_stdc = yes; then
  6164. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6166. /* end confdefs.h. */
  6167. #include <stdlib.h>
  6168. _ACEOF
  6169. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6170. $EGREP "free" >/dev/null 2>&1; then :
  6171. else
  6172. ac_cv_header_stdc=no
  6173. fi
  6174. rm -f conftest*
  6175. fi
  6176. if test $ac_cv_header_stdc = yes; then
  6177. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6178. if test "$cross_compiling" = yes; then :
  6179. :
  6180. else
  6181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6182. /* end confdefs.h. */
  6183. #include <ctype.h>
  6184. #include <stdlib.h>
  6185. #if ((' ' & 0x0FF) == 0x020)
  6186. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6187. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6188. #else
  6189. # define ISLOWER(c) \
  6190. (('a' <= (c) && (c) <= 'i') \
  6191. || ('j' <= (c) && (c) <= 'r') \
  6192. || ('s' <= (c) && (c) <= 'z'))
  6193. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6194. #endif
  6195. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6196. int
  6197. main ()
  6198. {
  6199. int i;
  6200. for (i = 0; i < 256; i++)
  6201. if (XOR (islower (i), ISLOWER (i))
  6202. || toupper (i) != TOUPPER (i))
  6203. return 2;
  6204. return 0;
  6205. }
  6206. _ACEOF
  6207. if ac_fn_c_try_run "$LINENO"; then :
  6208. else
  6209. ac_cv_header_stdc=no
  6210. fi
  6211. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6212. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6213. fi
  6214. fi
  6215. fi
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6217. $as_echo "$ac_cv_header_stdc" >&6; }
  6218. if test $ac_cv_header_stdc = yes; then
  6219. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6220. fi
  6221. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6222. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6223. inttypes.h stdint.h unistd.h
  6224. do :
  6225. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6226. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6227. "
  6228. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6229. cat >>confdefs.h <<_ACEOF
  6230. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6231. _ACEOF
  6232. fi
  6233. done
  6234. for ac_header in dlfcn.h
  6235. do :
  6236. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6237. "
  6238. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6239. cat >>confdefs.h <<_ACEOF
  6240. #define HAVE_DLFCN_H 1
  6241. _ACEOF
  6242. fi
  6243. done
  6244. # Set options
  6245. enable_win32_dll=yes
  6246. case $host in
  6247. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6248. if test -n "$ac_tool_prefix"; then
  6249. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6250. set dummy ${ac_tool_prefix}as; ac_word=$2
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6252. $as_echo_n "checking for $ac_word... " >&6; }
  6253. if ${ac_cv_prog_AS+:} false; then :
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. if test -n "$AS"; then
  6257. ac_cv_prog_AS="$AS" # Let the user override the test.
  6258. else
  6259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6260. for as_dir in $PATH
  6261. do
  6262. IFS=$as_save_IFS
  6263. test -z "$as_dir" && as_dir=.
  6264. for ac_exec_ext in '' $ac_executable_extensions; do
  6265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6266. ac_cv_prog_AS="${ac_tool_prefix}as"
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6268. break 2
  6269. fi
  6270. done
  6271. done
  6272. IFS=$as_save_IFS
  6273. fi
  6274. fi
  6275. AS=$ac_cv_prog_AS
  6276. if test -n "$AS"; then
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6278. $as_echo "$AS" >&6; }
  6279. else
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6281. $as_echo "no" >&6; }
  6282. fi
  6283. fi
  6284. if test -z "$ac_cv_prog_AS"; then
  6285. ac_ct_AS=$AS
  6286. # Extract the first word of "as", so it can be a program name with args.
  6287. set dummy as; ac_word=$2
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6289. $as_echo_n "checking for $ac_word... " >&6; }
  6290. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. if test -n "$ac_ct_AS"; then
  6294. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6295. else
  6296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6297. for as_dir in $PATH
  6298. do
  6299. IFS=$as_save_IFS
  6300. test -z "$as_dir" && as_dir=.
  6301. for ac_exec_ext in '' $ac_executable_extensions; do
  6302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6303. ac_cv_prog_ac_ct_AS="as"
  6304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6305. break 2
  6306. fi
  6307. done
  6308. done
  6309. IFS=$as_save_IFS
  6310. fi
  6311. fi
  6312. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6313. if test -n "$ac_ct_AS"; then
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6315. $as_echo "$ac_ct_AS" >&6; }
  6316. else
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6318. $as_echo "no" >&6; }
  6319. fi
  6320. if test "x$ac_ct_AS" = x; then
  6321. AS="false"
  6322. else
  6323. case $cross_compiling:$ac_tool_warned in
  6324. yes:)
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6327. ac_tool_warned=yes ;;
  6328. esac
  6329. AS=$ac_ct_AS
  6330. fi
  6331. else
  6332. AS="$ac_cv_prog_AS"
  6333. fi
  6334. if test -n "$ac_tool_prefix"; then
  6335. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6336. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6338. $as_echo_n "checking for $ac_word... " >&6; }
  6339. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6340. $as_echo_n "(cached) " >&6
  6341. else
  6342. if test -n "$DLLTOOL"; then
  6343. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6352. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. DLLTOOL=$ac_cv_prog_DLLTOOL
  6362. if test -n "$DLLTOOL"; then
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6364. $as_echo "$DLLTOOL" >&6; }
  6365. else
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6367. $as_echo "no" >&6; }
  6368. fi
  6369. fi
  6370. if test -z "$ac_cv_prog_DLLTOOL"; then
  6371. ac_ct_DLLTOOL=$DLLTOOL
  6372. # Extract the first word of "dlltool", so it can be a program name with args.
  6373. set dummy dlltool; ac_word=$2
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6375. $as_echo_n "checking for $ac_word... " >&6; }
  6376. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. if test -n "$ac_ct_DLLTOOL"; then
  6380. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6389. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6399. if test -n "$ac_ct_DLLTOOL"; then
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6401. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6402. else
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6404. $as_echo "no" >&6; }
  6405. fi
  6406. if test "x$ac_ct_DLLTOOL" = x; then
  6407. DLLTOOL="false"
  6408. else
  6409. case $cross_compiling:$ac_tool_warned in
  6410. yes:)
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6413. ac_tool_warned=yes ;;
  6414. esac
  6415. DLLTOOL=$ac_ct_DLLTOOL
  6416. fi
  6417. else
  6418. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6419. fi
  6420. if test -n "$ac_tool_prefix"; then
  6421. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6422. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$OBJDUMP"; then
  6429. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6438. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. OBJDUMP=$ac_cv_prog_OBJDUMP
  6448. if test -n "$OBJDUMP"; then
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6450. $as_echo "$OBJDUMP" >&6; }
  6451. else
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. fi
  6456. if test -z "$ac_cv_prog_OBJDUMP"; then
  6457. ac_ct_OBJDUMP=$OBJDUMP
  6458. # Extract the first word of "objdump", so it can be a program name with args.
  6459. set dummy objdump; ac_word=$2
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6461. $as_echo_n "checking for $ac_word... " >&6; }
  6462. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6463. $as_echo_n "(cached) " >&6
  6464. else
  6465. if test -n "$ac_ct_OBJDUMP"; then
  6466. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6467. else
  6468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6469. for as_dir in $PATH
  6470. do
  6471. IFS=$as_save_IFS
  6472. test -z "$as_dir" && as_dir=.
  6473. for ac_exec_ext in '' $ac_executable_extensions; do
  6474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6475. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6477. break 2
  6478. fi
  6479. done
  6480. done
  6481. IFS=$as_save_IFS
  6482. fi
  6483. fi
  6484. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6485. if test -n "$ac_ct_OBJDUMP"; then
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6487. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6488. else
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6490. $as_echo "no" >&6; }
  6491. fi
  6492. if test "x$ac_ct_OBJDUMP" = x; then
  6493. OBJDUMP="false"
  6494. else
  6495. case $cross_compiling:$ac_tool_warned in
  6496. yes:)
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6499. ac_tool_warned=yes ;;
  6500. esac
  6501. OBJDUMP=$ac_ct_OBJDUMP
  6502. fi
  6503. else
  6504. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6505. fi
  6506. ;;
  6507. esac
  6508. test -z "$AS" && AS=as
  6509. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6510. test -z "$OBJDUMP" && OBJDUMP=objdump
  6511. enable_dlopen=no
  6512. # Check whether --enable-shared was given.
  6513. if test "${enable_shared+set}" = set; then :
  6514. enableval=$enable_shared; p=${PACKAGE-default}
  6515. case $enableval in
  6516. yes) enable_shared=yes ;;
  6517. no) enable_shared=no ;;
  6518. *)
  6519. enable_shared=no
  6520. # Look at the argument we got. We use all the common list separators.
  6521. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6522. for pkg in $enableval; do
  6523. IFS="$lt_save_ifs"
  6524. if test "X$pkg" = "X$p"; then
  6525. enable_shared=yes
  6526. fi
  6527. done
  6528. IFS="$lt_save_ifs"
  6529. ;;
  6530. esac
  6531. else
  6532. enable_shared=yes
  6533. fi
  6534. # Check whether --enable-static was given.
  6535. if test "${enable_static+set}" = set; then :
  6536. enableval=$enable_static; p=${PACKAGE-default}
  6537. case $enableval in
  6538. yes) enable_static=yes ;;
  6539. no) enable_static=no ;;
  6540. *)
  6541. enable_static=no
  6542. # Look at the argument we got. We use all the common list separators.
  6543. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6544. for pkg in $enableval; do
  6545. IFS="$lt_save_ifs"
  6546. if test "X$pkg" = "X$p"; then
  6547. enable_static=yes
  6548. fi
  6549. done
  6550. IFS="$lt_save_ifs"
  6551. ;;
  6552. esac
  6553. else
  6554. enable_static=yes
  6555. fi
  6556. # Check whether --with-pic was given.
  6557. if test "${with_pic+set}" = set; then :
  6558. withval=$with_pic; lt_p=${PACKAGE-default}
  6559. case $withval in
  6560. yes|no) pic_mode=$withval ;;
  6561. *)
  6562. pic_mode=default
  6563. # Look at the argument we got. We use all the common list separators.
  6564. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6565. for lt_pkg in $withval; do
  6566. IFS="$lt_save_ifs"
  6567. if test "X$lt_pkg" = "X$lt_p"; then
  6568. pic_mode=yes
  6569. fi
  6570. done
  6571. IFS="$lt_save_ifs"
  6572. ;;
  6573. esac
  6574. else
  6575. pic_mode=default
  6576. fi
  6577. test -z "$pic_mode" && pic_mode=default
  6578. # Check whether --enable-fast-install was given.
  6579. if test "${enable_fast_install+set}" = set; then :
  6580. enableval=$enable_fast_install; p=${PACKAGE-default}
  6581. case $enableval in
  6582. yes) enable_fast_install=yes ;;
  6583. no) enable_fast_install=no ;;
  6584. *)
  6585. enable_fast_install=no
  6586. # Look at the argument we got. We use all the common list separators.
  6587. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6588. for pkg in $enableval; do
  6589. IFS="$lt_save_ifs"
  6590. if test "X$pkg" = "X$p"; then
  6591. enable_fast_install=yes
  6592. fi
  6593. done
  6594. IFS="$lt_save_ifs"
  6595. ;;
  6596. esac
  6597. else
  6598. enable_fast_install=yes
  6599. fi
  6600. # This can be used to rebuild libtool when needed
  6601. LIBTOOL_DEPS="$ltmain"
  6602. # Always use our own libtool.
  6603. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6604. test -z "$LN_S" && LN_S="ln -s"
  6605. if test -n "${ZSH_VERSION+set}" ; then
  6606. setopt NO_GLOB_SUBST
  6607. fi
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6609. $as_echo_n "checking for objdir... " >&6; }
  6610. if ${lt_cv_objdir+:} false; then :
  6611. $as_echo_n "(cached) " >&6
  6612. else
  6613. rm -f .libs 2>/dev/null
  6614. mkdir .libs 2>/dev/null
  6615. if test -d .libs; then
  6616. lt_cv_objdir=.libs
  6617. else
  6618. # MS-DOS does not allow filenames that begin with a dot.
  6619. lt_cv_objdir=_libs
  6620. fi
  6621. rmdir .libs 2>/dev/null
  6622. fi
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6624. $as_echo "$lt_cv_objdir" >&6; }
  6625. objdir=$lt_cv_objdir
  6626. cat >>confdefs.h <<_ACEOF
  6627. #define LT_OBJDIR "$lt_cv_objdir/"
  6628. _ACEOF
  6629. case $host_os in
  6630. aix3*)
  6631. # AIX sometimes has problems with the GCC collect2 program. For some
  6632. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6633. # vanish in a puff of smoke.
  6634. if test "X${COLLECT_NAMES+set}" != Xset; then
  6635. COLLECT_NAMES=
  6636. export COLLECT_NAMES
  6637. fi
  6638. ;;
  6639. esac
  6640. # Global variables:
  6641. ofile=libtool
  6642. can_build_shared=yes
  6643. # All known linkers require a `.a' archive for static linking (except MSVC,
  6644. # which needs '.lib').
  6645. libext=a
  6646. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6647. old_CC="$CC"
  6648. old_CFLAGS="$CFLAGS"
  6649. # Set sane defaults for various variables
  6650. test -z "$CC" && CC=cc
  6651. test -z "$LTCC" && LTCC=$CC
  6652. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6653. test -z "$LD" && LD=ld
  6654. test -z "$ac_objext" && ac_objext=o
  6655. for cc_temp in $compiler""; do
  6656. case $cc_temp in
  6657. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6658. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6659. \-*) ;;
  6660. *) break;;
  6661. esac
  6662. done
  6663. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6664. # Only perform the check for file, if the check method requires it
  6665. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6666. case $deplibs_check_method in
  6667. file_magic*)
  6668. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6670. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6671. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. case $MAGIC_CMD in
  6675. [\\/*] | ?:[\\/]*)
  6676. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6677. ;;
  6678. *)
  6679. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6680. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6681. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6682. for ac_dir in $ac_dummy; do
  6683. IFS="$lt_save_ifs"
  6684. test -z "$ac_dir" && ac_dir=.
  6685. if test -f $ac_dir/${ac_tool_prefix}file; then
  6686. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6687. if test -n "$file_magic_test_file"; then
  6688. case $deplibs_check_method in
  6689. "file_magic "*)
  6690. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6691. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6692. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6693. $EGREP "$file_magic_regex" > /dev/null; then
  6694. :
  6695. else
  6696. cat <<_LT_EOF 1>&2
  6697. *** Warning: the command libtool uses to detect shared libraries,
  6698. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6699. *** The result is that libtool may fail to recognize shared libraries
  6700. *** as such. This will affect the creation of libtool libraries that
  6701. *** depend on shared libraries, but programs linked with such libtool
  6702. *** libraries will work regardless of this problem. Nevertheless, you
  6703. *** may want to report the problem to your system manager and/or to
  6704. *** bug-libtool@gnu.org
  6705. _LT_EOF
  6706. fi ;;
  6707. esac
  6708. fi
  6709. break
  6710. fi
  6711. done
  6712. IFS="$lt_save_ifs"
  6713. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6714. ;;
  6715. esac
  6716. fi
  6717. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6718. if test -n "$MAGIC_CMD"; then
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6720. $as_echo "$MAGIC_CMD" >&6; }
  6721. else
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6723. $as_echo "no" >&6; }
  6724. fi
  6725. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6726. if test -n "$ac_tool_prefix"; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6728. $as_echo_n "checking for file... " >&6; }
  6729. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6730. $as_echo_n "(cached) " >&6
  6731. else
  6732. case $MAGIC_CMD in
  6733. [\\/*] | ?:[\\/]*)
  6734. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6735. ;;
  6736. *)
  6737. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6738. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6739. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6740. for ac_dir in $ac_dummy; do
  6741. IFS="$lt_save_ifs"
  6742. test -z "$ac_dir" && ac_dir=.
  6743. if test -f $ac_dir/file; then
  6744. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6745. if test -n "$file_magic_test_file"; then
  6746. case $deplibs_check_method in
  6747. "file_magic "*)
  6748. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6749. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6750. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6751. $EGREP "$file_magic_regex" > /dev/null; then
  6752. :
  6753. else
  6754. cat <<_LT_EOF 1>&2
  6755. *** Warning: the command libtool uses to detect shared libraries,
  6756. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6757. *** The result is that libtool may fail to recognize shared libraries
  6758. *** as such. This will affect the creation of libtool libraries that
  6759. *** depend on shared libraries, but programs linked with such libtool
  6760. *** libraries will work regardless of this problem. Nevertheless, you
  6761. *** may want to report the problem to your system manager and/or to
  6762. *** bug-libtool@gnu.org
  6763. _LT_EOF
  6764. fi ;;
  6765. esac
  6766. fi
  6767. break
  6768. fi
  6769. done
  6770. IFS="$lt_save_ifs"
  6771. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6772. ;;
  6773. esac
  6774. fi
  6775. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6776. if test -n "$MAGIC_CMD"; then
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6778. $as_echo "$MAGIC_CMD" >&6; }
  6779. else
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6781. $as_echo "no" >&6; }
  6782. fi
  6783. else
  6784. MAGIC_CMD=:
  6785. fi
  6786. fi
  6787. fi
  6788. ;;
  6789. esac
  6790. # Use C for the default configuration in the libtool script
  6791. lt_save_CC="$CC"
  6792. ac_ext=c
  6793. ac_cpp='$CPP $CPPFLAGS'
  6794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6797. # Source file extension for C test sources.
  6798. ac_ext=c
  6799. # Object file extension for compiled C test sources.
  6800. objext=o
  6801. objext=$objext
  6802. # Code to be used in simple compile tests
  6803. lt_simple_compile_test_code="int some_variable = 0;"
  6804. # Code to be used in simple link tests
  6805. lt_simple_link_test_code='int main(){return(0);}'
  6806. # If no C compiler was specified, use CC.
  6807. LTCC=${LTCC-"$CC"}
  6808. # If no C compiler flags were specified, use CFLAGS.
  6809. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6810. # Allow CC to be a program name with arguments.
  6811. compiler=$CC
  6812. # Save the default compiler, since it gets overwritten when the other
  6813. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6814. compiler_DEFAULT=$CC
  6815. # save warnings/boilerplate of simple test code
  6816. ac_outfile=conftest.$ac_objext
  6817. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6818. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6819. _lt_compiler_boilerplate=`cat conftest.err`
  6820. $RM conftest*
  6821. ac_outfile=conftest.$ac_objext
  6822. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6823. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6824. _lt_linker_boilerplate=`cat conftest.err`
  6825. $RM -r conftest*
  6826. ## CAVEAT EMPTOR:
  6827. ## There is no encapsulation within the following macros, do not change
  6828. ## the running order or otherwise move them around unless you know exactly
  6829. ## what you are doing...
  6830. if test -n "$compiler"; then
  6831. lt_prog_compiler_no_builtin_flag=
  6832. if test "$GCC" = yes; then
  6833. case $cc_basename in
  6834. nvcc*)
  6835. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6836. *)
  6837. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6838. esac
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6840. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6841. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. lt_cv_prog_compiler_rtti_exceptions=no
  6845. ac_outfile=conftest.$ac_objext
  6846. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6847. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6848. # Insert the option either (1) after the last *FLAGS variable, or
  6849. # (2) before a word containing "conftest.", or (3) at the end.
  6850. # Note that $ac_compile itself does not contain backslashes and begins
  6851. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6852. # The option is referenced via a variable to avoid confusing sed.
  6853. lt_compile=`echo "$ac_compile" | $SED \
  6854. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6855. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6856. -e 's:$: $lt_compiler_flag:'`
  6857. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6858. (eval "$lt_compile" 2>conftest.err)
  6859. ac_status=$?
  6860. cat conftest.err >&5
  6861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6862. if (exit $ac_status) && test -s "$ac_outfile"; then
  6863. # The compiler can only warn and ignore the option if not recognized
  6864. # So say no if there are warnings other than the usual output.
  6865. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6866. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6867. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6868. lt_cv_prog_compiler_rtti_exceptions=yes
  6869. fi
  6870. fi
  6871. $RM conftest*
  6872. fi
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6874. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6875. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6876. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6877. else
  6878. :
  6879. fi
  6880. fi
  6881. lt_prog_compiler_wl=
  6882. lt_prog_compiler_pic=
  6883. lt_prog_compiler_static=
  6884. if test "$GCC" = yes; then
  6885. lt_prog_compiler_wl='-Wl,'
  6886. lt_prog_compiler_static='-static'
  6887. case $host_os in
  6888. aix*)
  6889. # All AIX code is PIC.
  6890. if test "$host_cpu" = ia64; then
  6891. # AIX 5 now supports IA64 processor
  6892. lt_prog_compiler_static='-Bstatic'
  6893. fi
  6894. ;;
  6895. amigaos*)
  6896. case $host_cpu in
  6897. powerpc)
  6898. # see comment about AmigaOS4 .so support
  6899. lt_prog_compiler_pic='-fPIC'
  6900. ;;
  6901. m68k)
  6902. # FIXME: we need at least 68020 code to build shared libraries, but
  6903. # adding the `-m68020' flag to GCC prevents building anything better,
  6904. # like `-m68040'.
  6905. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6906. ;;
  6907. esac
  6908. ;;
  6909. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6910. # PIC is the default for these OSes.
  6911. ;;
  6912. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6913. # This hack is so that the source file can tell whether it is being
  6914. # built for inclusion in a dll (and should export symbols for example).
  6915. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6916. # (--disable-auto-import) libraries
  6917. lt_prog_compiler_pic='-DDLL_EXPORT'
  6918. ;;
  6919. darwin* | rhapsody*)
  6920. # PIC is the default on this platform
  6921. # Common symbols not allowed in MH_DYLIB files
  6922. lt_prog_compiler_pic='-fno-common'
  6923. ;;
  6924. haiku*)
  6925. # PIC is the default for Haiku.
  6926. # The "-static" flag exists, but is broken.
  6927. lt_prog_compiler_static=
  6928. ;;
  6929. hpux*)
  6930. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6931. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6932. # sets the default TLS model and affects inlining.
  6933. case $host_cpu in
  6934. hppa*64*)
  6935. # +Z the default
  6936. ;;
  6937. *)
  6938. lt_prog_compiler_pic='-fPIC'
  6939. ;;
  6940. esac
  6941. ;;
  6942. interix[3-9]*)
  6943. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6944. # Instead, we relocate shared libraries at runtime.
  6945. ;;
  6946. msdosdjgpp*)
  6947. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6948. # on systems that don't support them.
  6949. lt_prog_compiler_can_build_shared=no
  6950. enable_shared=no
  6951. ;;
  6952. *nto* | *qnx*)
  6953. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6954. # it will coredump.
  6955. lt_prog_compiler_pic='-fPIC -shared'
  6956. ;;
  6957. sysv4*MP*)
  6958. if test -d /usr/nec; then
  6959. lt_prog_compiler_pic=-Kconform_pic
  6960. fi
  6961. ;;
  6962. *)
  6963. lt_prog_compiler_pic='-fPIC'
  6964. ;;
  6965. esac
  6966. case $cc_basename in
  6967. nvcc*) # Cuda Compiler Driver 2.2
  6968. lt_prog_compiler_wl='-Xlinker '
  6969. if test -n "$lt_prog_compiler_pic"; then
  6970. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6971. fi
  6972. ;;
  6973. esac
  6974. else
  6975. # PORTME Check for flag to pass linker flags through the system compiler.
  6976. case $host_os in
  6977. aix*)
  6978. lt_prog_compiler_wl='-Wl,'
  6979. if test "$host_cpu" = ia64; then
  6980. # AIX 5 now supports IA64 processor
  6981. lt_prog_compiler_static='-Bstatic'
  6982. else
  6983. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6984. fi
  6985. ;;
  6986. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6987. # This hack is so that the source file can tell whether it is being
  6988. # built for inclusion in a dll (and should export symbols for example).
  6989. lt_prog_compiler_pic='-DDLL_EXPORT'
  6990. ;;
  6991. hpux9* | hpux10* | hpux11*)
  6992. lt_prog_compiler_wl='-Wl,'
  6993. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6994. # not for PA HP-UX.
  6995. case $host_cpu in
  6996. hppa*64*|ia64*)
  6997. # +Z the default
  6998. ;;
  6999. *)
  7000. lt_prog_compiler_pic='+Z'
  7001. ;;
  7002. esac
  7003. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7004. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7005. ;;
  7006. irix5* | irix6* | nonstopux*)
  7007. lt_prog_compiler_wl='-Wl,'
  7008. # PIC (with -KPIC) is the default.
  7009. lt_prog_compiler_static='-non_shared'
  7010. ;;
  7011. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7012. case $cc_basename in
  7013. # old Intel for x86_64 which still supported -KPIC.
  7014. ecc*)
  7015. lt_prog_compiler_wl='-Wl,'
  7016. lt_prog_compiler_pic='-KPIC'
  7017. lt_prog_compiler_static='-static'
  7018. ;;
  7019. # icc used to be incompatible with GCC.
  7020. # ICC 10 doesn't accept -KPIC any more.
  7021. icc* | ifort*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. lt_prog_compiler_pic='-fPIC'
  7024. lt_prog_compiler_static='-static'
  7025. ;;
  7026. # Lahey Fortran 8.1.
  7027. lf95*)
  7028. lt_prog_compiler_wl='-Wl,'
  7029. lt_prog_compiler_pic='--shared'
  7030. lt_prog_compiler_static='--static'
  7031. ;;
  7032. nagfor*)
  7033. # NAG Fortran compiler
  7034. lt_prog_compiler_wl='-Wl,-Wl,,'
  7035. lt_prog_compiler_pic='-PIC'
  7036. lt_prog_compiler_static='-Bstatic'
  7037. ;;
  7038. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7039. # Portland Group compilers (*not* the Pentium gcc compiler,
  7040. # which looks to be a dead project)
  7041. lt_prog_compiler_wl='-Wl,'
  7042. lt_prog_compiler_pic='-fpic'
  7043. lt_prog_compiler_static='-Bstatic'
  7044. ;;
  7045. ccc*)
  7046. lt_prog_compiler_wl='-Wl,'
  7047. # All Alpha code is PIC.
  7048. lt_prog_compiler_static='-non_shared'
  7049. ;;
  7050. xl* | bgxl* | bgf* | mpixl*)
  7051. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7052. lt_prog_compiler_wl='-Wl,'
  7053. lt_prog_compiler_pic='-qpic'
  7054. lt_prog_compiler_static='-qstaticlink'
  7055. ;;
  7056. *)
  7057. case `$CC -V 2>&1 | sed 5q` in
  7058. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7059. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7060. lt_prog_compiler_pic='-KPIC'
  7061. lt_prog_compiler_static='-Bstatic'
  7062. lt_prog_compiler_wl=''
  7063. ;;
  7064. *Sun\ F* | *Sun*Fortran*)
  7065. lt_prog_compiler_pic='-KPIC'
  7066. lt_prog_compiler_static='-Bstatic'
  7067. lt_prog_compiler_wl='-Qoption ld '
  7068. ;;
  7069. *Sun\ C*)
  7070. # Sun C 5.9
  7071. lt_prog_compiler_pic='-KPIC'
  7072. lt_prog_compiler_static='-Bstatic'
  7073. lt_prog_compiler_wl='-Wl,'
  7074. ;;
  7075. *Intel*\ [CF]*Compiler*)
  7076. lt_prog_compiler_wl='-Wl,'
  7077. lt_prog_compiler_pic='-fPIC'
  7078. lt_prog_compiler_static='-static'
  7079. ;;
  7080. *Portland\ Group*)
  7081. lt_prog_compiler_wl='-Wl,'
  7082. lt_prog_compiler_pic='-fpic'
  7083. lt_prog_compiler_static='-Bstatic'
  7084. ;;
  7085. esac
  7086. ;;
  7087. esac
  7088. ;;
  7089. newsos6)
  7090. lt_prog_compiler_pic='-KPIC'
  7091. lt_prog_compiler_static='-Bstatic'
  7092. ;;
  7093. *nto* | *qnx*)
  7094. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7095. # it will coredump.
  7096. lt_prog_compiler_pic='-fPIC -shared'
  7097. ;;
  7098. osf3* | osf4* | osf5*)
  7099. lt_prog_compiler_wl='-Wl,'
  7100. # All OSF/1 code is PIC.
  7101. lt_prog_compiler_static='-non_shared'
  7102. ;;
  7103. rdos*)
  7104. lt_prog_compiler_static='-non_shared'
  7105. ;;
  7106. solaris*)
  7107. lt_prog_compiler_pic='-KPIC'
  7108. lt_prog_compiler_static='-Bstatic'
  7109. case $cc_basename in
  7110. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7111. lt_prog_compiler_wl='-Qoption ld ';;
  7112. *)
  7113. lt_prog_compiler_wl='-Wl,';;
  7114. esac
  7115. ;;
  7116. sunos4*)
  7117. lt_prog_compiler_wl='-Qoption ld '
  7118. lt_prog_compiler_pic='-PIC'
  7119. lt_prog_compiler_static='-Bstatic'
  7120. ;;
  7121. sysv4 | sysv4.2uw2* | sysv4.3*)
  7122. lt_prog_compiler_wl='-Wl,'
  7123. lt_prog_compiler_pic='-KPIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. ;;
  7126. sysv4*MP*)
  7127. if test -d /usr/nec ;then
  7128. lt_prog_compiler_pic='-Kconform_pic'
  7129. lt_prog_compiler_static='-Bstatic'
  7130. fi
  7131. ;;
  7132. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7133. lt_prog_compiler_wl='-Wl,'
  7134. lt_prog_compiler_pic='-KPIC'
  7135. lt_prog_compiler_static='-Bstatic'
  7136. ;;
  7137. unicos*)
  7138. lt_prog_compiler_wl='-Wl,'
  7139. lt_prog_compiler_can_build_shared=no
  7140. ;;
  7141. uts4*)
  7142. lt_prog_compiler_pic='-pic'
  7143. lt_prog_compiler_static='-Bstatic'
  7144. ;;
  7145. *)
  7146. lt_prog_compiler_can_build_shared=no
  7147. ;;
  7148. esac
  7149. fi
  7150. case $host_os in
  7151. # For platforms which do not support PIC, -DPIC is meaningless:
  7152. *djgpp*)
  7153. lt_prog_compiler_pic=
  7154. ;;
  7155. *)
  7156. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7157. ;;
  7158. esac
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7160. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7161. if ${lt_cv_prog_compiler_pic+:} false; then :
  7162. $as_echo_n "(cached) " >&6
  7163. else
  7164. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7165. fi
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7167. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7168. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7169. #
  7170. # Check to make sure the PIC flag actually works.
  7171. #
  7172. if test -n "$lt_prog_compiler_pic"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7174. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7175. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. lt_cv_prog_compiler_pic_works=no
  7179. ac_outfile=conftest.$ac_objext
  7180. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7181. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7182. # Insert the option either (1) after the last *FLAGS variable, or
  7183. # (2) before a word containing "conftest.", or (3) at the end.
  7184. # Note that $ac_compile itself does not contain backslashes and begins
  7185. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7186. # The option is referenced via a variable to avoid confusing sed.
  7187. lt_compile=`echo "$ac_compile" | $SED \
  7188. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7189. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7190. -e 's:$: $lt_compiler_flag:'`
  7191. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7192. (eval "$lt_compile" 2>conftest.err)
  7193. ac_status=$?
  7194. cat conftest.err >&5
  7195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7196. if (exit $ac_status) && test -s "$ac_outfile"; then
  7197. # The compiler can only warn and ignore the option if not recognized
  7198. # So say no if there are warnings other than the usual output.
  7199. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7200. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7201. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7202. lt_cv_prog_compiler_pic_works=yes
  7203. fi
  7204. fi
  7205. $RM conftest*
  7206. fi
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7208. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7209. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7210. case $lt_prog_compiler_pic in
  7211. "" | " "*) ;;
  7212. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7213. esac
  7214. else
  7215. lt_prog_compiler_pic=
  7216. lt_prog_compiler_can_build_shared=no
  7217. fi
  7218. fi
  7219. #
  7220. # Check to make sure the static flag actually works.
  7221. #
  7222. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7224. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7225. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7226. $as_echo_n "(cached) " >&6
  7227. else
  7228. lt_cv_prog_compiler_static_works=no
  7229. save_LDFLAGS="$LDFLAGS"
  7230. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7231. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7232. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7233. # The linker can only warn and ignore the option if not recognized
  7234. # So say no if there are warnings
  7235. if test -s conftest.err; then
  7236. # Append any errors to the config.log.
  7237. cat conftest.err 1>&5
  7238. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7239. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7240. if diff conftest.exp conftest.er2 >/dev/null; then
  7241. lt_cv_prog_compiler_static_works=yes
  7242. fi
  7243. else
  7244. lt_cv_prog_compiler_static_works=yes
  7245. fi
  7246. fi
  7247. $RM -r conftest*
  7248. LDFLAGS="$save_LDFLAGS"
  7249. fi
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7251. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7252. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7253. :
  7254. else
  7255. lt_prog_compiler_static=
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7258. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7259. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7260. $as_echo_n "(cached) " >&6
  7261. else
  7262. lt_cv_prog_compiler_c_o=no
  7263. $RM -r conftest 2>/dev/null
  7264. mkdir conftest
  7265. cd conftest
  7266. mkdir out
  7267. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7268. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7269. # Insert the option either (1) after the last *FLAGS variable, or
  7270. # (2) before a word containing "conftest.", or (3) at the end.
  7271. # Note that $ac_compile itself does not contain backslashes and begins
  7272. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7273. lt_compile=`echo "$ac_compile" | $SED \
  7274. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7275. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7276. -e 's:$: $lt_compiler_flag:'`
  7277. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7278. (eval "$lt_compile" 2>out/conftest.err)
  7279. ac_status=$?
  7280. cat out/conftest.err >&5
  7281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7282. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7283. then
  7284. # The compiler can only warn and ignore the option if not recognized
  7285. # So say no if there are warnings
  7286. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7287. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7288. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7289. lt_cv_prog_compiler_c_o=yes
  7290. fi
  7291. fi
  7292. chmod u+w . 2>&5
  7293. $RM conftest*
  7294. # SGI C++ compiler will create directory out/ii_files/ for
  7295. # template instantiation
  7296. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7297. $RM out/* && rmdir out
  7298. cd ..
  7299. $RM -r conftest
  7300. $RM conftest*
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7303. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7305. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7306. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_prog_compiler_c_o=no
  7310. $RM -r conftest 2>/dev/null
  7311. mkdir conftest
  7312. cd conftest
  7313. mkdir out
  7314. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7315. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7316. # Insert the option either (1) after the last *FLAGS variable, or
  7317. # (2) before a word containing "conftest.", or (3) at the end.
  7318. # Note that $ac_compile itself does not contain backslashes and begins
  7319. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7320. lt_compile=`echo "$ac_compile" | $SED \
  7321. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7322. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7323. -e 's:$: $lt_compiler_flag:'`
  7324. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7325. (eval "$lt_compile" 2>out/conftest.err)
  7326. ac_status=$?
  7327. cat out/conftest.err >&5
  7328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7329. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7330. then
  7331. # The compiler can only warn and ignore the option if not recognized
  7332. # So say no if there are warnings
  7333. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7334. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7335. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7336. lt_cv_prog_compiler_c_o=yes
  7337. fi
  7338. fi
  7339. chmod u+w . 2>&5
  7340. $RM conftest*
  7341. # SGI C++ compiler will create directory out/ii_files/ for
  7342. # template instantiation
  7343. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7344. $RM out/* && rmdir out
  7345. cd ..
  7346. $RM -r conftest
  7347. $RM conftest*
  7348. fi
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7350. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7351. hard_links="nottested"
  7352. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7353. # do not overwrite the value of need_locks provided by the user
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7355. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7356. hard_links=yes
  7357. $RM conftest*
  7358. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7359. touch conftest.a
  7360. ln conftest.a conftest.b 2>&5 || hard_links=no
  7361. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7363. $as_echo "$hard_links" >&6; }
  7364. if test "$hard_links" = no; then
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7366. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7367. need_locks=warn
  7368. fi
  7369. else
  7370. need_locks=no
  7371. fi
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7373. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7374. runpath_var=
  7375. allow_undefined_flag=
  7376. always_export_symbols=no
  7377. archive_cmds=
  7378. archive_expsym_cmds=
  7379. compiler_needs_object=no
  7380. enable_shared_with_static_runtimes=no
  7381. export_dynamic_flag_spec=
  7382. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7383. hardcode_automatic=no
  7384. hardcode_direct=no
  7385. hardcode_direct_absolute=no
  7386. hardcode_libdir_flag_spec=
  7387. hardcode_libdir_separator=
  7388. hardcode_minus_L=no
  7389. hardcode_shlibpath_var=unsupported
  7390. inherit_rpath=no
  7391. link_all_deplibs=unknown
  7392. module_cmds=
  7393. module_expsym_cmds=
  7394. old_archive_from_new_cmds=
  7395. old_archive_from_expsyms_cmds=
  7396. thread_safe_flag_spec=
  7397. whole_archive_flag_spec=
  7398. # include_expsyms should be a list of space-separated symbols to be *always*
  7399. # included in the symbol list
  7400. include_expsyms=
  7401. # exclude_expsyms can be an extended regexp of symbols to exclude
  7402. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7403. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7404. # as well as any symbol that contains `d'.
  7405. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7406. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7407. # platforms (ab)use it in PIC code, but their linkers get confused if
  7408. # the symbol is explicitly referenced. Since portable code cannot
  7409. # rely on this symbol name, it's probably fine to never include it in
  7410. # preloaded symbol tables.
  7411. # Exclude shared library initialization/finalization symbols.
  7412. extract_expsyms_cmds=
  7413. case $host_os in
  7414. cygwin* | mingw* | pw32* | cegcc*)
  7415. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7416. # When not using gcc, we currently assume that we are using
  7417. # Microsoft Visual C++.
  7418. if test "$GCC" != yes; then
  7419. with_gnu_ld=no
  7420. fi
  7421. ;;
  7422. interix*)
  7423. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7424. with_gnu_ld=yes
  7425. ;;
  7426. openbsd*)
  7427. with_gnu_ld=no
  7428. ;;
  7429. esac
  7430. ld_shlibs=yes
  7431. # On some targets, GNU ld is compatible enough with the native linker
  7432. # that we're better off using the native interface for both.
  7433. lt_use_gnu_ld_interface=no
  7434. if test "$with_gnu_ld" = yes; then
  7435. case $host_os in
  7436. aix*)
  7437. # The AIX port of GNU ld has always aspired to compatibility
  7438. # with the native linker. However, as the warning in the GNU ld
  7439. # block says, versions before 2.19.5* couldn't really create working
  7440. # shared libraries, regardless of the interface used.
  7441. case `$LD -v 2>&1` in
  7442. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7443. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7444. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7445. *)
  7446. lt_use_gnu_ld_interface=yes
  7447. ;;
  7448. esac
  7449. ;;
  7450. *)
  7451. lt_use_gnu_ld_interface=yes
  7452. ;;
  7453. esac
  7454. fi
  7455. if test "$lt_use_gnu_ld_interface" = yes; then
  7456. # If archive_cmds runs LD, not CC, wlarc should be empty
  7457. wlarc='${wl}'
  7458. # Set some defaults for GNU ld with shared library support. These
  7459. # are reset later if shared libraries are not supported. Putting them
  7460. # here allows them to be overridden if necessary.
  7461. runpath_var=LD_RUN_PATH
  7462. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7463. export_dynamic_flag_spec='${wl}--export-dynamic'
  7464. # ancient GNU ld didn't support --whole-archive et. al.
  7465. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7466. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7467. else
  7468. whole_archive_flag_spec=
  7469. fi
  7470. supports_anon_versioning=no
  7471. case `$LD -v 2>&1` in
  7472. *GNU\ gold*) supports_anon_versioning=yes ;;
  7473. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7474. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7475. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7476. *\ 2.11.*) ;; # other 2.11 versions
  7477. *) supports_anon_versioning=yes ;;
  7478. esac
  7479. # See if GNU ld supports shared libraries.
  7480. case $host_os in
  7481. aix[3-9]*)
  7482. # On AIX/PPC, the GNU linker is very broken
  7483. if test "$host_cpu" != ia64; then
  7484. ld_shlibs=no
  7485. cat <<_LT_EOF 1>&2
  7486. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7487. *** to be unable to reliably create shared libraries on AIX.
  7488. *** Therefore, libtool is disabling shared libraries support. If you
  7489. *** really care for shared libraries, you may want to install binutils
  7490. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7491. *** You will then need to restart the configuration process.
  7492. _LT_EOF
  7493. fi
  7494. ;;
  7495. amigaos*)
  7496. case $host_cpu in
  7497. powerpc)
  7498. # see comment about AmigaOS4 .so support
  7499. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7500. archive_expsym_cmds=''
  7501. ;;
  7502. m68k)
  7503. 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)'
  7504. hardcode_libdir_flag_spec='-L$libdir'
  7505. hardcode_minus_L=yes
  7506. ;;
  7507. esac
  7508. ;;
  7509. beos*)
  7510. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7511. allow_undefined_flag=unsupported
  7512. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7513. # support --undefined. This deserves some investigation. FIXME
  7514. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7515. else
  7516. ld_shlibs=no
  7517. fi
  7518. ;;
  7519. cygwin* | mingw* | pw32* | cegcc*)
  7520. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7521. # as there is no search path for DLLs.
  7522. hardcode_libdir_flag_spec='-L$libdir'
  7523. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7524. allow_undefined_flag=unsupported
  7525. always_export_symbols=no
  7526. enable_shared_with_static_runtimes=yes
  7527. 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'
  7528. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7529. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7530. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7531. # If the export-symbols file already is a .def file (1st line
  7532. # is EXPORTS), use it as is; otherwise, prepend...
  7533. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7534. cp $export_symbols $output_objdir/$soname.def;
  7535. else
  7536. echo EXPORTS > $output_objdir/$soname.def;
  7537. cat $export_symbols >> $output_objdir/$soname.def;
  7538. fi~
  7539. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7540. else
  7541. ld_shlibs=no
  7542. fi
  7543. ;;
  7544. haiku*)
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7546. link_all_deplibs=yes
  7547. ;;
  7548. interix[3-9]*)
  7549. hardcode_direct=no
  7550. hardcode_shlibpath_var=no
  7551. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7552. export_dynamic_flag_spec='${wl}-E'
  7553. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7554. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7555. # default) and relocated if they conflict, which is a slow very memory
  7556. # consuming and fragmenting process. To avoid this, we pick a random,
  7557. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7558. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7559. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7560. 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'
  7561. ;;
  7562. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7563. tmp_diet=no
  7564. if test "$host_os" = linux-dietlibc; then
  7565. case $cc_basename in
  7566. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7567. esac
  7568. fi
  7569. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7570. && test "$tmp_diet" = no
  7571. then
  7572. tmp_addflag=' $pic_flag'
  7573. tmp_sharedflag='-shared'
  7574. case $cc_basename,$host_cpu in
  7575. pgcc*) # Portland Group C compiler
  7576. 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'
  7577. tmp_addflag=' $pic_flag'
  7578. ;;
  7579. pgf77* | pgf90* | pgf95* | pgfortran*)
  7580. # Portland Group f77 and f90 compilers
  7581. 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'
  7582. tmp_addflag=' $pic_flag -Mnomain' ;;
  7583. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7584. tmp_addflag=' -i_dynamic' ;;
  7585. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7586. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7587. ifc* | ifort*) # Intel Fortran compiler
  7588. tmp_addflag=' -nofor_main' ;;
  7589. lf95*) # Lahey Fortran 8.1
  7590. whole_archive_flag_spec=
  7591. tmp_sharedflag='--shared' ;;
  7592. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7593. tmp_sharedflag='-qmkshrobj'
  7594. tmp_addflag= ;;
  7595. nvcc*) # Cuda Compiler Driver 2.2
  7596. 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'
  7597. compiler_needs_object=yes
  7598. ;;
  7599. esac
  7600. case `$CC -V 2>&1 | sed 5q` in
  7601. *Sun\ C*) # Sun C 5.9
  7602. 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'
  7603. compiler_needs_object=yes
  7604. tmp_sharedflag='-G' ;;
  7605. *Sun\ F*) # Sun Fortran 8.3
  7606. tmp_sharedflag='-G' ;;
  7607. esac
  7608. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7609. if test "x$supports_anon_versioning" = xyes; then
  7610. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7611. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7612. echo "local: *; };" >> $output_objdir/$libname.ver~
  7613. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7614. fi
  7615. case $cc_basename in
  7616. xlf* | bgf* | bgxlf* | mpixlf*)
  7617. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7618. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7619. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7620. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7621. if test "x$supports_anon_versioning" = xyes; then
  7622. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7623. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7624. echo "local: *; };" >> $output_objdir/$libname.ver~
  7625. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7626. fi
  7627. ;;
  7628. esac
  7629. else
  7630. ld_shlibs=no
  7631. fi
  7632. ;;
  7633. netbsd*)
  7634. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7635. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7636. wlarc=
  7637. else
  7638. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7639. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7640. fi
  7641. ;;
  7642. solaris*)
  7643. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7644. ld_shlibs=no
  7645. cat <<_LT_EOF 1>&2
  7646. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7647. *** create shared libraries on Solaris systems. Therefore, libtool
  7648. *** is disabling shared libraries support. We urge you to upgrade GNU
  7649. *** binutils to release 2.9.1 or newer. Another option is to modify
  7650. *** your PATH or compiler configuration so that the native linker is
  7651. *** used, and then restart.
  7652. _LT_EOF
  7653. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7654. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7655. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7656. else
  7657. ld_shlibs=no
  7658. fi
  7659. ;;
  7660. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7661. case `$LD -v 2>&1` in
  7662. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7663. ld_shlibs=no
  7664. cat <<_LT_EOF 1>&2
  7665. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7666. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7667. *** is disabling shared libraries support. We urge you to upgrade GNU
  7668. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7669. *** your PATH or compiler configuration so that the native linker is
  7670. *** used, and then restart.
  7671. _LT_EOF
  7672. ;;
  7673. *)
  7674. # For security reasons, it is highly recommended that you always
  7675. # use absolute paths for naming shared libraries, and exclude the
  7676. # DT_RUNPATH tag from executables and libraries. But doing so
  7677. # requires that you compile everything twice, which is a pain.
  7678. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7679. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7680. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7681. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7682. else
  7683. ld_shlibs=no
  7684. fi
  7685. ;;
  7686. esac
  7687. ;;
  7688. sunos4*)
  7689. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7690. wlarc=
  7691. hardcode_direct=yes
  7692. hardcode_shlibpath_var=no
  7693. ;;
  7694. *)
  7695. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7696. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7697. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7698. else
  7699. ld_shlibs=no
  7700. fi
  7701. ;;
  7702. esac
  7703. if test "$ld_shlibs" = no; then
  7704. runpath_var=
  7705. hardcode_libdir_flag_spec=
  7706. export_dynamic_flag_spec=
  7707. whole_archive_flag_spec=
  7708. fi
  7709. else
  7710. # PORTME fill in a description of your system's linker (not GNU ld)
  7711. case $host_os in
  7712. aix3*)
  7713. allow_undefined_flag=unsupported
  7714. always_export_symbols=yes
  7715. 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'
  7716. # Note: this linker hardcodes the directories in LIBPATH if there
  7717. # are no directories specified by -L.
  7718. hardcode_minus_L=yes
  7719. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7720. # Neither direct hardcoding nor static linking is supported with a
  7721. # broken collect2.
  7722. hardcode_direct=unsupported
  7723. fi
  7724. ;;
  7725. aix[4-9]*)
  7726. if test "$host_cpu" = ia64; then
  7727. # On IA64, the linker does run time linking by default, so we don't
  7728. # have to do anything special.
  7729. aix_use_runtimelinking=no
  7730. exp_sym_flag='-Bexport'
  7731. no_entry_flag=""
  7732. else
  7733. # If we're using GNU nm, then we don't want the "-C" option.
  7734. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7735. # Also, AIX nm treats weak defined symbols like other global
  7736. # defined symbols, whereas GNU nm marks them as "W".
  7737. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7738. 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'
  7739. else
  7740. 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'
  7741. fi
  7742. aix_use_runtimelinking=no
  7743. # Test if we are trying to use run time linking or normal
  7744. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7745. # need to do runtime linking.
  7746. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7747. for ld_flag in $LDFLAGS; do
  7748. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7749. aix_use_runtimelinking=yes
  7750. break
  7751. fi
  7752. done
  7753. ;;
  7754. esac
  7755. exp_sym_flag='-bexport'
  7756. no_entry_flag='-bnoentry'
  7757. fi
  7758. # When large executables or shared objects are built, AIX ld can
  7759. # have problems creating the table of contents. If linking a library
  7760. # or program results in "error TOC overflow" add -mminimal-toc to
  7761. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7762. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7763. archive_cmds=''
  7764. hardcode_direct=yes
  7765. hardcode_direct_absolute=yes
  7766. hardcode_libdir_separator=':'
  7767. link_all_deplibs=yes
  7768. file_list_spec='${wl}-f,'
  7769. if test "$GCC" = yes; then
  7770. case $host_os in aix4.[012]|aix4.[012].*)
  7771. # We only want to do this on AIX 4.2 and lower, the check
  7772. # below for broken collect2 doesn't work under 4.3+
  7773. collect2name=`${CC} -print-prog-name=collect2`
  7774. if test -f "$collect2name" &&
  7775. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7776. then
  7777. # We have reworked collect2
  7778. :
  7779. else
  7780. # We have old collect2
  7781. hardcode_direct=unsupported
  7782. # It fails to find uninstalled libraries when the uninstalled
  7783. # path is not listed in the libpath. Setting hardcode_minus_L
  7784. # to unsupported forces relinking
  7785. hardcode_minus_L=yes
  7786. hardcode_libdir_flag_spec='-L$libdir'
  7787. hardcode_libdir_separator=
  7788. fi
  7789. ;;
  7790. esac
  7791. shared_flag='-shared'
  7792. if test "$aix_use_runtimelinking" = yes; then
  7793. shared_flag="$shared_flag "'${wl}-G'
  7794. fi
  7795. else
  7796. # not using gcc
  7797. if test "$host_cpu" = ia64; then
  7798. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7799. # chokes on -Wl,-G. The following line is correct:
  7800. shared_flag='-G'
  7801. else
  7802. if test "$aix_use_runtimelinking" = yes; then
  7803. shared_flag='${wl}-G'
  7804. else
  7805. shared_flag='${wl}-bM:SRE'
  7806. fi
  7807. fi
  7808. fi
  7809. export_dynamic_flag_spec='${wl}-bexpall'
  7810. # It seems that -bexpall does not export symbols beginning with
  7811. # underscore (_), so it is better to generate a list of symbols to export.
  7812. always_export_symbols=yes
  7813. if test "$aix_use_runtimelinking" = yes; then
  7814. # Warning - without using the other runtime loading flags (-brtl),
  7815. # -berok will link without error, but may produce a broken library.
  7816. allow_undefined_flag='-berok'
  7817. # Determine the default libpath from the value encoded in an
  7818. # empty executable.
  7819. if test "${lt_cv_aix_libpath+set}" = set; then
  7820. aix_libpath=$lt_cv_aix_libpath
  7821. else
  7822. if ${lt_cv_aix_libpath_+:} false; then :
  7823. $as_echo_n "(cached) " >&6
  7824. else
  7825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7826. /* end confdefs.h. */
  7827. int
  7828. main ()
  7829. {
  7830. ;
  7831. return 0;
  7832. }
  7833. _ACEOF
  7834. if ac_fn_c_try_link "$LINENO"; then :
  7835. lt_aix_libpath_sed='
  7836. /Import File Strings/,/^$/ {
  7837. /^0/ {
  7838. s/^0 *\([^ ]*\) *$/\1/
  7839. p
  7840. }
  7841. }'
  7842. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7843. # Check for a 64-bit object if we didn't find anything.
  7844. if test -z "$lt_cv_aix_libpath_"; then
  7845. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7846. fi
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext \
  7849. conftest$ac_exeext conftest.$ac_ext
  7850. if test -z "$lt_cv_aix_libpath_"; then
  7851. lt_cv_aix_libpath_="/usr/lib:/lib"
  7852. fi
  7853. fi
  7854. aix_libpath=$lt_cv_aix_libpath_
  7855. fi
  7856. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7857. 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"
  7858. else
  7859. if test "$host_cpu" = ia64; then
  7860. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7861. allow_undefined_flag="-z nodefs"
  7862. 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"
  7863. else
  7864. # Determine the default libpath from the value encoded in an
  7865. # empty executable.
  7866. if test "${lt_cv_aix_libpath+set}" = set; then
  7867. aix_libpath=$lt_cv_aix_libpath
  7868. else
  7869. if ${lt_cv_aix_libpath_+:} false; then :
  7870. $as_echo_n "(cached) " >&6
  7871. else
  7872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7873. /* end confdefs.h. */
  7874. int
  7875. main ()
  7876. {
  7877. ;
  7878. return 0;
  7879. }
  7880. _ACEOF
  7881. if ac_fn_c_try_link "$LINENO"; then :
  7882. lt_aix_libpath_sed='
  7883. /Import File Strings/,/^$/ {
  7884. /^0/ {
  7885. s/^0 *\([^ ]*\) *$/\1/
  7886. p
  7887. }
  7888. }'
  7889. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7890. # Check for a 64-bit object if we didn't find anything.
  7891. if test -z "$lt_cv_aix_libpath_"; then
  7892. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7893. fi
  7894. fi
  7895. rm -f core conftest.err conftest.$ac_objext \
  7896. conftest$ac_exeext conftest.$ac_ext
  7897. if test -z "$lt_cv_aix_libpath_"; then
  7898. lt_cv_aix_libpath_="/usr/lib:/lib"
  7899. fi
  7900. fi
  7901. aix_libpath=$lt_cv_aix_libpath_
  7902. fi
  7903. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7904. # Warning - without using the other run time loading flags,
  7905. # -berok will link without error, but may produce a broken library.
  7906. no_undefined_flag=' ${wl}-bernotok'
  7907. allow_undefined_flag=' ${wl}-berok'
  7908. if test "$with_gnu_ld" = yes; then
  7909. # We only use this code for GNU lds that support --whole-archive.
  7910. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7911. else
  7912. # Exported symbols can be pulled into shared objects from archives
  7913. whole_archive_flag_spec='$convenience'
  7914. fi
  7915. archive_cmds_need_lc=yes
  7916. # This is similar to how AIX traditionally builds its shared libraries.
  7917. 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'
  7918. fi
  7919. fi
  7920. ;;
  7921. amigaos*)
  7922. case $host_cpu in
  7923. powerpc)
  7924. # see comment about AmigaOS4 .so support
  7925. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7926. archive_expsym_cmds=''
  7927. ;;
  7928. m68k)
  7929. 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)'
  7930. hardcode_libdir_flag_spec='-L$libdir'
  7931. hardcode_minus_L=yes
  7932. ;;
  7933. esac
  7934. ;;
  7935. bsdi[45]*)
  7936. export_dynamic_flag_spec=-rdynamic
  7937. ;;
  7938. cygwin* | mingw* | pw32* | cegcc*)
  7939. # When not using gcc, we currently assume that we are using
  7940. # Microsoft Visual C++.
  7941. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7942. # no search path for DLLs.
  7943. case $cc_basename in
  7944. cl*)
  7945. # Native MSVC
  7946. hardcode_libdir_flag_spec=' '
  7947. allow_undefined_flag=unsupported
  7948. always_export_symbols=yes
  7949. file_list_spec='@'
  7950. # Tell ltmain to make .lib files, not .a files.
  7951. libext=lib
  7952. # Tell ltmain to make .dll files, not .so files.
  7953. shrext_cmds=".dll"
  7954. # FIXME: Setting linknames here is a bad hack.
  7955. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7956. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7957. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7958. else
  7959. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7960. fi~
  7961. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7962. linknames='
  7963. # The linker will not automatically build a static lib if we build a DLL.
  7964. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7965. enable_shared_with_static_runtimes=yes
  7966. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7967. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7968. # Don't use ranlib
  7969. old_postinstall_cmds='chmod 644 $oldlib'
  7970. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7971. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7972. case $lt_outputfile in
  7973. *.exe|*.EXE) ;;
  7974. *)
  7975. lt_outputfile="$lt_outputfile.exe"
  7976. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7977. ;;
  7978. esac~
  7979. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7980. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7981. $RM "$lt_outputfile.manifest";
  7982. fi'
  7983. ;;
  7984. *)
  7985. # Assume MSVC wrapper
  7986. hardcode_libdir_flag_spec=' '
  7987. allow_undefined_flag=unsupported
  7988. # Tell ltmain to make .lib files, not .a files.
  7989. libext=lib
  7990. # Tell ltmain to make .dll files, not .so files.
  7991. shrext_cmds=".dll"
  7992. # FIXME: Setting linknames here is a bad hack.
  7993. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7994. # The linker will automatically build a .lib file if we build a DLL.
  7995. old_archive_from_new_cmds='true'
  7996. # FIXME: Should let the user specify the lib program.
  7997. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7998. enable_shared_with_static_runtimes=yes
  7999. ;;
  8000. esac
  8001. ;;
  8002. darwin* | rhapsody*)
  8003. archive_cmds_need_lc=no
  8004. hardcode_direct=no
  8005. hardcode_automatic=yes
  8006. hardcode_shlibpath_var=unsupported
  8007. if test "$lt_cv_ld_force_load" = "yes"; then
  8008. 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\"`'
  8009. else
  8010. whole_archive_flag_spec=''
  8011. fi
  8012. link_all_deplibs=yes
  8013. allow_undefined_flag="$_lt_dar_allow_undefined"
  8014. case $cc_basename in
  8015. ifort*) _lt_dar_can_shared=yes ;;
  8016. *) _lt_dar_can_shared=$GCC ;;
  8017. esac
  8018. if test "$_lt_dar_can_shared" = "yes"; then
  8019. output_verbose_link_cmd=func_echo_all
  8020. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8021. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8022. 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}"
  8023. 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}"
  8024. else
  8025. ld_shlibs=no
  8026. fi
  8027. ;;
  8028. dgux*)
  8029. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8030. hardcode_libdir_flag_spec='-L$libdir'
  8031. hardcode_shlibpath_var=no
  8032. ;;
  8033. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8034. # support. Future versions do this automatically, but an explicit c++rt0.o
  8035. # does not break anything, and helps significantly (at the cost of a little
  8036. # extra space).
  8037. freebsd2.2*)
  8038. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8039. hardcode_libdir_flag_spec='-R$libdir'
  8040. hardcode_direct=yes
  8041. hardcode_shlibpath_var=no
  8042. ;;
  8043. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8044. freebsd2.*)
  8045. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8046. hardcode_direct=yes
  8047. hardcode_minus_L=yes
  8048. hardcode_shlibpath_var=no
  8049. ;;
  8050. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8051. freebsd* | dragonfly*)
  8052. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8053. hardcode_libdir_flag_spec='-R$libdir'
  8054. hardcode_direct=yes
  8055. hardcode_shlibpath_var=no
  8056. ;;
  8057. hpux9*)
  8058. if test "$GCC" = yes; then
  8059. 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'
  8060. else
  8061. 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'
  8062. fi
  8063. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8064. hardcode_libdir_separator=:
  8065. hardcode_direct=yes
  8066. # hardcode_minus_L: Not really in the search PATH,
  8067. # but as the default location of the library.
  8068. hardcode_minus_L=yes
  8069. export_dynamic_flag_spec='${wl}-E'
  8070. ;;
  8071. hpux10*)
  8072. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8073. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8074. else
  8075. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8076. fi
  8077. if test "$with_gnu_ld" = no; then
  8078. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8079. hardcode_libdir_separator=:
  8080. hardcode_direct=yes
  8081. hardcode_direct_absolute=yes
  8082. export_dynamic_flag_spec='${wl}-E'
  8083. # hardcode_minus_L: Not really in the search PATH,
  8084. # but as the default location of the library.
  8085. hardcode_minus_L=yes
  8086. fi
  8087. ;;
  8088. hpux11*)
  8089. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8090. case $host_cpu in
  8091. hppa*64*)
  8092. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8093. ;;
  8094. ia64*)
  8095. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8096. ;;
  8097. *)
  8098. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8099. ;;
  8100. esac
  8101. else
  8102. case $host_cpu in
  8103. hppa*64*)
  8104. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8105. ;;
  8106. ia64*)
  8107. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8108. ;;
  8109. *)
  8110. # Older versions of the 11.00 compiler do not understand -b yet
  8111. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8113. $as_echo_n "checking if $CC understands -b... " >&6; }
  8114. if ${lt_cv_prog_compiler__b+:} false; then :
  8115. $as_echo_n "(cached) " >&6
  8116. else
  8117. lt_cv_prog_compiler__b=no
  8118. save_LDFLAGS="$LDFLAGS"
  8119. LDFLAGS="$LDFLAGS -b"
  8120. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8121. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8122. # The linker can only warn and ignore the option if not recognized
  8123. # So say no if there are warnings
  8124. if test -s conftest.err; then
  8125. # Append any errors to the config.log.
  8126. cat conftest.err 1>&5
  8127. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8128. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8129. if diff conftest.exp conftest.er2 >/dev/null; then
  8130. lt_cv_prog_compiler__b=yes
  8131. fi
  8132. else
  8133. lt_cv_prog_compiler__b=yes
  8134. fi
  8135. fi
  8136. $RM -r conftest*
  8137. LDFLAGS="$save_LDFLAGS"
  8138. fi
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8140. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8141. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8142. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8143. else
  8144. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8145. fi
  8146. ;;
  8147. esac
  8148. fi
  8149. if test "$with_gnu_ld" = no; then
  8150. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8151. hardcode_libdir_separator=:
  8152. case $host_cpu in
  8153. hppa*64*|ia64*)
  8154. hardcode_direct=no
  8155. hardcode_shlibpath_var=no
  8156. ;;
  8157. *)
  8158. hardcode_direct=yes
  8159. hardcode_direct_absolute=yes
  8160. export_dynamic_flag_spec='${wl}-E'
  8161. # hardcode_minus_L: Not really in the search PATH,
  8162. # but as the default location of the library.
  8163. hardcode_minus_L=yes
  8164. ;;
  8165. esac
  8166. fi
  8167. ;;
  8168. irix5* | irix6* | nonstopux*)
  8169. if test "$GCC" = yes; then
  8170. 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'
  8171. # Try to use the -exported_symbol ld option, if it does not
  8172. # work, assume that -exports_file does not work either and
  8173. # implicitly export all symbols.
  8174. # This should be the same for all languages, so no per-tag cache variable.
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8176. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8177. if ${lt_cv_irix_exported_symbol+:} false; then :
  8178. $as_echo_n "(cached) " >&6
  8179. else
  8180. save_LDFLAGS="$LDFLAGS"
  8181. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8183. /* end confdefs.h. */
  8184. int foo (void) { return 0; }
  8185. _ACEOF
  8186. if ac_fn_c_try_link "$LINENO"; then :
  8187. lt_cv_irix_exported_symbol=yes
  8188. else
  8189. lt_cv_irix_exported_symbol=no
  8190. fi
  8191. rm -f core conftest.err conftest.$ac_objext \
  8192. conftest$ac_exeext conftest.$ac_ext
  8193. LDFLAGS="$save_LDFLAGS"
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8196. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8197. if test "$lt_cv_irix_exported_symbol" = yes; then
  8198. 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'
  8199. fi
  8200. else
  8201. 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'
  8202. 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'
  8203. fi
  8204. archive_cmds_need_lc='no'
  8205. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8206. hardcode_libdir_separator=:
  8207. inherit_rpath=yes
  8208. link_all_deplibs=yes
  8209. ;;
  8210. netbsd*)
  8211. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8212. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8213. else
  8214. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8215. fi
  8216. hardcode_libdir_flag_spec='-R$libdir'
  8217. hardcode_direct=yes
  8218. hardcode_shlibpath_var=no
  8219. ;;
  8220. newsos6)
  8221. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8222. hardcode_direct=yes
  8223. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8224. hardcode_libdir_separator=:
  8225. hardcode_shlibpath_var=no
  8226. ;;
  8227. *nto* | *qnx*)
  8228. ;;
  8229. openbsd*)
  8230. if test -f /usr/libexec/ld.so; then
  8231. hardcode_direct=yes
  8232. hardcode_shlibpath_var=no
  8233. hardcode_direct_absolute=yes
  8234. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8235. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8236. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8237. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8238. export_dynamic_flag_spec='${wl}-E'
  8239. else
  8240. case $host_os in
  8241. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8242. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8243. hardcode_libdir_flag_spec='-R$libdir'
  8244. ;;
  8245. *)
  8246. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8247. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8248. ;;
  8249. esac
  8250. fi
  8251. else
  8252. ld_shlibs=no
  8253. fi
  8254. ;;
  8255. os2*)
  8256. hardcode_libdir_flag_spec='-L$libdir'
  8257. hardcode_minus_L=yes
  8258. allow_undefined_flag=unsupported
  8259. 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'
  8260. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8261. ;;
  8262. osf3*)
  8263. if test "$GCC" = yes; then
  8264. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8265. 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'
  8266. else
  8267. allow_undefined_flag=' -expect_unresolved \*'
  8268. 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'
  8269. fi
  8270. archive_cmds_need_lc='no'
  8271. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8272. hardcode_libdir_separator=:
  8273. ;;
  8274. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8275. if test "$GCC" = yes; then
  8276. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8277. 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'
  8278. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8279. else
  8280. allow_undefined_flag=' -expect_unresolved \*'
  8281. 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'
  8282. 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~
  8283. $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'
  8284. # Both c and cxx compiler support -rpath directly
  8285. hardcode_libdir_flag_spec='-rpath $libdir'
  8286. fi
  8287. archive_cmds_need_lc='no'
  8288. hardcode_libdir_separator=:
  8289. ;;
  8290. solaris*)
  8291. no_undefined_flag=' -z defs'
  8292. if test "$GCC" = yes; then
  8293. wlarc='${wl}'
  8294. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8295. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8296. $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'
  8297. else
  8298. case `$CC -V 2>&1` in
  8299. *"Compilers 5.0"*)
  8300. wlarc=''
  8301. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8302. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8303. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8304. ;;
  8305. *)
  8306. wlarc='${wl}'
  8307. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8308. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8309. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8310. ;;
  8311. esac
  8312. fi
  8313. hardcode_libdir_flag_spec='-R$libdir'
  8314. hardcode_shlibpath_var=no
  8315. case $host_os in
  8316. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8317. *)
  8318. # The compiler driver will combine and reorder linker options,
  8319. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8320. # but is careful enough not to reorder.
  8321. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8322. if test "$GCC" = yes; then
  8323. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8324. else
  8325. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8326. fi
  8327. ;;
  8328. esac
  8329. link_all_deplibs=yes
  8330. ;;
  8331. sunos4*)
  8332. if test "x$host_vendor" = xsequent; then
  8333. # Use $CC to link under sequent, because it throws in some extra .o
  8334. # files that make .init and .fini sections work.
  8335. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8336. else
  8337. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8338. fi
  8339. hardcode_libdir_flag_spec='-L$libdir'
  8340. hardcode_direct=yes
  8341. hardcode_minus_L=yes
  8342. hardcode_shlibpath_var=no
  8343. ;;
  8344. sysv4)
  8345. case $host_vendor in
  8346. sni)
  8347. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8348. hardcode_direct=yes # is this really true???
  8349. ;;
  8350. siemens)
  8351. ## LD is ld it makes a PLAMLIB
  8352. ## CC just makes a GrossModule.
  8353. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8354. reload_cmds='$CC -r -o $output$reload_objs'
  8355. hardcode_direct=no
  8356. ;;
  8357. motorola)
  8358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8359. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8360. ;;
  8361. esac
  8362. runpath_var='LD_RUN_PATH'
  8363. hardcode_shlibpath_var=no
  8364. ;;
  8365. sysv4.3*)
  8366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8367. hardcode_shlibpath_var=no
  8368. export_dynamic_flag_spec='-Bexport'
  8369. ;;
  8370. sysv4*MP*)
  8371. if test -d /usr/nec; then
  8372. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8373. hardcode_shlibpath_var=no
  8374. runpath_var=LD_RUN_PATH
  8375. hardcode_runpath_var=yes
  8376. ld_shlibs=yes
  8377. fi
  8378. ;;
  8379. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8380. no_undefined_flag='${wl}-z,text'
  8381. archive_cmds_need_lc=no
  8382. hardcode_shlibpath_var=no
  8383. runpath_var='LD_RUN_PATH'
  8384. if test "$GCC" = yes; then
  8385. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8386. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8387. else
  8388. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8389. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8390. fi
  8391. ;;
  8392. sysv5* | sco3.2v5* | sco5v6*)
  8393. # Note: We can NOT use -z defs as we might desire, because we do not
  8394. # link with -lc, and that would cause any symbols used from libc to
  8395. # always be unresolved, which means just about no library would
  8396. # ever link correctly. If we're not using GNU ld we use -z text
  8397. # though, which does catch some bad symbols but isn't as heavy-handed
  8398. # as -z defs.
  8399. no_undefined_flag='${wl}-z,text'
  8400. allow_undefined_flag='${wl}-z,nodefs'
  8401. archive_cmds_need_lc=no
  8402. hardcode_shlibpath_var=no
  8403. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8404. hardcode_libdir_separator=':'
  8405. link_all_deplibs=yes
  8406. export_dynamic_flag_spec='${wl}-Bexport'
  8407. runpath_var='LD_RUN_PATH'
  8408. if test "$GCC" = yes; then
  8409. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8410. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8411. else
  8412. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. fi
  8415. ;;
  8416. uts4*)
  8417. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. *)
  8422. ld_shlibs=no
  8423. ;;
  8424. esac
  8425. if test x$host_vendor = xsni; then
  8426. case $host in
  8427. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8428. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8429. ;;
  8430. esac
  8431. fi
  8432. fi
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8434. $as_echo "$ld_shlibs" >&6; }
  8435. test "$ld_shlibs" = no && can_build_shared=no
  8436. with_gnu_ld=$with_gnu_ld
  8437. #
  8438. # Do we need to explicitly link libc?
  8439. #
  8440. case "x$archive_cmds_need_lc" in
  8441. x|xyes)
  8442. # Assume -lc should be added
  8443. archive_cmds_need_lc=yes
  8444. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8445. case $archive_cmds in
  8446. *'~'*)
  8447. # FIXME: we may have to deal with multi-command sequences.
  8448. ;;
  8449. '$CC '*)
  8450. # Test whether the compiler implicitly links with -lc since on some
  8451. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8452. # to ld, don't add -lc before -lgcc.
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8454. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8455. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8456. $as_echo_n "(cached) " >&6
  8457. else
  8458. $RM conftest*
  8459. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8460. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8461. (eval $ac_compile) 2>&5
  8462. ac_status=$?
  8463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8464. test $ac_status = 0; } 2>conftest.err; then
  8465. soname=conftest
  8466. lib=conftest
  8467. libobjs=conftest.$ac_objext
  8468. deplibs=
  8469. wl=$lt_prog_compiler_wl
  8470. pic_flag=$lt_prog_compiler_pic
  8471. compiler_flags=-v
  8472. linker_flags=-v
  8473. verstring=
  8474. output_objdir=.
  8475. libname=conftest
  8476. lt_save_allow_undefined_flag=$allow_undefined_flag
  8477. allow_undefined_flag=
  8478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8479. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8480. ac_status=$?
  8481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8482. test $ac_status = 0; }
  8483. then
  8484. lt_cv_archive_cmds_need_lc=no
  8485. else
  8486. lt_cv_archive_cmds_need_lc=yes
  8487. fi
  8488. allow_undefined_flag=$lt_save_allow_undefined_flag
  8489. else
  8490. cat conftest.err 1>&5
  8491. fi
  8492. $RM conftest*
  8493. fi
  8494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8495. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8496. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8497. ;;
  8498. esac
  8499. fi
  8500. ;;
  8501. esac
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8503. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8504. if test "$GCC" = yes; then
  8505. case $host_os in
  8506. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8507. *) lt_awk_arg="/^libraries:/" ;;
  8508. esac
  8509. case $host_os in
  8510. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8511. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8512. esac
  8513. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8514. case $lt_search_path_spec in
  8515. *\;*)
  8516. # if the path contains ";" then we assume it to be the separator
  8517. # otherwise default to the standard path separator (i.e. ":") - it is
  8518. # assumed that no part of a normal pathname contains ";" but that should
  8519. # okay in the real world where ";" in dirpaths is itself problematic.
  8520. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8521. ;;
  8522. *)
  8523. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8524. ;;
  8525. esac
  8526. # Ok, now we have the path, separated by spaces, we can step through it
  8527. # and add multilib dir if necessary.
  8528. lt_tmp_lt_search_path_spec=
  8529. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8530. for lt_sys_path in $lt_search_path_spec; do
  8531. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8532. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8533. else
  8534. test -d "$lt_sys_path" && \
  8535. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8536. fi
  8537. done
  8538. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8539. BEGIN {RS=" "; FS="/|\n";} {
  8540. lt_foo="";
  8541. lt_count=0;
  8542. for (lt_i = NF; lt_i > 0; lt_i--) {
  8543. if ($lt_i != "" && $lt_i != ".") {
  8544. if ($lt_i == "..") {
  8545. lt_count++;
  8546. } else {
  8547. if (lt_count == 0) {
  8548. lt_foo="/" $lt_i lt_foo;
  8549. } else {
  8550. lt_count--;
  8551. }
  8552. }
  8553. }
  8554. }
  8555. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8556. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8557. }'`
  8558. # AWK program above erroneously prepends '/' to C:/dos/paths
  8559. # for these hosts.
  8560. case $host_os in
  8561. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8562. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8563. esac
  8564. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8565. else
  8566. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8567. fi
  8568. library_names_spec=
  8569. libname_spec='lib$name'
  8570. soname_spec=
  8571. shrext_cmds=".so"
  8572. postinstall_cmds=
  8573. postuninstall_cmds=
  8574. finish_cmds=
  8575. finish_eval=
  8576. shlibpath_var=
  8577. shlibpath_overrides_runpath=unknown
  8578. version_type=none
  8579. dynamic_linker="$host_os ld.so"
  8580. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8581. need_lib_prefix=unknown
  8582. hardcode_into_libs=no
  8583. # when you set need_version to no, make sure it does not cause -set_version
  8584. # flags to be left without arguments
  8585. need_version=unknown
  8586. case $host_os in
  8587. aix3*)
  8588. version_type=linux # correct to gnu/linux during the next big refactor
  8589. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8590. shlibpath_var=LIBPATH
  8591. # AIX 3 has no versioning support, so we append a major version to the name.
  8592. soname_spec='${libname}${release}${shared_ext}$major'
  8593. ;;
  8594. aix[4-9]*)
  8595. version_type=linux # correct to gnu/linux during the next big refactor
  8596. need_lib_prefix=no
  8597. need_version=no
  8598. hardcode_into_libs=yes
  8599. if test "$host_cpu" = ia64; then
  8600. # AIX 5 supports IA64
  8601. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8602. shlibpath_var=LD_LIBRARY_PATH
  8603. else
  8604. # With GCC up to 2.95.x, collect2 would create an import file
  8605. # for dependence libraries. The import file would start with
  8606. # the line `#! .'. This would cause the generated library to
  8607. # depend on `.', always an invalid library. This was fixed in
  8608. # development snapshots of GCC prior to 3.0.
  8609. case $host_os in
  8610. aix4 | aix4.[01] | aix4.[01].*)
  8611. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8612. echo ' yes '
  8613. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8614. :
  8615. else
  8616. can_build_shared=no
  8617. fi
  8618. ;;
  8619. esac
  8620. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8621. # soname into executable. Probably we can add versioning support to
  8622. # collect2, so additional links can be useful in future.
  8623. if test "$aix_use_runtimelinking" = yes; then
  8624. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8625. # instead of lib<name>.a to let people know that these are not
  8626. # typical AIX shared libraries.
  8627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8628. else
  8629. # We preserve .a as extension for shared libraries through AIX4.2
  8630. # and later when we are not doing run time linking.
  8631. library_names_spec='${libname}${release}.a $libname.a'
  8632. soname_spec='${libname}${release}${shared_ext}$major'
  8633. fi
  8634. shlibpath_var=LIBPATH
  8635. fi
  8636. ;;
  8637. amigaos*)
  8638. case $host_cpu in
  8639. powerpc)
  8640. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8641. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. ;;
  8644. m68k)
  8645. library_names_spec='$libname.ixlibrary $libname.a'
  8646. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8647. 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'
  8648. ;;
  8649. esac
  8650. ;;
  8651. beos*)
  8652. library_names_spec='${libname}${shared_ext}'
  8653. dynamic_linker="$host_os ld.so"
  8654. shlibpath_var=LIBRARY_PATH
  8655. ;;
  8656. bsdi[45]*)
  8657. version_type=linux # correct to gnu/linux during the next big refactor
  8658. need_version=no
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8660. soname_spec='${libname}${release}${shared_ext}$major'
  8661. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8662. shlibpath_var=LD_LIBRARY_PATH
  8663. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8664. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8665. # the default ld.so.conf also contains /usr/contrib/lib and
  8666. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8667. # libtool to hard-code these into programs
  8668. ;;
  8669. cygwin* | mingw* | pw32* | cegcc*)
  8670. version_type=windows
  8671. shrext_cmds=".dll"
  8672. need_version=no
  8673. need_lib_prefix=no
  8674. case $GCC,$cc_basename in
  8675. yes,*)
  8676. # gcc
  8677. library_names_spec='$libname.dll.a'
  8678. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8679. postinstall_cmds='base_file=`basename \${file}`~
  8680. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8681. dldir=$destdir/`dirname \$dlpath`~
  8682. test -d \$dldir || mkdir -p \$dldir~
  8683. $install_prog $dir/$dlname \$dldir/$dlname~
  8684. chmod a+x \$dldir/$dlname~
  8685. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8686. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8687. fi'
  8688. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8689. dlpath=$dir/\$dldll~
  8690. $RM \$dlpath'
  8691. shlibpath_overrides_runpath=yes
  8692. case $host_os in
  8693. cygwin*)
  8694. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8695. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8696. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8697. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8698. ;;
  8699. mingw* | cegcc*)
  8700. # MinGW DLLs use traditional 'lib' prefix
  8701. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8702. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8703. ;;
  8704. pw32*)
  8705. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8706. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8707. ;;
  8708. esac
  8709. dynamic_linker='Win32 ld.exe'
  8710. ;;
  8711. *,cl*)
  8712. # Native MSVC
  8713. libname_spec='$name'
  8714. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8715. library_names_spec='${libname}.dll.lib'
  8716. case $build_os in
  8717. mingw*)
  8718. sys_lib_search_path_spec=
  8719. lt_save_ifs=$IFS
  8720. IFS=';'
  8721. for lt_path in $LIB
  8722. do
  8723. IFS=$lt_save_ifs
  8724. # Let DOS variable expansion print the short 8.3 style file name.
  8725. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8726. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8727. done
  8728. IFS=$lt_save_ifs
  8729. # Convert to MSYS style.
  8730. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8731. ;;
  8732. cygwin*)
  8733. # Convert to unix form, then to dos form, then back to unix form
  8734. # but this time dos style (no spaces!) so that the unix form looks
  8735. # like /cygdrive/c/PROGRA~1:/cygdr...
  8736. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8737. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8738. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8739. ;;
  8740. *)
  8741. sys_lib_search_path_spec="$LIB"
  8742. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8743. # It is most probably a Windows format PATH.
  8744. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8745. else
  8746. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8747. fi
  8748. # FIXME: find the short name or the path components, as spaces are
  8749. # common. (e.g. "Program Files" -> "PROGRA~1")
  8750. ;;
  8751. esac
  8752. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8753. postinstall_cmds='base_file=`basename \${file}`~
  8754. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8755. dldir=$destdir/`dirname \$dlpath`~
  8756. test -d \$dldir || mkdir -p \$dldir~
  8757. $install_prog $dir/$dlname \$dldir/$dlname'
  8758. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8759. dlpath=$dir/\$dldll~
  8760. $RM \$dlpath'
  8761. shlibpath_overrides_runpath=yes
  8762. dynamic_linker='Win32 link.exe'
  8763. ;;
  8764. *)
  8765. # Assume MSVC wrapper
  8766. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8767. dynamic_linker='Win32 ld.exe'
  8768. ;;
  8769. esac
  8770. # FIXME: first we should search . and the directory the executable is in
  8771. shlibpath_var=PATH
  8772. ;;
  8773. darwin* | rhapsody*)
  8774. dynamic_linker="$host_os dyld"
  8775. version_type=darwin
  8776. need_lib_prefix=no
  8777. need_version=no
  8778. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8779. soname_spec='${libname}${release}${major}$shared_ext'
  8780. shlibpath_overrides_runpath=yes
  8781. shlibpath_var=DYLD_LIBRARY_PATH
  8782. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8783. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8784. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8785. ;;
  8786. dgux*)
  8787. version_type=linux # correct to gnu/linux during the next big refactor
  8788. need_lib_prefix=no
  8789. need_version=no
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8791. soname_spec='${libname}${release}${shared_ext}$major'
  8792. shlibpath_var=LD_LIBRARY_PATH
  8793. ;;
  8794. freebsd* | dragonfly*)
  8795. # DragonFly does not have aout. When/if they implement a new
  8796. # versioning mechanism, adjust this.
  8797. if test -x /usr/bin/objformat; then
  8798. objformat=`/usr/bin/objformat`
  8799. else
  8800. case $host_os in
  8801. freebsd[23].*) objformat=aout ;;
  8802. *) objformat=elf ;;
  8803. esac
  8804. fi
  8805. version_type=freebsd-$objformat
  8806. case $version_type in
  8807. freebsd-elf*)
  8808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8809. need_version=no
  8810. need_lib_prefix=no
  8811. ;;
  8812. freebsd-*)
  8813. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8814. need_version=yes
  8815. ;;
  8816. esac
  8817. shlibpath_var=LD_LIBRARY_PATH
  8818. case $host_os in
  8819. freebsd2.*)
  8820. shlibpath_overrides_runpath=yes
  8821. ;;
  8822. freebsd3.[01]* | freebsdelf3.[01]*)
  8823. shlibpath_overrides_runpath=yes
  8824. hardcode_into_libs=yes
  8825. ;;
  8826. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8827. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8828. shlibpath_overrides_runpath=no
  8829. hardcode_into_libs=yes
  8830. ;;
  8831. *) # from 4.6 on, and DragonFly
  8832. shlibpath_overrides_runpath=yes
  8833. hardcode_into_libs=yes
  8834. ;;
  8835. esac
  8836. ;;
  8837. gnu*)
  8838. version_type=linux # correct to gnu/linux during the next big refactor
  8839. need_lib_prefix=no
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8842. soname_spec='${libname}${release}${shared_ext}$major'
  8843. shlibpath_var=LD_LIBRARY_PATH
  8844. shlibpath_overrides_runpath=no
  8845. hardcode_into_libs=yes
  8846. ;;
  8847. haiku*)
  8848. version_type=linux # correct to gnu/linux during the next big refactor
  8849. need_lib_prefix=no
  8850. need_version=no
  8851. dynamic_linker="$host_os runtime_loader"
  8852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8853. soname_spec='${libname}${release}${shared_ext}$major'
  8854. shlibpath_var=LIBRARY_PATH
  8855. shlibpath_overrides_runpath=yes
  8856. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8857. hardcode_into_libs=yes
  8858. ;;
  8859. hpux9* | hpux10* | hpux11*)
  8860. # Give a soname corresponding to the major version so that dld.sl refuses to
  8861. # link against other versions.
  8862. version_type=sunos
  8863. need_lib_prefix=no
  8864. need_version=no
  8865. case $host_cpu in
  8866. ia64*)
  8867. shrext_cmds='.so'
  8868. hardcode_into_libs=yes
  8869. dynamic_linker="$host_os dld.so"
  8870. shlibpath_var=LD_LIBRARY_PATH
  8871. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8873. soname_spec='${libname}${release}${shared_ext}$major'
  8874. if test "X$HPUX_IA64_MODE" = X32; then
  8875. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8876. else
  8877. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8878. fi
  8879. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8880. ;;
  8881. hppa*64*)
  8882. shrext_cmds='.sl'
  8883. hardcode_into_libs=yes
  8884. dynamic_linker="$host_os dld.sl"
  8885. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8886. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8888. soname_spec='${libname}${release}${shared_ext}$major'
  8889. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8890. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8891. ;;
  8892. *)
  8893. shrext_cmds='.sl'
  8894. dynamic_linker="$host_os dld.sl"
  8895. shlibpath_var=SHLIB_PATH
  8896. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8898. soname_spec='${libname}${release}${shared_ext}$major'
  8899. ;;
  8900. esac
  8901. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8902. postinstall_cmds='chmod 555 $lib'
  8903. # or fails outright, so override atomically:
  8904. install_override_mode=555
  8905. ;;
  8906. interix[3-9]*)
  8907. version_type=linux # correct to gnu/linux during the next big refactor
  8908. need_lib_prefix=no
  8909. need_version=no
  8910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8911. soname_spec='${libname}${release}${shared_ext}$major'
  8912. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. shlibpath_overrides_runpath=no
  8915. hardcode_into_libs=yes
  8916. ;;
  8917. irix5* | irix6* | nonstopux*)
  8918. case $host_os in
  8919. nonstopux*) version_type=nonstopux ;;
  8920. *)
  8921. if test "$lt_cv_prog_gnu_ld" = yes; then
  8922. version_type=linux # correct to gnu/linux during the next big refactor
  8923. else
  8924. version_type=irix
  8925. fi ;;
  8926. esac
  8927. need_lib_prefix=no
  8928. need_version=no
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8931. case $host_os in
  8932. irix5* | nonstopux*)
  8933. libsuff= shlibsuff=
  8934. ;;
  8935. *)
  8936. case $LD in # libtool.m4 will add one of these switches to LD
  8937. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8938. libsuff= shlibsuff= libmagic=32-bit;;
  8939. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8940. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8941. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8942. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8943. *) libsuff= shlibsuff= libmagic=never-match;;
  8944. esac
  8945. ;;
  8946. esac
  8947. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8948. shlibpath_overrides_runpath=no
  8949. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8950. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8951. hardcode_into_libs=yes
  8952. ;;
  8953. # No shared lib support for Linux oldld, aout, or coff.
  8954. linux*oldld* | linux*aout* | linux*coff*)
  8955. dynamic_linker=no
  8956. ;;
  8957. # This must be glibc/ELF.
  8958. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8959. version_type=linux # correct to gnu/linux during the next big refactor
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8965. shlibpath_var=LD_LIBRARY_PATH
  8966. shlibpath_overrides_runpath=no
  8967. # Some binutils ld are patched to set DT_RUNPATH
  8968. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8969. $as_echo_n "(cached) " >&6
  8970. else
  8971. lt_cv_shlibpath_overrides_runpath=no
  8972. save_LDFLAGS=$LDFLAGS
  8973. save_libdir=$libdir
  8974. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8975. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8977. /* end confdefs.h. */
  8978. int
  8979. main ()
  8980. {
  8981. ;
  8982. return 0;
  8983. }
  8984. _ACEOF
  8985. if ac_fn_c_try_link "$LINENO"; then :
  8986. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8987. lt_cv_shlibpath_overrides_runpath=yes
  8988. fi
  8989. fi
  8990. rm -f core conftest.err conftest.$ac_objext \
  8991. conftest$ac_exeext conftest.$ac_ext
  8992. LDFLAGS=$save_LDFLAGS
  8993. libdir=$save_libdir
  8994. fi
  8995. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8996. # This implies no fast_install, which is unacceptable.
  8997. # Some rework will be needed to allow for fast_install
  8998. # before this can be enabled.
  8999. hardcode_into_libs=yes
  9000. # Append ld.so.conf contents to the search path
  9001. if test -f /etc/ld.so.conf; then
  9002. 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' ' '`
  9003. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9004. fi
  9005. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9006. # powerpc, because MkLinux only supported shared libraries with the
  9007. # GNU dynamic linker. Since this was broken with cross compilers,
  9008. # most powerpc-linux boxes support dynamic linking these days and
  9009. # people can always --disable-shared, the test was removed, and we
  9010. # assume the GNU/Linux dynamic linker is in use.
  9011. dynamic_linker='GNU/Linux ld.so'
  9012. ;;
  9013. netbsd*)
  9014. version_type=sunos
  9015. need_lib_prefix=no
  9016. need_version=no
  9017. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9020. dynamic_linker='NetBSD (a.out) ld.so'
  9021. else
  9022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9023. soname_spec='${libname}${release}${shared_ext}$major'
  9024. dynamic_linker='NetBSD ld.elf_so'
  9025. fi
  9026. shlibpath_var=LD_LIBRARY_PATH
  9027. shlibpath_overrides_runpath=yes
  9028. hardcode_into_libs=yes
  9029. ;;
  9030. newsos6)
  9031. version_type=linux # correct to gnu/linux during the next big refactor
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. shlibpath_var=LD_LIBRARY_PATH
  9034. shlibpath_overrides_runpath=yes
  9035. ;;
  9036. *nto* | *qnx*)
  9037. version_type=qnx
  9038. need_lib_prefix=no
  9039. need_version=no
  9040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9041. soname_spec='${libname}${release}${shared_ext}$major'
  9042. shlibpath_var=LD_LIBRARY_PATH
  9043. shlibpath_overrides_runpath=no
  9044. hardcode_into_libs=yes
  9045. dynamic_linker='ldqnx.so'
  9046. ;;
  9047. openbsd*)
  9048. version_type=sunos
  9049. sys_lib_dlsearch_path_spec="/usr/lib"
  9050. need_lib_prefix=no
  9051. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9052. case $host_os in
  9053. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9054. *) need_version=no ;;
  9055. esac
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9058. shlibpath_var=LD_LIBRARY_PATH
  9059. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9060. case $host_os in
  9061. openbsd2.[89] | openbsd2.[89].*)
  9062. shlibpath_overrides_runpath=no
  9063. ;;
  9064. *)
  9065. shlibpath_overrides_runpath=yes
  9066. ;;
  9067. esac
  9068. else
  9069. shlibpath_overrides_runpath=yes
  9070. fi
  9071. ;;
  9072. os2*)
  9073. libname_spec='$name'
  9074. shrext_cmds=".dll"
  9075. need_lib_prefix=no
  9076. library_names_spec='$libname${shared_ext} $libname.a'
  9077. dynamic_linker='OS/2 ld.exe'
  9078. shlibpath_var=LIBPATH
  9079. ;;
  9080. osf3* | osf4* | osf5*)
  9081. version_type=osf
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9086. shlibpath_var=LD_LIBRARY_PATH
  9087. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9088. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9089. ;;
  9090. rdos*)
  9091. dynamic_linker=no
  9092. ;;
  9093. solaris*)
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9098. soname_spec='${libname}${release}${shared_ext}$major'
  9099. shlibpath_var=LD_LIBRARY_PATH
  9100. shlibpath_overrides_runpath=yes
  9101. hardcode_into_libs=yes
  9102. # ldd complains unless libraries are executable
  9103. postinstall_cmds='chmod +x $lib'
  9104. ;;
  9105. sunos4*)
  9106. version_type=sunos
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9108. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9109. shlibpath_var=LD_LIBRARY_PATH
  9110. shlibpath_overrides_runpath=yes
  9111. if test "$with_gnu_ld" = yes; then
  9112. need_lib_prefix=no
  9113. fi
  9114. need_version=yes
  9115. ;;
  9116. sysv4 | sysv4.3*)
  9117. version_type=linux # correct to gnu/linux during the next big refactor
  9118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9119. soname_spec='${libname}${release}${shared_ext}$major'
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. case $host_vendor in
  9122. sni)
  9123. shlibpath_overrides_runpath=no
  9124. need_lib_prefix=no
  9125. runpath_var=LD_RUN_PATH
  9126. ;;
  9127. siemens)
  9128. need_lib_prefix=no
  9129. ;;
  9130. motorola)
  9131. need_lib_prefix=no
  9132. need_version=no
  9133. shlibpath_overrides_runpath=no
  9134. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9135. ;;
  9136. esac
  9137. ;;
  9138. sysv4*MP*)
  9139. if test -d /usr/nec ;then
  9140. version_type=linux # correct to gnu/linux during the next big refactor
  9141. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9142. soname_spec='$libname${shared_ext}.$major'
  9143. shlibpath_var=LD_LIBRARY_PATH
  9144. fi
  9145. ;;
  9146. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9147. version_type=freebsd-elf
  9148. need_lib_prefix=no
  9149. need_version=no
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. shlibpath_overrides_runpath=yes
  9154. hardcode_into_libs=yes
  9155. if test "$with_gnu_ld" = yes; then
  9156. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9157. else
  9158. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9159. case $host_os in
  9160. sco3.2v5*)
  9161. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9162. ;;
  9163. esac
  9164. fi
  9165. sys_lib_dlsearch_path_spec='/usr/lib'
  9166. ;;
  9167. tpf*)
  9168. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9169. version_type=linux # correct to gnu/linux during the next big refactor
  9170. need_lib_prefix=no
  9171. need_version=no
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. shlibpath_overrides_runpath=no
  9175. hardcode_into_libs=yes
  9176. ;;
  9177. uts4*)
  9178. version_type=linux # correct to gnu/linux during the next big refactor
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9180. soname_spec='${libname}${release}${shared_ext}$major'
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. ;;
  9183. *)
  9184. dynamic_linker=no
  9185. ;;
  9186. esac
  9187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9188. $as_echo "$dynamic_linker" >&6; }
  9189. test "$dynamic_linker" = no && can_build_shared=no
  9190. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9191. if test "$GCC" = yes; then
  9192. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9193. fi
  9194. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9195. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9196. fi
  9197. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9198. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9199. fi
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9201. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9202. hardcode_action=
  9203. if test -n "$hardcode_libdir_flag_spec" ||
  9204. test -n "$runpath_var" ||
  9205. test "X$hardcode_automatic" = "Xyes" ; then
  9206. # We can hardcode non-existent directories.
  9207. if test "$hardcode_direct" != no &&
  9208. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9209. # have to relink, otherwise we might link with an installed library
  9210. # when we should be linking with a yet-to-be-installed one
  9211. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9212. test "$hardcode_minus_L" != no; then
  9213. # Linking always hardcodes the temporary library directory.
  9214. hardcode_action=relink
  9215. else
  9216. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9217. hardcode_action=immediate
  9218. fi
  9219. else
  9220. # We cannot hardcode anything, or else we can only hardcode existing
  9221. # directories.
  9222. hardcode_action=unsupported
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9225. $as_echo "$hardcode_action" >&6; }
  9226. if test "$hardcode_action" = relink ||
  9227. test "$inherit_rpath" = yes; then
  9228. # Fast installation is not supported
  9229. enable_fast_install=no
  9230. elif test "$shlibpath_overrides_runpath" = yes ||
  9231. test "$enable_shared" = no; then
  9232. # Fast installation is not necessary
  9233. enable_fast_install=needless
  9234. fi
  9235. if test "x$enable_dlopen" != xyes; then
  9236. enable_dlopen=unknown
  9237. enable_dlopen_self=unknown
  9238. enable_dlopen_self_static=unknown
  9239. else
  9240. lt_cv_dlopen=no
  9241. lt_cv_dlopen_libs=
  9242. case $host_os in
  9243. beos*)
  9244. lt_cv_dlopen="load_add_on"
  9245. lt_cv_dlopen_libs=
  9246. lt_cv_dlopen_self=yes
  9247. ;;
  9248. mingw* | pw32* | cegcc*)
  9249. lt_cv_dlopen="LoadLibrary"
  9250. lt_cv_dlopen_libs=
  9251. ;;
  9252. cygwin*)
  9253. lt_cv_dlopen="dlopen"
  9254. lt_cv_dlopen_libs=
  9255. ;;
  9256. darwin*)
  9257. # if libdl is installed we need to link against it
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9259. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9260. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9261. $as_echo_n "(cached) " >&6
  9262. else
  9263. ac_check_lib_save_LIBS=$LIBS
  9264. LIBS="-ldl $LIBS"
  9265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9266. /* end confdefs.h. */
  9267. /* Override any GCC internal prototype to avoid an error.
  9268. Use char because int might match the return type of a GCC
  9269. builtin and then its argument prototype would still apply. */
  9270. #ifdef __cplusplus
  9271. extern "C"
  9272. #endif
  9273. char dlopen ();
  9274. int
  9275. main ()
  9276. {
  9277. return dlopen ();
  9278. ;
  9279. return 0;
  9280. }
  9281. _ACEOF
  9282. if ac_fn_c_try_link "$LINENO"; then :
  9283. ac_cv_lib_dl_dlopen=yes
  9284. else
  9285. ac_cv_lib_dl_dlopen=no
  9286. fi
  9287. rm -f core conftest.err conftest.$ac_objext \
  9288. conftest$ac_exeext conftest.$ac_ext
  9289. LIBS=$ac_check_lib_save_LIBS
  9290. fi
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9292. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9293. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9294. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9295. else
  9296. lt_cv_dlopen="dyld"
  9297. lt_cv_dlopen_libs=
  9298. lt_cv_dlopen_self=yes
  9299. fi
  9300. ;;
  9301. *)
  9302. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9303. if test "x$ac_cv_func_shl_load" = xyes; then :
  9304. lt_cv_dlopen="shl_load"
  9305. else
  9306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9307. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9308. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9309. $as_echo_n "(cached) " >&6
  9310. else
  9311. ac_check_lib_save_LIBS=$LIBS
  9312. LIBS="-ldld $LIBS"
  9313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9314. /* end confdefs.h. */
  9315. /* Override any GCC internal prototype to avoid an error.
  9316. Use char because int might match the return type of a GCC
  9317. builtin and then its argument prototype would still apply. */
  9318. #ifdef __cplusplus
  9319. extern "C"
  9320. #endif
  9321. char shl_load ();
  9322. int
  9323. main ()
  9324. {
  9325. return shl_load ();
  9326. ;
  9327. return 0;
  9328. }
  9329. _ACEOF
  9330. if ac_fn_c_try_link "$LINENO"; then :
  9331. ac_cv_lib_dld_shl_load=yes
  9332. else
  9333. ac_cv_lib_dld_shl_load=no
  9334. fi
  9335. rm -f core conftest.err conftest.$ac_objext \
  9336. conftest$ac_exeext conftest.$ac_ext
  9337. LIBS=$ac_check_lib_save_LIBS
  9338. fi
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9340. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9341. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9342. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9343. else
  9344. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9345. if test "x$ac_cv_func_dlopen" = xyes; then :
  9346. lt_cv_dlopen="dlopen"
  9347. else
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9349. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9350. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9351. $as_echo_n "(cached) " >&6
  9352. else
  9353. ac_check_lib_save_LIBS=$LIBS
  9354. LIBS="-ldl $LIBS"
  9355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9356. /* end confdefs.h. */
  9357. /* Override any GCC internal prototype to avoid an error.
  9358. Use char because int might match the return type of a GCC
  9359. builtin and then its argument prototype would still apply. */
  9360. #ifdef __cplusplus
  9361. extern "C"
  9362. #endif
  9363. char dlopen ();
  9364. int
  9365. main ()
  9366. {
  9367. return dlopen ();
  9368. ;
  9369. return 0;
  9370. }
  9371. _ACEOF
  9372. if ac_fn_c_try_link "$LINENO"; then :
  9373. ac_cv_lib_dl_dlopen=yes
  9374. else
  9375. ac_cv_lib_dl_dlopen=no
  9376. fi
  9377. rm -f core conftest.err conftest.$ac_objext \
  9378. conftest$ac_exeext conftest.$ac_ext
  9379. LIBS=$ac_check_lib_save_LIBS
  9380. fi
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9382. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9383. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9384. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9385. else
  9386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9387. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9388. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9389. $as_echo_n "(cached) " >&6
  9390. else
  9391. ac_check_lib_save_LIBS=$LIBS
  9392. LIBS="-lsvld $LIBS"
  9393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9394. /* end confdefs.h. */
  9395. /* Override any GCC internal prototype to avoid an error.
  9396. Use char because int might match the return type of a GCC
  9397. builtin and then its argument prototype would still apply. */
  9398. #ifdef __cplusplus
  9399. extern "C"
  9400. #endif
  9401. char dlopen ();
  9402. int
  9403. main ()
  9404. {
  9405. return dlopen ();
  9406. ;
  9407. return 0;
  9408. }
  9409. _ACEOF
  9410. if ac_fn_c_try_link "$LINENO"; then :
  9411. ac_cv_lib_svld_dlopen=yes
  9412. else
  9413. ac_cv_lib_svld_dlopen=no
  9414. fi
  9415. rm -f core conftest.err conftest.$ac_objext \
  9416. conftest$ac_exeext conftest.$ac_ext
  9417. LIBS=$ac_check_lib_save_LIBS
  9418. fi
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9420. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9421. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9422. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9423. else
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9425. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9426. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9427. $as_echo_n "(cached) " >&6
  9428. else
  9429. ac_check_lib_save_LIBS=$LIBS
  9430. LIBS="-ldld $LIBS"
  9431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9432. /* end confdefs.h. */
  9433. /* Override any GCC internal prototype to avoid an error.
  9434. Use char because int might match the return type of a GCC
  9435. builtin and then its argument prototype would still apply. */
  9436. #ifdef __cplusplus
  9437. extern "C"
  9438. #endif
  9439. char dld_link ();
  9440. int
  9441. main ()
  9442. {
  9443. return dld_link ();
  9444. ;
  9445. return 0;
  9446. }
  9447. _ACEOF
  9448. if ac_fn_c_try_link "$LINENO"; then :
  9449. ac_cv_lib_dld_dld_link=yes
  9450. else
  9451. ac_cv_lib_dld_dld_link=no
  9452. fi
  9453. rm -f core conftest.err conftest.$ac_objext \
  9454. conftest$ac_exeext conftest.$ac_ext
  9455. LIBS=$ac_check_lib_save_LIBS
  9456. fi
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9458. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9459. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9460. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9461. fi
  9462. fi
  9463. fi
  9464. fi
  9465. fi
  9466. fi
  9467. ;;
  9468. esac
  9469. if test "x$lt_cv_dlopen" != xno; then
  9470. enable_dlopen=yes
  9471. else
  9472. enable_dlopen=no
  9473. fi
  9474. case $lt_cv_dlopen in
  9475. dlopen)
  9476. save_CPPFLAGS="$CPPFLAGS"
  9477. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9478. save_LDFLAGS="$LDFLAGS"
  9479. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9480. save_LIBS="$LIBS"
  9481. LIBS="$lt_cv_dlopen_libs $LIBS"
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9483. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9484. if ${lt_cv_dlopen_self+:} false; then :
  9485. $as_echo_n "(cached) " >&6
  9486. else
  9487. if test "$cross_compiling" = yes; then :
  9488. lt_cv_dlopen_self=cross
  9489. else
  9490. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9491. lt_status=$lt_dlunknown
  9492. cat > conftest.$ac_ext <<_LT_EOF
  9493. #line $LINENO "configure"
  9494. #include "confdefs.h"
  9495. #if HAVE_DLFCN_H
  9496. #include <dlfcn.h>
  9497. #endif
  9498. #include <stdio.h>
  9499. #ifdef RTLD_GLOBAL
  9500. # define LT_DLGLOBAL RTLD_GLOBAL
  9501. #else
  9502. # ifdef DL_GLOBAL
  9503. # define LT_DLGLOBAL DL_GLOBAL
  9504. # else
  9505. # define LT_DLGLOBAL 0
  9506. # endif
  9507. #endif
  9508. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9509. find out it does not work in some platform. */
  9510. #ifndef LT_DLLAZY_OR_NOW
  9511. # ifdef RTLD_LAZY
  9512. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9513. # else
  9514. # ifdef DL_LAZY
  9515. # define LT_DLLAZY_OR_NOW DL_LAZY
  9516. # else
  9517. # ifdef RTLD_NOW
  9518. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9519. # else
  9520. # ifdef DL_NOW
  9521. # define LT_DLLAZY_OR_NOW DL_NOW
  9522. # else
  9523. # define LT_DLLAZY_OR_NOW 0
  9524. # endif
  9525. # endif
  9526. # endif
  9527. # endif
  9528. #endif
  9529. /* When -fvisbility=hidden is used, assume the code has been annotated
  9530. correspondingly for the symbols needed. */
  9531. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9532. int fnord () __attribute__((visibility("default")));
  9533. #endif
  9534. int fnord () { return 42; }
  9535. int main ()
  9536. {
  9537. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9538. int status = $lt_dlunknown;
  9539. if (self)
  9540. {
  9541. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9542. else
  9543. {
  9544. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9545. else puts (dlerror ());
  9546. }
  9547. /* dlclose (self); */
  9548. }
  9549. else
  9550. puts (dlerror ());
  9551. return status;
  9552. }
  9553. _LT_EOF
  9554. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9555. (eval $ac_link) 2>&5
  9556. ac_status=$?
  9557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9558. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9559. (./conftest; exit; ) >&5 2>/dev/null
  9560. lt_status=$?
  9561. case x$lt_status in
  9562. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9563. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9564. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9565. esac
  9566. else :
  9567. # compilation failed
  9568. lt_cv_dlopen_self=no
  9569. fi
  9570. fi
  9571. rm -fr conftest*
  9572. fi
  9573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9574. $as_echo "$lt_cv_dlopen_self" >&6; }
  9575. if test "x$lt_cv_dlopen_self" = xyes; then
  9576. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9578. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9579. if ${lt_cv_dlopen_self_static+:} false; then :
  9580. $as_echo_n "(cached) " >&6
  9581. else
  9582. if test "$cross_compiling" = yes; then :
  9583. lt_cv_dlopen_self_static=cross
  9584. else
  9585. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9586. lt_status=$lt_dlunknown
  9587. cat > conftest.$ac_ext <<_LT_EOF
  9588. #line $LINENO "configure"
  9589. #include "confdefs.h"
  9590. #if HAVE_DLFCN_H
  9591. #include <dlfcn.h>
  9592. #endif
  9593. #include <stdio.h>
  9594. #ifdef RTLD_GLOBAL
  9595. # define LT_DLGLOBAL RTLD_GLOBAL
  9596. #else
  9597. # ifdef DL_GLOBAL
  9598. # define LT_DLGLOBAL DL_GLOBAL
  9599. # else
  9600. # define LT_DLGLOBAL 0
  9601. # endif
  9602. #endif
  9603. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9604. find out it does not work in some platform. */
  9605. #ifndef LT_DLLAZY_OR_NOW
  9606. # ifdef RTLD_LAZY
  9607. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9608. # else
  9609. # ifdef DL_LAZY
  9610. # define LT_DLLAZY_OR_NOW DL_LAZY
  9611. # else
  9612. # ifdef RTLD_NOW
  9613. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9614. # else
  9615. # ifdef DL_NOW
  9616. # define LT_DLLAZY_OR_NOW DL_NOW
  9617. # else
  9618. # define LT_DLLAZY_OR_NOW 0
  9619. # endif
  9620. # endif
  9621. # endif
  9622. # endif
  9623. #endif
  9624. /* When -fvisbility=hidden is used, assume the code has been annotated
  9625. correspondingly for the symbols needed. */
  9626. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9627. int fnord () __attribute__((visibility("default")));
  9628. #endif
  9629. int fnord () { return 42; }
  9630. int main ()
  9631. {
  9632. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9633. int status = $lt_dlunknown;
  9634. if (self)
  9635. {
  9636. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9637. else
  9638. {
  9639. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9640. else puts (dlerror ());
  9641. }
  9642. /* dlclose (self); */
  9643. }
  9644. else
  9645. puts (dlerror ());
  9646. return status;
  9647. }
  9648. _LT_EOF
  9649. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9650. (eval $ac_link) 2>&5
  9651. ac_status=$?
  9652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9653. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9654. (./conftest; exit; ) >&5 2>/dev/null
  9655. lt_status=$?
  9656. case x$lt_status in
  9657. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9658. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9659. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9660. esac
  9661. else :
  9662. # compilation failed
  9663. lt_cv_dlopen_self_static=no
  9664. fi
  9665. fi
  9666. rm -fr conftest*
  9667. fi
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9669. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9670. fi
  9671. CPPFLAGS="$save_CPPFLAGS"
  9672. LDFLAGS="$save_LDFLAGS"
  9673. LIBS="$save_LIBS"
  9674. ;;
  9675. esac
  9676. case $lt_cv_dlopen_self in
  9677. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9678. *) enable_dlopen_self=unknown ;;
  9679. esac
  9680. case $lt_cv_dlopen_self_static in
  9681. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9682. *) enable_dlopen_self_static=unknown ;;
  9683. esac
  9684. fi
  9685. striplib=
  9686. old_striplib=
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9688. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9689. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9690. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9691. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9693. $as_echo "yes" >&6; }
  9694. else
  9695. # FIXME - insert some real tests, host_os isn't really good enough
  9696. case $host_os in
  9697. darwin*)
  9698. if test -n "$STRIP" ; then
  9699. striplib="$STRIP -x"
  9700. old_striplib="$STRIP -S"
  9701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9702. $as_echo "yes" >&6; }
  9703. else
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9705. $as_echo "no" >&6; }
  9706. fi
  9707. ;;
  9708. *)
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9710. $as_echo "no" >&6; }
  9711. ;;
  9712. esac
  9713. fi
  9714. # Report which library types will actually be built
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9716. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9718. $as_echo "$can_build_shared" >&6; }
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9720. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9721. test "$can_build_shared" = "no" && enable_shared=no
  9722. # On AIX, shared libraries and static libraries use the same namespace, and
  9723. # are all built from PIC.
  9724. case $host_os in
  9725. aix3*)
  9726. test "$enable_shared" = yes && enable_static=no
  9727. if test -n "$RANLIB"; then
  9728. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9729. postinstall_cmds='$RANLIB $lib'
  9730. fi
  9731. ;;
  9732. aix[4-9]*)
  9733. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9734. test "$enable_shared" = yes && enable_static=no
  9735. fi
  9736. ;;
  9737. esac
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9739. $as_echo "$enable_shared" >&6; }
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9741. $as_echo_n "checking whether to build static libraries... " >&6; }
  9742. # Make sure either enable_shared or enable_static is yes.
  9743. test "$enable_shared" = yes || enable_static=yes
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9745. $as_echo "$enable_static" >&6; }
  9746. fi
  9747. ac_ext=c
  9748. ac_cpp='$CPP $CPPFLAGS'
  9749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9752. CC="$lt_save_CC"
  9753. ac_config_commands="$ac_config_commands libtool"
  9754. # Only expand once:
  9755. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9756. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9757. LT_REVISION=$SDL_INTERFACE_AGE
  9758. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9759. ac_ext=c
  9760. ac_cpp='$CPP $CPPFLAGS'
  9761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9764. if test -n "$ac_tool_prefix"; then
  9765. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9766. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9768. $as_echo_n "checking for $ac_word... " >&6; }
  9769. if ${ac_cv_prog_CC+:} false; then :
  9770. $as_echo_n "(cached) " >&6
  9771. else
  9772. if test -n "$CC"; then
  9773. ac_cv_prog_CC="$CC" # Let the user override the test.
  9774. else
  9775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9776. for as_dir in $PATH
  9777. do
  9778. IFS=$as_save_IFS
  9779. test -z "$as_dir" && as_dir=.
  9780. for ac_exec_ext in '' $ac_executable_extensions; do
  9781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9782. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9784. break 2
  9785. fi
  9786. done
  9787. done
  9788. IFS=$as_save_IFS
  9789. fi
  9790. fi
  9791. CC=$ac_cv_prog_CC
  9792. if test -n "$CC"; then
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9794. $as_echo "$CC" >&6; }
  9795. else
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9797. $as_echo "no" >&6; }
  9798. fi
  9799. fi
  9800. if test -z "$ac_cv_prog_CC"; then
  9801. ac_ct_CC=$CC
  9802. # Extract the first word of "gcc", so it can be a program name with args.
  9803. set dummy gcc; ac_word=$2
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9805. $as_echo_n "checking for $ac_word... " >&6; }
  9806. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9807. $as_echo_n "(cached) " >&6
  9808. else
  9809. if test -n "$ac_ct_CC"; then
  9810. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9811. else
  9812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9813. for as_dir in $PATH
  9814. do
  9815. IFS=$as_save_IFS
  9816. test -z "$as_dir" && as_dir=.
  9817. for ac_exec_ext in '' $ac_executable_extensions; do
  9818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9819. ac_cv_prog_ac_ct_CC="gcc"
  9820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9821. break 2
  9822. fi
  9823. done
  9824. done
  9825. IFS=$as_save_IFS
  9826. fi
  9827. fi
  9828. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9829. if test -n "$ac_ct_CC"; then
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9831. $as_echo "$ac_ct_CC" >&6; }
  9832. else
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9834. $as_echo "no" >&6; }
  9835. fi
  9836. if test "x$ac_ct_CC" = x; then
  9837. CC=""
  9838. else
  9839. case $cross_compiling:$ac_tool_warned in
  9840. yes:)
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9843. ac_tool_warned=yes ;;
  9844. esac
  9845. CC=$ac_ct_CC
  9846. fi
  9847. else
  9848. CC="$ac_cv_prog_CC"
  9849. fi
  9850. if test -z "$CC"; then
  9851. if test -n "$ac_tool_prefix"; then
  9852. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9853. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9855. $as_echo_n "checking for $ac_word... " >&6; }
  9856. if ${ac_cv_prog_CC+:} false; then :
  9857. $as_echo_n "(cached) " >&6
  9858. else
  9859. if test -n "$CC"; then
  9860. ac_cv_prog_CC="$CC" # Let the user override the test.
  9861. else
  9862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9863. for as_dir in $PATH
  9864. do
  9865. IFS=$as_save_IFS
  9866. test -z "$as_dir" && as_dir=.
  9867. for ac_exec_ext in '' $ac_executable_extensions; do
  9868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9869. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9871. break 2
  9872. fi
  9873. done
  9874. done
  9875. IFS=$as_save_IFS
  9876. fi
  9877. fi
  9878. CC=$ac_cv_prog_CC
  9879. if test -n "$CC"; then
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9881. $as_echo "$CC" >&6; }
  9882. else
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9884. $as_echo "no" >&6; }
  9885. fi
  9886. fi
  9887. fi
  9888. if test -z "$CC"; then
  9889. # Extract the first word of "cc", so it can be a program name with args.
  9890. set dummy cc; ac_word=$2
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9892. $as_echo_n "checking for $ac_word... " >&6; }
  9893. if ${ac_cv_prog_CC+:} false; then :
  9894. $as_echo_n "(cached) " >&6
  9895. else
  9896. if test -n "$CC"; then
  9897. ac_cv_prog_CC="$CC" # Let the user override the test.
  9898. else
  9899. ac_prog_rejected=no
  9900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9901. for as_dir in $PATH
  9902. do
  9903. IFS=$as_save_IFS
  9904. test -z "$as_dir" && as_dir=.
  9905. for ac_exec_ext in '' $ac_executable_extensions; do
  9906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9907. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9908. ac_prog_rejected=yes
  9909. continue
  9910. fi
  9911. ac_cv_prog_CC="cc"
  9912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9913. break 2
  9914. fi
  9915. done
  9916. done
  9917. IFS=$as_save_IFS
  9918. if test $ac_prog_rejected = yes; then
  9919. # We found a bogon in the path, so make sure we never use it.
  9920. set dummy $ac_cv_prog_CC
  9921. shift
  9922. if test $# != 0; then
  9923. # We chose a different compiler from the bogus one.
  9924. # However, it has the same basename, so the bogon will be chosen
  9925. # first if we set CC to just the basename; use the full file name.
  9926. shift
  9927. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9928. fi
  9929. fi
  9930. fi
  9931. fi
  9932. CC=$ac_cv_prog_CC
  9933. if test -n "$CC"; then
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9935. $as_echo "$CC" >&6; }
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9938. $as_echo "no" >&6; }
  9939. fi
  9940. fi
  9941. if test -z "$CC"; then
  9942. if test -n "$ac_tool_prefix"; then
  9943. for ac_prog in cl.exe
  9944. do
  9945. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9946. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9948. $as_echo_n "checking for $ac_word... " >&6; }
  9949. if ${ac_cv_prog_CC+:} false; then :
  9950. $as_echo_n "(cached) " >&6
  9951. else
  9952. if test -n "$CC"; then
  9953. ac_cv_prog_CC="$CC" # Let the user override the test.
  9954. else
  9955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9956. for as_dir in $PATH
  9957. do
  9958. IFS=$as_save_IFS
  9959. test -z "$as_dir" && as_dir=.
  9960. for ac_exec_ext in '' $ac_executable_extensions; do
  9961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9962. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9964. break 2
  9965. fi
  9966. done
  9967. done
  9968. IFS=$as_save_IFS
  9969. fi
  9970. fi
  9971. CC=$ac_cv_prog_CC
  9972. if test -n "$CC"; then
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9974. $as_echo "$CC" >&6; }
  9975. else
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9977. $as_echo "no" >&6; }
  9978. fi
  9979. test -n "$CC" && break
  9980. done
  9981. fi
  9982. if test -z "$CC"; then
  9983. ac_ct_CC=$CC
  9984. for ac_prog in cl.exe
  9985. do
  9986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9987. set dummy $ac_prog; ac_word=$2
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9989. $as_echo_n "checking for $ac_word... " >&6; }
  9990. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9991. $as_echo_n "(cached) " >&6
  9992. else
  9993. if test -n "$ac_ct_CC"; then
  9994. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9995. else
  9996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9997. for as_dir in $PATH
  9998. do
  9999. IFS=$as_save_IFS
  10000. test -z "$as_dir" && as_dir=.
  10001. for ac_exec_ext in '' $ac_executable_extensions; do
  10002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10003. ac_cv_prog_ac_ct_CC="$ac_prog"
  10004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10005. break 2
  10006. fi
  10007. done
  10008. done
  10009. IFS=$as_save_IFS
  10010. fi
  10011. fi
  10012. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10013. if test -n "$ac_ct_CC"; then
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10015. $as_echo "$ac_ct_CC" >&6; }
  10016. else
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10018. $as_echo "no" >&6; }
  10019. fi
  10020. test -n "$ac_ct_CC" && break
  10021. done
  10022. if test "x$ac_ct_CC" = x; then
  10023. CC=""
  10024. else
  10025. case $cross_compiling:$ac_tool_warned in
  10026. yes:)
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10029. ac_tool_warned=yes ;;
  10030. esac
  10031. CC=$ac_ct_CC
  10032. fi
  10033. fi
  10034. fi
  10035. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10037. as_fn_error $? "no acceptable C compiler found in \$PATH
  10038. See \`config.log' for more details" "$LINENO" 5; }
  10039. # Provide some information about the compiler.
  10040. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10041. set X $ac_compile
  10042. ac_compiler=$2
  10043. for ac_option in --version -v -V -qversion; do
  10044. { { ac_try="$ac_compiler $ac_option >&5"
  10045. case "(($ac_try" in
  10046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10047. *) ac_try_echo=$ac_try;;
  10048. esac
  10049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10050. $as_echo "$ac_try_echo"; } >&5
  10051. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10052. ac_status=$?
  10053. if test -s conftest.err; then
  10054. sed '10a\
  10055. ... rest of stderr output deleted ...
  10056. 10q' conftest.err >conftest.er1
  10057. cat conftest.er1 >&5
  10058. fi
  10059. rm -f conftest.er1 conftest.err
  10060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10061. test $ac_status = 0; }
  10062. done
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10064. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10065. if ${ac_cv_c_compiler_gnu+:} false; then :
  10066. $as_echo_n "(cached) " >&6
  10067. else
  10068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10069. /* end confdefs.h. */
  10070. int
  10071. main ()
  10072. {
  10073. #ifndef __GNUC__
  10074. choke me
  10075. #endif
  10076. ;
  10077. return 0;
  10078. }
  10079. _ACEOF
  10080. if ac_fn_c_try_compile "$LINENO"; then :
  10081. ac_compiler_gnu=yes
  10082. else
  10083. ac_compiler_gnu=no
  10084. fi
  10085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10086. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10087. fi
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10089. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10090. if test $ac_compiler_gnu = yes; then
  10091. GCC=yes
  10092. else
  10093. GCC=
  10094. fi
  10095. ac_test_CFLAGS=${CFLAGS+set}
  10096. ac_save_CFLAGS=$CFLAGS
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10098. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10099. if ${ac_cv_prog_cc_g+:} false; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. ac_save_c_werror_flag=$ac_c_werror_flag
  10103. ac_c_werror_flag=yes
  10104. ac_cv_prog_cc_g=no
  10105. CFLAGS="-g"
  10106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10107. /* end confdefs.h. */
  10108. int
  10109. main ()
  10110. {
  10111. ;
  10112. return 0;
  10113. }
  10114. _ACEOF
  10115. if ac_fn_c_try_compile "$LINENO"; then :
  10116. ac_cv_prog_cc_g=yes
  10117. else
  10118. CFLAGS=""
  10119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10120. /* end confdefs.h. */
  10121. int
  10122. main ()
  10123. {
  10124. ;
  10125. return 0;
  10126. }
  10127. _ACEOF
  10128. if ac_fn_c_try_compile "$LINENO"; then :
  10129. else
  10130. ac_c_werror_flag=$ac_save_c_werror_flag
  10131. CFLAGS="-g"
  10132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10133. /* end confdefs.h. */
  10134. int
  10135. main ()
  10136. {
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. if ac_fn_c_try_compile "$LINENO"; then :
  10142. ac_cv_prog_cc_g=yes
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10149. ac_c_werror_flag=$ac_save_c_werror_flag
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10152. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10153. if test "$ac_test_CFLAGS" = set; then
  10154. CFLAGS=$ac_save_CFLAGS
  10155. elif test $ac_cv_prog_cc_g = yes; then
  10156. if test "$GCC" = yes; then
  10157. CFLAGS="-g -O2"
  10158. else
  10159. CFLAGS="-g"
  10160. fi
  10161. else
  10162. if test "$GCC" = yes; then
  10163. CFLAGS="-O2"
  10164. else
  10165. CFLAGS=
  10166. fi
  10167. fi
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10169. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10170. if ${ac_cv_prog_cc_c89+:} false; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. ac_cv_prog_cc_c89=no
  10174. ac_save_CC=$CC
  10175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10176. /* end confdefs.h. */
  10177. #include <stdarg.h>
  10178. #include <stdio.h>
  10179. struct stat;
  10180. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10181. struct buf { int x; };
  10182. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10183. static char *e (p, i)
  10184. char **p;
  10185. int i;
  10186. {
  10187. return p[i];
  10188. }
  10189. static char *f (char * (*g) (char **, int), char **p, ...)
  10190. {
  10191. char *s;
  10192. va_list v;
  10193. va_start (v,p);
  10194. s = g (p, va_arg (v,int));
  10195. va_end (v);
  10196. return s;
  10197. }
  10198. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10199. function prototypes and stuff, but not '\xHH' hex character constants.
  10200. These don't provoke an error unfortunately, instead are silently treated
  10201. as 'x'. The following induces an error, until -std is added to get
  10202. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10203. array size at least. It's necessary to write '\x00'==0 to get something
  10204. that's true only with -std. */
  10205. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10206. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10207. inside strings and character constants. */
  10208. #define FOO(x) 'x'
  10209. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10210. int test (int i, double x);
  10211. struct s1 {int (*f) (int a);};
  10212. struct s2 {int (*f) (double a);};
  10213. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10214. int argc;
  10215. char **argv;
  10216. int
  10217. main ()
  10218. {
  10219. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10220. ;
  10221. return 0;
  10222. }
  10223. _ACEOF
  10224. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10225. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10226. do
  10227. CC="$ac_save_CC $ac_arg"
  10228. if ac_fn_c_try_compile "$LINENO"; then :
  10229. ac_cv_prog_cc_c89=$ac_arg
  10230. fi
  10231. rm -f core conftest.err conftest.$ac_objext
  10232. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10233. done
  10234. rm -f conftest.$ac_ext
  10235. CC=$ac_save_CC
  10236. fi
  10237. # AC_CACHE_VAL
  10238. case "x$ac_cv_prog_cc_c89" in
  10239. x)
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10241. $as_echo "none needed" >&6; } ;;
  10242. xno)
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10244. $as_echo "unsupported" >&6; } ;;
  10245. *)
  10246. CC="$CC $ac_cv_prog_cc_c89"
  10247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10248. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10249. esac
  10250. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10251. fi
  10252. ac_ext=c
  10253. ac_cpp='$CPP $CPPFLAGS'
  10254. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10255. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10256. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10257. ac_ext=cpp
  10258. ac_cpp='$CXXCPP $CPPFLAGS'
  10259. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10260. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10261. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10262. if test -z "$CXX"; then
  10263. if test -n "$CCC"; then
  10264. CXX=$CCC
  10265. else
  10266. if test -n "$ac_tool_prefix"; then
  10267. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10268. do
  10269. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10270. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10272. $as_echo_n "checking for $ac_word... " >&6; }
  10273. if ${ac_cv_prog_CXX+:} false; then :
  10274. $as_echo_n "(cached) " >&6
  10275. else
  10276. if test -n "$CXX"; then
  10277. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10278. else
  10279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10280. for as_dir in $PATH
  10281. do
  10282. IFS=$as_save_IFS
  10283. test -z "$as_dir" && as_dir=.
  10284. for ac_exec_ext in '' $ac_executable_extensions; do
  10285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10286. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10288. break 2
  10289. fi
  10290. done
  10291. done
  10292. IFS=$as_save_IFS
  10293. fi
  10294. fi
  10295. CXX=$ac_cv_prog_CXX
  10296. if test -n "$CXX"; then
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10298. $as_echo "$CXX" >&6; }
  10299. else
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10301. $as_echo "no" >&6; }
  10302. fi
  10303. test -n "$CXX" && break
  10304. done
  10305. fi
  10306. if test -z "$CXX"; then
  10307. ac_ct_CXX=$CXX
  10308. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10309. do
  10310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10311. set dummy $ac_prog; ac_word=$2
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10313. $as_echo_n "checking for $ac_word... " >&6; }
  10314. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10315. $as_echo_n "(cached) " >&6
  10316. else
  10317. if test -n "$ac_ct_CXX"; then
  10318. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10319. else
  10320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10321. for as_dir in $PATH
  10322. do
  10323. IFS=$as_save_IFS
  10324. test -z "$as_dir" && as_dir=.
  10325. for ac_exec_ext in '' $ac_executable_extensions; do
  10326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10327. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10329. break 2
  10330. fi
  10331. done
  10332. done
  10333. IFS=$as_save_IFS
  10334. fi
  10335. fi
  10336. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10337. if test -n "$ac_ct_CXX"; then
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10339. $as_echo "$ac_ct_CXX" >&6; }
  10340. else
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10342. $as_echo "no" >&6; }
  10343. fi
  10344. test -n "$ac_ct_CXX" && break
  10345. done
  10346. if test "x$ac_ct_CXX" = x; then
  10347. CXX="g++"
  10348. else
  10349. case $cross_compiling:$ac_tool_warned in
  10350. yes:)
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10353. ac_tool_warned=yes ;;
  10354. esac
  10355. CXX=$ac_ct_CXX
  10356. fi
  10357. fi
  10358. fi
  10359. fi
  10360. # Provide some information about the compiler.
  10361. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10362. set X $ac_compile
  10363. ac_compiler=$2
  10364. for ac_option in --version -v -V -qversion; do
  10365. { { ac_try="$ac_compiler $ac_option >&5"
  10366. case "(($ac_try" in
  10367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10368. *) ac_try_echo=$ac_try;;
  10369. esac
  10370. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10371. $as_echo "$ac_try_echo"; } >&5
  10372. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10373. ac_status=$?
  10374. if test -s conftest.err; then
  10375. sed '10a\
  10376. ... rest of stderr output deleted ...
  10377. 10q' conftest.err >conftest.er1
  10378. cat conftest.er1 >&5
  10379. fi
  10380. rm -f conftest.er1 conftest.err
  10381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10382. test $ac_status = 0; }
  10383. done
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10385. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10386. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10387. $as_echo_n "(cached) " >&6
  10388. else
  10389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10390. /* end confdefs.h. */
  10391. int
  10392. main ()
  10393. {
  10394. #ifndef __GNUC__
  10395. choke me
  10396. #endif
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_cxx_try_compile "$LINENO"; then :
  10402. ac_compiler_gnu=yes
  10403. else
  10404. ac_compiler_gnu=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10407. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10408. fi
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10410. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10411. if test $ac_compiler_gnu = yes; then
  10412. GXX=yes
  10413. else
  10414. GXX=
  10415. fi
  10416. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10417. ac_save_CXXFLAGS=$CXXFLAGS
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10419. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10420. if ${ac_cv_prog_cxx_g+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10424. ac_cxx_werror_flag=yes
  10425. ac_cv_prog_cxx_g=no
  10426. CXXFLAGS="-g"
  10427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10428. /* end confdefs.h. */
  10429. int
  10430. main ()
  10431. {
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. if ac_fn_cxx_try_compile "$LINENO"; then :
  10437. ac_cv_prog_cxx_g=yes
  10438. else
  10439. CXXFLAGS=""
  10440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10441. /* end confdefs.h. */
  10442. int
  10443. main ()
  10444. {
  10445. ;
  10446. return 0;
  10447. }
  10448. _ACEOF
  10449. if ac_fn_cxx_try_compile "$LINENO"; then :
  10450. else
  10451. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10452. CXXFLAGS="-g"
  10453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10454. /* end confdefs.h. */
  10455. int
  10456. main ()
  10457. {
  10458. ;
  10459. return 0;
  10460. }
  10461. _ACEOF
  10462. if ac_fn_cxx_try_compile "$LINENO"; then :
  10463. ac_cv_prog_cxx_g=yes
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10466. fi
  10467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10471. fi
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10473. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10474. if test "$ac_test_CXXFLAGS" = set; then
  10475. CXXFLAGS=$ac_save_CXXFLAGS
  10476. elif test $ac_cv_prog_cxx_g = yes; then
  10477. if test "$GXX" = yes; then
  10478. CXXFLAGS="-g -O2"
  10479. else
  10480. CXXFLAGS="-g"
  10481. fi
  10482. else
  10483. if test "$GXX" = yes; then
  10484. CXXFLAGS="-O2"
  10485. else
  10486. CXXFLAGS=
  10487. fi
  10488. fi
  10489. ac_ext=c
  10490. ac_cpp='$CPP $CPPFLAGS'
  10491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10494. func_stripname_cnf ()
  10495. {
  10496. case ${2} in
  10497. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10498. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10499. esac
  10500. } # func_stripname_cnf
  10501. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10502. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10503. (test "X$CXX" != "Xg++"))) ; then
  10504. ac_ext=cpp
  10505. ac_cpp='$CXXCPP $CPPFLAGS'
  10506. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10507. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10508. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10510. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10511. if test -z "$CXXCPP"; then
  10512. if ${ac_cv_prog_CXXCPP+:} false; then :
  10513. $as_echo_n "(cached) " >&6
  10514. else
  10515. # Double quotes because CXXCPP needs to be expanded
  10516. for CXXCPP in "$CXX -E" "/lib/cpp"
  10517. do
  10518. ac_preproc_ok=false
  10519. for ac_cxx_preproc_warn_flag in '' yes
  10520. do
  10521. # Use a header file that comes with gcc, so configuring glibc
  10522. # with a fresh cross-compiler works.
  10523. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10524. # <limits.h> exists even on freestanding compilers.
  10525. # On the NeXT, cc -E runs the code through the compiler's parser,
  10526. # not just through cpp. "Syntax error" is here to catch this case.
  10527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10528. /* end confdefs.h. */
  10529. #ifdef __STDC__
  10530. # include <limits.h>
  10531. #else
  10532. # include <assert.h>
  10533. #endif
  10534. Syntax error
  10535. _ACEOF
  10536. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10537. else
  10538. # Broken: fails on valid input.
  10539. continue
  10540. fi
  10541. rm -f conftest.err conftest.i conftest.$ac_ext
  10542. # OK, works on sane cases. Now check whether nonexistent headers
  10543. # can be detected and how.
  10544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10545. /* end confdefs.h. */
  10546. #include <ac_nonexistent.h>
  10547. _ACEOF
  10548. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10549. # Broken: success on invalid input.
  10550. continue
  10551. else
  10552. # Passes both tests.
  10553. ac_preproc_ok=:
  10554. break
  10555. fi
  10556. rm -f conftest.err conftest.i conftest.$ac_ext
  10557. done
  10558. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10559. rm -f conftest.i conftest.err conftest.$ac_ext
  10560. if $ac_preproc_ok; then :
  10561. break
  10562. fi
  10563. done
  10564. ac_cv_prog_CXXCPP=$CXXCPP
  10565. fi
  10566. CXXCPP=$ac_cv_prog_CXXCPP
  10567. else
  10568. ac_cv_prog_CXXCPP=$CXXCPP
  10569. fi
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10571. $as_echo "$CXXCPP" >&6; }
  10572. ac_preproc_ok=false
  10573. for ac_cxx_preproc_warn_flag in '' yes
  10574. do
  10575. # Use a header file that comes with gcc, so configuring glibc
  10576. # with a fresh cross-compiler works.
  10577. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10578. # <limits.h> exists even on freestanding compilers.
  10579. # On the NeXT, cc -E runs the code through the compiler's parser,
  10580. # not just through cpp. "Syntax error" is here to catch this case.
  10581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10582. /* end confdefs.h. */
  10583. #ifdef __STDC__
  10584. # include <limits.h>
  10585. #else
  10586. # include <assert.h>
  10587. #endif
  10588. Syntax error
  10589. _ACEOF
  10590. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10591. else
  10592. # Broken: fails on valid input.
  10593. continue
  10594. fi
  10595. rm -f conftest.err conftest.i conftest.$ac_ext
  10596. # OK, works on sane cases. Now check whether nonexistent headers
  10597. # can be detected and how.
  10598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10599. /* end confdefs.h. */
  10600. #include <ac_nonexistent.h>
  10601. _ACEOF
  10602. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10603. # Broken: success on invalid input.
  10604. continue
  10605. else
  10606. # Passes both tests.
  10607. ac_preproc_ok=:
  10608. break
  10609. fi
  10610. rm -f conftest.err conftest.i conftest.$ac_ext
  10611. done
  10612. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10613. rm -f conftest.i conftest.err conftest.$ac_ext
  10614. if $ac_preproc_ok; then :
  10615. else
  10616. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10617. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10618. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10619. See \`config.log' for more details" "$LINENO" 5; }
  10620. fi
  10621. ac_ext=c
  10622. ac_cpp='$CPP $CPPFLAGS'
  10623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10626. else
  10627. _lt_caught_CXX_error=yes
  10628. fi
  10629. ac_ext=cpp
  10630. ac_cpp='$CXXCPP $CPPFLAGS'
  10631. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10632. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10633. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10634. archive_cmds_need_lc_CXX=no
  10635. allow_undefined_flag_CXX=
  10636. always_export_symbols_CXX=no
  10637. archive_expsym_cmds_CXX=
  10638. compiler_needs_object_CXX=no
  10639. export_dynamic_flag_spec_CXX=
  10640. hardcode_direct_CXX=no
  10641. hardcode_direct_absolute_CXX=no
  10642. hardcode_libdir_flag_spec_CXX=
  10643. hardcode_libdir_separator_CXX=
  10644. hardcode_minus_L_CXX=no
  10645. hardcode_shlibpath_var_CXX=unsupported
  10646. hardcode_automatic_CXX=no
  10647. inherit_rpath_CXX=no
  10648. module_cmds_CXX=
  10649. module_expsym_cmds_CXX=
  10650. link_all_deplibs_CXX=unknown
  10651. old_archive_cmds_CXX=$old_archive_cmds
  10652. reload_flag_CXX=$reload_flag
  10653. reload_cmds_CXX=$reload_cmds
  10654. no_undefined_flag_CXX=
  10655. whole_archive_flag_spec_CXX=
  10656. enable_shared_with_static_runtimes_CXX=no
  10657. # Source file extension for C++ test sources.
  10658. ac_ext=cpp
  10659. # Object file extension for compiled C++ test sources.
  10660. objext=o
  10661. objext_CXX=$objext
  10662. # No sense in running all these tests if we already determined that
  10663. # the CXX compiler isn't working. Some variables (like enable_shared)
  10664. # are currently assumed to apply to all compilers on this platform,
  10665. # and will be corrupted by setting them based on a non-working compiler.
  10666. if test "$_lt_caught_CXX_error" != yes; then
  10667. # Code to be used in simple compile tests
  10668. lt_simple_compile_test_code="int some_variable = 0;"
  10669. # Code to be used in simple link tests
  10670. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10671. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10672. # If no C compiler was specified, use CC.
  10673. LTCC=${LTCC-"$CC"}
  10674. # If no C compiler flags were specified, use CFLAGS.
  10675. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10676. # Allow CC to be a program name with arguments.
  10677. compiler=$CC
  10678. # save warnings/boilerplate of simple test code
  10679. ac_outfile=conftest.$ac_objext
  10680. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10681. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10682. _lt_compiler_boilerplate=`cat conftest.err`
  10683. $RM conftest*
  10684. ac_outfile=conftest.$ac_objext
  10685. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10686. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10687. _lt_linker_boilerplate=`cat conftest.err`
  10688. $RM -r conftest*
  10689. # Allow CC to be a program name with arguments.
  10690. lt_save_CC=$CC
  10691. lt_save_CFLAGS=$CFLAGS
  10692. lt_save_LD=$LD
  10693. lt_save_GCC=$GCC
  10694. GCC=$GXX
  10695. lt_save_with_gnu_ld=$with_gnu_ld
  10696. lt_save_path_LD=$lt_cv_path_LD
  10697. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10698. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10699. else
  10700. $as_unset lt_cv_prog_gnu_ld
  10701. fi
  10702. if test -n "${lt_cv_path_LDCXX+set}"; then
  10703. lt_cv_path_LD=$lt_cv_path_LDCXX
  10704. else
  10705. $as_unset lt_cv_path_LD
  10706. fi
  10707. test -z "${LDCXX+set}" || LD=$LDCXX
  10708. CC=${CXX-"c++"}
  10709. CFLAGS=$CXXFLAGS
  10710. compiler=$CC
  10711. compiler_CXX=$CC
  10712. for cc_temp in $compiler""; do
  10713. case $cc_temp in
  10714. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10715. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10716. \-*) ;;
  10717. *) break;;
  10718. esac
  10719. done
  10720. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10721. if test -n "$compiler"; then
  10722. # We don't want -fno-exception when compiling C++ code, so set the
  10723. # no_builtin_flag separately
  10724. if test "$GXX" = yes; then
  10725. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10726. else
  10727. lt_prog_compiler_no_builtin_flag_CXX=
  10728. fi
  10729. if test "$GXX" = yes; then
  10730. # Set up default GNU C++ configuration
  10731. # Check whether --with-gnu-ld was given.
  10732. if test "${with_gnu_ld+set}" = set; then :
  10733. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10734. else
  10735. with_gnu_ld=no
  10736. fi
  10737. ac_prog=ld
  10738. if test "$GCC" = yes; then
  10739. # Check if gcc -print-prog-name=ld gives a path.
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10741. $as_echo_n "checking for ld used by $CC... " >&6; }
  10742. case $host in
  10743. *-*-mingw*)
  10744. # gcc leaves a trailing carriage return which upsets mingw
  10745. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10746. *)
  10747. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10748. esac
  10749. case $ac_prog in
  10750. # Accept absolute paths.
  10751. [\\/]* | ?:[\\/]*)
  10752. re_direlt='/[^/][^/]*/\.\./'
  10753. # Canonicalize the pathname of ld
  10754. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10755. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10756. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10757. done
  10758. test -z "$LD" && LD="$ac_prog"
  10759. ;;
  10760. "")
  10761. # If it fails, then pretend we aren't using GCC.
  10762. ac_prog=ld
  10763. ;;
  10764. *)
  10765. # If it is relative, then search for the first ld in PATH.
  10766. with_gnu_ld=unknown
  10767. ;;
  10768. esac
  10769. elif test "$with_gnu_ld" = yes; then
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10771. $as_echo_n "checking for GNU ld... " >&6; }
  10772. else
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10774. $as_echo_n "checking for non-GNU ld... " >&6; }
  10775. fi
  10776. if ${lt_cv_path_LD+:} false; then :
  10777. $as_echo_n "(cached) " >&6
  10778. else
  10779. if test -z "$LD"; then
  10780. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10781. for ac_dir in $PATH; do
  10782. IFS="$lt_save_ifs"
  10783. test -z "$ac_dir" && ac_dir=.
  10784. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10785. lt_cv_path_LD="$ac_dir/$ac_prog"
  10786. # Check to see if the program is GNU ld. I'd rather use --version,
  10787. # but apparently some variants of GNU ld only accept -v.
  10788. # Break only if it was the GNU/non-GNU ld that we prefer.
  10789. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10790. *GNU* | *'with BFD'*)
  10791. test "$with_gnu_ld" != no && break
  10792. ;;
  10793. *)
  10794. test "$with_gnu_ld" != yes && break
  10795. ;;
  10796. esac
  10797. fi
  10798. done
  10799. IFS="$lt_save_ifs"
  10800. else
  10801. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10802. fi
  10803. fi
  10804. LD="$lt_cv_path_LD"
  10805. if test -n "$LD"; then
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10807. $as_echo "$LD" >&6; }
  10808. else
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10810. $as_echo "no" >&6; }
  10811. fi
  10812. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10814. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10815. if ${lt_cv_prog_gnu_ld+:} false; then :
  10816. $as_echo_n "(cached) " >&6
  10817. else
  10818. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10819. case `$LD -v 2>&1 </dev/null` in
  10820. *GNU* | *'with BFD'*)
  10821. lt_cv_prog_gnu_ld=yes
  10822. ;;
  10823. *)
  10824. lt_cv_prog_gnu_ld=no
  10825. ;;
  10826. esac
  10827. fi
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10829. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10830. with_gnu_ld=$lt_cv_prog_gnu_ld
  10831. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10832. # archiving commands below assume that GNU ld is being used.
  10833. if test "$with_gnu_ld" = yes; then
  10834. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10835. 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'
  10836. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10837. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10838. # If archive_cmds runs LD, not CC, wlarc should be empty
  10839. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10840. # investigate it a little bit more. (MM)
  10841. wlarc='${wl}'
  10842. # ancient GNU ld didn't support --whole-archive et. al.
  10843. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10844. $GREP 'no-whole-archive' > /dev/null; then
  10845. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10846. else
  10847. whole_archive_flag_spec_CXX=
  10848. fi
  10849. else
  10850. with_gnu_ld=no
  10851. wlarc=
  10852. # A generic and very simple default shared library creation
  10853. # command for GNU C++ for the case where it uses the native
  10854. # linker, instead of GNU ld. If possible, this setting should
  10855. # overridden to take advantage of the native linker features on
  10856. # the platform it is being used on.
  10857. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10858. fi
  10859. # Commands to make compiler produce verbose output that lists
  10860. # what "hidden" libraries, object files and flags are used when
  10861. # linking a shared library.
  10862. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10863. else
  10864. GXX=no
  10865. with_gnu_ld=no
  10866. wlarc=
  10867. fi
  10868. # PORTME: fill in a description of your system's C++ link characteristics
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10870. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10871. ld_shlibs_CXX=yes
  10872. case $host_os in
  10873. aix3*)
  10874. # FIXME: insert proper C++ library support
  10875. ld_shlibs_CXX=no
  10876. ;;
  10877. aix[4-9]*)
  10878. if test "$host_cpu" = ia64; then
  10879. # On IA64, the linker does run time linking by default, so we don't
  10880. # have to do anything special.
  10881. aix_use_runtimelinking=no
  10882. exp_sym_flag='-Bexport'
  10883. no_entry_flag=""
  10884. else
  10885. aix_use_runtimelinking=no
  10886. # Test if we are trying to use run time linking or normal
  10887. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10888. # need to do runtime linking.
  10889. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10890. for ld_flag in $LDFLAGS; do
  10891. case $ld_flag in
  10892. *-brtl*)
  10893. aix_use_runtimelinking=yes
  10894. break
  10895. ;;
  10896. esac
  10897. done
  10898. ;;
  10899. esac
  10900. exp_sym_flag='-bexport'
  10901. no_entry_flag='-bnoentry'
  10902. fi
  10903. # When large executables or shared objects are built, AIX ld can
  10904. # have problems creating the table of contents. If linking a library
  10905. # or program results in "error TOC overflow" add -mminimal-toc to
  10906. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10907. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10908. archive_cmds_CXX=''
  10909. hardcode_direct_CXX=yes
  10910. hardcode_direct_absolute_CXX=yes
  10911. hardcode_libdir_separator_CXX=':'
  10912. link_all_deplibs_CXX=yes
  10913. file_list_spec_CXX='${wl}-f,'
  10914. if test "$GXX" = yes; then
  10915. case $host_os in aix4.[012]|aix4.[012].*)
  10916. # We only want to do this on AIX 4.2 and lower, the check
  10917. # below for broken collect2 doesn't work under 4.3+
  10918. collect2name=`${CC} -print-prog-name=collect2`
  10919. if test -f "$collect2name" &&
  10920. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10921. then
  10922. # We have reworked collect2
  10923. :
  10924. else
  10925. # We have old collect2
  10926. hardcode_direct_CXX=unsupported
  10927. # It fails to find uninstalled libraries when the uninstalled
  10928. # path is not listed in the libpath. Setting hardcode_minus_L
  10929. # to unsupported forces relinking
  10930. hardcode_minus_L_CXX=yes
  10931. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10932. hardcode_libdir_separator_CXX=
  10933. fi
  10934. esac
  10935. shared_flag='-shared'
  10936. if test "$aix_use_runtimelinking" = yes; then
  10937. shared_flag="$shared_flag "'${wl}-G'
  10938. fi
  10939. else
  10940. # not using gcc
  10941. if test "$host_cpu" = ia64; then
  10942. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10943. # chokes on -Wl,-G. The following line is correct:
  10944. shared_flag='-G'
  10945. else
  10946. if test "$aix_use_runtimelinking" = yes; then
  10947. shared_flag='${wl}-G'
  10948. else
  10949. shared_flag='${wl}-bM:SRE'
  10950. fi
  10951. fi
  10952. fi
  10953. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10954. # It seems that -bexpall does not export symbols beginning with
  10955. # underscore (_), so it is better to generate a list of symbols to
  10956. # export.
  10957. always_export_symbols_CXX=yes
  10958. if test "$aix_use_runtimelinking" = yes; then
  10959. # Warning - without using the other runtime loading flags (-brtl),
  10960. # -berok will link without error, but may produce a broken library.
  10961. allow_undefined_flag_CXX='-berok'
  10962. # Determine the default libpath from the value encoded in an empty
  10963. # executable.
  10964. if test "${lt_cv_aix_libpath+set}" = set; then
  10965. aix_libpath=$lt_cv_aix_libpath
  10966. else
  10967. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10968. $as_echo_n "(cached) " >&6
  10969. else
  10970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10971. /* end confdefs.h. */
  10972. int
  10973. main ()
  10974. {
  10975. ;
  10976. return 0;
  10977. }
  10978. _ACEOF
  10979. if ac_fn_cxx_try_link "$LINENO"; then :
  10980. lt_aix_libpath_sed='
  10981. /Import File Strings/,/^$/ {
  10982. /^0/ {
  10983. s/^0 *\([^ ]*\) *$/\1/
  10984. p
  10985. }
  10986. }'
  10987. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10988. # Check for a 64-bit object if we didn't find anything.
  10989. if test -z "$lt_cv_aix_libpath__CXX"; then
  10990. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10991. fi
  10992. fi
  10993. rm -f core conftest.err conftest.$ac_objext \
  10994. conftest$ac_exeext conftest.$ac_ext
  10995. if test -z "$lt_cv_aix_libpath__CXX"; then
  10996. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10997. fi
  10998. fi
  10999. aix_libpath=$lt_cv_aix_libpath__CXX
  11000. fi
  11001. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11002. 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"
  11003. else
  11004. if test "$host_cpu" = ia64; then
  11005. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11006. allow_undefined_flag_CXX="-z nodefs"
  11007. 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"
  11008. else
  11009. # Determine the default libpath from the value encoded in an
  11010. # empty executable.
  11011. if test "${lt_cv_aix_libpath+set}" = set; then
  11012. aix_libpath=$lt_cv_aix_libpath
  11013. else
  11014. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11015. $as_echo_n "(cached) " >&6
  11016. else
  11017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11018. /* end confdefs.h. */
  11019. int
  11020. main ()
  11021. {
  11022. ;
  11023. return 0;
  11024. }
  11025. _ACEOF
  11026. if ac_fn_cxx_try_link "$LINENO"; then :
  11027. lt_aix_libpath_sed='
  11028. /Import File Strings/,/^$/ {
  11029. /^0/ {
  11030. s/^0 *\([^ ]*\) *$/\1/
  11031. p
  11032. }
  11033. }'
  11034. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11035. # Check for a 64-bit object if we didn't find anything.
  11036. if test -z "$lt_cv_aix_libpath__CXX"; then
  11037. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11038. fi
  11039. fi
  11040. rm -f core conftest.err conftest.$ac_objext \
  11041. conftest$ac_exeext conftest.$ac_ext
  11042. if test -z "$lt_cv_aix_libpath__CXX"; then
  11043. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11044. fi
  11045. fi
  11046. aix_libpath=$lt_cv_aix_libpath__CXX
  11047. fi
  11048. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11049. # Warning - without using the other run time loading flags,
  11050. # -berok will link without error, but may produce a broken library.
  11051. no_undefined_flag_CXX=' ${wl}-bernotok'
  11052. allow_undefined_flag_CXX=' ${wl}-berok'
  11053. if test "$with_gnu_ld" = yes; then
  11054. # We only use this code for GNU lds that support --whole-archive.
  11055. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11056. else
  11057. # Exported symbols can be pulled into shared objects from archives
  11058. whole_archive_flag_spec_CXX='$convenience'
  11059. fi
  11060. archive_cmds_need_lc_CXX=yes
  11061. # This is similar to how AIX traditionally builds its shared
  11062. # libraries.
  11063. 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'
  11064. fi
  11065. fi
  11066. ;;
  11067. beos*)
  11068. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11069. allow_undefined_flag_CXX=unsupported
  11070. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11071. # support --undefined. This deserves some investigation. FIXME
  11072. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11073. else
  11074. ld_shlibs_CXX=no
  11075. fi
  11076. ;;
  11077. chorus*)
  11078. case $cc_basename in
  11079. *)
  11080. # FIXME: insert proper C++ library support
  11081. ld_shlibs_CXX=no
  11082. ;;
  11083. esac
  11084. ;;
  11085. cygwin* | mingw* | pw32* | cegcc*)
  11086. case $GXX,$cc_basename in
  11087. ,cl* | no,cl*)
  11088. # Native MSVC
  11089. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11090. # no search path for DLLs.
  11091. hardcode_libdir_flag_spec_CXX=' '
  11092. allow_undefined_flag_CXX=unsupported
  11093. always_export_symbols_CXX=yes
  11094. file_list_spec_CXX='@'
  11095. # Tell ltmain to make .lib files, not .a files.
  11096. libext=lib
  11097. # Tell ltmain to make .dll files, not .so files.
  11098. shrext_cmds=".dll"
  11099. # FIXME: Setting linknames here is a bad hack.
  11100. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11101. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11102. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11103. else
  11104. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11105. fi~
  11106. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11107. linknames='
  11108. # The linker will not automatically build a static lib if we build a DLL.
  11109. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11110. enable_shared_with_static_runtimes_CXX=yes
  11111. # Don't use ranlib
  11112. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11113. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11114. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11115. case $lt_outputfile in
  11116. *.exe|*.EXE) ;;
  11117. *)
  11118. lt_outputfile="$lt_outputfile.exe"
  11119. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11120. ;;
  11121. esac~
  11122. func_to_tool_file "$lt_outputfile"~
  11123. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11124. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11125. $RM "$lt_outputfile.manifest";
  11126. fi'
  11127. ;;
  11128. *)
  11129. # g++
  11130. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11131. # as there is no search path for DLLs.
  11132. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11133. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11134. allow_undefined_flag_CXX=unsupported
  11135. always_export_symbols_CXX=no
  11136. enable_shared_with_static_runtimes_CXX=yes
  11137. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11138. 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'
  11139. # If the export-symbols file already is a .def file (1st line
  11140. # is EXPORTS), use it as is; otherwise, prepend...
  11141. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11142. cp $export_symbols $output_objdir/$soname.def;
  11143. else
  11144. echo EXPORTS > $output_objdir/$soname.def;
  11145. cat $export_symbols >> $output_objdir/$soname.def;
  11146. fi~
  11147. $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'
  11148. else
  11149. ld_shlibs_CXX=no
  11150. fi
  11151. ;;
  11152. esac
  11153. ;;
  11154. darwin* | rhapsody*)
  11155. archive_cmds_need_lc_CXX=no
  11156. hardcode_direct_CXX=no
  11157. hardcode_automatic_CXX=yes
  11158. hardcode_shlibpath_var_CXX=unsupported
  11159. if test "$lt_cv_ld_force_load" = "yes"; then
  11160. 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\"`'
  11161. else
  11162. whole_archive_flag_spec_CXX=''
  11163. fi
  11164. link_all_deplibs_CXX=yes
  11165. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11166. case $cc_basename in
  11167. ifort*) _lt_dar_can_shared=yes ;;
  11168. *) _lt_dar_can_shared=$GCC ;;
  11169. esac
  11170. if test "$_lt_dar_can_shared" = "yes"; then
  11171. output_verbose_link_cmd=func_echo_all
  11172. 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}"
  11173. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11174. 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}"
  11175. 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}"
  11176. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11177. 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}"
  11178. 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}"
  11179. fi
  11180. else
  11181. ld_shlibs_CXX=no
  11182. fi
  11183. ;;
  11184. dgux*)
  11185. case $cc_basename in
  11186. ec++*)
  11187. # FIXME: insert proper C++ library support
  11188. ld_shlibs_CXX=no
  11189. ;;
  11190. ghcx*)
  11191. # Green Hills C++ Compiler
  11192. # FIXME: insert proper C++ library support
  11193. ld_shlibs_CXX=no
  11194. ;;
  11195. *)
  11196. # FIXME: insert proper C++ library support
  11197. ld_shlibs_CXX=no
  11198. ;;
  11199. esac
  11200. ;;
  11201. freebsd2.*)
  11202. # C++ shared libraries reported to be fairly broken before
  11203. # switch to ELF
  11204. ld_shlibs_CXX=no
  11205. ;;
  11206. freebsd-elf*)
  11207. archive_cmds_need_lc_CXX=no
  11208. ;;
  11209. freebsd* | dragonfly*)
  11210. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11211. # conventions
  11212. ld_shlibs_CXX=yes
  11213. ;;
  11214. gnu*)
  11215. ;;
  11216. haiku*)
  11217. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11218. link_all_deplibs_CXX=yes
  11219. ;;
  11220. hpux9*)
  11221. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11222. hardcode_libdir_separator_CXX=:
  11223. export_dynamic_flag_spec_CXX='${wl}-E'
  11224. hardcode_direct_CXX=yes
  11225. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11226. # but as the default
  11227. # location of the library.
  11228. case $cc_basename in
  11229. CC*)
  11230. # FIXME: insert proper C++ library support
  11231. ld_shlibs_CXX=no
  11232. ;;
  11233. aCC*)
  11234. 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'
  11235. # Commands to make compiler produce verbose output that lists
  11236. # what "hidden" libraries, object files and flags are used when
  11237. # linking a shared library.
  11238. #
  11239. # There doesn't appear to be a way to prevent this compiler from
  11240. # explicitly linking system object files so we need to strip them
  11241. # from the output so that they don't get included in the library
  11242. # dependencies.
  11243. 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"'
  11244. ;;
  11245. *)
  11246. if test "$GXX" = yes; then
  11247. 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'
  11248. else
  11249. # FIXME: insert proper C++ library support
  11250. ld_shlibs_CXX=no
  11251. fi
  11252. ;;
  11253. esac
  11254. ;;
  11255. hpux10*|hpux11*)
  11256. if test $with_gnu_ld = no; then
  11257. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11258. hardcode_libdir_separator_CXX=:
  11259. case $host_cpu in
  11260. hppa*64*|ia64*)
  11261. ;;
  11262. *)
  11263. export_dynamic_flag_spec_CXX='${wl}-E'
  11264. ;;
  11265. esac
  11266. fi
  11267. case $host_cpu in
  11268. hppa*64*|ia64*)
  11269. hardcode_direct_CXX=no
  11270. hardcode_shlibpath_var_CXX=no
  11271. ;;
  11272. *)
  11273. hardcode_direct_CXX=yes
  11274. hardcode_direct_absolute_CXX=yes
  11275. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11276. # but as the default
  11277. # location of the library.
  11278. ;;
  11279. esac
  11280. case $cc_basename in
  11281. CC*)
  11282. # FIXME: insert proper C++ library support
  11283. ld_shlibs_CXX=no
  11284. ;;
  11285. aCC*)
  11286. case $host_cpu in
  11287. hppa*64*)
  11288. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11289. ;;
  11290. ia64*)
  11291. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11292. ;;
  11293. *)
  11294. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11295. ;;
  11296. esac
  11297. # Commands to make compiler produce verbose output that lists
  11298. # what "hidden" libraries, object files and flags are used when
  11299. # linking a shared library.
  11300. #
  11301. # There doesn't appear to be a way to prevent this compiler from
  11302. # explicitly linking system object files so we need to strip them
  11303. # from the output so that they don't get included in the library
  11304. # dependencies.
  11305. 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"'
  11306. ;;
  11307. *)
  11308. if test "$GXX" = yes; then
  11309. if test $with_gnu_ld = no; then
  11310. case $host_cpu in
  11311. hppa*64*)
  11312. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11313. ;;
  11314. ia64*)
  11315. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11316. ;;
  11317. *)
  11318. 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'
  11319. ;;
  11320. esac
  11321. fi
  11322. else
  11323. # FIXME: insert proper C++ library support
  11324. ld_shlibs_CXX=no
  11325. fi
  11326. ;;
  11327. esac
  11328. ;;
  11329. interix[3-9]*)
  11330. hardcode_direct_CXX=no
  11331. hardcode_shlibpath_var_CXX=no
  11332. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11333. export_dynamic_flag_spec_CXX='${wl}-E'
  11334. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11335. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11336. # default) and relocated if they conflict, which is a slow very memory
  11337. # consuming and fragmenting process. To avoid this, we pick a random,
  11338. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11339. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11340. 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'
  11341. 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'
  11342. ;;
  11343. irix5* | irix6*)
  11344. case $cc_basename in
  11345. CC*)
  11346. # SGI C++
  11347. 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'
  11348. # Archives containing C++ object files must be created using
  11349. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11350. # necessary to make sure instantiated templates are included
  11351. # in the archive.
  11352. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11353. ;;
  11354. *)
  11355. if test "$GXX" = yes; then
  11356. if test "$with_gnu_ld" = no; then
  11357. 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'
  11358. else
  11359. 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'
  11360. fi
  11361. fi
  11362. link_all_deplibs_CXX=yes
  11363. ;;
  11364. esac
  11365. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11366. hardcode_libdir_separator_CXX=:
  11367. inherit_rpath_CXX=yes
  11368. ;;
  11369. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11370. case $cc_basename in
  11371. KCC*)
  11372. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11373. # KCC will only create a shared library if the output file
  11374. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11375. # to its proper name (with version) after linking.
  11376. 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'
  11377. 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'
  11378. # Commands to make compiler produce verbose output that lists
  11379. # what "hidden" libraries, object files and flags are used when
  11380. # linking a shared library.
  11381. #
  11382. # There doesn't appear to be a way to prevent this compiler from
  11383. # explicitly linking system object files so we need to strip them
  11384. # from the output so that they don't get included in the library
  11385. # dependencies.
  11386. 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"'
  11387. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11388. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11389. # Archives containing C++ object files must be created using
  11390. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11391. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11392. ;;
  11393. icpc* | ecpc* )
  11394. # Intel C++
  11395. with_gnu_ld=yes
  11396. # version 8.0 and above of icpc choke on multiply defined symbols
  11397. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11398. # earlier do not add the objects themselves.
  11399. case `$CC -V 2>&1` in
  11400. *"Version 7."*)
  11401. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11402. 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'
  11403. ;;
  11404. *) # Version 8.0 or newer
  11405. tmp_idyn=
  11406. case $host_cpu in
  11407. ia64*) tmp_idyn=' -i_dynamic';;
  11408. esac
  11409. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11410. 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'
  11411. ;;
  11412. esac
  11413. archive_cmds_need_lc_CXX=no
  11414. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11415. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11416. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11417. ;;
  11418. pgCC* | pgcpp*)
  11419. # Portland Group C++ compiler
  11420. case `$CC -V` in
  11421. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11422. prelink_cmds_CXX='tpldir=Template.dir~
  11423. rm -rf $tpldir~
  11424. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11425. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11426. old_archive_cmds_CXX='tpldir=Template.dir~
  11427. rm -rf $tpldir~
  11428. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11429. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11430. $RANLIB $oldlib'
  11431. archive_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 -o $lib'
  11435. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11436. rm -rf $tpldir~
  11437. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11438. $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'
  11439. ;;
  11440. *) # Version 6 and above use weak symbols
  11441. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11442. 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'
  11443. ;;
  11444. esac
  11445. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11446. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11447. 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'
  11448. ;;
  11449. cxx*)
  11450. # Compaq C++
  11451. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11452. 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'
  11453. runpath_var=LD_RUN_PATH
  11454. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11455. hardcode_libdir_separator_CXX=:
  11456. # Commands to make compiler produce verbose output that lists
  11457. # what "hidden" libraries, object files and flags are used when
  11458. # linking a shared library.
  11459. #
  11460. # There doesn't appear to be a way to prevent this compiler from
  11461. # explicitly linking system object files so we need to strip them
  11462. # from the output so that they don't get included in the library
  11463. # dependencies.
  11464. 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'
  11465. ;;
  11466. xl* | mpixl* | bgxl*)
  11467. # IBM XL 8.0 on PPC, with GNU ld
  11468. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11469. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11470. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11471. if test "x$supports_anon_versioning" = xyes; then
  11472. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11473. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11474. echo "local: *; };" >> $output_objdir/$libname.ver~
  11475. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11476. fi
  11477. ;;
  11478. *)
  11479. case `$CC -V 2>&1 | sed 5q` in
  11480. *Sun\ C*)
  11481. # Sun C++ 5.9
  11482. no_undefined_flag_CXX=' -zdefs'
  11483. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11484. 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'
  11485. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11486. 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'
  11487. compiler_needs_object_CXX=yes
  11488. # Not sure whether something based on
  11489. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11490. # would be better.
  11491. output_verbose_link_cmd='func_echo_all'
  11492. # Archives containing C++ object files must be created using
  11493. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11494. # necessary to make sure instantiated templates are included
  11495. # in the archive.
  11496. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11497. ;;
  11498. esac
  11499. ;;
  11500. esac
  11501. ;;
  11502. lynxos*)
  11503. # FIXME: insert proper C++ library support
  11504. ld_shlibs_CXX=no
  11505. ;;
  11506. m88k*)
  11507. # FIXME: insert proper C++ library support
  11508. ld_shlibs_CXX=no
  11509. ;;
  11510. mvs*)
  11511. case $cc_basename in
  11512. cxx*)
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. ;;
  11516. *)
  11517. # FIXME: insert proper C++ library support
  11518. ld_shlibs_CXX=no
  11519. ;;
  11520. esac
  11521. ;;
  11522. netbsd*)
  11523. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11524. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11525. wlarc=
  11526. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11527. hardcode_direct_CXX=yes
  11528. hardcode_shlibpath_var_CXX=no
  11529. fi
  11530. # Workaround some broken pre-1.5 toolchains
  11531. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11532. ;;
  11533. *nto* | *qnx*)
  11534. ld_shlibs_CXX=yes
  11535. ;;
  11536. openbsd2*)
  11537. # C++ shared libraries are fairly broken
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. openbsd*)
  11541. if test -f /usr/libexec/ld.so; then
  11542. hardcode_direct_CXX=yes
  11543. hardcode_shlibpath_var_CXX=no
  11544. hardcode_direct_absolute_CXX=yes
  11545. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11546. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11547. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11548. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11549. export_dynamic_flag_spec_CXX='${wl}-E'
  11550. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11551. fi
  11552. output_verbose_link_cmd=func_echo_all
  11553. else
  11554. ld_shlibs_CXX=no
  11555. fi
  11556. ;;
  11557. osf3* | osf4* | osf5*)
  11558. case $cc_basename in
  11559. KCC*)
  11560. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11561. # KCC will only create a shared library if the output file
  11562. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11563. # to its proper name (with version) after linking.
  11564. 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'
  11565. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11566. hardcode_libdir_separator_CXX=:
  11567. # Archives containing C++ object files must be created using
  11568. # the KAI C++ compiler.
  11569. case $host in
  11570. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11571. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11572. esac
  11573. ;;
  11574. RCC*)
  11575. # Rational C++ 2.4.1
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. cxx*)
  11580. case $host in
  11581. osf3*)
  11582. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11583. 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'
  11584. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11585. ;;
  11586. *)
  11587. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11588. 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'
  11589. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11590. echo "-hidden">> $lib.exp~
  11591. $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~
  11592. $RM $lib.exp'
  11593. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11594. ;;
  11595. esac
  11596. hardcode_libdir_separator_CXX=:
  11597. # Commands to make compiler produce verbose output that lists
  11598. # what "hidden" libraries, object files and flags are used when
  11599. # linking a shared library.
  11600. #
  11601. # There doesn't appear to be a way to prevent this compiler from
  11602. # explicitly linking system object files so we need to strip them
  11603. # from the output so that they don't get included in the library
  11604. # dependencies.
  11605. 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"'
  11606. ;;
  11607. *)
  11608. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11609. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11610. case $host in
  11611. osf3*)
  11612. 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'
  11613. ;;
  11614. *)
  11615. 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'
  11616. ;;
  11617. esac
  11618. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11619. hardcode_libdir_separator_CXX=:
  11620. # Commands to make compiler produce verbose output that lists
  11621. # what "hidden" libraries, object files and flags are used when
  11622. # linking a shared library.
  11623. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11624. else
  11625. # FIXME: insert proper C++ library support
  11626. ld_shlibs_CXX=no
  11627. fi
  11628. ;;
  11629. esac
  11630. ;;
  11631. psos*)
  11632. # FIXME: insert proper C++ library support
  11633. ld_shlibs_CXX=no
  11634. ;;
  11635. sunos4*)
  11636. case $cc_basename in
  11637. CC*)
  11638. # Sun C++ 4.x
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. lcc*)
  11643. # Lucid
  11644. # FIXME: insert proper C++ library support
  11645. ld_shlibs_CXX=no
  11646. ;;
  11647. *)
  11648. # FIXME: insert proper C++ library support
  11649. ld_shlibs_CXX=no
  11650. ;;
  11651. esac
  11652. ;;
  11653. solaris*)
  11654. case $cc_basename in
  11655. CC* | sunCC*)
  11656. # Sun C++ 4.2, 5.x and Centerline C++
  11657. archive_cmds_need_lc_CXX=yes
  11658. no_undefined_flag_CXX=' -zdefs'
  11659. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11660. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11661. $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'
  11662. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11663. hardcode_shlibpath_var_CXX=no
  11664. case $host_os in
  11665. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11666. *)
  11667. # The compiler driver will combine and reorder linker options,
  11668. # but understands `-z linker_flag'.
  11669. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11670. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11671. ;;
  11672. esac
  11673. link_all_deplibs_CXX=yes
  11674. output_verbose_link_cmd='func_echo_all'
  11675. # Archives containing C++ object files must be created using
  11676. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11677. # necessary to make sure instantiated templates are included
  11678. # in the archive.
  11679. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11680. ;;
  11681. gcx*)
  11682. # Green Hills C++ Compiler
  11683. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11684. # The C++ compiler must be used to create the archive.
  11685. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11686. ;;
  11687. *)
  11688. # GNU C++ compiler with Solaris linker
  11689. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11690. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11691. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11692. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11693. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11694. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11695. # Commands to make compiler produce verbose output that lists
  11696. # what "hidden" libraries, object files and flags are used when
  11697. # linking a shared library.
  11698. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11699. else
  11700. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11701. # platform.
  11702. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11703. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11704. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11705. # Commands to make compiler produce verbose output that lists
  11706. # what "hidden" libraries, object files and flags are used when
  11707. # linking a shared library.
  11708. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11709. fi
  11710. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11711. case $host_os in
  11712. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11713. *)
  11714. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11715. ;;
  11716. esac
  11717. fi
  11718. ;;
  11719. esac
  11720. ;;
  11721. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11722. no_undefined_flag_CXX='${wl}-z,text'
  11723. archive_cmds_need_lc_CXX=no
  11724. hardcode_shlibpath_var_CXX=no
  11725. runpath_var='LD_RUN_PATH'
  11726. case $cc_basename in
  11727. CC*)
  11728. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11729. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11730. ;;
  11731. *)
  11732. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11733. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11734. ;;
  11735. esac
  11736. ;;
  11737. sysv5* | sco3.2v5* | sco5v6*)
  11738. # Note: We can NOT use -z defs as we might desire, because we do not
  11739. # link with -lc, and that would cause any symbols used from libc to
  11740. # always be unresolved, which means just about no library would
  11741. # ever link correctly. If we're not using GNU ld we use -z text
  11742. # though, which does catch some bad symbols but isn't as heavy-handed
  11743. # as -z defs.
  11744. no_undefined_flag_CXX='${wl}-z,text'
  11745. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11746. archive_cmds_need_lc_CXX=no
  11747. hardcode_shlibpath_var_CXX=no
  11748. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11749. hardcode_libdir_separator_CXX=':'
  11750. link_all_deplibs_CXX=yes
  11751. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11752. runpath_var='LD_RUN_PATH'
  11753. case $cc_basename in
  11754. CC*)
  11755. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11756. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11757. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11758. '"$old_archive_cmds_CXX"
  11759. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11760. '"$reload_cmds_CXX"
  11761. ;;
  11762. *)
  11763. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11764. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11765. ;;
  11766. esac
  11767. ;;
  11768. tandem*)
  11769. case $cc_basename in
  11770. NCC*)
  11771. # NonStop-UX NCC 3.20
  11772. # FIXME: insert proper C++ library support
  11773. ld_shlibs_CXX=no
  11774. ;;
  11775. *)
  11776. # FIXME: insert proper C++ library support
  11777. ld_shlibs_CXX=no
  11778. ;;
  11779. esac
  11780. ;;
  11781. vxworks*)
  11782. # FIXME: insert proper C++ library support
  11783. ld_shlibs_CXX=no
  11784. ;;
  11785. *)
  11786. # FIXME: insert proper C++ library support
  11787. ld_shlibs_CXX=no
  11788. ;;
  11789. esac
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11791. $as_echo "$ld_shlibs_CXX" >&6; }
  11792. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11793. GCC_CXX="$GXX"
  11794. LD_CXX="$LD"
  11795. ## CAVEAT EMPTOR:
  11796. ## There is no encapsulation within the following macros, do not change
  11797. ## the running order or otherwise move them around unless you know exactly
  11798. ## what you are doing...
  11799. # Dependencies to place before and after the object being linked:
  11800. predep_objects_CXX=
  11801. postdep_objects_CXX=
  11802. predeps_CXX=
  11803. postdeps_CXX=
  11804. compiler_lib_search_path_CXX=
  11805. cat > conftest.$ac_ext <<_LT_EOF
  11806. class Foo
  11807. {
  11808. public:
  11809. Foo (void) { a = 0; }
  11810. private:
  11811. int a;
  11812. };
  11813. _LT_EOF
  11814. _lt_libdeps_save_CFLAGS=$CFLAGS
  11815. case "$CC $CFLAGS " in #(
  11816. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11817. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11818. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11819. esac
  11820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11821. (eval $ac_compile) 2>&5
  11822. ac_status=$?
  11823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11824. test $ac_status = 0; }; then
  11825. # Parse the compiler output and extract the necessary
  11826. # objects, libraries and library flags.
  11827. # Sentinel used to keep track of whether or not we are before
  11828. # the conftest object file.
  11829. pre_test_object_deps_done=no
  11830. for p in `eval "$output_verbose_link_cmd"`; do
  11831. case ${prev}${p} in
  11832. -L* | -R* | -l*)
  11833. # Some compilers place space between "-{L,R}" and the path.
  11834. # Remove the space.
  11835. if test $p = "-L" ||
  11836. test $p = "-R"; then
  11837. prev=$p
  11838. continue
  11839. fi
  11840. # Expand the sysroot to ease extracting the directories later.
  11841. if test -z "$prev"; then
  11842. case $p in
  11843. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11844. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11845. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11846. esac
  11847. fi
  11848. case $p in
  11849. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11850. esac
  11851. if test "$pre_test_object_deps_done" = no; then
  11852. case ${prev} in
  11853. -L | -R)
  11854. # Internal compiler library paths should come after those
  11855. # provided the user. The postdeps already come after the
  11856. # user supplied libs so there is no need to process them.
  11857. if test -z "$compiler_lib_search_path_CXX"; then
  11858. compiler_lib_search_path_CXX="${prev}${p}"
  11859. else
  11860. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11861. fi
  11862. ;;
  11863. # The "-l" case would never come before the object being
  11864. # linked, so don't bother handling this case.
  11865. esac
  11866. else
  11867. if test -z "$postdeps_CXX"; then
  11868. postdeps_CXX="${prev}${p}"
  11869. else
  11870. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11871. fi
  11872. fi
  11873. prev=
  11874. ;;
  11875. *.lto.$objext) ;; # Ignore GCC LTO objects
  11876. *.$objext)
  11877. # This assumes that the test object file only shows up
  11878. # once in the compiler output.
  11879. if test "$p" = "conftest.$objext"; then
  11880. pre_test_object_deps_done=yes
  11881. continue
  11882. fi
  11883. if test "$pre_test_object_deps_done" = no; then
  11884. if test -z "$predep_objects_CXX"; then
  11885. predep_objects_CXX="$p"
  11886. else
  11887. predep_objects_CXX="$predep_objects_CXX $p"
  11888. fi
  11889. else
  11890. if test -z "$postdep_objects_CXX"; then
  11891. postdep_objects_CXX="$p"
  11892. else
  11893. postdep_objects_CXX="$postdep_objects_CXX $p"
  11894. fi
  11895. fi
  11896. ;;
  11897. *) ;; # Ignore the rest.
  11898. esac
  11899. done
  11900. # Clean up.
  11901. rm -f a.out a.exe
  11902. else
  11903. echo "libtool.m4: error: problem compiling CXX test program"
  11904. fi
  11905. $RM -f confest.$objext
  11906. CFLAGS=$_lt_libdeps_save_CFLAGS
  11907. # PORTME: override above test on systems where it is broken
  11908. case $host_os in
  11909. interix[3-9]*)
  11910. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11911. # hack all around it, let's just trust "g++" to DTRT.
  11912. predep_objects_CXX=
  11913. postdep_objects_CXX=
  11914. postdeps_CXX=
  11915. ;;
  11916. linux*)
  11917. case `$CC -V 2>&1 | sed 5q` in
  11918. *Sun\ C*)
  11919. # Sun C++ 5.9
  11920. # The more standards-conforming stlport4 library is
  11921. # incompatible with the Cstd library. Avoid specifying
  11922. # it if it's in CXXFLAGS. Ignore libCrun as
  11923. # -library=stlport4 depends on it.
  11924. case " $CXX $CXXFLAGS " in
  11925. *" -library=stlport4 "*)
  11926. solaris_use_stlport4=yes
  11927. ;;
  11928. esac
  11929. if test "$solaris_use_stlport4" != yes; then
  11930. postdeps_CXX='-library=Cstd -library=Crun'
  11931. fi
  11932. ;;
  11933. esac
  11934. ;;
  11935. solaris*)
  11936. case $cc_basename in
  11937. CC* | sunCC*)
  11938. # The more standards-conforming stlport4 library is
  11939. # incompatible with the Cstd library. Avoid specifying
  11940. # it if it's in CXXFLAGS. Ignore libCrun as
  11941. # -library=stlport4 depends on it.
  11942. case " $CXX $CXXFLAGS " in
  11943. *" -library=stlport4 "*)
  11944. solaris_use_stlport4=yes
  11945. ;;
  11946. esac
  11947. # Adding this requires a known-good setup of shared libraries for
  11948. # Sun compiler versions before 5.6, else PIC objects from an old
  11949. # archive will be linked into the output, leading to subtle bugs.
  11950. if test "$solaris_use_stlport4" != yes; then
  11951. postdeps_CXX='-library=Cstd -library=Crun'
  11952. fi
  11953. ;;
  11954. esac
  11955. ;;
  11956. esac
  11957. case " $postdeps_CXX " in
  11958. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11959. esac
  11960. compiler_lib_search_dirs_CXX=
  11961. if test -n "${compiler_lib_search_path_CXX}"; then
  11962. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11963. fi
  11964. lt_prog_compiler_wl_CXX=
  11965. lt_prog_compiler_pic_CXX=
  11966. lt_prog_compiler_static_CXX=
  11967. # C++ specific cases for pic, static, wl, etc.
  11968. if test "$GXX" = yes; then
  11969. lt_prog_compiler_wl_CXX='-Wl,'
  11970. lt_prog_compiler_static_CXX='-static'
  11971. case $host_os in
  11972. aix*)
  11973. # All AIX code is PIC.
  11974. if test "$host_cpu" = ia64; then
  11975. # AIX 5 now supports IA64 processor
  11976. lt_prog_compiler_static_CXX='-Bstatic'
  11977. fi
  11978. ;;
  11979. amigaos*)
  11980. case $host_cpu in
  11981. powerpc)
  11982. # see comment about AmigaOS4 .so support
  11983. lt_prog_compiler_pic_CXX='-fPIC'
  11984. ;;
  11985. m68k)
  11986. # FIXME: we need at least 68020 code to build shared libraries, but
  11987. # adding the `-m68020' flag to GCC prevents building anything better,
  11988. # like `-m68040'.
  11989. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11990. ;;
  11991. esac
  11992. ;;
  11993. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11994. # PIC is the default for these OSes.
  11995. ;;
  11996. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11997. # This hack is so that the source file can tell whether it is being
  11998. # built for inclusion in a dll (and should export symbols for example).
  11999. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12000. # (--disable-auto-import) libraries
  12001. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12002. ;;
  12003. darwin* | rhapsody*)
  12004. # PIC is the default on this platform
  12005. # Common symbols not allowed in MH_DYLIB files
  12006. lt_prog_compiler_pic_CXX='-fno-common'
  12007. ;;
  12008. *djgpp*)
  12009. # DJGPP does not support shared libraries at all
  12010. lt_prog_compiler_pic_CXX=
  12011. ;;
  12012. haiku*)
  12013. # PIC is the default for Haiku.
  12014. # The "-static" flag exists, but is broken.
  12015. lt_prog_compiler_static_CXX=
  12016. ;;
  12017. interix[3-9]*)
  12018. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12019. # Instead, we relocate shared libraries at runtime.
  12020. ;;
  12021. sysv4*MP*)
  12022. if test -d /usr/nec; then
  12023. lt_prog_compiler_pic_CXX=-Kconform_pic
  12024. fi
  12025. ;;
  12026. hpux*)
  12027. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12028. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12029. # sets the default TLS model and affects inlining.
  12030. case $host_cpu in
  12031. hppa*64*)
  12032. ;;
  12033. *)
  12034. lt_prog_compiler_pic_CXX='-fPIC'
  12035. ;;
  12036. esac
  12037. ;;
  12038. *qnx* | *nto*)
  12039. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12040. # it will coredump.
  12041. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12042. ;;
  12043. *)
  12044. lt_prog_compiler_pic_CXX='-fPIC'
  12045. ;;
  12046. esac
  12047. else
  12048. case $host_os in
  12049. aix[4-9]*)
  12050. # All AIX code is PIC.
  12051. if test "$host_cpu" = ia64; then
  12052. # AIX 5 now supports IA64 processor
  12053. lt_prog_compiler_static_CXX='-Bstatic'
  12054. else
  12055. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12056. fi
  12057. ;;
  12058. chorus*)
  12059. case $cc_basename in
  12060. cxch68*)
  12061. # Green Hills C++ Compiler
  12062. # _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"
  12063. ;;
  12064. esac
  12065. ;;
  12066. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12067. # This hack is so that the source file can tell whether it is being
  12068. # built for inclusion in a dll (and should export symbols for example).
  12069. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12070. ;;
  12071. dgux*)
  12072. case $cc_basename in
  12073. ec++*)
  12074. lt_prog_compiler_pic_CXX='-KPIC'
  12075. ;;
  12076. ghcx*)
  12077. # Green Hills C++ Compiler
  12078. lt_prog_compiler_pic_CXX='-pic'
  12079. ;;
  12080. *)
  12081. ;;
  12082. esac
  12083. ;;
  12084. freebsd* | dragonfly*)
  12085. # FreeBSD uses GNU C++
  12086. ;;
  12087. hpux9* | hpux10* | hpux11*)
  12088. case $cc_basename in
  12089. CC*)
  12090. lt_prog_compiler_wl_CXX='-Wl,'
  12091. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12092. if test "$host_cpu" != ia64; then
  12093. lt_prog_compiler_pic_CXX='+Z'
  12094. fi
  12095. ;;
  12096. aCC*)
  12097. lt_prog_compiler_wl_CXX='-Wl,'
  12098. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12099. case $host_cpu in
  12100. hppa*64*|ia64*)
  12101. # +Z the default
  12102. ;;
  12103. *)
  12104. lt_prog_compiler_pic_CXX='+Z'
  12105. ;;
  12106. esac
  12107. ;;
  12108. *)
  12109. ;;
  12110. esac
  12111. ;;
  12112. interix*)
  12113. # This is c89, which is MS Visual C++ (no shared libs)
  12114. # Anyone wants to do a port?
  12115. ;;
  12116. irix5* | irix6* | nonstopux*)
  12117. case $cc_basename in
  12118. CC*)
  12119. lt_prog_compiler_wl_CXX='-Wl,'
  12120. lt_prog_compiler_static_CXX='-non_shared'
  12121. # CC pic flag -KPIC is the default.
  12122. ;;
  12123. *)
  12124. ;;
  12125. esac
  12126. ;;
  12127. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12128. case $cc_basename in
  12129. KCC*)
  12130. # KAI C++ Compiler
  12131. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12132. lt_prog_compiler_pic_CXX='-fPIC'
  12133. ;;
  12134. ecpc* )
  12135. # old Intel C++ for x86_64 which still supported -KPIC.
  12136. lt_prog_compiler_wl_CXX='-Wl,'
  12137. lt_prog_compiler_pic_CXX='-KPIC'
  12138. lt_prog_compiler_static_CXX='-static'
  12139. ;;
  12140. icpc* )
  12141. # Intel C++, used to be incompatible with GCC.
  12142. # ICC 10 doesn't accept -KPIC any more.
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_pic_CXX='-fPIC'
  12145. lt_prog_compiler_static_CXX='-static'
  12146. ;;
  12147. pgCC* | pgcpp*)
  12148. # Portland Group C++ compiler
  12149. lt_prog_compiler_wl_CXX='-Wl,'
  12150. lt_prog_compiler_pic_CXX='-fpic'
  12151. lt_prog_compiler_static_CXX='-Bstatic'
  12152. ;;
  12153. cxx*)
  12154. # Compaq C++
  12155. # Make sure the PIC flag is empty. It appears that all Alpha
  12156. # Linux and Compaq Tru64 Unix objects are PIC.
  12157. lt_prog_compiler_pic_CXX=
  12158. lt_prog_compiler_static_CXX='-non_shared'
  12159. ;;
  12160. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12161. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12162. lt_prog_compiler_wl_CXX='-Wl,'
  12163. lt_prog_compiler_pic_CXX='-qpic'
  12164. lt_prog_compiler_static_CXX='-qstaticlink'
  12165. ;;
  12166. *)
  12167. case `$CC -V 2>&1 | sed 5q` in
  12168. *Sun\ C*)
  12169. # Sun C++ 5.9
  12170. lt_prog_compiler_pic_CXX='-KPIC'
  12171. lt_prog_compiler_static_CXX='-Bstatic'
  12172. lt_prog_compiler_wl_CXX='-Qoption ld '
  12173. ;;
  12174. esac
  12175. ;;
  12176. esac
  12177. ;;
  12178. lynxos*)
  12179. ;;
  12180. m88k*)
  12181. ;;
  12182. mvs*)
  12183. case $cc_basename in
  12184. cxx*)
  12185. lt_prog_compiler_pic_CXX='-W c,exportall'
  12186. ;;
  12187. *)
  12188. ;;
  12189. esac
  12190. ;;
  12191. netbsd*)
  12192. ;;
  12193. *qnx* | *nto*)
  12194. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12195. # it will coredump.
  12196. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12197. ;;
  12198. osf3* | osf4* | osf5*)
  12199. case $cc_basename in
  12200. KCC*)
  12201. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12202. ;;
  12203. RCC*)
  12204. # Rational C++ 2.4.1
  12205. lt_prog_compiler_pic_CXX='-pic'
  12206. ;;
  12207. cxx*)
  12208. # Digital/Compaq C++
  12209. lt_prog_compiler_wl_CXX='-Wl,'
  12210. # Make sure the PIC flag is empty. It appears that all Alpha
  12211. # Linux and Compaq Tru64 Unix objects are PIC.
  12212. lt_prog_compiler_pic_CXX=
  12213. lt_prog_compiler_static_CXX='-non_shared'
  12214. ;;
  12215. *)
  12216. ;;
  12217. esac
  12218. ;;
  12219. psos*)
  12220. ;;
  12221. solaris*)
  12222. case $cc_basename in
  12223. CC* | sunCC*)
  12224. # Sun C++ 4.2, 5.x and Centerline C++
  12225. lt_prog_compiler_pic_CXX='-KPIC'
  12226. lt_prog_compiler_static_CXX='-Bstatic'
  12227. lt_prog_compiler_wl_CXX='-Qoption ld '
  12228. ;;
  12229. gcx*)
  12230. # Green Hills C++ Compiler
  12231. lt_prog_compiler_pic_CXX='-PIC'
  12232. ;;
  12233. *)
  12234. ;;
  12235. esac
  12236. ;;
  12237. sunos4*)
  12238. case $cc_basename in
  12239. CC*)
  12240. # Sun C++ 4.x
  12241. lt_prog_compiler_pic_CXX='-pic'
  12242. lt_prog_compiler_static_CXX='-Bstatic'
  12243. ;;
  12244. lcc*)
  12245. # Lucid
  12246. lt_prog_compiler_pic_CXX='-pic'
  12247. ;;
  12248. *)
  12249. ;;
  12250. esac
  12251. ;;
  12252. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12253. case $cc_basename in
  12254. CC*)
  12255. lt_prog_compiler_wl_CXX='-Wl,'
  12256. lt_prog_compiler_pic_CXX='-KPIC'
  12257. lt_prog_compiler_static_CXX='-Bstatic'
  12258. ;;
  12259. esac
  12260. ;;
  12261. tandem*)
  12262. case $cc_basename in
  12263. NCC*)
  12264. # NonStop-UX NCC 3.20
  12265. lt_prog_compiler_pic_CXX='-KPIC'
  12266. ;;
  12267. *)
  12268. ;;
  12269. esac
  12270. ;;
  12271. vxworks*)
  12272. ;;
  12273. *)
  12274. lt_prog_compiler_can_build_shared_CXX=no
  12275. ;;
  12276. esac
  12277. fi
  12278. case $host_os in
  12279. # For platforms which do not support PIC, -DPIC is meaningless:
  12280. *djgpp*)
  12281. lt_prog_compiler_pic_CXX=
  12282. ;;
  12283. *)
  12284. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12285. ;;
  12286. esac
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12288. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12289. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12290. $as_echo_n "(cached) " >&6
  12291. else
  12292. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12293. fi
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12295. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12296. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12297. #
  12298. # Check to make sure the PIC flag actually works.
  12299. #
  12300. if test -n "$lt_prog_compiler_pic_CXX"; then
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12302. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12303. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12304. $as_echo_n "(cached) " >&6
  12305. else
  12306. lt_cv_prog_compiler_pic_works_CXX=no
  12307. ac_outfile=conftest.$ac_objext
  12308. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12309. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12310. # Insert the option either (1) after the last *FLAGS variable, or
  12311. # (2) before a word containing "conftest.", or (3) at the end.
  12312. # Note that $ac_compile itself does not contain backslashes and begins
  12313. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12314. # The option is referenced via a variable to avoid confusing sed.
  12315. lt_compile=`echo "$ac_compile" | $SED \
  12316. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12317. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12318. -e 's:$: $lt_compiler_flag:'`
  12319. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12320. (eval "$lt_compile" 2>conftest.err)
  12321. ac_status=$?
  12322. cat conftest.err >&5
  12323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12324. if (exit $ac_status) && test -s "$ac_outfile"; then
  12325. # The compiler can only warn and ignore the option if not recognized
  12326. # So say no if there are warnings other than the usual output.
  12327. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12328. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12329. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12330. lt_cv_prog_compiler_pic_works_CXX=yes
  12331. fi
  12332. fi
  12333. $RM conftest*
  12334. fi
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12336. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12337. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12338. case $lt_prog_compiler_pic_CXX in
  12339. "" | " "*) ;;
  12340. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12341. esac
  12342. else
  12343. lt_prog_compiler_pic_CXX=
  12344. lt_prog_compiler_can_build_shared_CXX=no
  12345. fi
  12346. fi
  12347. #
  12348. # Check to make sure the static flag actually works.
  12349. #
  12350. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12352. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12353. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12354. $as_echo_n "(cached) " >&6
  12355. else
  12356. lt_cv_prog_compiler_static_works_CXX=no
  12357. save_LDFLAGS="$LDFLAGS"
  12358. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12359. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12360. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12361. # The linker can only warn and ignore the option if not recognized
  12362. # So say no if there are warnings
  12363. if test -s conftest.err; then
  12364. # Append any errors to the config.log.
  12365. cat conftest.err 1>&5
  12366. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12367. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12368. if diff conftest.exp conftest.er2 >/dev/null; then
  12369. lt_cv_prog_compiler_static_works_CXX=yes
  12370. fi
  12371. else
  12372. lt_cv_prog_compiler_static_works_CXX=yes
  12373. fi
  12374. fi
  12375. $RM -r conftest*
  12376. LDFLAGS="$save_LDFLAGS"
  12377. fi
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12379. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12380. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12381. :
  12382. else
  12383. lt_prog_compiler_static_CXX=
  12384. fi
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12386. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12387. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. lt_cv_prog_compiler_c_o_CXX=no
  12391. $RM -r conftest 2>/dev/null
  12392. mkdir conftest
  12393. cd conftest
  12394. mkdir out
  12395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12396. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12397. # Insert the option either (1) after the last *FLAGS variable, or
  12398. # (2) before a word containing "conftest.", or (3) at the end.
  12399. # Note that $ac_compile itself does not contain backslashes and begins
  12400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12401. lt_compile=`echo "$ac_compile" | $SED \
  12402. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12403. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12404. -e 's:$: $lt_compiler_flag:'`
  12405. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12406. (eval "$lt_compile" 2>out/conftest.err)
  12407. ac_status=$?
  12408. cat out/conftest.err >&5
  12409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12410. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12411. then
  12412. # The compiler can only warn and ignore the option if not recognized
  12413. # So say no if there are warnings
  12414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12415. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12416. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12417. lt_cv_prog_compiler_c_o_CXX=yes
  12418. fi
  12419. fi
  12420. chmod u+w . 2>&5
  12421. $RM conftest*
  12422. # SGI C++ compiler will create directory out/ii_files/ for
  12423. # template instantiation
  12424. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12425. $RM out/* && rmdir out
  12426. cd ..
  12427. $RM -r conftest
  12428. $RM conftest*
  12429. fi
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12431. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12433. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12434. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12435. $as_echo_n "(cached) " >&6
  12436. else
  12437. lt_cv_prog_compiler_c_o_CXX=no
  12438. $RM -r conftest 2>/dev/null
  12439. mkdir conftest
  12440. cd conftest
  12441. mkdir out
  12442. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12443. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12444. # Insert the option either (1) after the last *FLAGS variable, or
  12445. # (2) before a word containing "conftest.", or (3) at the end.
  12446. # Note that $ac_compile itself does not contain backslashes and begins
  12447. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12448. lt_compile=`echo "$ac_compile" | $SED \
  12449. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12450. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12451. -e 's:$: $lt_compiler_flag:'`
  12452. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12453. (eval "$lt_compile" 2>out/conftest.err)
  12454. ac_status=$?
  12455. cat out/conftest.err >&5
  12456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12457. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12458. then
  12459. # The compiler can only warn and ignore the option if not recognized
  12460. # So say no if there are warnings
  12461. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12462. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12463. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12464. lt_cv_prog_compiler_c_o_CXX=yes
  12465. fi
  12466. fi
  12467. chmod u+w . 2>&5
  12468. $RM conftest*
  12469. # SGI C++ compiler will create directory out/ii_files/ for
  12470. # template instantiation
  12471. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12472. $RM out/* && rmdir out
  12473. cd ..
  12474. $RM -r conftest
  12475. $RM conftest*
  12476. fi
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12478. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12479. hard_links="nottested"
  12480. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12481. # do not overwrite the value of need_locks provided by the user
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12483. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12484. hard_links=yes
  12485. $RM conftest*
  12486. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12487. touch conftest.a
  12488. ln conftest.a conftest.b 2>&5 || hard_links=no
  12489. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12491. $as_echo "$hard_links" >&6; }
  12492. if test "$hard_links" = no; then
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12494. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12495. need_locks=warn
  12496. fi
  12497. else
  12498. need_locks=no
  12499. fi
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12501. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12502. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12503. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12504. case $host_os in
  12505. aix[4-9]*)
  12506. # If we're using GNU nm, then we don't want the "-C" option.
  12507. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12508. # Also, AIX nm treats weak defined symbols like other global defined
  12509. # symbols, whereas GNU nm marks them as "W".
  12510. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12511. 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'
  12512. else
  12513. 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'
  12514. fi
  12515. ;;
  12516. pw32*)
  12517. export_symbols_cmds_CXX="$ltdll_cmds"
  12518. ;;
  12519. cygwin* | mingw* | cegcc*)
  12520. case $cc_basename in
  12521. cl*)
  12522. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12523. ;;
  12524. *)
  12525. 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'
  12526. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12527. ;;
  12528. esac
  12529. ;;
  12530. *)
  12531. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12532. ;;
  12533. esac
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12535. $as_echo "$ld_shlibs_CXX" >&6; }
  12536. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12537. with_gnu_ld_CXX=$with_gnu_ld
  12538. #
  12539. # Do we need to explicitly link libc?
  12540. #
  12541. case "x$archive_cmds_need_lc_CXX" in
  12542. x|xyes)
  12543. # Assume -lc should be added
  12544. archive_cmds_need_lc_CXX=yes
  12545. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12546. case $archive_cmds_CXX in
  12547. *'~'*)
  12548. # FIXME: we may have to deal with multi-command sequences.
  12549. ;;
  12550. '$CC '*)
  12551. # Test whether the compiler implicitly links with -lc since on some
  12552. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12553. # to ld, don't add -lc before -lgcc.
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12555. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12556. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12557. $as_echo_n "(cached) " >&6
  12558. else
  12559. $RM conftest*
  12560. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12562. (eval $ac_compile) 2>&5
  12563. ac_status=$?
  12564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12565. test $ac_status = 0; } 2>conftest.err; then
  12566. soname=conftest
  12567. lib=conftest
  12568. libobjs=conftest.$ac_objext
  12569. deplibs=
  12570. wl=$lt_prog_compiler_wl_CXX
  12571. pic_flag=$lt_prog_compiler_pic_CXX
  12572. compiler_flags=-v
  12573. linker_flags=-v
  12574. verstring=
  12575. output_objdir=.
  12576. libname=conftest
  12577. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12578. allow_undefined_flag_CXX=
  12579. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12580. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12581. ac_status=$?
  12582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12583. test $ac_status = 0; }
  12584. then
  12585. lt_cv_archive_cmds_need_lc_CXX=no
  12586. else
  12587. lt_cv_archive_cmds_need_lc_CXX=yes
  12588. fi
  12589. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12590. else
  12591. cat conftest.err 1>&5
  12592. fi
  12593. $RM conftest*
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12596. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12597. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12598. ;;
  12599. esac
  12600. fi
  12601. ;;
  12602. esac
  12603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12604. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12605. library_names_spec=
  12606. libname_spec='lib$name'
  12607. soname_spec=
  12608. shrext_cmds=".so"
  12609. postinstall_cmds=
  12610. postuninstall_cmds=
  12611. finish_cmds=
  12612. finish_eval=
  12613. shlibpath_var=
  12614. shlibpath_overrides_runpath=unknown
  12615. version_type=none
  12616. dynamic_linker="$host_os ld.so"
  12617. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12618. need_lib_prefix=unknown
  12619. hardcode_into_libs=no
  12620. # when you set need_version to no, make sure it does not cause -set_version
  12621. # flags to be left without arguments
  12622. need_version=unknown
  12623. case $host_os in
  12624. aix3*)
  12625. version_type=linux # correct to gnu/linux during the next big refactor
  12626. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12627. shlibpath_var=LIBPATH
  12628. # AIX 3 has no versioning support, so we append a major version to the name.
  12629. soname_spec='${libname}${release}${shared_ext}$major'
  12630. ;;
  12631. aix[4-9]*)
  12632. version_type=linux # correct to gnu/linux during the next big refactor
  12633. need_lib_prefix=no
  12634. need_version=no
  12635. hardcode_into_libs=yes
  12636. if test "$host_cpu" = ia64; then
  12637. # AIX 5 supports IA64
  12638. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12639. shlibpath_var=LD_LIBRARY_PATH
  12640. else
  12641. # With GCC up to 2.95.x, collect2 would create an import file
  12642. # for dependence libraries. The import file would start with
  12643. # the line `#! .'. This would cause the generated library to
  12644. # depend on `.', always an invalid library. This was fixed in
  12645. # development snapshots of GCC prior to 3.0.
  12646. case $host_os in
  12647. aix4 | aix4.[01] | aix4.[01].*)
  12648. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12649. echo ' yes '
  12650. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12651. :
  12652. else
  12653. can_build_shared=no
  12654. fi
  12655. ;;
  12656. esac
  12657. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12658. # soname into executable. Probably we can add versioning support to
  12659. # collect2, so additional links can be useful in future.
  12660. if test "$aix_use_runtimelinking" = yes; then
  12661. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12662. # instead of lib<name>.a to let people know that these are not
  12663. # typical AIX shared libraries.
  12664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12665. else
  12666. # We preserve .a as extension for shared libraries through AIX4.2
  12667. # and later when we are not doing run time linking.
  12668. library_names_spec='${libname}${release}.a $libname.a'
  12669. soname_spec='${libname}${release}${shared_ext}$major'
  12670. fi
  12671. shlibpath_var=LIBPATH
  12672. fi
  12673. ;;
  12674. amigaos*)
  12675. case $host_cpu in
  12676. powerpc)
  12677. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12678. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12680. ;;
  12681. m68k)
  12682. library_names_spec='$libname.ixlibrary $libname.a'
  12683. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12684. 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'
  12685. ;;
  12686. esac
  12687. ;;
  12688. beos*)
  12689. library_names_spec='${libname}${shared_ext}'
  12690. dynamic_linker="$host_os ld.so"
  12691. shlibpath_var=LIBRARY_PATH
  12692. ;;
  12693. bsdi[45]*)
  12694. version_type=linux # correct to gnu/linux during the next big refactor
  12695. need_version=no
  12696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12697. soname_spec='${libname}${release}${shared_ext}$major'
  12698. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12699. shlibpath_var=LD_LIBRARY_PATH
  12700. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12701. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12702. # the default ld.so.conf also contains /usr/contrib/lib and
  12703. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12704. # libtool to hard-code these into programs
  12705. ;;
  12706. cygwin* | mingw* | pw32* | cegcc*)
  12707. version_type=windows
  12708. shrext_cmds=".dll"
  12709. need_version=no
  12710. need_lib_prefix=no
  12711. case $GCC,$cc_basename in
  12712. yes,*)
  12713. # gcc
  12714. library_names_spec='$libname.dll.a'
  12715. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12716. postinstall_cmds='base_file=`basename \${file}`~
  12717. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12718. dldir=$destdir/`dirname \$dlpath`~
  12719. test -d \$dldir || mkdir -p \$dldir~
  12720. $install_prog $dir/$dlname \$dldir/$dlname~
  12721. chmod a+x \$dldir/$dlname~
  12722. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12723. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12724. fi'
  12725. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12726. dlpath=$dir/\$dldll~
  12727. $RM \$dlpath'
  12728. shlibpath_overrides_runpath=yes
  12729. case $host_os in
  12730. cygwin*)
  12731. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12732. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12733. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12734. ;;
  12735. mingw* | cegcc*)
  12736. # MinGW DLLs use traditional 'lib' prefix
  12737. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12738. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12739. ;;
  12740. pw32*)
  12741. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12742. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12743. ;;
  12744. esac
  12745. dynamic_linker='Win32 ld.exe'
  12746. ;;
  12747. *,cl*)
  12748. # Native MSVC
  12749. libname_spec='$name'
  12750. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12751. library_names_spec='${libname}.dll.lib'
  12752. case $build_os in
  12753. mingw*)
  12754. sys_lib_search_path_spec=
  12755. lt_save_ifs=$IFS
  12756. IFS=';'
  12757. for lt_path in $LIB
  12758. do
  12759. IFS=$lt_save_ifs
  12760. # Let DOS variable expansion print the short 8.3 style file name.
  12761. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12762. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12763. done
  12764. IFS=$lt_save_ifs
  12765. # Convert to MSYS style.
  12766. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12767. ;;
  12768. cygwin*)
  12769. # Convert to unix form, then to dos form, then back to unix form
  12770. # but this time dos style (no spaces!) so that the unix form looks
  12771. # like /cygdrive/c/PROGRA~1:/cygdr...
  12772. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12773. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12774. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12775. ;;
  12776. *)
  12777. sys_lib_search_path_spec="$LIB"
  12778. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12779. # It is most probably a Windows format PATH.
  12780. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12781. else
  12782. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12783. fi
  12784. # FIXME: find the short name or the path components, as spaces are
  12785. # common. (e.g. "Program Files" -> "PROGRA~1")
  12786. ;;
  12787. esac
  12788. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12789. postinstall_cmds='base_file=`basename \${file}`~
  12790. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12791. dldir=$destdir/`dirname \$dlpath`~
  12792. test -d \$dldir || mkdir -p \$dldir~
  12793. $install_prog $dir/$dlname \$dldir/$dlname'
  12794. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12795. dlpath=$dir/\$dldll~
  12796. $RM \$dlpath'
  12797. shlibpath_overrides_runpath=yes
  12798. dynamic_linker='Win32 link.exe'
  12799. ;;
  12800. *)
  12801. # Assume MSVC wrapper
  12802. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12803. dynamic_linker='Win32 ld.exe'
  12804. ;;
  12805. esac
  12806. # FIXME: first we should search . and the directory the executable is in
  12807. shlibpath_var=PATH
  12808. ;;
  12809. darwin* | rhapsody*)
  12810. dynamic_linker="$host_os dyld"
  12811. version_type=darwin
  12812. need_lib_prefix=no
  12813. need_version=no
  12814. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12815. soname_spec='${libname}${release}${major}$shared_ext'
  12816. shlibpath_overrides_runpath=yes
  12817. shlibpath_var=DYLD_LIBRARY_PATH
  12818. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12819. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12820. ;;
  12821. dgux*)
  12822. version_type=linux # correct to gnu/linux during the next big refactor
  12823. need_lib_prefix=no
  12824. need_version=no
  12825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12826. soname_spec='${libname}${release}${shared_ext}$major'
  12827. shlibpath_var=LD_LIBRARY_PATH
  12828. ;;
  12829. freebsd* | dragonfly*)
  12830. # DragonFly does not have aout. When/if they implement a new
  12831. # versioning mechanism, adjust this.
  12832. if test -x /usr/bin/objformat; then
  12833. objformat=`/usr/bin/objformat`
  12834. else
  12835. case $host_os in
  12836. freebsd[23].*) objformat=aout ;;
  12837. *) objformat=elf ;;
  12838. esac
  12839. fi
  12840. version_type=freebsd-$objformat
  12841. case $version_type in
  12842. freebsd-elf*)
  12843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12844. need_version=no
  12845. need_lib_prefix=no
  12846. ;;
  12847. freebsd-*)
  12848. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12849. need_version=yes
  12850. ;;
  12851. esac
  12852. shlibpath_var=LD_LIBRARY_PATH
  12853. case $host_os in
  12854. freebsd2.*)
  12855. shlibpath_overrides_runpath=yes
  12856. ;;
  12857. freebsd3.[01]* | freebsdelf3.[01]*)
  12858. shlibpath_overrides_runpath=yes
  12859. hardcode_into_libs=yes
  12860. ;;
  12861. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12862. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12863. shlibpath_overrides_runpath=no
  12864. hardcode_into_libs=yes
  12865. ;;
  12866. *) # from 4.6 on, and DragonFly
  12867. shlibpath_overrides_runpath=yes
  12868. hardcode_into_libs=yes
  12869. ;;
  12870. esac
  12871. ;;
  12872. gnu*)
  12873. version_type=linux # correct to gnu/linux during the next big refactor
  12874. need_lib_prefix=no
  12875. need_version=no
  12876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12877. soname_spec='${libname}${release}${shared_ext}$major'
  12878. shlibpath_var=LD_LIBRARY_PATH
  12879. shlibpath_overrides_runpath=no
  12880. hardcode_into_libs=yes
  12881. ;;
  12882. haiku*)
  12883. version_type=linux # correct to gnu/linux during the next big refactor
  12884. need_lib_prefix=no
  12885. need_version=no
  12886. dynamic_linker="$host_os runtime_loader"
  12887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12888. soname_spec='${libname}${release}${shared_ext}$major'
  12889. shlibpath_var=LIBRARY_PATH
  12890. shlibpath_overrides_runpath=yes
  12891. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12892. hardcode_into_libs=yes
  12893. ;;
  12894. hpux9* | hpux10* | hpux11*)
  12895. # Give a soname corresponding to the major version so that dld.sl refuses to
  12896. # link against other versions.
  12897. version_type=sunos
  12898. need_lib_prefix=no
  12899. need_version=no
  12900. case $host_cpu in
  12901. ia64*)
  12902. shrext_cmds='.so'
  12903. hardcode_into_libs=yes
  12904. dynamic_linker="$host_os dld.so"
  12905. shlibpath_var=LD_LIBRARY_PATH
  12906. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12908. soname_spec='${libname}${release}${shared_ext}$major'
  12909. if test "X$HPUX_IA64_MODE" = X32; then
  12910. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12911. else
  12912. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12913. fi
  12914. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12915. ;;
  12916. hppa*64*)
  12917. shrext_cmds='.sl'
  12918. hardcode_into_libs=yes
  12919. dynamic_linker="$host_os dld.sl"
  12920. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12921. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12923. soname_spec='${libname}${release}${shared_ext}$major'
  12924. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12925. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12926. ;;
  12927. *)
  12928. shrext_cmds='.sl'
  12929. dynamic_linker="$host_os dld.sl"
  12930. shlibpath_var=SHLIB_PATH
  12931. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12933. soname_spec='${libname}${release}${shared_ext}$major'
  12934. ;;
  12935. esac
  12936. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12937. postinstall_cmds='chmod 555 $lib'
  12938. # or fails outright, so override atomically:
  12939. install_override_mode=555
  12940. ;;
  12941. interix[3-9]*)
  12942. version_type=linux # correct to gnu/linux during the next big refactor
  12943. need_lib_prefix=no
  12944. need_version=no
  12945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12946. soname_spec='${libname}${release}${shared_ext}$major'
  12947. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12948. shlibpath_var=LD_LIBRARY_PATH
  12949. shlibpath_overrides_runpath=no
  12950. hardcode_into_libs=yes
  12951. ;;
  12952. irix5* | irix6* | nonstopux*)
  12953. case $host_os in
  12954. nonstopux*) version_type=nonstopux ;;
  12955. *)
  12956. if test "$lt_cv_prog_gnu_ld" = yes; then
  12957. version_type=linux # correct to gnu/linux during the next big refactor
  12958. else
  12959. version_type=irix
  12960. fi ;;
  12961. esac
  12962. need_lib_prefix=no
  12963. need_version=no
  12964. soname_spec='${libname}${release}${shared_ext}$major'
  12965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12966. case $host_os in
  12967. irix5* | nonstopux*)
  12968. libsuff= shlibsuff=
  12969. ;;
  12970. *)
  12971. case $LD in # libtool.m4 will add one of these switches to LD
  12972. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12973. libsuff= shlibsuff= libmagic=32-bit;;
  12974. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12975. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12976. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12977. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12978. *) libsuff= shlibsuff= libmagic=never-match;;
  12979. esac
  12980. ;;
  12981. esac
  12982. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12983. shlibpath_overrides_runpath=no
  12984. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12985. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12986. hardcode_into_libs=yes
  12987. ;;
  12988. # No shared lib support for Linux oldld, aout, or coff.
  12989. linux*oldld* | linux*aout* | linux*coff*)
  12990. dynamic_linker=no
  12991. ;;
  12992. # This must be glibc/ELF.
  12993. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12994. version_type=linux # correct to gnu/linux during the next big refactor
  12995. need_lib_prefix=no
  12996. need_version=no
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13000. shlibpath_var=LD_LIBRARY_PATH
  13001. shlibpath_overrides_runpath=no
  13002. # Some binutils ld are patched to set DT_RUNPATH
  13003. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13004. $as_echo_n "(cached) " >&6
  13005. else
  13006. lt_cv_shlibpath_overrides_runpath=no
  13007. save_LDFLAGS=$LDFLAGS
  13008. save_libdir=$libdir
  13009. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13010. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13012. /* end confdefs.h. */
  13013. int
  13014. main ()
  13015. {
  13016. ;
  13017. return 0;
  13018. }
  13019. _ACEOF
  13020. if ac_fn_cxx_try_link "$LINENO"; then :
  13021. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13022. lt_cv_shlibpath_overrides_runpath=yes
  13023. fi
  13024. fi
  13025. rm -f core conftest.err conftest.$ac_objext \
  13026. conftest$ac_exeext conftest.$ac_ext
  13027. LDFLAGS=$save_LDFLAGS
  13028. libdir=$save_libdir
  13029. fi
  13030. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13031. # This implies no fast_install, which is unacceptable.
  13032. # Some rework will be needed to allow for fast_install
  13033. # before this can be enabled.
  13034. hardcode_into_libs=yes
  13035. # Append ld.so.conf contents to the search path
  13036. if test -f /etc/ld.so.conf; then
  13037. 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' ' '`
  13038. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13039. fi
  13040. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13041. # powerpc, because MkLinux only supported shared libraries with the
  13042. # GNU dynamic linker. Since this was broken with cross compilers,
  13043. # most powerpc-linux boxes support dynamic linking these days and
  13044. # people can always --disable-shared, the test was removed, and we
  13045. # assume the GNU/Linux dynamic linker is in use.
  13046. dynamic_linker='GNU/Linux ld.so'
  13047. ;;
  13048. netbsd*)
  13049. version_type=sunos
  13050. need_lib_prefix=no
  13051. need_version=no
  13052. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13054. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13055. dynamic_linker='NetBSD (a.out) ld.so'
  13056. else
  13057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13058. soname_spec='${libname}${release}${shared_ext}$major'
  13059. dynamic_linker='NetBSD ld.elf_so'
  13060. fi
  13061. shlibpath_var=LD_LIBRARY_PATH
  13062. shlibpath_overrides_runpath=yes
  13063. hardcode_into_libs=yes
  13064. ;;
  13065. newsos6)
  13066. version_type=linux # correct to gnu/linux during the next big refactor
  13067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13068. shlibpath_var=LD_LIBRARY_PATH
  13069. shlibpath_overrides_runpath=yes
  13070. ;;
  13071. *nto* | *qnx*)
  13072. version_type=qnx
  13073. need_lib_prefix=no
  13074. need_version=no
  13075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13076. soname_spec='${libname}${release}${shared_ext}$major'
  13077. shlibpath_var=LD_LIBRARY_PATH
  13078. shlibpath_overrides_runpath=no
  13079. hardcode_into_libs=yes
  13080. dynamic_linker='ldqnx.so'
  13081. ;;
  13082. openbsd*)
  13083. version_type=sunos
  13084. sys_lib_dlsearch_path_spec="/usr/lib"
  13085. need_lib_prefix=no
  13086. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13087. case $host_os in
  13088. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13089. *) need_version=no ;;
  13090. esac
  13091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13092. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13093. shlibpath_var=LD_LIBRARY_PATH
  13094. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13095. case $host_os in
  13096. openbsd2.[89] | openbsd2.[89].*)
  13097. shlibpath_overrides_runpath=no
  13098. ;;
  13099. *)
  13100. shlibpath_overrides_runpath=yes
  13101. ;;
  13102. esac
  13103. else
  13104. shlibpath_overrides_runpath=yes
  13105. fi
  13106. ;;
  13107. os2*)
  13108. libname_spec='$name'
  13109. shrext_cmds=".dll"
  13110. need_lib_prefix=no
  13111. library_names_spec='$libname${shared_ext} $libname.a'
  13112. dynamic_linker='OS/2 ld.exe'
  13113. shlibpath_var=LIBPATH
  13114. ;;
  13115. osf3* | osf4* | osf5*)
  13116. version_type=osf
  13117. need_lib_prefix=no
  13118. need_version=no
  13119. soname_spec='${libname}${release}${shared_ext}$major'
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13121. shlibpath_var=LD_LIBRARY_PATH
  13122. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13123. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13124. ;;
  13125. rdos*)
  13126. dynamic_linker=no
  13127. ;;
  13128. solaris*)
  13129. version_type=linux # correct to gnu/linux during the next big refactor
  13130. need_lib_prefix=no
  13131. need_version=no
  13132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13133. soname_spec='${libname}${release}${shared_ext}$major'
  13134. shlibpath_var=LD_LIBRARY_PATH
  13135. shlibpath_overrides_runpath=yes
  13136. hardcode_into_libs=yes
  13137. # ldd complains unless libraries are executable
  13138. postinstall_cmds='chmod +x $lib'
  13139. ;;
  13140. sunos4*)
  13141. version_type=sunos
  13142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13143. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13144. shlibpath_var=LD_LIBRARY_PATH
  13145. shlibpath_overrides_runpath=yes
  13146. if test "$with_gnu_ld" = yes; then
  13147. need_lib_prefix=no
  13148. fi
  13149. need_version=yes
  13150. ;;
  13151. sysv4 | sysv4.3*)
  13152. version_type=linux # correct to gnu/linux during the next big refactor
  13153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13154. soname_spec='${libname}${release}${shared_ext}$major'
  13155. shlibpath_var=LD_LIBRARY_PATH
  13156. case $host_vendor in
  13157. sni)
  13158. shlibpath_overrides_runpath=no
  13159. need_lib_prefix=no
  13160. runpath_var=LD_RUN_PATH
  13161. ;;
  13162. siemens)
  13163. need_lib_prefix=no
  13164. ;;
  13165. motorola)
  13166. need_lib_prefix=no
  13167. need_version=no
  13168. shlibpath_overrides_runpath=no
  13169. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13170. ;;
  13171. esac
  13172. ;;
  13173. sysv4*MP*)
  13174. if test -d /usr/nec ;then
  13175. version_type=linux # correct to gnu/linux during the next big refactor
  13176. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13177. soname_spec='$libname${shared_ext}.$major'
  13178. shlibpath_var=LD_LIBRARY_PATH
  13179. fi
  13180. ;;
  13181. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13182. version_type=freebsd-elf
  13183. need_lib_prefix=no
  13184. need_version=no
  13185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13186. soname_spec='${libname}${release}${shared_ext}$major'
  13187. shlibpath_var=LD_LIBRARY_PATH
  13188. shlibpath_overrides_runpath=yes
  13189. hardcode_into_libs=yes
  13190. if test "$with_gnu_ld" = yes; then
  13191. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13192. else
  13193. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13194. case $host_os in
  13195. sco3.2v5*)
  13196. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13197. ;;
  13198. esac
  13199. fi
  13200. sys_lib_dlsearch_path_spec='/usr/lib'
  13201. ;;
  13202. tpf*)
  13203. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13204. version_type=linux # correct to gnu/linux during the next big refactor
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13208. shlibpath_var=LD_LIBRARY_PATH
  13209. shlibpath_overrides_runpath=no
  13210. hardcode_into_libs=yes
  13211. ;;
  13212. uts4*)
  13213. version_type=linux # correct to gnu/linux during the next big refactor
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13215. soname_spec='${libname}${release}${shared_ext}$major'
  13216. shlibpath_var=LD_LIBRARY_PATH
  13217. ;;
  13218. *)
  13219. dynamic_linker=no
  13220. ;;
  13221. esac
  13222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13223. $as_echo "$dynamic_linker" >&6; }
  13224. test "$dynamic_linker" = no && can_build_shared=no
  13225. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13226. if test "$GCC" = yes; then
  13227. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13228. fi
  13229. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13230. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13231. fi
  13232. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13233. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13234. fi
  13235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13236. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13237. hardcode_action_CXX=
  13238. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13239. test -n "$runpath_var_CXX" ||
  13240. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13241. # We can hardcode non-existent directories.
  13242. if test "$hardcode_direct_CXX" != no &&
  13243. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13244. # have to relink, otherwise we might link with an installed library
  13245. # when we should be linking with a yet-to-be-installed one
  13246. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13247. test "$hardcode_minus_L_CXX" != no; then
  13248. # Linking always hardcodes the temporary library directory.
  13249. hardcode_action_CXX=relink
  13250. else
  13251. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13252. hardcode_action_CXX=immediate
  13253. fi
  13254. else
  13255. # We cannot hardcode anything, or else we can only hardcode existing
  13256. # directories.
  13257. hardcode_action_CXX=unsupported
  13258. fi
  13259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13260. $as_echo "$hardcode_action_CXX" >&6; }
  13261. if test "$hardcode_action_CXX" = relink ||
  13262. test "$inherit_rpath_CXX" = yes; then
  13263. # Fast installation is not supported
  13264. enable_fast_install=no
  13265. elif test "$shlibpath_overrides_runpath" = yes ||
  13266. test "$enable_shared" = no; then
  13267. # Fast installation is not necessary
  13268. enable_fast_install=needless
  13269. fi
  13270. fi # test -n "$compiler"
  13271. CC=$lt_save_CC
  13272. CFLAGS=$lt_save_CFLAGS
  13273. LDCXX=$LD
  13274. LD=$lt_save_LD
  13275. GCC=$lt_save_GCC
  13276. with_gnu_ld=$lt_save_with_gnu_ld
  13277. lt_cv_path_LDCXX=$lt_cv_path_LD
  13278. lt_cv_path_LD=$lt_save_path_LD
  13279. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13280. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13281. fi # test "$_lt_caught_CXX_error" != yes
  13282. ac_ext=c
  13283. ac_cpp='$CPP $CPPFLAGS'
  13284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13287. # Find a good install program. We prefer a C program (faster),
  13288. # so one script is as good as another. But avoid the broken or
  13289. # incompatible versions:
  13290. # SysV /etc/install, /usr/sbin/install
  13291. # SunOS /usr/etc/install
  13292. # IRIX /sbin/install
  13293. # AIX /bin/install
  13294. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13295. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13296. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13297. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13298. # OS/2's system install, which has a completely different semantic
  13299. # ./install, which can be erroneously created by make from ./install.sh.
  13300. # Reject install programs that cannot install multiple files.
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13302. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13303. if test -z "$INSTALL"; then
  13304. if ${ac_cv_path_install+:} false; then :
  13305. $as_echo_n "(cached) " >&6
  13306. else
  13307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13308. for as_dir in $PATH
  13309. do
  13310. IFS=$as_save_IFS
  13311. test -z "$as_dir" && as_dir=.
  13312. # Account for people who put trailing slashes in PATH elements.
  13313. case $as_dir/ in #((
  13314. ./ | .// | /[cC]/* | \
  13315. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13316. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13317. /usr/ucb/* ) ;;
  13318. *)
  13319. # OSF1 and SCO ODT 3.0 have their own names for install.
  13320. # Don't use installbsd from OSF since it installs stuff as root
  13321. # by default.
  13322. for ac_prog in ginstall scoinst install; do
  13323. for ac_exec_ext in '' $ac_executable_extensions; do
  13324. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13325. if test $ac_prog = install &&
  13326. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13327. # AIX install. It has an incompatible calling convention.
  13328. :
  13329. elif test $ac_prog = install &&
  13330. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13331. # program-specific install script used by HP pwplus--don't use.
  13332. :
  13333. else
  13334. rm -rf conftest.one conftest.two conftest.dir
  13335. echo one > conftest.one
  13336. echo two > conftest.two
  13337. mkdir conftest.dir
  13338. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13339. test -s conftest.one && test -s conftest.two &&
  13340. test -s conftest.dir/conftest.one &&
  13341. test -s conftest.dir/conftest.two
  13342. then
  13343. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13344. break 3
  13345. fi
  13346. fi
  13347. fi
  13348. done
  13349. done
  13350. ;;
  13351. esac
  13352. done
  13353. IFS=$as_save_IFS
  13354. rm -rf conftest.one conftest.two conftest.dir
  13355. fi
  13356. if test "${ac_cv_path_install+set}" = set; then
  13357. INSTALL=$ac_cv_path_install
  13358. else
  13359. # As a last resort, use the slow shell script. Don't cache a
  13360. # value for INSTALL within a source directory, because that will
  13361. # break other packages using the cache if that directory is
  13362. # removed, or if the value is a relative name.
  13363. INSTALL=$ac_install_sh
  13364. fi
  13365. fi
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13367. $as_echo "$INSTALL" >&6; }
  13368. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13369. # It thinks the first close brace ends the variable substitution.
  13370. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13371. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13372. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13374. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13375. set x ${MAKE-make}
  13376. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13377. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13378. $as_echo_n "(cached) " >&6
  13379. else
  13380. cat >conftest.make <<\_ACEOF
  13381. SHELL = /bin/sh
  13382. all:
  13383. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13384. _ACEOF
  13385. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13386. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13387. *@@@%%%=?*=@@@%%%*)
  13388. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13389. *)
  13390. eval ac_cv_prog_make_${ac_make}_set=no;;
  13391. esac
  13392. rm -f conftest.make
  13393. fi
  13394. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13396. $as_echo "yes" >&6; }
  13397. SET_MAKE=
  13398. else
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13400. $as_echo "no" >&6; }
  13401. SET_MAKE="MAKE=${MAKE-make}"
  13402. fi
  13403. if test -n "$ac_tool_prefix"; then
  13404. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13405. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13407. $as_echo_n "checking for $ac_word... " >&6; }
  13408. if ${ac_cv_prog_WINDRES+:} false; then :
  13409. $as_echo_n "(cached) " >&6
  13410. else
  13411. if test -n "$WINDRES"; then
  13412. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13413. else
  13414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13415. for as_dir in $PATH
  13416. do
  13417. IFS=$as_save_IFS
  13418. test -z "$as_dir" && as_dir=.
  13419. for ac_exec_ext in '' $ac_executable_extensions; do
  13420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13421. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13423. break 2
  13424. fi
  13425. done
  13426. done
  13427. IFS=$as_save_IFS
  13428. fi
  13429. fi
  13430. WINDRES=$ac_cv_prog_WINDRES
  13431. if test -n "$WINDRES"; then
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13433. $as_echo "$WINDRES" >&6; }
  13434. else
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13436. $as_echo "no" >&6; }
  13437. fi
  13438. fi
  13439. if test -z "$ac_cv_prog_WINDRES"; then
  13440. ac_ct_WINDRES=$WINDRES
  13441. # Extract the first word of "windres", so it can be a program name with args.
  13442. set dummy windres; ac_word=$2
  13443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13444. $as_echo_n "checking for $ac_word... " >&6; }
  13445. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13446. $as_echo_n "(cached) " >&6
  13447. else
  13448. if test -n "$ac_ct_WINDRES"; then
  13449. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13450. else
  13451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13452. for as_dir in $PATH
  13453. do
  13454. IFS=$as_save_IFS
  13455. test -z "$as_dir" && as_dir=.
  13456. for ac_exec_ext in '' $ac_executable_extensions; do
  13457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13458. ac_cv_prog_ac_ct_WINDRES="windres"
  13459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13460. break 2
  13461. fi
  13462. done
  13463. done
  13464. IFS=$as_save_IFS
  13465. fi
  13466. fi
  13467. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13468. if test -n "$ac_ct_WINDRES"; then
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13470. $as_echo "$ac_ct_WINDRES" >&6; }
  13471. else
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13473. $as_echo "no" >&6; }
  13474. fi
  13475. if test "x$ac_ct_WINDRES" = x; then
  13476. WINDRES=":"
  13477. else
  13478. case $cross_compiling:$ac_tool_warned in
  13479. yes:)
  13480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13482. ac_tool_warned=yes ;;
  13483. esac
  13484. WINDRES=$ac_ct_WINDRES
  13485. fi
  13486. else
  13487. WINDRES="$ac_cv_prog_WINDRES"
  13488. fi
  13489. case "$host" in
  13490. *-*-mingw32*)
  13491. # Except on msys, where make can't handle full pathnames (bug 1972)
  13492. ;;
  13493. *)
  13494. srcdir=`cd $srcdir && pwd`
  13495. ;;
  13496. esac
  13497. INCLUDE="-I$srcdir/include"
  13498. if test x$srcdir != x.; then
  13499. INCLUDE="-Iinclude $INCLUDE"
  13500. elif test -d .hg; then
  13501. as_fn_error $? "
  13502. *** When building from Mercurial you should configure and build in a
  13503. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13504. " "$LINENO" 5
  13505. fi
  13506. BASE_CFLAGS=""
  13507. BASE_LDFLAGS=""
  13508. case "$host" in
  13509. *-*-cygwin*)
  13510. # We build SDL on cygwin without the UNIX emulation layer
  13511. save_CFLAGS="$CFLAGS"
  13512. have_no_cygwin=no
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13514. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13515. CFLAGS="$save_CFLAGS -mno-cygwin"
  13516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13517. /* end confdefs.h. */
  13518. int
  13519. main ()
  13520. {
  13521. ;
  13522. return 0;
  13523. }
  13524. _ACEOF
  13525. if ac_fn_c_try_compile "$LINENO"; then :
  13526. have_no_cygwin=yes
  13527. fi
  13528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13530. $as_echo "$have_no_cygwin" >&6; }
  13531. CFLAGS="$save_CFLAGS"
  13532. if test x$have_no_cygwin = xyes; then
  13533. BASE_CFLAGS="-mno-cygwin"
  13534. BASE_LDFLAGS="-mno-cygwin"
  13535. fi
  13536. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13537. ;;
  13538. esac
  13539. # Uncomment the following line if you want to force SDL and applications
  13540. # built with it to be compiled for a particular architecture.
  13541. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13542. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13543. # The default optimization for SDL is -O3 (Bug #31)
  13544. if test "x$orig_CFLAGS" = x; then
  13545. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13546. fi
  13547. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13548. BUILD_LDFLAGS="$LDFLAGS"
  13549. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13550. ## These are common directories to find software packages
  13551. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13552. # if test -d $path/include; then
  13553. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13554. # fi
  13555. # if test -d $path/lib; then
  13556. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13557. # fi
  13558. #done
  13559. SDL_CFLAGS="$BASE_CFLAGS"
  13560. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13561. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13562. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13563. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13564. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13565. find_lib()
  13566. {
  13567. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13568. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13569. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13570. if test "$cross_compiling" = yes; then
  13571. host_lib_path=""
  13572. else
  13573. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13574. fi
  13575. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13576. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13577. if test x$lib != x; then
  13578. echo $lib
  13579. return
  13580. fi
  13581. done
  13582. }
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13584. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13585. if ${ac_cv_c_const+:} false; then :
  13586. $as_echo_n "(cached) " >&6
  13587. else
  13588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13589. /* end confdefs.h. */
  13590. int
  13591. main ()
  13592. {
  13593. #ifndef __cplusplus
  13594. /* Ultrix mips cc rejects this sort of thing. */
  13595. typedef int charset[2];
  13596. const charset cs = { 0, 0 };
  13597. /* SunOS 4.1.1 cc rejects this. */
  13598. char const *const *pcpcc;
  13599. char **ppc;
  13600. /* NEC SVR4.0.2 mips cc rejects this. */
  13601. struct point {int x, y;};
  13602. static struct point const zero = {0,0};
  13603. /* AIX XL C 1.02.0.0 rejects this.
  13604. It does not let you subtract one const X* pointer from another in
  13605. an arm of an if-expression whose if-part is not a constant
  13606. expression */
  13607. const char *g = "string";
  13608. pcpcc = &g + (g ? g-g : 0);
  13609. /* HPUX 7.0 cc rejects these. */
  13610. ++pcpcc;
  13611. ppc = (char**) pcpcc;
  13612. pcpcc = (char const *const *) ppc;
  13613. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13614. char tx;
  13615. char *t = &tx;
  13616. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13617. *t++ = 0;
  13618. if (s) return 0;
  13619. }
  13620. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13621. int x[] = {25, 17};
  13622. const int *foo = &x[0];
  13623. ++foo;
  13624. }
  13625. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13626. typedef const int *iptr;
  13627. iptr p = 0;
  13628. ++p;
  13629. }
  13630. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13631. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13632. struct s { int j; const int *ap[3]; } bx;
  13633. struct s *b = &bx; b->j = 5;
  13634. }
  13635. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13636. const int foo = 10;
  13637. if (!foo) return 0;
  13638. }
  13639. return !cs[0] && !zero.x;
  13640. #endif
  13641. ;
  13642. return 0;
  13643. }
  13644. _ACEOF
  13645. if ac_fn_c_try_compile "$LINENO"; then :
  13646. ac_cv_c_const=yes
  13647. else
  13648. ac_cv_c_const=no
  13649. fi
  13650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13651. fi
  13652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13653. $as_echo "$ac_cv_c_const" >&6; }
  13654. if test $ac_cv_c_const = no; then
  13655. $as_echo "#define const /**/" >>confdefs.h
  13656. fi
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13658. $as_echo_n "checking for inline... " >&6; }
  13659. if ${ac_cv_c_inline+:} false; then :
  13660. $as_echo_n "(cached) " >&6
  13661. else
  13662. ac_cv_c_inline=no
  13663. for ac_kw in inline __inline__ __inline; do
  13664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13665. /* end confdefs.h. */
  13666. #ifndef __cplusplus
  13667. typedef int foo_t;
  13668. static $ac_kw foo_t static_foo () {return 0; }
  13669. $ac_kw foo_t foo () {return 0; }
  13670. #endif
  13671. _ACEOF
  13672. if ac_fn_c_try_compile "$LINENO"; then :
  13673. ac_cv_c_inline=$ac_kw
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13676. test "$ac_cv_c_inline" != no && break
  13677. done
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13680. $as_echo "$ac_cv_c_inline" >&6; }
  13681. case $ac_cv_c_inline in
  13682. inline | yes) ;;
  13683. *)
  13684. case $ac_cv_c_inline in
  13685. no) ac_val=;;
  13686. *) ac_val=$ac_cv_c_inline;;
  13687. esac
  13688. cat >>confdefs.h <<_ACEOF
  13689. #ifndef __cplusplus
  13690. #define inline $ac_val
  13691. #endif
  13692. _ACEOF
  13693. ;;
  13694. esac
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13696. $as_echo_n "checking for working volatile... " >&6; }
  13697. if ${ac_cv_c_volatile+:} false; then :
  13698. $as_echo_n "(cached) " >&6
  13699. else
  13700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13701. /* end confdefs.h. */
  13702. int
  13703. main ()
  13704. {
  13705. volatile int x;
  13706. int * volatile y = (int *) 0;
  13707. return !x && !y;
  13708. ;
  13709. return 0;
  13710. }
  13711. _ACEOF
  13712. if ac_fn_c_try_compile "$LINENO"; then :
  13713. ac_cv_c_volatile=yes
  13714. else
  13715. ac_cv_c_volatile=no
  13716. fi
  13717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13718. fi
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13720. $as_echo "$ac_cv_c_volatile" >&6; }
  13721. if test $ac_cv_c_volatile = no; then
  13722. $as_echo "#define volatile /**/" >>confdefs.h
  13723. fi
  13724. # Check whether --enable-assertions was given.
  13725. if test "${enable_assertions+set}" = set; then :
  13726. enableval=$enable_assertions;
  13727. else
  13728. enable_assertions=auto
  13729. fi
  13730. case "$enable_assertions" in
  13731. auto) # Use optimization settings to determine assertion level
  13732. ;;
  13733. disabled)
  13734. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13735. ;;
  13736. release)
  13737. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13738. ;;
  13739. enabled)
  13740. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13741. ;;
  13742. paranoid)
  13743. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13744. ;;
  13745. *)
  13746. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13747. ;;
  13748. esac
  13749. # Check whether --enable-dependency-tracking was given.
  13750. if test "${enable_dependency_tracking+set}" = set; then :
  13751. enableval=$enable_dependency_tracking;
  13752. else
  13753. enable_dependency_tracking=yes
  13754. fi
  13755. if test x$enable_dependency_tracking = xyes; then
  13756. have_gcc_mmd_mt=no
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13758. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13760. /* end confdefs.h. */
  13761. #if !defined(__GNUC__) || __GNUC__ < 3
  13762. #error Dependency tracking requires GCC 3.0 or newer
  13763. #endif
  13764. int
  13765. main ()
  13766. {
  13767. ;
  13768. return 0;
  13769. }
  13770. _ACEOF
  13771. if ac_fn_c_try_compile "$LINENO"; then :
  13772. have_gcc_mmd_mt=yes
  13773. fi
  13774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13776. $as_echo "$have_gcc_mmd_mt" >&6; }
  13777. if test x$have_gcc_mmd_mt = xyes; then
  13778. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13779. fi
  13780. fi
  13781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13782. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13783. have_no_undefined=no
  13784. case "$host" in
  13785. *-*-openbsd*)
  13786. ;;
  13787. *)
  13788. save_LDFLAGS="$LDFLAGS"
  13789. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13791. /* end confdefs.h. */
  13792. int
  13793. main ()
  13794. {
  13795. ;
  13796. return 0;
  13797. }
  13798. _ACEOF
  13799. if ac_fn_c_try_link "$LINENO"; then :
  13800. have_no_undefined=yes
  13801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13802. fi
  13803. rm -f core conftest.err conftest.$ac_objext \
  13804. conftest$ac_exeext conftest.$ac_ext
  13805. LDFLAGS="$save_LDFLAGS"
  13806. ;;
  13807. esac
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13809. $as_echo "$have_no_undefined" >&6; }
  13810. # Check whether --enable-libc was given.
  13811. if test "${enable_libc+set}" = set; then :
  13812. enableval=$enable_libc;
  13813. else
  13814. enable_libc=yes
  13815. fi
  13816. if test x$enable_libc = xyes; then
  13817. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13819. $as_echo_n "checking for ANSI C header files... " >&6; }
  13820. if ${ac_cv_header_stdc+:} false; then :
  13821. $as_echo_n "(cached) " >&6
  13822. else
  13823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13824. /* end confdefs.h. */
  13825. #include <stdlib.h>
  13826. #include <stdarg.h>
  13827. #include <string.h>
  13828. #include <float.h>
  13829. int
  13830. main ()
  13831. {
  13832. ;
  13833. return 0;
  13834. }
  13835. _ACEOF
  13836. if ac_fn_c_try_compile "$LINENO"; then :
  13837. ac_cv_header_stdc=yes
  13838. else
  13839. ac_cv_header_stdc=no
  13840. fi
  13841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13842. if test $ac_cv_header_stdc = yes; then
  13843. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. #include <string.h>
  13847. _ACEOF
  13848. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13849. $EGREP "memchr" >/dev/null 2>&1; then :
  13850. else
  13851. ac_cv_header_stdc=no
  13852. fi
  13853. rm -f conftest*
  13854. fi
  13855. if test $ac_cv_header_stdc = yes; then
  13856. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13858. /* end confdefs.h. */
  13859. #include <stdlib.h>
  13860. _ACEOF
  13861. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13862. $EGREP "free" >/dev/null 2>&1; then :
  13863. else
  13864. ac_cv_header_stdc=no
  13865. fi
  13866. rm -f conftest*
  13867. fi
  13868. if test $ac_cv_header_stdc = yes; then
  13869. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13870. if test "$cross_compiling" = yes; then :
  13871. :
  13872. else
  13873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13874. /* end confdefs.h. */
  13875. #include <ctype.h>
  13876. #include <stdlib.h>
  13877. #if ((' ' & 0x0FF) == 0x020)
  13878. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13879. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13880. #else
  13881. # define ISLOWER(c) \
  13882. (('a' <= (c) && (c) <= 'i') \
  13883. || ('j' <= (c) && (c) <= 'r') \
  13884. || ('s' <= (c) && (c) <= 'z'))
  13885. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13886. #endif
  13887. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13888. int
  13889. main ()
  13890. {
  13891. int i;
  13892. for (i = 0; i < 256; i++)
  13893. if (XOR (islower (i), ISLOWER (i))
  13894. || toupper (i) != TOUPPER (i))
  13895. return 2;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_c_try_run "$LINENO"; then :
  13900. else
  13901. ac_cv_header_stdc=no
  13902. fi
  13903. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13904. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13905. fi
  13906. fi
  13907. fi
  13908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13909. $as_echo "$ac_cv_header_stdc" >&6; }
  13910. if test $ac_cv_header_stdc = yes; then
  13911. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13912. fi
  13913. 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
  13914. do :
  13915. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13916. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13917. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13918. cat >>confdefs.h <<_ACEOF
  13919. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13920. _ACEOF
  13921. fi
  13922. done
  13923. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13924. if test "x$ac_cv_type_size_t" = xyes; then :
  13925. else
  13926. cat >>confdefs.h <<_ACEOF
  13927. #define size_t unsigned int
  13928. _ACEOF
  13929. fi
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13931. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13932. if ${ac_cv_define_M_PI+:} false; then :
  13933. $as_echo_n "(cached) " >&6
  13934. else
  13935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13936. /* end confdefs.h. */
  13937. #include <math.h>
  13938. #ifdef M_PI
  13939. YES_IS_DEFINED
  13940. #endif
  13941. _ACEOF
  13942. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13943. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13944. ac_cv_define_M_PI=yes
  13945. else
  13946. ac_cv_define_M_PI=no
  13947. fi
  13948. rm -f conftest*
  13949. fi
  13950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13951. $as_echo "$ac_cv_define_M_PI" >&6; }
  13952. if test "$ac_cv_define_M_PI" = "yes" ; then
  13953. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13954. fi
  13955. case "$host" in
  13956. *-*-cygwin* | *-*-mingw32*)
  13957. ;;
  13958. *)
  13959. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13960. # for constant arguments. Useless!
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13962. $as_echo_n "checking for working alloca.h... " >&6; }
  13963. if ${ac_cv_working_alloca_h+:} false; then :
  13964. $as_echo_n "(cached) " >&6
  13965. else
  13966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13967. /* end confdefs.h. */
  13968. #include <alloca.h>
  13969. int
  13970. main ()
  13971. {
  13972. char *p = (char *) alloca (2 * sizeof (int));
  13973. if (p) return 0;
  13974. ;
  13975. return 0;
  13976. }
  13977. _ACEOF
  13978. if ac_fn_c_try_link "$LINENO"; then :
  13979. ac_cv_working_alloca_h=yes
  13980. else
  13981. ac_cv_working_alloca_h=no
  13982. fi
  13983. rm -f core conftest.err conftest.$ac_objext \
  13984. conftest$ac_exeext conftest.$ac_ext
  13985. fi
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13987. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13988. if test $ac_cv_working_alloca_h = yes; then
  13989. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13990. fi
  13991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13992. $as_echo_n "checking for alloca... " >&6; }
  13993. if ${ac_cv_func_alloca_works+:} false; then :
  13994. $as_echo_n "(cached) " >&6
  13995. else
  13996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13997. /* end confdefs.h. */
  13998. #ifdef __GNUC__
  13999. # define alloca __builtin_alloca
  14000. #else
  14001. # ifdef _MSC_VER
  14002. # include <malloc.h>
  14003. # define alloca _alloca
  14004. # else
  14005. # ifdef HAVE_ALLOCA_H
  14006. # include <alloca.h>
  14007. # else
  14008. # ifdef _AIX
  14009. #pragma alloca
  14010. # else
  14011. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14012. void *alloca (size_t);
  14013. # endif
  14014. # endif
  14015. # endif
  14016. # endif
  14017. #endif
  14018. int
  14019. main ()
  14020. {
  14021. char *p = (char *) alloca (1);
  14022. if (p) return 0;
  14023. ;
  14024. return 0;
  14025. }
  14026. _ACEOF
  14027. if ac_fn_c_try_link "$LINENO"; then :
  14028. ac_cv_func_alloca_works=yes
  14029. else
  14030. ac_cv_func_alloca_works=no
  14031. fi
  14032. rm -f core conftest.err conftest.$ac_objext \
  14033. conftest$ac_exeext conftest.$ac_ext
  14034. fi
  14035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14036. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14037. if test $ac_cv_func_alloca_works = yes; then
  14038. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14039. else
  14040. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14041. # that cause trouble. Some versions do not even contain alloca or
  14042. # contain a buggy version. If you still want to use their alloca,
  14043. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14044. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14045. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14047. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14048. if ${ac_cv_os_cray+:} false; then :
  14049. $as_echo_n "(cached) " >&6
  14050. else
  14051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14052. /* end confdefs.h. */
  14053. #if defined CRAY && ! defined CRAY2
  14054. webecray
  14055. #else
  14056. wenotbecray
  14057. #endif
  14058. _ACEOF
  14059. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14060. $EGREP "webecray" >/dev/null 2>&1; then :
  14061. ac_cv_os_cray=yes
  14062. else
  14063. ac_cv_os_cray=no
  14064. fi
  14065. rm -f conftest*
  14066. fi
  14067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14068. $as_echo "$ac_cv_os_cray" >&6; }
  14069. if test $ac_cv_os_cray = yes; then
  14070. for ac_func in _getb67 GETB67 getb67; do
  14071. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14072. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14073. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14074. cat >>confdefs.h <<_ACEOF
  14075. #define CRAY_STACKSEG_END $ac_func
  14076. _ACEOF
  14077. break
  14078. fi
  14079. done
  14080. fi
  14081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14082. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14083. if ${ac_cv_c_stack_direction+:} false; then :
  14084. $as_echo_n "(cached) " >&6
  14085. else
  14086. if test "$cross_compiling" = yes; then :
  14087. ac_cv_c_stack_direction=0
  14088. else
  14089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14090. /* end confdefs.h. */
  14091. $ac_includes_default
  14092. int
  14093. find_stack_direction (int *addr, int depth)
  14094. {
  14095. int dir, dummy = 0;
  14096. if (! addr)
  14097. addr = &dummy;
  14098. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14099. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14100. return dir + dummy;
  14101. }
  14102. int
  14103. main (int argc, char **argv)
  14104. {
  14105. return find_stack_direction (0, argc + !argv + 20) < 0;
  14106. }
  14107. _ACEOF
  14108. if ac_fn_c_try_run "$LINENO"; then :
  14109. ac_cv_c_stack_direction=1
  14110. else
  14111. ac_cv_c_stack_direction=-1
  14112. fi
  14113. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14114. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14115. fi
  14116. fi
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14118. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14119. cat >>confdefs.h <<_ACEOF
  14120. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14121. _ACEOF
  14122. fi
  14123. ;;
  14124. esac
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14126. $as_echo_n "checking for working memcmp... " >&6; }
  14127. if ${ac_cv_func_memcmp_working+:} false; then :
  14128. $as_echo_n "(cached) " >&6
  14129. else
  14130. if test "$cross_compiling" = yes; then :
  14131. ac_cv_func_memcmp_working=no
  14132. else
  14133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14134. /* end confdefs.h. */
  14135. $ac_includes_default
  14136. int
  14137. main ()
  14138. {
  14139. /* Some versions of memcmp are not 8-bit clean. */
  14140. char c0 = '\100', c1 = '\200', c2 = '\201';
  14141. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14142. return 1;
  14143. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14144. or more and with at least one buffer not starting on a 4-byte boundary.
  14145. William Lewis provided this test program. */
  14146. {
  14147. char foo[21];
  14148. char bar[21];
  14149. int i;
  14150. for (i = 0; i < 4; i++)
  14151. {
  14152. char *a = foo + i;
  14153. char *b = bar + i;
  14154. strcpy (a, "--------01111111");
  14155. strcpy (b, "--------10000000");
  14156. if (memcmp (a, b, 16) >= 0)
  14157. return 1;
  14158. }
  14159. return 0;
  14160. }
  14161. ;
  14162. return 0;
  14163. }
  14164. _ACEOF
  14165. if ac_fn_c_try_run "$LINENO"; then :
  14166. ac_cv_func_memcmp_working=yes
  14167. else
  14168. ac_cv_func_memcmp_working=no
  14169. fi
  14170. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14171. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14172. fi
  14173. fi
  14174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14175. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14176. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14177. *" memcmp.$ac_objext "* ) ;;
  14178. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14179. ;;
  14180. esac
  14181. if test x$ac_cv_func_memcmp_working = xyes; then
  14182. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14183. fi
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14185. $as_echo_n "checking for working strtod... " >&6; }
  14186. if ${ac_cv_func_strtod+:} false; then :
  14187. $as_echo_n "(cached) " >&6
  14188. else
  14189. if test "$cross_compiling" = yes; then :
  14190. ac_cv_func_strtod=no
  14191. else
  14192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14193. /* end confdefs.h. */
  14194. $ac_includes_default
  14195. #ifndef strtod
  14196. double strtod ();
  14197. #endif
  14198. int
  14199. main()
  14200. {
  14201. {
  14202. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14203. char *string = " +69";
  14204. char *term;
  14205. double value;
  14206. value = strtod (string, &term);
  14207. if (value != 69 || term != (string + 4))
  14208. return 1;
  14209. }
  14210. {
  14211. /* Under Solaris 2.4, strtod returns the wrong value for the
  14212. terminating character under some conditions. */
  14213. char *string = "NaN";
  14214. char *term;
  14215. strtod (string, &term);
  14216. if (term != string && *(term - 1) == 0)
  14217. return 1;
  14218. }
  14219. return 0;
  14220. }
  14221. _ACEOF
  14222. if ac_fn_c_try_run "$LINENO"; then :
  14223. ac_cv_func_strtod=yes
  14224. else
  14225. ac_cv_func_strtod=no
  14226. fi
  14227. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14228. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14229. fi
  14230. fi
  14231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14232. $as_echo "$ac_cv_func_strtod" >&6; }
  14233. if test $ac_cv_func_strtod = no; then
  14234. case " $LIBOBJS " in
  14235. *" strtod.$ac_objext "* ) ;;
  14236. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14237. ;;
  14238. esac
  14239. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14240. if test "x$ac_cv_func_pow" = xyes; then :
  14241. fi
  14242. if test $ac_cv_func_pow = no; then
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14244. $as_echo_n "checking for pow in -lm... " >&6; }
  14245. if ${ac_cv_lib_m_pow+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. ac_check_lib_save_LIBS=$LIBS
  14249. LIBS="-lm $LIBS"
  14250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14251. /* end confdefs.h. */
  14252. /* Override any GCC internal prototype to avoid an error.
  14253. Use char because int might match the return type of a GCC
  14254. builtin and then its argument prototype would still apply. */
  14255. #ifdef __cplusplus
  14256. extern "C"
  14257. #endif
  14258. char pow ();
  14259. int
  14260. main ()
  14261. {
  14262. return pow ();
  14263. ;
  14264. return 0;
  14265. }
  14266. _ACEOF
  14267. if ac_fn_c_try_link "$LINENO"; then :
  14268. ac_cv_lib_m_pow=yes
  14269. else
  14270. ac_cv_lib_m_pow=no
  14271. fi
  14272. rm -f core conftest.err conftest.$ac_objext \
  14273. conftest$ac_exeext conftest.$ac_ext
  14274. LIBS=$ac_check_lib_save_LIBS
  14275. fi
  14276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14277. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14278. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14279. POW_LIB=-lm
  14280. else
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14282. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14283. fi
  14284. fi
  14285. fi
  14286. if test x$ac_cv_func_strtod = xyes; then
  14287. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14288. fi
  14289. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14290. if test "x$ac_cv_func_mprotect" = xyes; then :
  14291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14292. /* end confdefs.h. */
  14293. #include <sys/types.h>
  14294. #include <sys/mman.h>
  14295. int
  14296. main ()
  14297. {
  14298. ;
  14299. return 0;
  14300. }
  14301. _ACEOF
  14302. if ac_fn_c_try_compile "$LINENO"; then :
  14303. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14304. fi
  14305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14306. fi
  14307. 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
  14308. do :
  14309. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14310. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14311. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14312. cat >>confdefs.h <<_ACEOF
  14313. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14314. _ACEOF
  14315. fi
  14316. done
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14318. $as_echo_n "checking for pow in -lm... " >&6; }
  14319. if ${ac_cv_lib_m_pow+:} false; then :
  14320. $as_echo_n "(cached) " >&6
  14321. else
  14322. ac_check_lib_save_LIBS=$LIBS
  14323. LIBS="-lm $LIBS"
  14324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14325. /* end confdefs.h. */
  14326. /* Override any GCC internal prototype to avoid an error.
  14327. Use char because int might match the return type of a GCC
  14328. builtin and then its argument prototype would still apply. */
  14329. #ifdef __cplusplus
  14330. extern "C"
  14331. #endif
  14332. char pow ();
  14333. int
  14334. main ()
  14335. {
  14336. return pow ();
  14337. ;
  14338. return 0;
  14339. }
  14340. _ACEOF
  14341. if ac_fn_c_try_link "$LINENO"; then :
  14342. ac_cv_lib_m_pow=yes
  14343. else
  14344. ac_cv_lib_m_pow=no
  14345. fi
  14346. rm -f core conftest.err conftest.$ac_objext \
  14347. conftest$ac_exeext conftest.$ac_ext
  14348. LIBS=$ac_check_lib_save_LIBS
  14349. fi
  14350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14351. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14352. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14353. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14354. fi
  14355. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14356. do :
  14357. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14358. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14359. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14360. cat >>confdefs.h <<_ACEOF
  14361. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14362. _ACEOF
  14363. fi
  14364. done
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14366. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14367. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14368. $as_echo_n "(cached) " >&6
  14369. else
  14370. ac_check_lib_save_LIBS=$LIBS
  14371. LIBS="-liconv $LIBS"
  14372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14373. /* end confdefs.h. */
  14374. /* Override any GCC internal prototype to avoid an error.
  14375. Use char because int might match the return type of a GCC
  14376. builtin and then its argument prototype would still apply. */
  14377. #ifdef __cplusplus
  14378. extern "C"
  14379. #endif
  14380. char iconv_open ();
  14381. int
  14382. main ()
  14383. {
  14384. return iconv_open ();
  14385. ;
  14386. return 0;
  14387. }
  14388. _ACEOF
  14389. if ac_fn_c_try_link "$LINENO"; then :
  14390. ac_cv_lib_iconv_iconv_open=yes
  14391. else
  14392. ac_cv_lib_iconv_iconv_open=no
  14393. fi
  14394. rm -f core conftest.err conftest.$ac_objext \
  14395. conftest$ac_exeext conftest.$ac_ext
  14396. LIBS=$ac_check_lib_save_LIBS
  14397. fi
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14399. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14400. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14401. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14402. fi
  14403. for ac_func in iconv
  14404. do :
  14405. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14406. if test "x$ac_cv_func_iconv" = xyes; then :
  14407. cat >>confdefs.h <<_ACEOF
  14408. #define HAVE_ICONV 1
  14409. _ACEOF
  14410. fi
  14411. done
  14412. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14413. "
  14414. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14415. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14416. fi
  14417. fi
  14418. # Check whether --enable-gcc-atomics was given.
  14419. if test "${enable_gcc_atomics+set}" = set; then :
  14420. enableval=$enable_gcc_atomics;
  14421. else
  14422. enable_gcc_atomics=yes
  14423. fi
  14424. if test x$enable_gcc_atomics = xyes; then
  14425. have_gcc_atomics=no
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14427. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14429. /* end confdefs.h. */
  14430. int
  14431. main ()
  14432. {
  14433. int a;
  14434. void *x, *y, *z;
  14435. __sync_lock_test_and_set(&a, 4);
  14436. __sync_lock_test_and_set(&x, y);
  14437. __sync_fetch_and_add(&a, 1);
  14438. __sync_bool_compare_and_swap(&a, 5, 10);
  14439. __sync_bool_compare_and_swap(&x, y, z);
  14440. ;
  14441. return 0;
  14442. }
  14443. _ACEOF
  14444. if ac_fn_c_try_link "$LINENO"; then :
  14445. have_gcc_atomics=yes
  14446. fi
  14447. rm -f core conftest.err conftest.$ac_objext \
  14448. conftest$ac_exeext conftest.$ac_ext
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14450. $as_echo "$have_gcc_atomics" >&6; }
  14451. if test x$have_gcc_atomics = xyes; then
  14452. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14453. else
  14454. # See if we have the minimum operation needed for GCC atomics
  14455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14456. /* end confdefs.h. */
  14457. int
  14458. main ()
  14459. {
  14460. int a;
  14461. __sync_lock_test_and_set(&a, 1);
  14462. __sync_lock_release(&a);
  14463. ;
  14464. return 0;
  14465. }
  14466. _ACEOF
  14467. if ac_fn_c_try_link "$LINENO"; then :
  14468. have_gcc_sync_lock_test_and_set=yes
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext \
  14471. conftest$ac_exeext conftest.$ac_ext
  14472. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14473. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14474. fi
  14475. fi
  14476. fi
  14477. # Standard C sources
  14478. SOURCES="$SOURCES $srcdir/src/*.c"
  14479. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14480. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14481. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14482. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14483. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14484. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14485. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14488. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14491. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14492. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14495. # Check whether --enable-atomic was given.
  14496. if test "${enable_atomic+set}" = set; then :
  14497. enableval=$enable_atomic;
  14498. else
  14499. enable_atomic=yes
  14500. fi
  14501. if test x$enable_atomic != xyes; then
  14502. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14503. fi
  14504. # Check whether --enable-audio was given.
  14505. if test "${enable_audio+set}" = set; then :
  14506. enableval=$enable_audio;
  14507. else
  14508. enable_audio=yes
  14509. fi
  14510. if test x$enable_audio != xyes; then
  14511. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14512. fi
  14513. # Check whether --enable-video was given.
  14514. if test "${enable_video+set}" = set; then :
  14515. enableval=$enable_video;
  14516. else
  14517. enable_video=yes
  14518. fi
  14519. if test x$enable_video != xyes; then
  14520. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14521. fi
  14522. # Check whether --enable-render was given.
  14523. if test "${enable_render+set}" = set; then :
  14524. enableval=$enable_render;
  14525. else
  14526. enable_render=yes
  14527. fi
  14528. if test x$enable_render != xyes; then
  14529. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14530. fi
  14531. # Check whether --enable-events was given.
  14532. if test "${enable_events+set}" = set; then :
  14533. enableval=$enable_events;
  14534. else
  14535. enable_events=yes
  14536. fi
  14537. if test x$enable_events != xyes; then
  14538. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14539. fi
  14540. # Check whether --enable-joystick was given.
  14541. if test "${enable_joystick+set}" = set; then :
  14542. enableval=$enable_joystick;
  14543. else
  14544. enable_joystick=yes
  14545. fi
  14546. if test x$enable_joystick != xyes; then
  14547. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14548. fi
  14549. # Check whether --enable-haptic was given.
  14550. if test "${enable_haptic+set}" = set; then :
  14551. enableval=$enable_haptic;
  14552. else
  14553. enable_haptic=yes
  14554. fi
  14555. if test x$enable_haptic != xyes; then
  14556. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14557. fi
  14558. # Check whether --enable-power was given.
  14559. if test "${enable_power+set}" = set; then :
  14560. enableval=$enable_power;
  14561. else
  14562. enable_power=yes
  14563. fi
  14564. if test x$enable_power != xyes; then
  14565. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14566. fi
  14567. # Check whether --enable-filesystem was given.
  14568. if test "${enable_filesystem+set}" = set; then :
  14569. enableval=$enable_filesystem;
  14570. else
  14571. enable_filesystem=yes
  14572. fi
  14573. if test x$enable_filesystem != xyes; then
  14574. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14575. fi
  14576. # Check whether --enable-threads was given.
  14577. if test "${enable_threads+set}" = set; then :
  14578. enableval=$enable_threads;
  14579. else
  14580. enable_threads=yes
  14581. fi
  14582. if test x$enable_threads != xyes; then
  14583. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14584. fi
  14585. # Check whether --enable-timers was given.
  14586. if test "${enable_timers+set}" = set; then :
  14587. enableval=$enable_timers;
  14588. else
  14589. enable_timers=yes
  14590. fi
  14591. if test x$enable_timers != xyes; then
  14592. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14593. fi
  14594. # Check whether --enable-file was given.
  14595. if test "${enable_file+set}" = set; then :
  14596. enableval=$enable_file;
  14597. else
  14598. enable_file=yes
  14599. fi
  14600. if test x$enable_file != xyes; then
  14601. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14602. fi
  14603. # Check whether --enable-loadso was given.
  14604. if test "${enable_loadso+set}" = set; then :
  14605. enableval=$enable_loadso;
  14606. else
  14607. enable_loadso=yes
  14608. fi
  14609. if test x$enable_loadso != xyes; then
  14610. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14611. fi
  14612. # Check whether --enable-cpuinfo was given.
  14613. if test "${enable_cpuinfo+set}" = set; then :
  14614. enableval=$enable_cpuinfo;
  14615. else
  14616. enable_cpuinfo=yes
  14617. fi
  14618. if test x$enable_cpuinfo != xyes; then
  14619. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14620. fi
  14621. # Check whether --enable-atomic was given.
  14622. if test "${enable_atomic+set}" = set; then :
  14623. enableval=$enable_atomic;
  14624. else
  14625. enable_atomic=yes
  14626. fi
  14627. if test x$enable_atomic != xyes; then
  14628. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14629. fi
  14630. # Check whether --enable-assembly was given.
  14631. if test "${enable_assembly+set}" = set; then :
  14632. enableval=$enable_assembly;
  14633. else
  14634. enable_assembly=yes
  14635. fi
  14636. if test x$enable_assembly = xyes; then
  14637. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14638. # Make sure that we don't generate floating point code that would
  14639. # cause illegal instruction exceptions on older processors
  14640. case "$host" in
  14641. *-*-darwin*)
  14642. # Don't need to worry about Apple hardware, it's all SSE capable
  14643. default_ssemath=yes
  14644. ;;
  14645. *64-*-*)
  14646. # x86 64-bit architectures all have SSE instructions
  14647. default_ssemath=yes
  14648. ;;
  14649. *)
  14650. default_ssemath=no
  14651. ;;
  14652. esac
  14653. # Check whether --enable-ssemath was given.
  14654. if test "${enable_ssemath+set}" = set; then :
  14655. enableval=$enable_ssemath;
  14656. else
  14657. enable_ssemath=$default_ssemath
  14658. fi
  14659. if test x$enable_ssemath = xno; then
  14660. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14661. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14662. fi
  14663. fi
  14664. # Check whether --enable-mmx was given.
  14665. if test "${enable_mmx+set}" = set; then :
  14666. enableval=$enable_mmx;
  14667. else
  14668. enable_mmx=yes
  14669. fi
  14670. if test x$enable_mmx = xyes; then
  14671. save_CFLAGS="$CFLAGS"
  14672. have_gcc_mmx=no
  14673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14674. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14675. mmx_CFLAGS="-mmmx"
  14676. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14678. /* end confdefs.h. */
  14679. #ifdef __MINGW32__
  14680. #include <_mingw.h>
  14681. #ifdef __MINGW64_VERSION_MAJOR
  14682. #include <intrin.h>
  14683. #else
  14684. #include <mmintrin.h>
  14685. #endif
  14686. #else
  14687. #include <mmintrin.h>
  14688. #endif
  14689. #ifndef __MMX__
  14690. #error Assembler CPP flag not enabled
  14691. #endif
  14692. int
  14693. main ()
  14694. {
  14695. ;
  14696. return 0;
  14697. }
  14698. _ACEOF
  14699. if ac_fn_c_try_compile "$LINENO"; then :
  14700. have_gcc_mmx=yes
  14701. fi
  14702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14704. $as_echo "$have_gcc_mmx" >&6; }
  14705. CFLAGS="$save_CFLAGS"
  14706. if test x$have_gcc_mmx = xyes; then
  14707. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14708. fi
  14709. fi
  14710. # Check whether --enable-3dnow was given.
  14711. if test "${enable_3dnow+set}" = set; then :
  14712. enableval=$enable_3dnow;
  14713. else
  14714. enable_3dnow=yes
  14715. fi
  14716. if test x$enable_3dnow = xyes; then
  14717. save_CFLAGS="$CFLAGS"
  14718. have_gcc_3dnow=no
  14719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14720. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14721. amd3dnow_CFLAGS="-m3dnow"
  14722. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14724. /* end confdefs.h. */
  14725. #include <mm3dnow.h>
  14726. #ifndef __3dNOW__
  14727. #error Assembler CPP flag not enabled
  14728. #endif
  14729. int
  14730. main ()
  14731. {
  14732. void *p = 0;
  14733. _m_prefetch(p);
  14734. ;
  14735. return 0;
  14736. }
  14737. _ACEOF
  14738. if ac_fn_c_try_link "$LINENO"; then :
  14739. have_gcc_3dnow=yes
  14740. fi
  14741. rm -f core conftest.err conftest.$ac_objext \
  14742. conftest$ac_exeext conftest.$ac_ext
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14744. $as_echo "$have_gcc_3dnow" >&6; }
  14745. CFLAGS="$save_CFLAGS"
  14746. if test x$have_gcc_3dnow = xyes; then
  14747. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14748. fi
  14749. fi
  14750. # Check whether --enable-sse was given.
  14751. if test "${enable_sse+set}" = set; then :
  14752. enableval=$enable_sse;
  14753. else
  14754. enable_sse=yes
  14755. fi
  14756. if test x$enable_sse = xyes; then
  14757. save_CFLAGS="$CFLAGS"
  14758. have_gcc_sse=no
  14759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14760. $as_echo_n "checking for GCC -msse option... " >&6; }
  14761. sse_CFLAGS="-msse"
  14762. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14764. /* end confdefs.h. */
  14765. #ifdef __MINGW32__
  14766. #include <_mingw.h>
  14767. #ifdef __MINGW64_VERSION_MAJOR
  14768. #include <intrin.h>
  14769. #else
  14770. #include <xmmintrin.h>
  14771. #endif
  14772. #else
  14773. #include <xmmintrin.h>
  14774. #endif
  14775. #ifndef __SSE__
  14776. #error Assembler CPP flag not enabled
  14777. #endif
  14778. int
  14779. main ()
  14780. {
  14781. ;
  14782. return 0;
  14783. }
  14784. _ACEOF
  14785. if ac_fn_c_try_compile "$LINENO"; then :
  14786. have_gcc_sse=yes
  14787. fi
  14788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14790. $as_echo "$have_gcc_sse" >&6; }
  14791. CFLAGS="$save_CFLAGS"
  14792. if test x$have_gcc_sse = xyes; then
  14793. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14794. fi
  14795. fi
  14796. # Check whether --enable-sse2 was given.
  14797. if test "${enable_sse2+set}" = set; then :
  14798. enableval=$enable_sse2;
  14799. else
  14800. enable_sse2=$default_ssemath
  14801. fi
  14802. if test x$enable_sse2 = xyes; then
  14803. save_CFLAGS="$CFLAGS"
  14804. have_gcc_sse2=no
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14806. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14807. sse2_CFLAGS="-msse2"
  14808. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14810. /* end confdefs.h. */
  14811. #ifdef __MINGW32__
  14812. #include <_mingw.h>
  14813. #ifdef __MINGW64_VERSION_MAJOR
  14814. #include <intrin.h>
  14815. #else
  14816. #include <emmintrin.h>
  14817. #endif
  14818. #else
  14819. #include <emmintrin.h>
  14820. #endif
  14821. #ifndef __SSE2__
  14822. #error Assembler CPP flag not enabled
  14823. #endif
  14824. int
  14825. main ()
  14826. {
  14827. ;
  14828. return 0;
  14829. }
  14830. _ACEOF
  14831. if ac_fn_c_try_compile "$LINENO"; then :
  14832. have_gcc_sse2=yes
  14833. fi
  14834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14836. $as_echo "$have_gcc_sse2" >&6; }
  14837. CFLAGS="$save_CFLAGS"
  14838. if test x$have_gcc_sse2 = xyes; then
  14839. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14840. fi
  14841. fi
  14842. # Check whether --enable-altivec was given.
  14843. if test "${enable_altivec+set}" = set; then :
  14844. enableval=$enable_altivec;
  14845. else
  14846. enable_altivec=yes
  14847. fi
  14848. if test x$enable_altivec = xyes; then
  14849. save_CFLAGS="$CFLAGS"
  14850. have_gcc_altivec=no
  14851. have_altivec_h_hdr=no
  14852. altivec_CFLAGS="-maltivec"
  14853. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14855. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14857. /* end confdefs.h. */
  14858. #include <altivec.h>
  14859. vector unsigned int vzero() {
  14860. return vec_splat_u32(0);
  14861. }
  14862. int
  14863. main ()
  14864. {
  14865. ;
  14866. return 0;
  14867. }
  14868. _ACEOF
  14869. if ac_fn_c_try_compile "$LINENO"; then :
  14870. have_gcc_altivec=yes
  14871. have_altivec_h_hdr=yes
  14872. fi
  14873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14875. $as_echo "$have_gcc_altivec" >&6; }
  14876. if test x$have_gcc_altivec = xno; then
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14878. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14880. /* end confdefs.h. */
  14881. vector unsigned int vzero() {
  14882. return vec_splat_u32(0);
  14883. }
  14884. int
  14885. main ()
  14886. {
  14887. ;
  14888. return 0;
  14889. }
  14890. _ACEOF
  14891. if ac_fn_c_try_compile "$LINENO"; then :
  14892. have_gcc_altivec=yes
  14893. fi
  14894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14896. $as_echo "$have_gcc_altivec" >&6; }
  14897. fi
  14898. if test x$have_gcc_altivec = xno; then
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14900. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14901. altivec_CFLAGS="-faltivec"
  14902. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14904. /* end confdefs.h. */
  14905. #include <altivec.h>
  14906. vector unsigned int vzero() {
  14907. return vec_splat_u32(0);
  14908. }
  14909. int
  14910. main ()
  14911. {
  14912. ;
  14913. return 0;
  14914. }
  14915. _ACEOF
  14916. if ac_fn_c_try_compile "$LINENO"; then :
  14917. have_gcc_altivec=yes
  14918. have_altivec_h_hdr=yes
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14922. $as_echo "$have_gcc_altivec" >&6; }
  14923. fi
  14924. if test x$have_gcc_altivec = xno; then
  14925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14926. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14928. /* end confdefs.h. */
  14929. vector unsigned int vzero() {
  14930. return vec_splat_u32(0);
  14931. }
  14932. int
  14933. main ()
  14934. {
  14935. ;
  14936. return 0;
  14937. }
  14938. _ACEOF
  14939. if ac_fn_c_try_compile "$LINENO"; then :
  14940. have_gcc_altivec=yes
  14941. fi
  14942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14944. $as_echo "$have_gcc_altivec" >&6; }
  14945. fi
  14946. CFLAGS="$save_CFLAGS"
  14947. if test x$have_gcc_altivec = xyes; then
  14948. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14949. if test x$have_altivec_h_hdr = xyes; then
  14950. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14951. fi
  14952. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14953. fi
  14954. fi
  14955. fi
  14956. CheckOSS()
  14957. {
  14958. # Check whether --enable-oss was given.
  14959. if test "${enable_oss+set}" = set; then :
  14960. enableval=$enable_oss;
  14961. else
  14962. enable_oss=maybe
  14963. fi
  14964. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14965. # use sndio instead. So on there, we default to disabled. You can force
  14966. # it on if you really want, though.
  14967. if test x$enable_oss = xmaybe; then
  14968. enable_oss=yes
  14969. case "$host" in
  14970. *-*-openbsd*)
  14971. enable_oss=no;;
  14972. esac
  14973. fi
  14974. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  14976. $as_echo_n "checking for OSS audio support... " >&6; }
  14977. have_oss=no
  14978. if test x$have_oss != xyes; then
  14979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14980. /* end confdefs.h. */
  14981. #include <sys/soundcard.h>
  14982. int
  14983. main ()
  14984. {
  14985. int arg = SNDCTL_DSP_SETFRAGMENT;
  14986. ;
  14987. return 0;
  14988. }
  14989. _ACEOF
  14990. if ac_fn_c_try_compile "$LINENO"; then :
  14991. have_oss=yes
  14992. fi
  14993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14994. fi
  14995. if test x$have_oss != xyes; then
  14996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14997. /* end confdefs.h. */
  14998. #include <soundcard.h>
  14999. int
  15000. main ()
  15001. {
  15002. int arg = SNDCTL_DSP_SETFRAGMENT;
  15003. ;
  15004. return 0;
  15005. }
  15006. _ACEOF
  15007. if ac_fn_c_try_compile "$LINENO"; then :
  15008. have_oss=yes
  15009. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15010. fi
  15011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15012. fi
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15014. $as_echo "$have_oss" >&6; }
  15015. if test x$have_oss = xyes; then
  15016. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15017. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15018. have_audio=yes
  15019. # We may need to link with ossaudio emulation library
  15020. case "$host" in
  15021. *-*-openbsd*|*-*-netbsd*)
  15022. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15023. esac
  15024. fi
  15025. fi
  15026. }
  15027. CheckALSA()
  15028. {
  15029. # Check whether --enable-alsa was given.
  15030. if test "${enable_alsa+set}" = set; then :
  15031. enableval=$enable_alsa;
  15032. else
  15033. enable_alsa=yes
  15034. fi
  15035. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15036. alsa_save_CFLAGS="$CFLAGS"
  15037. alsa_save_LDFLAGS="$LDFLAGS"
  15038. alsa_save_LIBS="$LIBS"
  15039. alsa_found=yes
  15040. # Check whether --with-alsa-prefix was given.
  15041. if test "${with_alsa_prefix+set}" = set; then :
  15042. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15043. else
  15044. alsa_prefix=""
  15045. fi
  15046. # Check whether --with-alsa-inc-prefix was given.
  15047. if test "${with_alsa_inc_prefix+set}" = set; then :
  15048. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15049. else
  15050. alsa_inc_prefix=""
  15051. fi
  15052. # Check whether --enable-alsatest was given.
  15053. if test "${enable_alsatest+set}" = set; then :
  15054. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15055. else
  15056. enable_alsatest=yes
  15057. fi
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15059. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15060. if test "$alsa_inc_prefix" != "" ; then
  15061. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15062. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15063. fi
  15064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15065. $as_echo "$ALSA_CFLAGS" >&6; }
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15067. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15068. if test "$alsa_prefix" != "" ; then
  15069. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15070. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15071. fi
  15072. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15073. LIBS=`echo $LIBS | sed 's/-lm//'`
  15074. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15075. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15076. LIBS=`echo $LIBS | sed 's/ //'`
  15077. LIBS="$ALSA_LIBS $LIBS"
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15079. $as_echo "$ALSA_LIBS" >&6; }
  15080. min_alsa_version=0.9.0
  15081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15082. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15083. no_alsa=""
  15084. alsa_min_major_version=`echo $min_alsa_version | \
  15085. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15086. alsa_min_minor_version=`echo $min_alsa_version | \
  15087. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15088. alsa_min_micro_version=`echo $min_alsa_version | \
  15089. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15090. ac_ext=c
  15091. ac_cpp='$CPP $CPPFLAGS'
  15092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15096. /* end confdefs.h. */
  15097. #include <alsa/asoundlib.h>
  15098. int
  15099. main ()
  15100. {
  15101. /* ensure backward compatibility */
  15102. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15103. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15104. #endif
  15105. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15106. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15107. #endif
  15108. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15109. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15110. #endif
  15111. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15112. exit(0);
  15113. # else
  15114. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15115. # error not present
  15116. # endif
  15117. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15118. exit(0);
  15119. # else
  15120. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15121. # error not present
  15122. # endif
  15123. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15124. # error not present
  15125. # endif
  15126. # endif
  15127. # endif
  15128. exit(0);
  15129. ;
  15130. return 0;
  15131. }
  15132. _ACEOF
  15133. if ac_fn_c_try_compile "$LINENO"; then :
  15134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15135. $as_echo "found." >&6; }
  15136. else
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15138. $as_echo "not present." >&6; }
  15139. alsa_found=no
  15140. fi
  15141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15142. ac_ext=c
  15143. ac_cpp='$CPP $CPPFLAGS'
  15144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15147. if test "x$enable_alsatest" = "xyes"; then
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15149. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15150. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15151. $as_echo_n "(cached) " >&6
  15152. else
  15153. ac_check_lib_save_LIBS=$LIBS
  15154. LIBS="-lasound $LIBS"
  15155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15156. /* end confdefs.h. */
  15157. /* Override any GCC internal prototype to avoid an error.
  15158. Use char because int might match the return type of a GCC
  15159. builtin and then its argument prototype would still apply. */
  15160. #ifdef __cplusplus
  15161. extern "C"
  15162. #endif
  15163. char snd_ctl_open ();
  15164. int
  15165. main ()
  15166. {
  15167. return snd_ctl_open ();
  15168. ;
  15169. return 0;
  15170. }
  15171. _ACEOF
  15172. if ac_fn_c_try_link "$LINENO"; then :
  15173. ac_cv_lib_asound_snd_ctl_open=yes
  15174. else
  15175. ac_cv_lib_asound_snd_ctl_open=no
  15176. fi
  15177. rm -f core conftest.err conftest.$ac_objext \
  15178. conftest$ac_exeext conftest.$ac_ext
  15179. LIBS=$ac_check_lib_save_LIBS
  15180. fi
  15181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15182. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15183. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15184. cat >>confdefs.h <<_ACEOF
  15185. #define HAVE_LIBASOUND 1
  15186. _ACEOF
  15187. LIBS="-lasound $LIBS"
  15188. else
  15189. alsa_found=no
  15190. fi
  15191. fi
  15192. if test "x$alsa_found" = "xyes" ; then
  15193. have_alsa=yes
  15194. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15195. LIBS=`echo $LIBS | sed 's/ //'`
  15196. LIBS="-lasound $LIBS"
  15197. fi
  15198. if test "x$alsa_found" = "xno" ; then
  15199. have_alsa=no
  15200. CFLAGS="$alsa_save_CFLAGS"
  15201. LDFLAGS="$alsa_save_LDFLAGS"
  15202. LIBS="$alsa_save_LIBS"
  15203. ALSA_CFLAGS=""
  15204. ALSA_LIBS=""
  15205. fi
  15206. # Restore all flags from before the ALSA detection runs
  15207. CFLAGS="$alsa_save_CFLAGS"
  15208. LDFLAGS="$alsa_save_LDFLAGS"
  15209. LIBS="$alsa_save_LIBS"
  15210. if test x$have_alsa = xyes; then
  15211. # Check whether --enable-alsa-shared was given.
  15212. if test "${enable_alsa_shared+set}" = set; then :
  15213. enableval=$enable_alsa_shared;
  15214. else
  15215. enable_alsa_shared=yes
  15216. fi
  15217. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15218. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15219. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15220. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15221. if test x$have_loadso != xyes && \
  15222. test x$enable_alsa_shared = xyes; then
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15224. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15225. fi
  15226. if test x$have_loadso = xyes && \
  15227. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15228. echo "-- dynamic libasound -> $alsa_lib"
  15229. cat >>confdefs.h <<_ACEOF
  15230. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15231. _ACEOF
  15232. else
  15233. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15234. fi
  15235. have_audio=yes
  15236. fi
  15237. fi
  15238. }
  15239. CheckESD()
  15240. {
  15241. # Check whether --enable-esd was given.
  15242. if test "${enable_esd+set}" = set; then :
  15243. enableval=$enable_esd;
  15244. else
  15245. enable_esd=yes
  15246. fi
  15247. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15248. # Check whether --with-esd-prefix was given.
  15249. if test "${with_esd_prefix+set}" = set; then :
  15250. withval=$with_esd_prefix; esd_prefix="$withval"
  15251. else
  15252. esd_prefix=""
  15253. fi
  15254. # Check whether --with-esd-exec-prefix was given.
  15255. if test "${with_esd_exec_prefix+set}" = set; then :
  15256. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15257. else
  15258. esd_exec_prefix=""
  15259. fi
  15260. # Check whether --enable-esdtest was given.
  15261. if test "${enable_esdtest+set}" = set; then :
  15262. enableval=$enable_esdtest;
  15263. else
  15264. enable_esdtest=yes
  15265. fi
  15266. if test x$esd_exec_prefix != x ; then
  15267. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15268. if test x${ESD_CONFIG+set} != xset ; then
  15269. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15270. fi
  15271. fi
  15272. if test x$esd_prefix != x ; then
  15273. esd_args="$esd_args --prefix=$esd_prefix"
  15274. if test x${ESD_CONFIG+set} != xset ; then
  15275. ESD_CONFIG=$esd_prefix/bin/esd-config
  15276. fi
  15277. fi
  15278. # Extract the first word of "esd-config", so it can be a program name with args.
  15279. set dummy esd-config; ac_word=$2
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15281. $as_echo_n "checking for $ac_word... " >&6; }
  15282. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15283. $as_echo_n "(cached) " >&6
  15284. else
  15285. case $ESD_CONFIG in
  15286. [\\/]* | ?:[\\/]*)
  15287. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15288. ;;
  15289. *)
  15290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15291. for as_dir in $PATH
  15292. do
  15293. IFS=$as_save_IFS
  15294. test -z "$as_dir" && as_dir=.
  15295. for ac_exec_ext in '' $ac_executable_extensions; do
  15296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15297. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15299. break 2
  15300. fi
  15301. done
  15302. done
  15303. IFS=$as_save_IFS
  15304. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15305. ;;
  15306. esac
  15307. fi
  15308. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15309. if test -n "$ESD_CONFIG"; then
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15311. $as_echo "$ESD_CONFIG" >&6; }
  15312. else
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15314. $as_echo "no" >&6; }
  15315. fi
  15316. min_esd_version=0.2.8
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15318. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15319. no_esd=""
  15320. if test "$ESD_CONFIG" = "no" ; then
  15321. no_esd=yes
  15322. else
  15323. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15324. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15325. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15326. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15327. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15328. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15329. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15330. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15331. if test "x$enable_esdtest" = "xyes" ; then
  15332. ac_save_CFLAGS="$CFLAGS"
  15333. ac_save_LIBS="$LIBS"
  15334. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15335. LIBS="$LIBS $ESD_LIBS"
  15336. rm -f conf.esdtest
  15337. if test "$cross_compiling" = yes; then :
  15338. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15339. else
  15340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15341. /* end confdefs.h. */
  15342. #include <stdio.h>
  15343. #include <stdlib.h>
  15344. #include <string.h>
  15345. #include <esd.h>
  15346. char*
  15347. my_strdup (char *str)
  15348. {
  15349. char *new_str;
  15350. if (str)
  15351. {
  15352. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15353. strcpy (new_str, str);
  15354. }
  15355. else
  15356. new_str = NULL;
  15357. return new_str;
  15358. }
  15359. int main ()
  15360. {
  15361. int major, minor, micro;
  15362. char *tmp_version;
  15363. system ("touch conf.esdtest");
  15364. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15365. tmp_version = my_strdup("$min_esd_version");
  15366. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15367. printf("%s, bad version string\n", "$min_esd_version");
  15368. exit(1);
  15369. }
  15370. if (($esd_major_version > major) ||
  15371. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15372. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15373. {
  15374. return 0;
  15375. }
  15376. else
  15377. {
  15378. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15379. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15380. printf("*** best to upgrade to the required version.\n");
  15381. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15382. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15383. printf("*** config.cache before re-running configure\n");
  15384. return 1;
  15385. }
  15386. }
  15387. _ACEOF
  15388. if ac_fn_c_try_run "$LINENO"; then :
  15389. else
  15390. no_esd=yes
  15391. fi
  15392. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15393. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15394. fi
  15395. CFLAGS="$ac_save_CFLAGS"
  15396. LIBS="$ac_save_LIBS"
  15397. fi
  15398. fi
  15399. if test "x$no_esd" = x ; then
  15400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15401. $as_echo "yes" >&6; }
  15402. have_esd=yes
  15403. else
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15405. $as_echo "no" >&6; }
  15406. if test "$ESD_CONFIG" = "no" ; then
  15407. echo "*** The esd-config script installed by ESD could not be found"
  15408. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15409. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15410. echo "*** full path to esd-config."
  15411. else
  15412. if test -f conf.esdtest ; then
  15413. :
  15414. else
  15415. echo "*** Could not run ESD test program, checking why..."
  15416. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15417. LIBS="$LIBS $ESD_LIBS"
  15418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15419. /* end confdefs.h. */
  15420. #include <stdio.h>
  15421. #include <esd.h>
  15422. int
  15423. main ()
  15424. {
  15425. return 0;
  15426. ;
  15427. return 0;
  15428. }
  15429. _ACEOF
  15430. if ac_fn_c_try_link "$LINENO"; then :
  15431. echo "*** The test program compiled, but did not run. This usually means"
  15432. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15433. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15434. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15435. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15436. echo "*** is required on your system"
  15437. echo "***"
  15438. echo "*** If you have an old version installed, it is best to remove it, although"
  15439. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15440. else
  15441. echo "*** The test program failed to compile or link. See the file config.log for the"
  15442. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15443. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15444. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15445. fi
  15446. rm -f core conftest.err conftest.$ac_objext \
  15447. conftest$ac_exeext conftest.$ac_ext
  15448. CFLAGS="$ac_save_CFLAGS"
  15449. LIBS="$ac_save_LIBS"
  15450. fi
  15451. fi
  15452. ESD_CFLAGS=""
  15453. ESD_LIBS=""
  15454. have_esd=no
  15455. fi
  15456. rm -f conf.esdtest
  15457. if test x$have_esd = xyes; then
  15458. # Check whether --enable-esd-shared was given.
  15459. if test "${enable_esd_shared+set}" = set; then :
  15460. enableval=$enable_esd_shared;
  15461. else
  15462. enable_esd_shared=yes
  15463. fi
  15464. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15465. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15466. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15467. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15468. if test x$have_loadso != xyes && \
  15469. test x$enable_esd_shared = xyes; then
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15471. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15472. fi
  15473. if test x$have_loadso = xyes && \
  15474. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15475. echo "-- dynamic libesd -> $esd_lib"
  15476. cat >>confdefs.h <<_ACEOF
  15477. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15478. _ACEOF
  15479. else
  15480. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15481. fi
  15482. have_audio=yes
  15483. fi
  15484. fi
  15485. }
  15486. CheckPulseAudio()
  15487. {
  15488. # Check whether --enable-pulseaudio was given.
  15489. if test "${enable_pulseaudio+set}" = set; then :
  15490. enableval=$enable_pulseaudio;
  15491. else
  15492. enable_pulseaudio=yes
  15493. fi
  15494. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15495. audio_pulseaudio=no
  15496. PULSEAUDIO_REQUIRED_VERSION=0.9
  15497. # Extract the first word of "pkg-config", so it can be a program name with args.
  15498. set dummy pkg-config; ac_word=$2
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15500. $as_echo_n "checking for $ac_word... " >&6; }
  15501. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15502. $as_echo_n "(cached) " >&6
  15503. else
  15504. case $PKG_CONFIG in
  15505. [\\/]* | ?:[\\/]*)
  15506. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15507. ;;
  15508. *)
  15509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15510. for as_dir in $PATH
  15511. do
  15512. IFS=$as_save_IFS
  15513. test -z "$as_dir" && as_dir=.
  15514. for ac_exec_ext in '' $ac_executable_extensions; do
  15515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15516. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15518. break 2
  15519. fi
  15520. done
  15521. done
  15522. IFS=$as_save_IFS
  15523. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15524. ;;
  15525. esac
  15526. fi
  15527. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15528. if test -n "$PKG_CONFIG"; then
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15530. $as_echo "$PKG_CONFIG" >&6; }
  15531. else
  15532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15533. $as_echo "no" >&6; }
  15534. fi
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15536. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15537. if test x$PKG_CONFIG != xno; then
  15538. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15539. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15540. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15541. audio_pulseaudio=yes
  15542. fi
  15543. fi
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15545. $as_echo "$audio_pulseaudio" >&6; }
  15546. if test x$audio_pulseaudio = xyes; then
  15547. # Check whether --enable-pulseaudio-shared was given.
  15548. if test "${enable_pulseaudio_shared+set}" = set; then :
  15549. enableval=$enable_pulseaudio_shared;
  15550. else
  15551. enable_pulseaudio_shared=yes
  15552. fi
  15553. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15554. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15555. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15556. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15557. if test x$have_loadso != xyes && \
  15558. test x$enable_pulseaudio_shared = xyes; then
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15560. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15561. fi
  15562. if test x$have_loadso = xyes && \
  15563. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15564. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15565. cat >>confdefs.h <<_ACEOF
  15566. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15567. _ACEOF
  15568. case "$host" in
  15569. # On Solaris, pulseaudio must be linked deferred explicitly
  15570. # to prevent undefined symbol failures.
  15571. *-*-solaris*)
  15572. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15574. esac
  15575. else
  15576. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15577. fi
  15578. have_audio=yes
  15579. fi
  15580. fi
  15581. }
  15582. CheckARTSC()
  15583. {
  15584. # Check whether --enable-arts was given.
  15585. if test "${enable_arts+set}" = set; then :
  15586. enableval=$enable_arts;
  15587. else
  15588. enable_arts=yes
  15589. fi
  15590. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15591. # Extract the first word of "artsc-config", so it can be a program name with args.
  15592. set dummy artsc-config; ac_word=$2
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15594. $as_echo_n "checking for $ac_word... " >&6; }
  15595. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15596. $as_echo_n "(cached) " >&6
  15597. else
  15598. case $ARTSCONFIG in
  15599. [\\/]* | ?:[\\/]*)
  15600. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15601. ;;
  15602. *)
  15603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15604. for as_dir in $PATH
  15605. do
  15606. IFS=$as_save_IFS
  15607. test -z "$as_dir" && as_dir=.
  15608. for ac_exec_ext in '' $ac_executable_extensions; do
  15609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15610. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15612. break 2
  15613. fi
  15614. done
  15615. done
  15616. IFS=$as_save_IFS
  15617. ;;
  15618. esac
  15619. fi
  15620. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15621. if test -n "$ARTSCONFIG"; then
  15622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15623. $as_echo "$ARTSCONFIG" >&6; }
  15624. else
  15625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15626. $as_echo "no" >&6; }
  15627. fi
  15628. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15629. : # arts isn't installed
  15630. else
  15631. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15632. ARTS_LIBS=`$ARTSCONFIG --libs`
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15634. $as_echo_n "checking for aRts development environment... " >&6; }
  15635. audio_arts=no
  15636. save_CFLAGS="$CFLAGS"
  15637. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15639. /* end confdefs.h. */
  15640. #include <artsc.h>
  15641. int
  15642. main ()
  15643. {
  15644. arts_stream_t stream;
  15645. ;
  15646. return 0;
  15647. }
  15648. _ACEOF
  15649. if ac_fn_c_try_compile "$LINENO"; then :
  15650. audio_arts=yes
  15651. fi
  15652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15653. CFLAGS="$save_CFLAGS"
  15654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15655. $as_echo "$audio_arts" >&6; }
  15656. if test x$audio_arts = xyes; then
  15657. # Check whether --enable-arts-shared was given.
  15658. if test "${enable_arts_shared+set}" = set; then :
  15659. enableval=$enable_arts_shared;
  15660. else
  15661. enable_arts_shared=yes
  15662. fi
  15663. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15664. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15665. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15666. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15667. if test x$have_loadso != xyes && \
  15668. test x$enable_arts_shared = xyes; then
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15670. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15671. fi
  15672. if test x$have_loadso = xyes && \
  15673. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15674. echo "-- dynamic libartsc -> $arts_lib"
  15675. cat >>confdefs.h <<_ACEOF
  15676. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15677. _ACEOF
  15678. else
  15679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15680. fi
  15681. have_audio=yes
  15682. fi
  15683. fi
  15684. fi
  15685. }
  15686. CheckNAS()
  15687. {
  15688. # Check whether --enable-nas was given.
  15689. if test "${enable_nas+set}" = set; then :
  15690. enableval=$enable_nas;
  15691. else
  15692. enable_nas=yes
  15693. fi
  15694. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15695. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15696. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15697. have_nas_hdr=yes
  15698. fi
  15699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15700. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15701. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15702. $as_echo_n "(cached) " >&6
  15703. else
  15704. ac_check_lib_save_LIBS=$LIBS
  15705. LIBS="-laudio $LIBS"
  15706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15707. /* end confdefs.h. */
  15708. /* Override any GCC internal prototype to avoid an error.
  15709. Use char because int might match the return type of a GCC
  15710. builtin and then its argument prototype would still apply. */
  15711. #ifdef __cplusplus
  15712. extern "C"
  15713. #endif
  15714. char AuOpenServer ();
  15715. int
  15716. main ()
  15717. {
  15718. return AuOpenServer ();
  15719. ;
  15720. return 0;
  15721. }
  15722. _ACEOF
  15723. if ac_fn_c_try_link "$LINENO"; then :
  15724. ac_cv_lib_audio_AuOpenServer=yes
  15725. else
  15726. ac_cv_lib_audio_AuOpenServer=no
  15727. fi
  15728. rm -f core conftest.err conftest.$ac_objext \
  15729. conftest$ac_exeext conftest.$ac_ext
  15730. LIBS=$ac_check_lib_save_LIBS
  15731. fi
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15733. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15734. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15735. have_nas_lib=yes
  15736. fi
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15738. $as_echo_n "checking for NAS audio support... " >&6; }
  15739. have_nas=no
  15740. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15741. have_nas=yes
  15742. NAS_LIBS="-laudio"
  15743. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15744. have_nas=yes
  15745. NAS_CFLAGS="-I/usr/X11R6/include/"
  15746. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15747. fi
  15748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15749. $as_echo "$have_nas" >&6; }
  15750. if test x$have_nas = xyes; then
  15751. # Check whether --enable-nas-shared was given.
  15752. if test "${enable_nas_shared+set}" = set; then :
  15753. enableval=$enable_nas_shared;
  15754. else
  15755. enable_nas_shared=yes
  15756. fi
  15757. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15758. if test x$have_loadso != xyes && \
  15759. test x$enable_nas_shared = xyes; then
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15761. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15762. fi
  15763. if test x$have_loadso = xyes && \
  15764. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15765. echo "-- dynamic libaudio -> $nas_lib"
  15766. cat >>confdefs.h <<_ACEOF
  15767. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15768. _ACEOF
  15769. else
  15770. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15771. fi
  15772. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15773. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15774. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15775. have_audio=yes
  15776. fi
  15777. fi
  15778. }
  15779. CheckSNDIO()
  15780. {
  15781. # Check whether --enable-sndio was given.
  15782. if test "${enable_sndio+set}" = set; then :
  15783. enableval=$enable_sndio;
  15784. else
  15785. enable_sndio=yes
  15786. fi
  15787. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15788. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15789. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15790. have_sndio_hdr=yes
  15791. fi
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15793. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15794. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15795. $as_echo_n "(cached) " >&6
  15796. else
  15797. ac_check_lib_save_LIBS=$LIBS
  15798. LIBS="-lsndio $LIBS"
  15799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15800. /* end confdefs.h. */
  15801. /* Override any GCC internal prototype to avoid an error.
  15802. Use char because int might match the return type of a GCC
  15803. builtin and then its argument prototype would still apply. */
  15804. #ifdef __cplusplus
  15805. extern "C"
  15806. #endif
  15807. char sio_open ();
  15808. int
  15809. main ()
  15810. {
  15811. return sio_open ();
  15812. ;
  15813. return 0;
  15814. }
  15815. _ACEOF
  15816. if ac_fn_c_try_link "$LINENO"; then :
  15817. ac_cv_lib_sndio_sio_open=yes
  15818. else
  15819. ac_cv_lib_sndio_sio_open=no
  15820. fi
  15821. rm -f core conftest.err conftest.$ac_objext \
  15822. conftest$ac_exeext conftest.$ac_ext
  15823. LIBS=$ac_check_lib_save_LIBS
  15824. fi
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15826. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15827. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15828. have_sndio_lib=yes
  15829. fi
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15831. $as_echo_n "checking for sndio audio support... " >&6; }
  15832. have_sndio=no
  15833. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15834. have_sndio=yes
  15835. SNDIO_LIBS="-lsndio"
  15836. fi
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15838. $as_echo "$have_sndio" >&6; }
  15839. if test x$have_sndio = xyes; then
  15840. # Check whether --enable-sndio-shared was given.
  15841. if test "${enable_sndio_shared+set}" = set; then :
  15842. enableval=$enable_sndio_shared;
  15843. else
  15844. enable_sndio_shared=yes
  15845. fi
  15846. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15847. if test x$have_loadso != xyes && \
  15848. test x$enable_sndio_shared = xyes; then
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15850. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15851. fi
  15852. if test x$have_loadso = xyes && \
  15853. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15854. echo "-- dynamic libsndio -> $sndio_lib"
  15855. cat >>confdefs.h <<_ACEOF
  15856. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15857. _ACEOF
  15858. else
  15859. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15860. fi
  15861. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15862. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15863. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15864. have_audio=yes
  15865. fi
  15866. fi
  15867. }
  15868. CheckDiskAudio()
  15869. {
  15870. # Check whether --enable-diskaudio was given.
  15871. if test "${enable_diskaudio+set}" = set; then :
  15872. enableval=$enable_diskaudio;
  15873. else
  15874. enable_diskaudio=yes
  15875. fi
  15876. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15877. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15878. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15879. fi
  15880. }
  15881. CheckDummyAudio()
  15882. {
  15883. # Check whether --enable-dummyaudio was given.
  15884. if test "${enable_dummyaudio+set}" = set; then :
  15885. enableval=$enable_dummyaudio;
  15886. else
  15887. enable_dummyaudio=yes
  15888. fi
  15889. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15890. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15891. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15892. fi
  15893. }
  15894. CheckVisibilityHidden()
  15895. {
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15897. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15898. have_gcc_fvisibility=no
  15899. visibility_CFLAGS="-fvisibility=hidden"
  15900. save_CFLAGS="$CFLAGS"
  15901. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15903. /* end confdefs.h. */
  15904. #if !defined(__GNUC__) || __GNUC__ < 4
  15905. #error SDL only uses visibility attributes in GCC 4 or newer
  15906. #endif
  15907. int
  15908. main ()
  15909. {
  15910. ;
  15911. return 0;
  15912. }
  15913. _ACEOF
  15914. if ac_fn_c_try_compile "$LINENO"; then :
  15915. have_gcc_fvisibility=yes
  15916. fi
  15917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15919. $as_echo "$have_gcc_fvisibility" >&6; }
  15920. CFLAGS="$save_CFLAGS"
  15921. if test x$have_gcc_fvisibility = xyes; then
  15922. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15923. fi
  15924. }
  15925. CheckStackBoundary()
  15926. {
  15927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15928. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15929. have_gcc_preferred_stack_boundary=no
  15930. save_CFLAGS="$CFLAGS"
  15931. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15933. /* end confdefs.h. */
  15934. int x = 0;
  15935. int
  15936. main ()
  15937. {
  15938. ;
  15939. return 0;
  15940. }
  15941. _ACEOF
  15942. if ac_fn_c_try_compile "$LINENO"; then :
  15943. have_gcc_preferred_stack_boundary=yes
  15944. fi
  15945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15947. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15948. CFLAGS="$save_CFLAGS"
  15949. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15950. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15951. fi
  15952. }
  15953. CheckWarnAll()
  15954. {
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  15956. $as_echo_n "checking for GCC -Wall option... " >&6; }
  15957. have_gcc_Wall=no
  15958. save_CFLAGS="$CFLAGS"
  15959. CFLAGS="$save_CFLAGS -Wall"
  15960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15961. /* end confdefs.h. */
  15962. int x = 0;
  15963. int
  15964. main ()
  15965. {
  15966. ;
  15967. return 0;
  15968. }
  15969. _ACEOF
  15970. if ac_fn_c_try_compile "$LINENO"; then :
  15971. have_gcc_Wall=yes
  15972. fi
  15973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  15975. $as_echo "$have_gcc_Wall" >&6; }
  15976. CFLAGS="$save_CFLAGS"
  15977. if test x$have_gcc_Wall = xyes; then
  15978. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  15979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  15980. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  15981. need_gcc_Wno_multichar=no
  15982. case "$host" in
  15983. *-*-haiku*)
  15984. need_gcc_Wno_multichar=yes
  15985. ;;
  15986. esac
  15987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  15988. $as_echo "$need_gcc_Wno_multichar" >&6; }
  15989. if test x$need_gcc_Wno_multichar = xyes; then
  15990. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  15991. fi
  15992. fi
  15993. }
  15994. CheckWayland()
  15995. {
  15996. # Check whether --enable-video-wayland was given.
  15997. if test "${enable_video_wayland+set}" = set; then :
  15998. enableval=$enable_video_wayland;
  15999. else
  16000. enable_video_wayland=yes
  16001. fi
  16002. # Check whether --enable-video-wayland-qt-touch was given.
  16003. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16004. enableval=$enable_video_wayland_qt_touch;
  16005. else
  16006. enable_video_wayland_qt_touch=yes
  16007. fi
  16008. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16009. # Extract the first word of "pkg-config", so it can be a program name with args.
  16010. set dummy pkg-config; ac_word=$2
  16011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16012. $as_echo_n "checking for $ac_word... " >&6; }
  16013. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16014. $as_echo_n "(cached) " >&6
  16015. else
  16016. case $PKG_CONFIG in
  16017. [\\/]* | ?:[\\/]*)
  16018. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16019. ;;
  16020. *)
  16021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16022. for as_dir in $PATH
  16023. do
  16024. IFS=$as_save_IFS
  16025. test -z "$as_dir" && as_dir=.
  16026. for ac_exec_ext in '' $ac_executable_extensions; do
  16027. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16028. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16030. break 2
  16031. fi
  16032. done
  16033. done
  16034. IFS=$as_save_IFS
  16035. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16036. ;;
  16037. esac
  16038. fi
  16039. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16040. if test -n "$PKG_CONFIG"; then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16042. $as_echo "$PKG_CONFIG" >&6; }
  16043. else
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16045. $as_echo "no" >&6; }
  16046. fi
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16048. $as_echo_n "checking for Wayland support... " >&6; }
  16049. video_wayland=no
  16050. if test x$PKG_CONFIG != xno; then
  16051. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16052. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor egl xkbcommon`
  16053. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor egl xkbcommon`
  16054. video_wayland=yes
  16055. fi
  16056. fi
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16058. $as_echo "$video_wayland" >&6; }
  16059. if test x$video_wayland = xyes; then
  16060. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16061. if test x$enable_video_wayland_qt_touch = xyes; then
  16062. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16063. fi
  16064. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16065. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16067. have_video=yes
  16068. fi
  16069. fi
  16070. }
  16071. CheckX11()
  16072. {
  16073. # Check whether --enable-video-x11 was given.
  16074. if test "${enable_video_x11+set}" = set; then :
  16075. enableval=$enable_video_x11;
  16076. else
  16077. enable_video_x11=yes
  16078. fi
  16079. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16080. case "$host" in
  16081. *-*-darwin*)
  16082. # This isn't necessary for X11, but fixes GLX detection
  16083. if test "x$x_includes" = xNONE && \
  16084. test "x$x_libraries" = xNONE && \
  16085. test -d /usr/X11R6/include && \
  16086. test -d /usr/X11R6/lib; then
  16087. x_includes="/usr/X11R6/include"
  16088. x_libraries="/usr/X11R6/lib"
  16089. fi
  16090. ;;
  16091. esac
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16093. $as_echo_n "checking for X... " >&6; }
  16094. # Check whether --with-x was given.
  16095. if test "${with_x+set}" = set; then :
  16096. withval=$with_x;
  16097. fi
  16098. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16099. if test "x$with_x" = xno; then
  16100. # The user explicitly disabled X.
  16101. have_x=disabled
  16102. else
  16103. case $x_includes,$x_libraries in #(
  16104. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16105. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16106. $as_echo_n "(cached) " >&6
  16107. else
  16108. # One or both of the vars are not set, and there is no cached value.
  16109. ac_x_includes=no ac_x_libraries=no
  16110. rm -f -r conftest.dir
  16111. if mkdir conftest.dir; then
  16112. cd conftest.dir
  16113. cat >Imakefile <<'_ACEOF'
  16114. incroot:
  16115. @echo incroot='${INCROOT}'
  16116. usrlibdir:
  16117. @echo usrlibdir='${USRLIBDIR}'
  16118. libdir:
  16119. @echo libdir='${LIBDIR}'
  16120. _ACEOF
  16121. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16122. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16123. for ac_var in incroot usrlibdir libdir; do
  16124. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16125. done
  16126. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16127. for ac_extension in a so sl dylib la dll; do
  16128. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16129. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16130. ac_im_usrlibdir=$ac_im_libdir; break
  16131. fi
  16132. done
  16133. # Screen out bogus values from the imake configuration. They are
  16134. # bogus both because they are the default anyway, and because
  16135. # using them would break gcc on systems where it needs fixed includes.
  16136. case $ac_im_incroot in
  16137. /usr/include) ac_x_includes= ;;
  16138. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16139. esac
  16140. case $ac_im_usrlibdir in
  16141. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16142. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16143. esac
  16144. fi
  16145. cd ..
  16146. rm -f -r conftest.dir
  16147. fi
  16148. # Standard set of common directories for X headers.
  16149. # Check X11 before X11Rn because it is often a symlink to the current release.
  16150. ac_x_header_dirs='
  16151. /usr/X11/include
  16152. /usr/X11R7/include
  16153. /usr/X11R6/include
  16154. /usr/X11R5/include
  16155. /usr/X11R4/include
  16156. /usr/include/X11
  16157. /usr/include/X11R7
  16158. /usr/include/X11R6
  16159. /usr/include/X11R5
  16160. /usr/include/X11R4
  16161. /usr/local/X11/include
  16162. /usr/local/X11R7/include
  16163. /usr/local/X11R6/include
  16164. /usr/local/X11R5/include
  16165. /usr/local/X11R4/include
  16166. /usr/local/include/X11
  16167. /usr/local/include/X11R7
  16168. /usr/local/include/X11R6
  16169. /usr/local/include/X11R5
  16170. /usr/local/include/X11R4
  16171. /usr/X386/include
  16172. /usr/x386/include
  16173. /usr/XFree86/include/X11
  16174. /usr/include
  16175. /usr/local/include
  16176. /usr/unsupported/include
  16177. /usr/athena/include
  16178. /usr/local/x11r5/include
  16179. /usr/lpp/Xamples/include
  16180. /usr/openwin/include
  16181. /usr/openwin/share/include'
  16182. if test "$ac_x_includes" = no; then
  16183. # Guess where to find include files, by looking for Xlib.h.
  16184. # First, try using that file with no special directory specified.
  16185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16186. /* end confdefs.h. */
  16187. #include <X11/Xlib.h>
  16188. _ACEOF
  16189. if ac_fn_c_try_cpp "$LINENO"; then :
  16190. # We can compile using X headers with no special include directory.
  16191. ac_x_includes=
  16192. else
  16193. for ac_dir in $ac_x_header_dirs; do
  16194. if test -r "$ac_dir/X11/Xlib.h"; then
  16195. ac_x_includes=$ac_dir
  16196. break
  16197. fi
  16198. done
  16199. fi
  16200. rm -f conftest.err conftest.i conftest.$ac_ext
  16201. fi # $ac_x_includes = no
  16202. if test "$ac_x_libraries" = no; then
  16203. # Check for the libraries.
  16204. # See if we find them without any special options.
  16205. # Don't add to $LIBS permanently.
  16206. ac_save_LIBS=$LIBS
  16207. LIBS="-lX11 $LIBS"
  16208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16209. /* end confdefs.h. */
  16210. #include <X11/Xlib.h>
  16211. int
  16212. main ()
  16213. {
  16214. XrmInitialize ()
  16215. ;
  16216. return 0;
  16217. }
  16218. _ACEOF
  16219. if ac_fn_c_try_link "$LINENO"; then :
  16220. LIBS=$ac_save_LIBS
  16221. # We can link X programs with no special library path.
  16222. ac_x_libraries=
  16223. else
  16224. LIBS=$ac_save_LIBS
  16225. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16226. do
  16227. # Don't even attempt the hair of trying to link an X program!
  16228. for ac_extension in a so sl dylib la dll; do
  16229. if test -r "$ac_dir/libX11.$ac_extension"; then
  16230. ac_x_libraries=$ac_dir
  16231. break 2
  16232. fi
  16233. done
  16234. done
  16235. fi
  16236. rm -f core conftest.err conftest.$ac_objext \
  16237. conftest$ac_exeext conftest.$ac_ext
  16238. fi # $ac_x_libraries = no
  16239. case $ac_x_includes,$ac_x_libraries in #(
  16240. no,* | *,no | *\'*)
  16241. # Didn't find X, or a directory has "'" in its name.
  16242. ac_cv_have_x="have_x=no";; #(
  16243. *)
  16244. # Record where we found X for the cache.
  16245. ac_cv_have_x="have_x=yes\
  16246. ac_x_includes='$ac_x_includes'\
  16247. ac_x_libraries='$ac_x_libraries'"
  16248. esac
  16249. fi
  16250. ;; #(
  16251. *) have_x=yes;;
  16252. esac
  16253. eval "$ac_cv_have_x"
  16254. fi # $with_x != no
  16255. if test "$have_x" != yes; then
  16256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16257. $as_echo "$have_x" >&6; }
  16258. no_x=yes
  16259. else
  16260. # If each of the values was on the command line, it overrides each guess.
  16261. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16262. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16263. # Update the cache value to reflect the command line values.
  16264. ac_cv_have_x="have_x=yes\
  16265. ac_x_includes='$x_includes'\
  16266. ac_x_libraries='$x_libraries'"
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16268. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16269. fi
  16270. if test "$no_x" = yes; then
  16271. # Not all programs may use this symbol, but it does not hurt to define it.
  16272. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16273. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16274. else
  16275. if test -n "$x_includes"; then
  16276. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16277. fi
  16278. # It would also be nice to do this for all -L options, not just this one.
  16279. if test -n "$x_libraries"; then
  16280. X_LIBS="$X_LIBS -L$x_libraries"
  16281. # For Solaris; some versions of Sun CC require a space after -R and
  16282. # others require no space. Words are not sufficient . . . .
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16284. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16285. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16286. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16287. ac_c_werror_flag=yes
  16288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16289. /* end confdefs.h. */
  16290. int
  16291. main ()
  16292. {
  16293. ;
  16294. return 0;
  16295. }
  16296. _ACEOF
  16297. if ac_fn_c_try_link "$LINENO"; then :
  16298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16299. $as_echo "no" >&6; }
  16300. X_LIBS="$X_LIBS -R$x_libraries"
  16301. else
  16302. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16304. /* end confdefs.h. */
  16305. int
  16306. main ()
  16307. {
  16308. ;
  16309. return 0;
  16310. }
  16311. _ACEOF
  16312. if ac_fn_c_try_link "$LINENO"; then :
  16313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16314. $as_echo "yes" >&6; }
  16315. X_LIBS="$X_LIBS -R $x_libraries"
  16316. else
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16318. $as_echo "neither works" >&6; }
  16319. fi
  16320. rm -f core conftest.err conftest.$ac_objext \
  16321. conftest$ac_exeext conftest.$ac_ext
  16322. fi
  16323. rm -f core conftest.err conftest.$ac_objext \
  16324. conftest$ac_exeext conftest.$ac_ext
  16325. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16326. LIBS=$ac_xsave_LIBS
  16327. fi
  16328. # Check for system-dependent libraries X programs must link with.
  16329. # Do this before checking for the system-independent R6 libraries
  16330. # (-lICE), since we may need -lsocket or whatever for X linking.
  16331. if test "$ISC" = yes; then
  16332. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16333. else
  16334. # Martyn Johnson says this is needed for Ultrix, if the X
  16335. # libraries were built with DECnet support. And Karl Berry says
  16336. # the Alpha needs dnet_stub (dnet does not exist).
  16337. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16339. /* end confdefs.h. */
  16340. /* Override any GCC internal prototype to avoid an error.
  16341. Use char because int might match the return type of a GCC
  16342. builtin and then its argument prototype would still apply. */
  16343. #ifdef __cplusplus
  16344. extern "C"
  16345. #endif
  16346. char XOpenDisplay ();
  16347. int
  16348. main ()
  16349. {
  16350. return XOpenDisplay ();
  16351. ;
  16352. return 0;
  16353. }
  16354. _ACEOF
  16355. if ac_fn_c_try_link "$LINENO"; then :
  16356. else
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16358. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16359. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16360. $as_echo_n "(cached) " >&6
  16361. else
  16362. ac_check_lib_save_LIBS=$LIBS
  16363. LIBS="-ldnet $LIBS"
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. /* Override any GCC internal prototype to avoid an error.
  16367. Use char because int might match the return type of a GCC
  16368. builtin and then its argument prototype would still apply. */
  16369. #ifdef __cplusplus
  16370. extern "C"
  16371. #endif
  16372. char dnet_ntoa ();
  16373. int
  16374. main ()
  16375. {
  16376. return dnet_ntoa ();
  16377. ;
  16378. return 0;
  16379. }
  16380. _ACEOF
  16381. if ac_fn_c_try_link "$LINENO"; then :
  16382. ac_cv_lib_dnet_dnet_ntoa=yes
  16383. else
  16384. ac_cv_lib_dnet_dnet_ntoa=no
  16385. fi
  16386. rm -f core conftest.err conftest.$ac_objext \
  16387. conftest$ac_exeext conftest.$ac_ext
  16388. LIBS=$ac_check_lib_save_LIBS
  16389. fi
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16391. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16392. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16393. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16394. fi
  16395. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16397. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16398. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16399. $as_echo_n "(cached) " >&6
  16400. else
  16401. ac_check_lib_save_LIBS=$LIBS
  16402. LIBS="-ldnet_stub $LIBS"
  16403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16404. /* end confdefs.h. */
  16405. /* Override any GCC internal prototype to avoid an error.
  16406. Use char because int might match the return type of a GCC
  16407. builtin and then its argument prototype would still apply. */
  16408. #ifdef __cplusplus
  16409. extern "C"
  16410. #endif
  16411. char dnet_ntoa ();
  16412. int
  16413. main ()
  16414. {
  16415. return dnet_ntoa ();
  16416. ;
  16417. return 0;
  16418. }
  16419. _ACEOF
  16420. if ac_fn_c_try_link "$LINENO"; then :
  16421. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16422. else
  16423. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16424. fi
  16425. rm -f core conftest.err conftest.$ac_objext \
  16426. conftest$ac_exeext conftest.$ac_ext
  16427. LIBS=$ac_check_lib_save_LIBS
  16428. fi
  16429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16430. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16431. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16432. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16433. fi
  16434. fi
  16435. fi
  16436. rm -f core conftest.err conftest.$ac_objext \
  16437. conftest$ac_exeext conftest.$ac_ext
  16438. LIBS="$ac_xsave_LIBS"
  16439. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16440. # to get the SysV transport functions.
  16441. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16442. # needs -lnsl.
  16443. # The nsl library prevents programs from opening the X display
  16444. # on Irix 5.2, according to T.E. Dickey.
  16445. # The functions gethostbyname, getservbyname, and inet_addr are
  16446. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16447. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16448. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16449. fi
  16450. if test $ac_cv_func_gethostbyname = no; then
  16451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16452. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16453. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16454. $as_echo_n "(cached) " >&6
  16455. else
  16456. ac_check_lib_save_LIBS=$LIBS
  16457. LIBS="-lnsl $LIBS"
  16458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16459. /* end confdefs.h. */
  16460. /* Override any GCC internal prototype to avoid an error.
  16461. Use char because int might match the return type of a GCC
  16462. builtin and then its argument prototype would still apply. */
  16463. #ifdef __cplusplus
  16464. extern "C"
  16465. #endif
  16466. char gethostbyname ();
  16467. int
  16468. main ()
  16469. {
  16470. return gethostbyname ();
  16471. ;
  16472. return 0;
  16473. }
  16474. _ACEOF
  16475. if ac_fn_c_try_link "$LINENO"; then :
  16476. ac_cv_lib_nsl_gethostbyname=yes
  16477. else
  16478. ac_cv_lib_nsl_gethostbyname=no
  16479. fi
  16480. rm -f core conftest.err conftest.$ac_objext \
  16481. conftest$ac_exeext conftest.$ac_ext
  16482. LIBS=$ac_check_lib_save_LIBS
  16483. fi
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16485. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16486. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16487. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16488. fi
  16489. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16491. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16492. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16493. $as_echo_n "(cached) " >&6
  16494. else
  16495. ac_check_lib_save_LIBS=$LIBS
  16496. LIBS="-lbsd $LIBS"
  16497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16498. /* end confdefs.h. */
  16499. /* Override any GCC internal prototype to avoid an error.
  16500. Use char because int might match the return type of a GCC
  16501. builtin and then its argument prototype would still apply. */
  16502. #ifdef __cplusplus
  16503. extern "C"
  16504. #endif
  16505. char gethostbyname ();
  16506. int
  16507. main ()
  16508. {
  16509. return gethostbyname ();
  16510. ;
  16511. return 0;
  16512. }
  16513. _ACEOF
  16514. if ac_fn_c_try_link "$LINENO"; then :
  16515. ac_cv_lib_bsd_gethostbyname=yes
  16516. else
  16517. ac_cv_lib_bsd_gethostbyname=no
  16518. fi
  16519. rm -f core conftest.err conftest.$ac_objext \
  16520. conftest$ac_exeext conftest.$ac_ext
  16521. LIBS=$ac_check_lib_save_LIBS
  16522. fi
  16523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16524. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16525. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16526. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16527. fi
  16528. fi
  16529. fi
  16530. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16531. # socket/setsockopt and other routines are undefined under SCO ODT
  16532. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16533. # on later versions), says Simon Leinen: it contains gethostby*
  16534. # variants that don't use the name server (or something). -lsocket
  16535. # must be given before -lnsl if both are needed. We assume that
  16536. # if connect needs -lnsl, so does gethostbyname.
  16537. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16538. if test "x$ac_cv_func_connect" = xyes; then :
  16539. fi
  16540. if test $ac_cv_func_connect = no; then
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16542. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16543. if ${ac_cv_lib_socket_connect+:} false; then :
  16544. $as_echo_n "(cached) " >&6
  16545. else
  16546. ac_check_lib_save_LIBS=$LIBS
  16547. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16549. /* end confdefs.h. */
  16550. /* Override any GCC internal prototype to avoid an error.
  16551. Use char because int might match the return type of a GCC
  16552. builtin and then its argument prototype would still apply. */
  16553. #ifdef __cplusplus
  16554. extern "C"
  16555. #endif
  16556. char connect ();
  16557. int
  16558. main ()
  16559. {
  16560. return connect ();
  16561. ;
  16562. return 0;
  16563. }
  16564. _ACEOF
  16565. if ac_fn_c_try_link "$LINENO"; then :
  16566. ac_cv_lib_socket_connect=yes
  16567. else
  16568. ac_cv_lib_socket_connect=no
  16569. fi
  16570. rm -f core conftest.err conftest.$ac_objext \
  16571. conftest$ac_exeext conftest.$ac_ext
  16572. LIBS=$ac_check_lib_save_LIBS
  16573. fi
  16574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16575. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16576. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16577. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16578. fi
  16579. fi
  16580. # Guillermo Gomez says -lposix is necessary on A/UX.
  16581. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16582. if test "x$ac_cv_func_remove" = xyes; then :
  16583. fi
  16584. if test $ac_cv_func_remove = no; then
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16586. $as_echo_n "checking for remove in -lposix... " >&6; }
  16587. if ${ac_cv_lib_posix_remove+:} false; then :
  16588. $as_echo_n "(cached) " >&6
  16589. else
  16590. ac_check_lib_save_LIBS=$LIBS
  16591. LIBS="-lposix $LIBS"
  16592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16593. /* end confdefs.h. */
  16594. /* Override any GCC internal prototype to avoid an error.
  16595. Use char because int might match the return type of a GCC
  16596. builtin and then its argument prototype would still apply. */
  16597. #ifdef __cplusplus
  16598. extern "C"
  16599. #endif
  16600. char remove ();
  16601. int
  16602. main ()
  16603. {
  16604. return remove ();
  16605. ;
  16606. return 0;
  16607. }
  16608. _ACEOF
  16609. if ac_fn_c_try_link "$LINENO"; then :
  16610. ac_cv_lib_posix_remove=yes
  16611. else
  16612. ac_cv_lib_posix_remove=no
  16613. fi
  16614. rm -f core conftest.err conftest.$ac_objext \
  16615. conftest$ac_exeext conftest.$ac_ext
  16616. LIBS=$ac_check_lib_save_LIBS
  16617. fi
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16619. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16620. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16621. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16622. fi
  16623. fi
  16624. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16625. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16626. if test "x$ac_cv_func_shmat" = xyes; then :
  16627. fi
  16628. if test $ac_cv_func_shmat = no; then
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16630. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16631. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16632. $as_echo_n "(cached) " >&6
  16633. else
  16634. ac_check_lib_save_LIBS=$LIBS
  16635. LIBS="-lipc $LIBS"
  16636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16637. /* end confdefs.h. */
  16638. /* Override any GCC internal prototype to avoid an error.
  16639. Use char because int might match the return type of a GCC
  16640. builtin and then its argument prototype would still apply. */
  16641. #ifdef __cplusplus
  16642. extern "C"
  16643. #endif
  16644. char shmat ();
  16645. int
  16646. main ()
  16647. {
  16648. return shmat ();
  16649. ;
  16650. return 0;
  16651. }
  16652. _ACEOF
  16653. if ac_fn_c_try_link "$LINENO"; then :
  16654. ac_cv_lib_ipc_shmat=yes
  16655. else
  16656. ac_cv_lib_ipc_shmat=no
  16657. fi
  16658. rm -f core conftest.err conftest.$ac_objext \
  16659. conftest$ac_exeext conftest.$ac_ext
  16660. LIBS=$ac_check_lib_save_LIBS
  16661. fi
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16663. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16664. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16665. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16666. fi
  16667. fi
  16668. fi
  16669. # Check for libraries that X11R6 Xt/Xaw programs need.
  16670. ac_save_LDFLAGS=$LDFLAGS
  16671. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16672. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16673. # check for ICE first), but we must link in the order -lSM -lICE or
  16674. # we get undefined symbols. So assume we have SM if we have ICE.
  16675. # These have to be linked with before -lX11, unlike the other
  16676. # libraries we check for below, so use a different variable.
  16677. # John Interrante, Karl Berry
  16678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16679. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16680. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16681. $as_echo_n "(cached) " >&6
  16682. else
  16683. ac_check_lib_save_LIBS=$LIBS
  16684. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16686. /* end confdefs.h. */
  16687. /* Override any GCC internal prototype to avoid an error.
  16688. Use char because int might match the return type of a GCC
  16689. builtin and then its argument prototype would still apply. */
  16690. #ifdef __cplusplus
  16691. extern "C"
  16692. #endif
  16693. char IceConnectionNumber ();
  16694. int
  16695. main ()
  16696. {
  16697. return IceConnectionNumber ();
  16698. ;
  16699. return 0;
  16700. }
  16701. _ACEOF
  16702. if ac_fn_c_try_link "$LINENO"; then :
  16703. ac_cv_lib_ICE_IceConnectionNumber=yes
  16704. else
  16705. ac_cv_lib_ICE_IceConnectionNumber=no
  16706. fi
  16707. rm -f core conftest.err conftest.$ac_objext \
  16708. conftest$ac_exeext conftest.$ac_ext
  16709. LIBS=$ac_check_lib_save_LIBS
  16710. fi
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16712. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16713. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16714. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16715. fi
  16716. LDFLAGS=$ac_save_LDFLAGS
  16717. fi
  16718. if test x$have_x = xyes; then
  16719. # Only allow dynamically loaded X11 if the X11 function pointers
  16720. # will not end up in the global namespace, which causes problems
  16721. # with other libraries calling X11 functions.
  16722. x11_symbols_private=$have_gcc_fvisibility
  16723. # Check whether --enable-x11-shared was given.
  16724. if test "${enable_x11_shared+set}" = set; then :
  16725. enableval=$enable_x11_shared;
  16726. else
  16727. enable_x11_shared=maybe
  16728. fi
  16729. case "$host" in
  16730. *-*-darwin*)
  16731. x11_symbols_private=yes
  16732. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16733. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16734. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16735. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16736. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16737. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16738. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16739. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16740. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16741. ;;
  16742. *-*-openbsd*)
  16743. x11_lib='libX11.so'
  16744. x11ext_lib='libXext.so'
  16745. xcursor_lib='libXcursor.so'
  16746. xinerama_lib='libXinerama.so'
  16747. xinput_lib='libXi.so'
  16748. xrandr_lib='libXrandr.so'
  16749. xrender_lib='libXrender.so'
  16750. xss_lib='libXss.so'
  16751. xvidmode_lib='libXxf86vm.so'
  16752. ;;
  16753. *)
  16754. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16755. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16756. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16757. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16758. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16759. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16760. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16761. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16762. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16763. ;;
  16764. esac
  16765. if test x$ac_cv_func_shmat != xyes; then
  16766. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16767. fi
  16768. CFLAGS="$CFLAGS $X_CFLAGS"
  16769. LDFLAGS="$LDFLAGS $X_LIBS"
  16770. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16771. #include <X11/Xproto.h>
  16772. "
  16773. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16774. have_xext_h_hdr=yes
  16775. else
  16776. have_xext_h_hdr=no
  16777. fi
  16778. if test x$have_xext_h_hdr != xyes; then
  16779. as_fn_error $? "
  16780. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16781. " "$LINENO" 5
  16782. fi
  16783. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16784. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16785. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16786. # Needed so SDL applications can include SDL_syswm.h
  16787. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16788. if test x$enable_x11_shared = xmaybe; then
  16789. enable_x11_shared=$x11_symbols_private
  16790. fi
  16791. if test x$have_loadso != xyes && \
  16792. test x$enable_x11_shared = xyes; then
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16794. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16795. enable_x11_shared=no
  16796. fi
  16797. if test x$x11_symbols_private != xyes && \
  16798. test x$enable_x11_shared = xyes; then
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
  16800. $as_echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
  16801. enable_x11_shared=no
  16802. fi
  16803. if test x$have_loadso = xyes && \
  16804. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16805. echo "-- dynamic libX11 -> $x11_lib"
  16806. echo "-- dynamic libX11ext -> $x11ext_lib"
  16807. cat >>confdefs.h <<_ACEOF
  16808. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16809. _ACEOF
  16810. cat >>confdefs.h <<_ACEOF
  16811. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16812. _ACEOF
  16813. else
  16814. enable_x11_shared=no
  16815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16816. fi
  16817. have_video=yes
  16818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16819. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16820. have_const_param_XextAddDisplay=no
  16821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16822. /* end confdefs.h. */
  16823. #include <X11/Xlib.h>
  16824. #include <X11/Xproto.h>
  16825. #include <X11/extensions/Xext.h>
  16826. #include <X11/extensions/extutil.h>
  16827. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16828. int
  16829. main ()
  16830. {
  16831. ;
  16832. return 0;
  16833. }
  16834. _ACEOF
  16835. if ac_fn_c_try_compile "$LINENO"; then :
  16836. have_const_param_XextAddDisplay=yes
  16837. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  16838. fi
  16839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  16841. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  16843. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  16844. have_const_param_xdata32=no
  16845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16846. /* end confdefs.h. */
  16847. #include <X11/Xlibint.h>
  16848. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  16849. int
  16850. main ()
  16851. {
  16852. ;
  16853. return 0;
  16854. }
  16855. _ACEOF
  16856. if ac_fn_c_try_compile "$LINENO"; then :
  16857. have_const_param_xdata32=yes
  16858. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  16859. fi
  16860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  16862. $as_echo "$have_const_param_xdata32" >&6; }
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  16864. $as_echo_n "checking for XGenericEvent... " >&6; }
  16865. have_XGenericEvent=no
  16866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16867. /* end confdefs.h. */
  16868. #include <X11/Xlib.h>
  16869. int
  16870. main ()
  16871. {
  16872. Display *display;
  16873. XEvent event;
  16874. XGenericEventCookie *cookie = &event.xcookie;
  16875. XNextEvent(display, &event);
  16876. XGetEventData(display, cookie);
  16877. XFreeEventData(display, cookie);
  16878. ;
  16879. return 0;
  16880. }
  16881. _ACEOF
  16882. if ac_fn_c_try_compile "$LINENO"; then :
  16883. have_XGenericEvent=yes
  16884. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  16885. fi
  16886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  16888. $as_echo "$have_XGenericEvent" >&6; }
  16889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  16890. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  16891. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  16892. $as_echo_n "(cached) " >&6
  16893. else
  16894. ac_check_lib_save_LIBS=$LIBS
  16895. LIBS="-lX11 $LIBS"
  16896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16897. /* end confdefs.h. */
  16898. /* Override any GCC internal prototype to avoid an error.
  16899. Use char because int might match the return type of a GCC
  16900. builtin and then its argument prototype would still apply. */
  16901. #ifdef __cplusplus
  16902. extern "C"
  16903. #endif
  16904. char XkbKeycodeToKeysym ();
  16905. int
  16906. main ()
  16907. {
  16908. return XkbKeycodeToKeysym ();
  16909. ;
  16910. return 0;
  16911. }
  16912. _ACEOF
  16913. if ac_fn_c_try_link "$LINENO"; then :
  16914. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  16915. else
  16916. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  16917. fi
  16918. rm -f core conftest.err conftest.$ac_objext \
  16919. conftest$ac_exeext conftest.$ac_ext
  16920. LIBS=$ac_check_lib_save_LIBS
  16921. fi
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  16923. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  16924. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  16925. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  16926. fi
  16927. # Check whether --enable-video-x11-xcursor was given.
  16928. if test "${enable_video_x11_xcursor+set}" = set; then :
  16929. enableval=$enable_video_x11_xcursor;
  16930. else
  16931. enable_video_x11_xcursor=yes
  16932. fi
  16933. if test x$enable_video_x11_xcursor = xyes; then
  16934. definitely_enable_video_x11_xcursor=no
  16935. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  16936. "
  16937. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  16938. have_xcursor_h_hdr=yes
  16939. else
  16940. have_xcursor_h_hdr=no
  16941. fi
  16942. if test x$have_xcursor_h_hdr = xyes; then
  16943. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  16944. echo "-- dynamic libXcursor -> $xcursor_lib"
  16945. cat >>confdefs.h <<_ACEOF
  16946. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  16947. _ACEOF
  16948. definitely_enable_video_x11_xcursor=yes
  16949. else
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  16951. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  16952. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  16953. $as_echo_n "(cached) " >&6
  16954. else
  16955. ac_check_lib_save_LIBS=$LIBS
  16956. LIBS="-lXcursor $LIBS"
  16957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16958. /* end confdefs.h. */
  16959. /* Override any GCC internal prototype to avoid an error.
  16960. Use char because int might match the return type of a GCC
  16961. builtin and then its argument prototype would still apply. */
  16962. #ifdef __cplusplus
  16963. extern "C"
  16964. #endif
  16965. char XcursorImageCreate ();
  16966. int
  16967. main ()
  16968. {
  16969. return XcursorImageCreate ();
  16970. ;
  16971. return 0;
  16972. }
  16973. _ACEOF
  16974. if ac_fn_c_try_link "$LINENO"; then :
  16975. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  16976. else
  16977. ac_cv_lib_Xcursor_XcursorImageCreate=no
  16978. fi
  16979. rm -f core conftest.err conftest.$ac_objext \
  16980. conftest$ac_exeext conftest.$ac_ext
  16981. LIBS=$ac_check_lib_save_LIBS
  16982. fi
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  16984. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  16985. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  16986. have_xcursor_lib=yes
  16987. fi
  16988. if test x$have_xcursor_lib = xyes ; then
  16989. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  16990. definitely_enable_video_x11_xcursor=yes
  16991. fi
  16992. fi
  16993. fi
  16994. fi
  16995. if test x$definitely_enable_video_x11_xcursor = xyes; then
  16996. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  16997. fi
  16998. # Check whether --enable-video-x11-xinerama was given.
  16999. if test "${enable_video_x11_xinerama+set}" = set; then :
  17000. enableval=$enable_video_x11_xinerama;
  17001. else
  17002. enable_video_x11_xinerama=yes
  17003. fi
  17004. if test x$enable_video_x11_xinerama = xyes; then
  17005. definitely_enable_video_x11_xinerama=no
  17006. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17007. "
  17008. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17009. have_xinerama_h_hdr=yes
  17010. else
  17011. have_xinerama_h_hdr=no
  17012. fi
  17013. if test x$have_xinerama_h_hdr = xyes; then
  17014. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17015. echo "-- dynamic libXinerama -> $xinerama_lib"
  17016. cat >>confdefs.h <<_ACEOF
  17017. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17018. _ACEOF
  17019. definitely_enable_video_x11_xinerama=yes
  17020. else
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17022. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17023. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17024. $as_echo_n "(cached) " >&6
  17025. else
  17026. ac_check_lib_save_LIBS=$LIBS
  17027. LIBS="-lXinerama $LIBS"
  17028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17029. /* end confdefs.h. */
  17030. /* Override any GCC internal prototype to avoid an error.
  17031. Use char because int might match the return type of a GCC
  17032. builtin and then its argument prototype would still apply. */
  17033. #ifdef __cplusplus
  17034. extern "C"
  17035. #endif
  17036. char XineramaQueryExtension ();
  17037. int
  17038. main ()
  17039. {
  17040. return XineramaQueryExtension ();
  17041. ;
  17042. return 0;
  17043. }
  17044. _ACEOF
  17045. if ac_fn_c_try_link "$LINENO"; then :
  17046. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17047. else
  17048. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17049. fi
  17050. rm -f core conftest.err conftest.$ac_objext \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. LIBS=$ac_check_lib_save_LIBS
  17053. fi
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17055. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17056. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17057. have_xinerama_lib=yes
  17058. fi
  17059. if test x$have_xinerama_lib = xyes ; then
  17060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17061. definitely_enable_video_x11_xinerama=yes
  17062. fi
  17063. fi
  17064. fi
  17065. fi
  17066. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17067. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17068. fi
  17069. # Check whether --enable-video-x11-xinput was given.
  17070. if test "${enable_video_x11_xinput+set}" = set; then :
  17071. enableval=$enable_video_x11_xinput;
  17072. else
  17073. enable_video_x11_xinput=yes
  17074. fi
  17075. if test x$enable_video_x11_xinput = xyes; then
  17076. definitely_enable_video_x11_xinput=no
  17077. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17078. "
  17079. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17080. have_xinput_h_hdr=yes
  17081. else
  17082. have_xinput_h_hdr=no
  17083. fi
  17084. if test x$have_xinput_h_hdr = xyes; then
  17085. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17086. echo "-- dynamic libXi -> $xinput_lib"
  17087. cat >>confdefs.h <<_ACEOF
  17088. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17089. _ACEOF
  17090. definitely_enable_video_x11_xinput=yes
  17091. else
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17093. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17094. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17095. $as_echo_n "(cached) " >&6
  17096. else
  17097. ac_check_lib_save_LIBS=$LIBS
  17098. LIBS="-lXi $LIBS"
  17099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17100. /* end confdefs.h. */
  17101. /* Override any GCC internal prototype to avoid an error.
  17102. Use char because int might match the return type of a GCC
  17103. builtin and then its argument prototype would still apply. */
  17104. #ifdef __cplusplus
  17105. extern "C"
  17106. #endif
  17107. char XOpenDevice ();
  17108. int
  17109. main ()
  17110. {
  17111. return XOpenDevice ();
  17112. ;
  17113. return 0;
  17114. }
  17115. _ACEOF
  17116. if ac_fn_c_try_link "$LINENO"; then :
  17117. ac_cv_lib_Xi_XOpenDevice=yes
  17118. else
  17119. ac_cv_lib_Xi_XOpenDevice=no
  17120. fi
  17121. rm -f core conftest.err conftest.$ac_objext \
  17122. conftest$ac_exeext conftest.$ac_ext
  17123. LIBS=$ac_check_lib_save_LIBS
  17124. fi
  17125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17126. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17127. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17128. have_xinput_lib=yes
  17129. fi
  17130. if test x$have_xinput_lib = xyes ; then
  17131. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17132. definitely_enable_video_x11_xinput=yes
  17133. fi
  17134. fi
  17135. fi
  17136. fi
  17137. if test x$definitely_enable_video_x11_xinput = xyes; then
  17138. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17140. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17141. have_xinput2_multitouch=no
  17142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17143. /* end confdefs.h. */
  17144. #include <X11/Xlib.h>
  17145. #include <X11/Xproto.h>
  17146. #include <X11/extensions/XInput2.h>
  17147. int
  17148. main ()
  17149. {
  17150. int event_type = XI_TouchBegin;
  17151. XITouchClassInfo *t;
  17152. Status
  17153. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17154. {
  17155. return (Status)0;
  17156. }
  17157. ;
  17158. return 0;
  17159. }
  17160. _ACEOF
  17161. if ac_fn_c_try_compile "$LINENO"; then :
  17162. have_xinput2_multitouch=yes
  17163. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17164. fi
  17165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17167. $as_echo "$have_xinput2_multitouch" >&6; }
  17168. fi
  17169. # Check whether --enable-video-x11-xrandr was given.
  17170. if test "${enable_video_x11_xrandr+set}" = set; then :
  17171. enableval=$enable_video_x11_xrandr;
  17172. else
  17173. enable_video_x11_xrandr=yes
  17174. fi
  17175. if test x$enable_video_x11_xrandr = xyes; then
  17176. definitely_enable_video_x11_xrandr=no
  17177. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
  17178. "
  17179. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  17180. have_xrandr_h_hdr=yes
  17181. else
  17182. have_xrandr_h_hdr=no
  17183. fi
  17184. if test x$have_xrandr_h_hdr = xyes; then
  17185. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17186. echo "-- dynamic libXrandr -> $xrandr_lib"
  17187. cat >>confdefs.h <<_ACEOF
  17188. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17189. _ACEOF
  17190. definitely_enable_video_x11_xrandr=yes
  17191. else
  17192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17193. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17194. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17195. $as_echo_n "(cached) " >&6
  17196. else
  17197. ac_check_lib_save_LIBS=$LIBS
  17198. LIBS="-lXrandr $LIBS"
  17199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17200. /* end confdefs.h. */
  17201. /* Override any GCC internal prototype to avoid an error.
  17202. Use char because int might match the return type of a GCC
  17203. builtin and then its argument prototype would still apply. */
  17204. #ifdef __cplusplus
  17205. extern "C"
  17206. #endif
  17207. char XRRQueryExtension ();
  17208. int
  17209. main ()
  17210. {
  17211. return XRRQueryExtension ();
  17212. ;
  17213. return 0;
  17214. }
  17215. _ACEOF
  17216. if ac_fn_c_try_link "$LINENO"; then :
  17217. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17218. else
  17219. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17220. fi
  17221. rm -f core conftest.err conftest.$ac_objext \
  17222. conftest$ac_exeext conftest.$ac_ext
  17223. LIBS=$ac_check_lib_save_LIBS
  17224. fi
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17226. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17227. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17228. have_xrandr_lib=yes
  17229. fi
  17230. if test x$have_xrandr_lib = xyes ; then
  17231. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17232. definitely_enable_video_x11_xrandr=yes
  17233. fi
  17234. fi
  17235. fi
  17236. fi
  17237. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17238. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17239. fi
  17240. # Check whether --enable-video-x11-scrnsaver was given.
  17241. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17242. enableval=$enable_video_x11_scrnsaver;
  17243. else
  17244. enable_video_x11_scrnsaver=yes
  17245. fi
  17246. if test x$enable_video_x11_scrnsaver = xyes; then
  17247. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17248. "
  17249. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17250. have_scrnsaver_h_hdr=yes
  17251. else
  17252. have_scrnsaver_h_hdr=no
  17253. fi
  17254. if test x$have_scrnsaver_h_hdr = xyes; then
  17255. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17256. echo "-- dynamic libXss -> $xss_lib"
  17257. cat >>confdefs.h <<_ACEOF
  17258. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17259. _ACEOF
  17260. definitely_enable_video_x11_scrnsaver=yes
  17261. else
  17262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17263. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17264. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17265. $as_echo_n "(cached) " >&6
  17266. else
  17267. ac_check_lib_save_LIBS=$LIBS
  17268. LIBS="-lXss $LIBS"
  17269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17270. /* end confdefs.h. */
  17271. /* Override any GCC internal prototype to avoid an error.
  17272. Use char because int might match the return type of a GCC
  17273. builtin and then its argument prototype would still apply. */
  17274. #ifdef __cplusplus
  17275. extern "C"
  17276. #endif
  17277. char XScreenSaverSuspend ();
  17278. int
  17279. main ()
  17280. {
  17281. return XScreenSaverSuspend ();
  17282. ;
  17283. return 0;
  17284. }
  17285. _ACEOF
  17286. if ac_fn_c_try_link "$LINENO"; then :
  17287. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17288. else
  17289. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17290. fi
  17291. rm -f core conftest.err conftest.$ac_objext \
  17292. conftest$ac_exeext conftest.$ac_ext
  17293. LIBS=$ac_check_lib_save_LIBS
  17294. fi
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17296. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17297. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17298. have_xss_lib=yes
  17299. fi
  17300. if test x$have_xss_lib = xyes ; then
  17301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17302. definitely_enable_video_x11_scrnsaver=yes
  17303. fi
  17304. fi
  17305. fi
  17306. fi
  17307. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17308. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17309. fi
  17310. # Check whether --enable-video-x11-xshape was given.
  17311. if test "${enable_video_x11_xshape+set}" = set; then :
  17312. enableval=$enable_video_x11_xshape;
  17313. else
  17314. enable_video_x11_xshape=yes
  17315. fi
  17316. if test x$enable_video_x11_xshape = xyes; then
  17317. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17318. "
  17319. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17320. have_shape_h_hdr=yes
  17321. else
  17322. have_shape_h_hdr=no
  17323. fi
  17324. if test x$have_shape_h_hdr = xyes; then
  17325. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17326. fi
  17327. fi
  17328. # Check whether --enable-video-x11-vm was given.
  17329. if test "${enable_video_x11_vm+set}" = set; then :
  17330. enableval=$enable_video_x11_vm;
  17331. else
  17332. enable_video_x11_vm=yes
  17333. fi
  17334. if test x$enable_video_x11_vm = xyes; then
  17335. definitely_enable_video_x11_vm=no
  17336. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17337. "
  17338. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17339. have_vm_h_hdr=yes
  17340. else
  17341. have_vm_h_hdr=no
  17342. fi
  17343. if test x$have_vm_h_hdr = xyes; then
  17344. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17345. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17346. cat >>confdefs.h <<_ACEOF
  17347. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17348. _ACEOF
  17349. definitely_enable_video_x11_vm=yes
  17350. else
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17352. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17353. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17354. $as_echo_n "(cached) " >&6
  17355. else
  17356. ac_check_lib_save_LIBS=$LIBS
  17357. LIBS="-lXxf86vm $LIBS"
  17358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17359. /* end confdefs.h. */
  17360. /* Override any GCC internal prototype to avoid an error.
  17361. Use char because int might match the return type of a GCC
  17362. builtin and then its argument prototype would still apply. */
  17363. #ifdef __cplusplus
  17364. extern "C"
  17365. #endif
  17366. char XF86VidModeQueryVersion ();
  17367. int
  17368. main ()
  17369. {
  17370. return XF86VidModeQueryVersion ();
  17371. ;
  17372. return 0;
  17373. }
  17374. _ACEOF
  17375. if ac_fn_c_try_link "$LINENO"; then :
  17376. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17377. else
  17378. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17379. fi
  17380. rm -f core conftest.err conftest.$ac_objext \
  17381. conftest$ac_exeext conftest.$ac_ext
  17382. LIBS=$ac_check_lib_save_LIBS
  17383. fi
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17385. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17386. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17387. have_vm_lib=yes
  17388. fi
  17389. if test x$have_vm_lib = xyes ; then
  17390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17391. definitely_enable_video_x11_vm=yes
  17392. fi
  17393. fi
  17394. fi
  17395. fi
  17396. if test x$definitely_enable_video_x11_vm = xyes; then
  17397. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17398. fi
  17399. fi
  17400. fi
  17401. }
  17402. CheckHaikuVideo()
  17403. {
  17404. if test x$enable_video = xyes; then
  17405. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17406. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17407. have_video=yes
  17408. fi
  17409. }
  17410. CheckCOCOA()
  17411. {
  17412. # Check whether --enable-video-cocoa was given.
  17413. if test "${enable_video_cocoa+set}" = set; then :
  17414. enableval=$enable_video_cocoa;
  17415. else
  17416. enable_video_cocoa=yes
  17417. fi
  17418. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17419. save_CFLAGS="$CFLAGS"
  17420. CFLAGS="$CFLAGS -x objective-c"
  17421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17422. $as_echo_n "checking for Cocoa framework... " >&6; }
  17423. have_cocoa=no
  17424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17425. /* end confdefs.h. */
  17426. #import <Cocoa/Cocoa.h>
  17427. int
  17428. main ()
  17429. {
  17430. ;
  17431. return 0;
  17432. }
  17433. _ACEOF
  17434. if ac_fn_c_try_compile "$LINENO"; then :
  17435. have_cocoa=yes
  17436. fi
  17437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17439. $as_echo "$have_cocoa" >&6; }
  17440. CFLAGS="$save_CFLAGS"
  17441. if test x$have_cocoa = xyes; then
  17442. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17443. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17444. have_video=yes
  17445. fi
  17446. fi
  17447. }
  17448. CheckDirectFB()
  17449. {
  17450. # Check whether --enable-video-directfb was given.
  17451. if test "${enable_video_directfb+set}" = set; then :
  17452. enableval=$enable_video_directfb;
  17453. else
  17454. enable_video_directfb=no
  17455. fi
  17456. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17457. video_directfb=no
  17458. DIRECTFB_REQUIRED_VERSION=1.0.0
  17459. for ac_prog in directfb-config
  17460. do
  17461. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17462. set dummy $ac_prog; ac_word=$2
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17464. $as_echo_n "checking for $ac_word... " >&6; }
  17465. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17466. $as_echo_n "(cached) " >&6
  17467. else
  17468. case $DIRECTFBCONFIG in
  17469. [\\/]* | ?:[\\/]*)
  17470. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17471. ;;
  17472. *)
  17473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17474. as_dummy="$prefix/bin:$PATH"
  17475. for as_dir in $as_dummy
  17476. do
  17477. IFS=$as_save_IFS
  17478. test -z "$as_dir" && as_dir=.
  17479. for ac_exec_ext in '' $ac_executable_extensions; do
  17480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17481. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17483. break 2
  17484. fi
  17485. done
  17486. done
  17487. IFS=$as_save_IFS
  17488. ;;
  17489. esac
  17490. fi
  17491. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17492. if test -n "$DIRECTFBCONFIG"; then
  17493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17494. $as_echo "$DIRECTFBCONFIG" >&6; }
  17495. else
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17497. $as_echo "no" >&6; }
  17498. fi
  17499. test -n "$DIRECTFBCONFIG" && break
  17500. done
  17501. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17502. if test x$DIRECTFBCONFIG = xno; then
  17503. # Extract the first word of "pkg-config", so it can be a program name with args.
  17504. set dummy pkg-config; ac_word=$2
  17505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17506. $as_echo_n "checking for $ac_word... " >&6; }
  17507. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17508. $as_echo_n "(cached) " >&6
  17509. else
  17510. case $PKG_CONFIG in
  17511. [\\/]* | ?:[\\/]*)
  17512. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17513. ;;
  17514. *)
  17515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17516. for as_dir in $PATH
  17517. do
  17518. IFS=$as_save_IFS
  17519. test -z "$as_dir" && as_dir=.
  17520. for ac_exec_ext in '' $ac_executable_extensions; do
  17521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17522. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17524. break 2
  17525. fi
  17526. done
  17527. done
  17528. IFS=$as_save_IFS
  17529. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17530. ;;
  17531. esac
  17532. fi
  17533. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17534. if test -n "$PKG_CONFIG"; then
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17536. $as_echo "$PKG_CONFIG" >&6; }
  17537. else
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17539. $as_echo "no" >&6; }
  17540. fi
  17541. if test x$PKG_CONFIG != xno; then
  17542. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17543. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17544. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17545. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17546. video_directfb=yes
  17547. fi
  17548. fi
  17549. else
  17550. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17551. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17552. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17553. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17554. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17555. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17556. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17557. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17558. video_directfb=yes
  17559. fi
  17560. fi
  17561. if test x$video_directfb = xyes; then
  17562. # SuSE 11.1 installs directfb-config without directfb-devel
  17563. save_CPPFLAGS="$CPPFLAGS"
  17564. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17565. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17566. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17567. have_directfb_hdr=yes
  17568. else
  17569. have_directfb_hdr=no
  17570. fi
  17571. CPPFLAGS="$save_CPPFLAGS"
  17572. video_directfb=$have_directfb_hdr
  17573. fi
  17574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17575. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17577. $as_echo "$video_directfb" >&6; }
  17578. if test x$video_directfb = xyes; then
  17579. # Check whether --enable-directfb-shared was given.
  17580. if test "${enable_directfb_shared+set}" = set; then :
  17581. enableval=$enable_directfb_shared;
  17582. else
  17583. enable_directfb_shared=yes
  17584. fi
  17585. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17586. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17587. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17588. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17590. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17591. directfb_shared=no
  17592. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17593. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17595. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17596. if test x$have_loadso != xyes && \
  17597. test x$enable_directfb_shared = xyes; then
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17599. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17600. fi
  17601. if test x$have_loadso = xyes && \
  17602. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17603. directfb_shared=yes
  17604. echo "-- $directfb_lib_spec -> $directfb_lib"
  17605. cat >>confdefs.h <<_ACEOF
  17606. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17607. _ACEOF
  17608. else
  17609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17610. fi
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17612. $as_echo "$directfb_shared" >&6; }
  17613. have_video=yes
  17614. fi
  17615. fi
  17616. }
  17617. CheckFusionSound()
  17618. {
  17619. # Check whether --enable-fusionsound was given.
  17620. if test "${enable_fusionsound+set}" = set; then :
  17621. enableval=$enable_fusionsound;
  17622. else
  17623. enable_fusionsound=no
  17624. fi
  17625. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17626. fusionsound=no
  17627. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17628. # Extract the first word of "pkg-config", so it can be a program name with args.
  17629. set dummy pkg-config; ac_word=$2
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17631. $as_echo_n "checking for $ac_word... " >&6; }
  17632. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17633. $as_echo_n "(cached) " >&6
  17634. else
  17635. case $PKG_CONFIG in
  17636. [\\/]* | ?:[\\/]*)
  17637. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17638. ;;
  17639. *)
  17640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17641. for as_dir in $PATH
  17642. do
  17643. IFS=$as_save_IFS
  17644. test -z "$as_dir" && as_dir=.
  17645. for ac_exec_ext in '' $ac_executable_extensions; do
  17646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17647. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17649. break 2
  17650. fi
  17651. done
  17652. done
  17653. IFS=$as_save_IFS
  17654. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17655. ;;
  17656. esac
  17657. fi
  17658. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17659. if test -n "$PKG_CONFIG"; then
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17661. $as_echo "$PKG_CONFIG" >&6; }
  17662. else
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17664. $as_echo "no" >&6; }
  17665. fi
  17666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17667. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17668. if test x$PKG_CONFIG != xno; then
  17669. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17670. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17671. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17672. fusionsound=yes
  17673. fi
  17674. fi
  17675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17676. $as_echo "$fusionsound" >&6; }
  17677. if test x$fusionsound = xyes; then
  17678. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17679. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17680. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17681. # Check whether --enable-fusionsound-shared was given.
  17682. if test "${enable_fusionsound_shared+set}" = set; then :
  17683. enableval=$enable_fusionsound_shared;
  17684. else
  17685. enable_fusionsound_shared=yes
  17686. fi
  17687. fusionsound_shared=no
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17689. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17690. if test x$have_loadso != xyes && \
  17691. test x$enable_fusionsound_shared = xyes; then
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17693. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17694. fi
  17695. if test x$have_loadso = xyes && \
  17696. test x$enable_fusionsound_shared = xyes; then
  17697. cat >>confdefs.h <<_ACEOF
  17698. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17699. _ACEOF
  17700. fusionsound_shared=yes
  17701. else
  17702. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17703. fi
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17705. $as_echo "$fusionsound_shared" >&6; }
  17706. have_audio=yes
  17707. fi
  17708. fi
  17709. }
  17710. CheckDummyVideo()
  17711. {
  17712. # Check whether --enable-video-dummy was given.
  17713. if test "${enable_video_dummy+set}" = set; then :
  17714. enableval=$enable_video_dummy;
  17715. else
  17716. enable_video_dummy=yes
  17717. fi
  17718. if test x$enable_video_dummy = xyes; then
  17719. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17720. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17721. have_video=yes
  17722. fi
  17723. }
  17724. # Check whether --enable-video-opengl was given.
  17725. if test "${enable_video_opengl+set}" = set; then :
  17726. enableval=$enable_video_opengl;
  17727. else
  17728. enable_video_opengl=yes
  17729. fi
  17730. CheckOpenGLX11()
  17731. {
  17732. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17734. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17735. video_opengl=no
  17736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17737. /* end confdefs.h. */
  17738. #include <GL/gl.h>
  17739. #include <GL/glx.h>
  17740. int
  17741. main ()
  17742. {
  17743. ;
  17744. return 0;
  17745. }
  17746. _ACEOF
  17747. if ac_fn_c_try_compile "$LINENO"; then :
  17748. video_opengl=yes
  17749. fi
  17750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17752. $as_echo "$video_opengl" >&6; }
  17753. if test x$video_opengl = xyes; then
  17754. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17755. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17756. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17757. fi
  17758. fi
  17759. }
  17760. # Check whether --enable-video-opengles was given.
  17761. if test "${enable_video_opengles+set}" = set; then :
  17762. enableval=$enable_video_opengles;
  17763. else
  17764. enable_video_opengles=yes
  17765. fi
  17766. CheckOpenGLESX11()
  17767. {
  17768. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17770. $as_echo_n "checking for EGL support... " >&6; }
  17771. video_opengl_egl=no
  17772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17773. /* end confdefs.h. */
  17774. #include <EGL/egl.h>
  17775. int
  17776. main ()
  17777. {
  17778. ;
  17779. return 0;
  17780. }
  17781. _ACEOF
  17782. if ac_fn_c_try_compile "$LINENO"; then :
  17783. video_opengl_egl=yes
  17784. fi
  17785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17787. $as_echo "$video_opengl_egl" >&6; }
  17788. if test x$video_opengl_egl = xyes; then
  17789. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17790. fi
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17792. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17793. video_opengles_v1=no
  17794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17795. /* end confdefs.h. */
  17796. #include <GLES/gl.h>
  17797. #include <GLES/glext.h>
  17798. int
  17799. main ()
  17800. {
  17801. ;
  17802. return 0;
  17803. }
  17804. _ACEOF
  17805. if ac_fn_c_try_compile "$LINENO"; then :
  17806. video_opengles_v1=yes
  17807. fi
  17808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  17810. $as_echo "$video_opengles_v1" >&6; }
  17811. if test x$video_opengles_v1 = xyes; then
  17812. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  17813. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  17814. fi
  17815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17816. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17817. video_opengles_v2=no
  17818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17819. /* end confdefs.h. */
  17820. #include <GLES2/gl2.h>
  17821. #include <GLES2/gl2ext.h>
  17822. int
  17823. main ()
  17824. {
  17825. ;
  17826. return 0;
  17827. }
  17828. _ACEOF
  17829. if ac_fn_c_try_compile "$LINENO"; then :
  17830. video_opengles_v2=yes
  17831. fi
  17832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17834. $as_echo "$video_opengles_v2" >&6; }
  17835. if test x$video_opengles_v2 = xyes; then
  17836. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17837. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17838. fi
  17839. fi
  17840. }
  17841. CheckWINDOWSGL()
  17842. {
  17843. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17844. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17845. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  17846. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17847. fi
  17848. }
  17849. CheckWINDOWSGLES()
  17850. {
  17851. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17853. $as_echo_n "checking for EGL support... " >&6; }
  17854. video_opengl_egl=no
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. #include <EGL/egl.h>
  17858. int
  17859. main ()
  17860. {
  17861. ;
  17862. return 0;
  17863. }
  17864. _ACEOF
  17865. if ac_fn_c_try_compile "$LINENO"; then :
  17866. video_opengl_egl=yes
  17867. fi
  17868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17870. $as_echo "$video_opengl_egl" >&6; }
  17871. if test x$video_opengl_egl = xyes; then
  17872. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17873. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17874. fi
  17875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17876. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17877. video_opengles_v2=no
  17878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17879. /* end confdefs.h. */
  17880. #include <GLES2/gl2.h>
  17881. #include <GLES2/gl2ext.h>
  17882. int
  17883. main ()
  17884. {
  17885. ;
  17886. return 0;
  17887. }
  17888. _ACEOF
  17889. if ac_fn_c_try_compile "$LINENO"; then :
  17890. video_opengles_v2=yes
  17891. fi
  17892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17894. $as_echo "$video_opengles_v2" >&6; }
  17895. if test x$video_opengles_v2 = xyes; then
  17896. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17897. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17898. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17899. fi
  17900. fi
  17901. }
  17902. CheckHaikuGL()
  17903. {
  17904. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17905. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17906. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  17907. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  17909. fi
  17910. }
  17911. CheckMacGL()
  17912. {
  17913. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17914. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17915. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  17916. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17917. case "$host" in
  17918. *-*-darwin*)
  17919. if test x$enable_video_cocoa = xyes; then
  17920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  17921. fi
  17922. esac
  17923. fi
  17924. }
  17925. CheckInputEvents()
  17926. {
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  17928. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  17929. use_input_events=no
  17930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17931. /* end confdefs.h. */
  17932. #include <linux/input.h>
  17933. int
  17934. main ()
  17935. {
  17936. #ifndef EVIOCGNAME
  17937. #error EVIOCGNAME() ioctl not available
  17938. #endif
  17939. ;
  17940. return 0;
  17941. }
  17942. _ACEOF
  17943. if ac_fn_c_try_compile "$LINENO"; then :
  17944. use_input_events=yes
  17945. fi
  17946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  17948. $as_echo "$use_input_events" >&6; }
  17949. if test x$use_input_events = xyes; then
  17950. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  17951. fi
  17952. }
  17953. CheckInputKD()
  17954. {
  17955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  17956. $as_echo_n "checking for Linux kd.h... " >&6; }
  17957. use_input_kd=no
  17958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17959. /* end confdefs.h. */
  17960. #include <linux/kd.h>
  17961. #include <linux/keyboard.h>
  17962. int
  17963. main ()
  17964. {
  17965. struct kbentry kbe;
  17966. kbe.kb_table = KG_CTRL;
  17967. ioctl(0, KDGKBENT, &kbe);
  17968. ;
  17969. return 0;
  17970. }
  17971. _ACEOF
  17972. if ac_fn_c_try_compile "$LINENO"; then :
  17973. use_input_kd=yes
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  17977. $as_echo "$use_input_kd" >&6; }
  17978. if test x$use_input_kd = xyes; then
  17979. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  17980. fi
  17981. }
  17982. CheckLibUDev()
  17983. {
  17984. # Check whether --enable-libudev was given.
  17985. if test "${enable_libudev+set}" = set; then :
  17986. enableval=$enable_libudev;
  17987. else
  17988. enable_libudev=yes
  17989. fi
  17990. if test x$enable_libudev = xyes; then
  17991. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  17992. if test "x$ac_cv_header_libudev_h" = xyes; then :
  17993. have_libudev_h_hdr=yes
  17994. else
  17995. have_libudev_h_hdr=no
  17996. fi
  17997. if test x$have_libudev_h_hdr = xyes; then
  17998. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  17999. fi
  18000. fi
  18001. }
  18002. CheckDBus()
  18003. {
  18004. # Check whether --enable-dbus was given.
  18005. if test "${enable_dbus+set}" = set; then :
  18006. enableval=$enable_dbus;
  18007. else
  18008. enable_dbus=yes
  18009. fi
  18010. if test x$enable_dbus = xyes; then
  18011. # Extract the first word of "pkg-config", so it can be a program name with args.
  18012. set dummy pkg-config; ac_word=$2
  18013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18014. $as_echo_n "checking for $ac_word... " >&6; }
  18015. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18016. $as_echo_n "(cached) " >&6
  18017. else
  18018. case $PKG_CONFIG in
  18019. [\\/]* | ?:[\\/]*)
  18020. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18021. ;;
  18022. *)
  18023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18024. for as_dir in $PATH
  18025. do
  18026. IFS=$as_save_IFS
  18027. test -z "$as_dir" && as_dir=.
  18028. for ac_exec_ext in '' $ac_executable_extensions; do
  18029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18030. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18032. break 2
  18033. fi
  18034. done
  18035. done
  18036. IFS=$as_save_IFS
  18037. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18038. ;;
  18039. esac
  18040. fi
  18041. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18042. if test -n "$PKG_CONFIG"; then
  18043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18044. $as_echo "$PKG_CONFIG" >&6; }
  18045. else
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18047. $as_echo "no" >&6; }
  18048. fi
  18049. if test x$PKG_CONFIG != xno; then
  18050. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18051. save_CFLAGS="$CFLAGS"
  18052. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18053. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18054. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18055. have_dbus_dbus_h_hdr=yes
  18056. else
  18057. have_dbus_dbus_h_hdr=no
  18058. fi
  18059. CFLAGS="$save_CFLAGS"
  18060. if test x$have_dbus_dbus_h_hdr = xyes; then
  18061. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18062. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18063. fi
  18064. fi
  18065. fi
  18066. }
  18067. CheckTslib()
  18068. {
  18069. # Check whether --enable-input-tslib was given.
  18070. if test "${enable_input_tslib+set}" = set; then :
  18071. enableval=$enable_input_tslib;
  18072. else
  18073. enable_input_tslib=yes
  18074. fi
  18075. if test x$enable_input_tslib = xyes; then
  18076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18077. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18078. enable_input_tslib=no
  18079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18080. /* end confdefs.h. */
  18081. #include "tslib.h"
  18082. int
  18083. main ()
  18084. {
  18085. ;
  18086. return 0;
  18087. }
  18088. _ACEOF
  18089. if ac_fn_c_try_compile "$LINENO"; then :
  18090. enable_input_tslib=yes
  18091. fi
  18092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18094. $as_echo "$enable_input_tslib" >&6; }
  18095. if test x$enable_input_tslib = xyes; then
  18096. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18098. fi
  18099. fi
  18100. }
  18101. CheckPTHREAD()
  18102. {
  18103. # Check whether --enable-pthreads was given.
  18104. if test "${enable_pthreads+set}" = set; then :
  18105. enableval=$enable_pthreads;
  18106. else
  18107. enable_pthreads=yes
  18108. fi
  18109. # Check whether --enable-pthread-sem was given.
  18110. if test "${enable_pthread_sem+set}" = set; then :
  18111. enableval=$enable_pthread_sem;
  18112. else
  18113. enable_pthread_sem=yes
  18114. fi
  18115. case "$host" in
  18116. *-*-linux*|*-*-uclinux*)
  18117. pthread_cflags="-D_REENTRANT"
  18118. pthread_lib="-lpthread"
  18119. ;;
  18120. *-*-bsdi*)
  18121. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18122. pthread_lib=""
  18123. ;;
  18124. *-*-darwin*)
  18125. pthread_cflags="-D_THREAD_SAFE"
  18126. # causes Carbon.p complaints?
  18127. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18128. ;;
  18129. *-*-freebsd*|*-*-dragonfly*)
  18130. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18131. pthread_lib="-pthread"
  18132. ;;
  18133. *-*-netbsd*)
  18134. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18135. pthread_lib="-lpthread"
  18136. ;;
  18137. *-*-openbsd*)
  18138. pthread_cflags="-D_REENTRANT"
  18139. pthread_lib="-pthread"
  18140. ;;
  18141. *-*-solaris2.9)
  18142. # From Solaris 9+, posix4's preferred name is rt.
  18143. pthread_cflags="-D_REENTRANT"
  18144. pthread_lib="-lpthread -lrt"
  18145. ;;
  18146. *-*-solaris2.10)
  18147. # Solaris 10+ merged pthread into libc.
  18148. pthread_cflags="-D_REENTRANT"
  18149. pthread_lib="-lrt"
  18150. ;;
  18151. *-*-solaris*)
  18152. # Solaris 11+ merged rt into libc.
  18153. pthread_cflags="-D_REENTRANT"
  18154. pthread_lib=""
  18155. ;;
  18156. *-*-sysv5*)
  18157. pthread_cflags="-D_REENTRANT -Kthread"
  18158. pthread_lib=""
  18159. ;;
  18160. *-*-aix*)
  18161. pthread_cflags="-D_REENTRANT -mthreads"
  18162. pthread_lib="-lpthread"
  18163. ;;
  18164. *-*-hpux11*)
  18165. pthread_cflags="-D_REENTRANT"
  18166. pthread_lib="-L/usr/lib -lpthread"
  18167. ;;
  18168. *-*-haiku*)
  18169. pthread_cflags="-D_REENTRANT"
  18170. pthread_lib=""
  18171. ;;
  18172. *)
  18173. pthread_cflags="-D_REENTRANT"
  18174. pthread_lib="-lpthread"
  18175. ;;
  18176. esac
  18177. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18178. # Save the original compiler flags and libraries
  18179. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18180. # Add the pthread compiler flags and libraries
  18181. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18182. # Check to see if we have pthread support on this system
  18183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18184. $as_echo_n "checking for pthreads... " >&6; }
  18185. use_pthreads=no
  18186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18187. /* end confdefs.h. */
  18188. #include <pthread.h>
  18189. int
  18190. main ()
  18191. {
  18192. pthread_attr_t type;
  18193. pthread_attr_init(&type);
  18194. ;
  18195. return 0;
  18196. }
  18197. _ACEOF
  18198. if ac_fn_c_try_link "$LINENO"; then :
  18199. use_pthreads=yes
  18200. fi
  18201. rm -f core conftest.err conftest.$ac_objext \
  18202. conftest$ac_exeext conftest.$ac_ext
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18204. $as_echo "$use_pthreads" >&6; }
  18205. # Restore the compiler flags and libraries
  18206. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18207. # Do futher testing if we have pthread support...
  18208. if test x$use_pthreads = xyes; then
  18209. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18210. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18212. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18213. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18214. # Save the original compiler flags and libraries
  18215. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18216. # Add the pthread compiler flags and libraries
  18217. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18218. # Check to see if recursive mutexes are available
  18219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18220. $as_echo_n "checking for recursive mutexes... " >&6; }
  18221. has_recursive_mutexes=no
  18222. if test x$has_recursive_mutexes = xno; then
  18223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18224. /* end confdefs.h. */
  18225. #include <pthread.h>
  18226. int
  18227. main ()
  18228. {
  18229. pthread_mutexattr_t attr;
  18230. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18231. ;
  18232. return 0;
  18233. }
  18234. _ACEOF
  18235. if ac_fn_c_try_compile "$LINENO"; then :
  18236. has_recursive_mutexes=yes
  18237. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18238. fi
  18239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18240. fi
  18241. if test x$has_recursive_mutexes = xno; then
  18242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18243. /* end confdefs.h. */
  18244. #include <pthread.h>
  18245. int
  18246. main ()
  18247. {
  18248. pthread_mutexattr_t attr;
  18249. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18250. ;
  18251. return 0;
  18252. }
  18253. _ACEOF
  18254. if ac_fn_c_try_compile "$LINENO"; then :
  18255. has_recursive_mutexes=yes
  18256. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18257. fi
  18258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18259. fi
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18261. $as_echo "$has_recursive_mutexes" >&6; }
  18262. # Check to see if pthread semaphore support is missing
  18263. if test x$enable_pthread_sem = xyes; then
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18265. $as_echo_n "checking for pthread semaphores... " >&6; }
  18266. have_pthread_sem=no
  18267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18268. /* end confdefs.h. */
  18269. #include <pthread.h>
  18270. #include <semaphore.h>
  18271. int
  18272. main ()
  18273. {
  18274. ;
  18275. return 0;
  18276. }
  18277. _ACEOF
  18278. if ac_fn_c_try_compile "$LINENO"; then :
  18279. have_pthread_sem=yes
  18280. fi
  18281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18283. $as_echo "$have_pthread_sem" >&6; }
  18284. fi
  18285. if test x$have_pthread_sem = xyes; then
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18287. $as_echo_n "checking for sem_timedwait... " >&6; }
  18288. have_sem_timedwait=no
  18289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18290. /* end confdefs.h. */
  18291. #include <pthread.h>
  18292. #include <semaphore.h>
  18293. int
  18294. main ()
  18295. {
  18296. sem_timedwait(NULL, NULL);
  18297. ;
  18298. return 0;
  18299. }
  18300. _ACEOF
  18301. if ac_fn_c_try_link "$LINENO"; then :
  18302. have_sem_timedwait=yes
  18303. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18304. fi
  18305. rm -f core conftest.err conftest.$ac_objext \
  18306. conftest$ac_exeext conftest.$ac_ext
  18307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18308. $as_echo "$have_sem_timedwait" >&6; }
  18309. fi
  18310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18311. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18313. /* end confdefs.h. */
  18314. /* Override any GCC internal prototype to avoid an error.
  18315. Use char because int might match the return type of a GCC
  18316. builtin and then its argument prototype would still apply. */
  18317. #ifdef __cplusplus
  18318. extern "C"
  18319. #endif
  18320. char pthread_spin_trylock ();
  18321. int
  18322. main ()
  18323. {
  18324. return pthread_spin_trylock ();
  18325. ;
  18326. return 0;
  18327. }
  18328. _ACEOF
  18329. if ac_fn_c_try_link "$LINENO"; then :
  18330. has_pthread_spin_trylock=yes
  18331. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18332. else
  18333. has_pthread_spin_trylock=no
  18334. fi
  18335. rm -f core conftest.err conftest.$ac_objext \
  18336. conftest$ac_exeext conftest.$ac_ext
  18337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18338. $as_echo "$has_pthread_spin_trylock" >&6; }
  18339. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18340. "
  18341. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18342. have_pthread_np_h=yes
  18343. else
  18344. have_pthread_np_h=no
  18345. fi
  18346. if test x$have_pthread_np_h = xyes; then
  18347. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18348. fi
  18349. # Check to see if pthread naming is available
  18350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18351. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18353. /* end confdefs.h. */
  18354. /* Override any GCC internal prototype to avoid an error.
  18355. Use char because int might match the return type of a GCC
  18356. builtin and then its argument prototype would still apply. */
  18357. #ifdef __cplusplus
  18358. extern "C"
  18359. #endif
  18360. char pthread_setname_np ();
  18361. int
  18362. main ()
  18363. {
  18364. return pthread_setname_np ();
  18365. ;
  18366. return 0;
  18367. }
  18368. _ACEOF
  18369. if ac_fn_c_try_link "$LINENO"; then :
  18370. has_pthread_setname_np=yes
  18371. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18372. else
  18373. has_pthread_setname_np=no
  18374. fi
  18375. rm -f core conftest.err conftest.$ac_objext \
  18376. conftest$ac_exeext conftest.$ac_ext
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18378. $as_echo "$has_pthread_setname_np" >&6; }
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18380. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18382. /* end confdefs.h. */
  18383. /* Override any GCC internal prototype to avoid an error.
  18384. Use char because int might match the return type of a GCC
  18385. builtin and then its argument prototype would still apply. */
  18386. #ifdef __cplusplus
  18387. extern "C"
  18388. #endif
  18389. char pthread_set_name_np ();
  18390. int
  18391. main ()
  18392. {
  18393. return pthread_set_name_np ();
  18394. ;
  18395. return 0;
  18396. }
  18397. _ACEOF
  18398. if ac_fn_c_try_link "$LINENO"; then :
  18399. has_pthread_set_name_np=yes
  18400. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18401. else
  18402. has_pthread_set_name_np=no
  18403. fi
  18404. rm -f core conftest.err conftest.$ac_objext \
  18405. conftest$ac_exeext conftest.$ac_ext
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18407. $as_echo "$has_pthread_set_name_np" >&6; }
  18408. # Restore the compiler flags and libraries
  18409. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18410. # Basic thread creation functions
  18411. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18412. # Semaphores
  18413. # We can fake these with mutexes and condition variables if necessary
  18414. if test x$have_pthread_sem = xyes; then
  18415. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18416. else
  18417. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18418. fi
  18419. # Mutexes
  18420. # We can fake these with semaphores if necessary
  18421. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18422. # Condition variables
  18423. # We can fake these with semaphores and mutexes if necessary
  18424. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18425. # Thread local storage
  18426. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18427. have_threads=yes
  18428. fi
  18429. fi
  18430. }
  18431. CheckWINDOWS()
  18432. {
  18433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18434. $as_echo_n "checking Windows compiler... " >&6; }
  18435. have_win32_gcc=no
  18436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18437. /* end confdefs.h. */
  18438. #include <windows.h>
  18439. int
  18440. main ()
  18441. {
  18442. ;
  18443. return 0;
  18444. }
  18445. _ACEOF
  18446. if ac_fn_c_try_compile "$LINENO"; then :
  18447. have_win32_gcc=yes
  18448. fi
  18449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18451. $as_echo "$have_win32_gcc" >&6; }
  18452. if test x$have_win32_gcc != xyes; then
  18453. as_fn_error $? "
  18454. *** Your compiler ($CC) does not produce Windows executables!
  18455. " "$LINENO" 5
  18456. fi
  18457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18458. $as_echo_n "checking Windows CE... " >&6; }
  18459. have_wince=no
  18460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18461. /* end confdefs.h. */
  18462. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18463. #error This is not Windows CE
  18464. #endif
  18465. int
  18466. main ()
  18467. {
  18468. ;
  18469. return 0;
  18470. }
  18471. _ACEOF
  18472. if ac_fn_c_try_compile "$LINENO"; then :
  18473. have_wince=yes
  18474. as_fn_error $? "
  18475. *** Sorry, Windows CE is no longer supported.
  18476. " "$LINENO" 5
  18477. fi
  18478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18480. $as_echo "$have_wince" >&6; }
  18481. # This fixes Windows stack alignment with newer GCC
  18482. CheckStackBoundary
  18483. }
  18484. CheckDIRECTX()
  18485. {
  18486. # Check whether --enable-directx was given.
  18487. if test "${enable_directx+set}" = set; then :
  18488. enableval=$enable_directx;
  18489. else
  18490. enable_directx=yes
  18491. fi
  18492. if test x$enable_directx = xyes; then
  18493. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18494. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18495. have_d3d=yes
  18496. fi
  18497. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18498. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18499. have_ddraw=yes
  18500. fi
  18501. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18502. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18503. have_dsound=yes
  18504. fi
  18505. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18506. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18507. have_dinput=yes
  18508. fi
  18509. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18510. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18511. have_xaudio2=yes
  18512. fi
  18513. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18514. # FIXME: ...so force it off for now.
  18515. case "$host" in
  18516. *-*-cygwin*)
  18517. have_dinput=false
  18518. ;;
  18519. esac
  18520. fi
  18521. }
  18522. CheckDLOPEN()
  18523. {
  18524. # Check whether --enable-sdl-dlopen was given.
  18525. if test "${enable_sdl_dlopen+set}" = set; then :
  18526. enableval=$enable_sdl_dlopen;
  18527. else
  18528. enable_sdl_dlopen=yes
  18529. fi
  18530. if test x$enable_sdl_dlopen = xyes; then
  18531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18532. $as_echo_n "checking for dlopen... " >&6; }
  18533. have_dlopen=no
  18534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18535. /* end confdefs.h. */
  18536. #include <dlfcn.h>
  18537. int
  18538. main ()
  18539. {
  18540. void *handle = dlopen("", RTLD_NOW);
  18541. const char *loaderror = (char *) dlerror();
  18542. ;
  18543. return 0;
  18544. }
  18545. _ACEOF
  18546. if ac_fn_c_try_compile "$LINENO"; then :
  18547. have_dlopen=yes
  18548. fi
  18549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18551. $as_echo "$have_dlopen" >&6; }
  18552. if test x$have_dlopen = xyes; then
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18554. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18555. if ${ac_cv_lib_c_dlopen+:} false; then :
  18556. $as_echo_n "(cached) " >&6
  18557. else
  18558. ac_check_lib_save_LIBS=$LIBS
  18559. LIBS="-lc $LIBS"
  18560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18561. /* end confdefs.h. */
  18562. /* Override any GCC internal prototype to avoid an error.
  18563. Use char because int might match the return type of a GCC
  18564. builtin and then its argument prototype would still apply. */
  18565. #ifdef __cplusplus
  18566. extern "C"
  18567. #endif
  18568. char dlopen ();
  18569. int
  18570. main ()
  18571. {
  18572. return dlopen ();
  18573. ;
  18574. return 0;
  18575. }
  18576. _ACEOF
  18577. if ac_fn_c_try_link "$LINENO"; then :
  18578. ac_cv_lib_c_dlopen=yes
  18579. else
  18580. ac_cv_lib_c_dlopen=no
  18581. fi
  18582. rm -f core conftest.err conftest.$ac_objext \
  18583. conftest$ac_exeext conftest.$ac_ext
  18584. LIBS=$ac_check_lib_save_LIBS
  18585. fi
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18587. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18588. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18590. else
  18591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18592. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18593. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18594. $as_echo_n "(cached) " >&6
  18595. else
  18596. ac_check_lib_save_LIBS=$LIBS
  18597. LIBS="-ldl $LIBS"
  18598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18599. /* end confdefs.h. */
  18600. /* Override any GCC internal prototype to avoid an error.
  18601. Use char because int might match the return type of a GCC
  18602. builtin and then its argument prototype would still apply. */
  18603. #ifdef __cplusplus
  18604. extern "C"
  18605. #endif
  18606. char dlopen ();
  18607. int
  18608. main ()
  18609. {
  18610. return dlopen ();
  18611. ;
  18612. return 0;
  18613. }
  18614. _ACEOF
  18615. if ac_fn_c_try_link "$LINENO"; then :
  18616. ac_cv_lib_dl_dlopen=yes
  18617. else
  18618. ac_cv_lib_dl_dlopen=no
  18619. fi
  18620. rm -f core conftest.err conftest.$ac_objext \
  18621. conftest$ac_exeext conftest.$ac_ext
  18622. LIBS=$ac_check_lib_save_LIBS
  18623. fi
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18625. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18626. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18628. else
  18629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18630. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18631. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18632. $as_echo_n "(cached) " >&6
  18633. else
  18634. ac_check_lib_save_LIBS=$LIBS
  18635. LIBS="-lltdl $LIBS"
  18636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18637. /* end confdefs.h. */
  18638. /* Override any GCC internal prototype to avoid an error.
  18639. Use char because int might match the return type of a GCC
  18640. builtin and then its argument prototype would still apply. */
  18641. #ifdef __cplusplus
  18642. extern "C"
  18643. #endif
  18644. char dlopen ();
  18645. int
  18646. main ()
  18647. {
  18648. return dlopen ();
  18649. ;
  18650. return 0;
  18651. }
  18652. _ACEOF
  18653. if ac_fn_c_try_link "$LINENO"; then :
  18654. ac_cv_lib_ltdl_dlopen=yes
  18655. else
  18656. ac_cv_lib_ltdl_dlopen=no
  18657. fi
  18658. rm -f core conftest.err conftest.$ac_objext \
  18659. conftest$ac_exeext conftest.$ac_ext
  18660. LIBS=$ac_check_lib_save_LIBS
  18661. fi
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18663. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18664. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18665. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18666. fi
  18667. fi
  18668. fi
  18669. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18670. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18671. have_loadso=yes
  18672. fi
  18673. fi
  18674. }
  18675. CheckUSBHID()
  18676. {
  18677. case "$host" in
  18678. *-*-*bsd*)
  18679. if test x$enable_joystick = xyes; then
  18680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18681. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18682. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18683. $as_echo_n "(cached) " >&6
  18684. else
  18685. ac_check_lib_save_LIBS=$LIBS
  18686. LIBS="-lusbhid $LIBS"
  18687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18688. /* end confdefs.h. */
  18689. /* Override any GCC internal prototype to avoid an error.
  18690. Use char because int might match the return type of a GCC
  18691. builtin and then its argument prototype would still apply. */
  18692. #ifdef __cplusplus
  18693. extern "C"
  18694. #endif
  18695. char hid_init ();
  18696. int
  18697. main ()
  18698. {
  18699. return hid_init ();
  18700. ;
  18701. return 0;
  18702. }
  18703. _ACEOF
  18704. if ac_fn_c_try_link "$LINENO"; then :
  18705. ac_cv_lib_usbhid_hid_init=yes
  18706. else
  18707. ac_cv_lib_usbhid_hid_init=no
  18708. fi
  18709. rm -f core conftest.err conftest.$ac_objext \
  18710. conftest$ac_exeext conftest.$ac_ext
  18711. LIBS=$ac_check_lib_save_LIBS
  18712. fi
  18713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18714. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18715. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18716. have_libusbhid=yes
  18717. fi
  18718. if test x$have_libusbhid = xyes; then
  18719. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18720. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18721. USB_CFLAGS="-DHAVE_USBHID_H"
  18722. fi
  18723. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18724. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18725. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18726. fi
  18727. USB_LIBS="$USB_LIBS -lusbhid"
  18728. else
  18729. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18730. if test "x$ac_cv_header_usb_h" = xyes; then :
  18731. USB_CFLAGS="-DHAVE_USB_H"
  18732. fi
  18733. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18734. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18735. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18736. fi
  18737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18738. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18739. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18740. $as_echo_n "(cached) " >&6
  18741. else
  18742. ac_check_lib_save_LIBS=$LIBS
  18743. LIBS="-lusb $LIBS"
  18744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18745. /* end confdefs.h. */
  18746. /* Override any GCC internal prototype to avoid an error.
  18747. Use char because int might match the return type of a GCC
  18748. builtin and then its argument prototype would still apply. */
  18749. #ifdef __cplusplus
  18750. extern "C"
  18751. #endif
  18752. char hid_init ();
  18753. int
  18754. main ()
  18755. {
  18756. return hid_init ();
  18757. ;
  18758. return 0;
  18759. }
  18760. _ACEOF
  18761. if ac_fn_c_try_link "$LINENO"; then :
  18762. ac_cv_lib_usb_hid_init=yes
  18763. else
  18764. ac_cv_lib_usb_hid_init=no
  18765. fi
  18766. rm -f core conftest.err conftest.$ac_objext \
  18767. conftest$ac_exeext conftest.$ac_ext
  18768. LIBS=$ac_check_lib_save_LIBS
  18769. fi
  18770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18771. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18772. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18773. USB_LIBS="$USB_LIBS -lusb"
  18774. fi
  18775. fi
  18776. save_CFLAGS="$CFLAGS"
  18777. CFLAGS="$CFLAGS $USB_CFLAGS"
  18778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18779. $as_echo_n "checking for usbhid... " >&6; }
  18780. have_usbhid=no
  18781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18782. /* end confdefs.h. */
  18783. #include <sys/types.h>
  18784. #if defined(HAVE_USB_H)
  18785. #include <usb.h>
  18786. #endif
  18787. #ifdef __DragonFly__
  18788. # include <bus/usb/usb.h>
  18789. # include <bus/usb/usbhid.h>
  18790. #else
  18791. # include <dev/usb/usb.h>
  18792. # include <dev/usb/usbhid.h>
  18793. #endif
  18794. #if defined(HAVE_USBHID_H)
  18795. #include <usbhid.h>
  18796. #elif defined(HAVE_LIBUSB_H)
  18797. #include <libusb.h>
  18798. #elif defined(HAVE_LIBUSBHID_H)
  18799. #include <libusbhid.h>
  18800. #endif
  18801. int
  18802. main ()
  18803. {
  18804. struct report_desc *repdesc;
  18805. struct usb_ctl_report *repbuf;
  18806. hid_kind_t hidkind;
  18807. ;
  18808. return 0;
  18809. }
  18810. _ACEOF
  18811. if ac_fn_c_try_compile "$LINENO"; then :
  18812. have_usbhid=yes
  18813. fi
  18814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  18816. $as_echo "$have_usbhid" >&6; }
  18817. if test x$have_usbhid = xyes; then
  18818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  18819. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  18820. have_usbhid_ucr_data=no
  18821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18822. /* end confdefs.h. */
  18823. #include <sys/types.h>
  18824. #if defined(HAVE_USB_H)
  18825. #include <usb.h>
  18826. #endif
  18827. #ifdef __DragonFly__
  18828. # include <bus/usb/usb.h>
  18829. # include <bus/usb/usbhid.h>
  18830. #else
  18831. # include <dev/usb/usb.h>
  18832. # include <dev/usb/usbhid.h>
  18833. #endif
  18834. #if defined(HAVE_USBHID_H)
  18835. #include <usbhid.h>
  18836. #elif defined(HAVE_LIBUSB_H)
  18837. #include <libusb.h>
  18838. #elif defined(HAVE_LIBUSBHID_H)
  18839. #include <libusbhid.h>
  18840. #endif
  18841. int
  18842. main ()
  18843. {
  18844. struct usb_ctl_report buf;
  18845. if (buf.ucr_data) { }
  18846. ;
  18847. return 0;
  18848. }
  18849. _ACEOF
  18850. if ac_fn_c_try_compile "$LINENO"; then :
  18851. have_usbhid_ucr_data=yes
  18852. fi
  18853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18854. if test x$have_usbhid_ucr_data = xyes; then
  18855. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  18856. fi
  18857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  18858. $as_echo "$have_usbhid_ucr_data" >&6; }
  18859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  18860. $as_echo_n "checking for new usbhid API... " >&6; }
  18861. have_usbhid_new=no
  18862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18863. /* end confdefs.h. */
  18864. #include <sys/types.h>
  18865. #if defined(HAVE_USB_H)
  18866. #include <usb.h>
  18867. #endif
  18868. #ifdef __DragonFly__
  18869. #include <bus/usb/usb.h>
  18870. #include <bus/usb/usbhid.h>
  18871. #else
  18872. #include <dev/usb/usb.h>
  18873. #include <dev/usb/usbhid.h>
  18874. #endif
  18875. #if defined(HAVE_USBHID_H)
  18876. #include <usbhid.h>
  18877. #elif defined(HAVE_LIBUSB_H)
  18878. #include <libusb.h>
  18879. #elif defined(HAVE_LIBUSBHID_H)
  18880. #include <libusbhid.h>
  18881. #endif
  18882. int
  18883. main ()
  18884. {
  18885. report_desc_t d;
  18886. hid_start_parse(d, 1, 1);
  18887. ;
  18888. return 0;
  18889. }
  18890. _ACEOF
  18891. if ac_fn_c_try_compile "$LINENO"; then :
  18892. have_usbhid_new=yes
  18893. fi
  18894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18895. if test x$have_usbhid_new = xyes; then
  18896. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  18897. fi
  18898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  18899. $as_echo "$have_usbhid_new" >&6; }
  18900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  18901. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  18902. have_machine_joystick=no
  18903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18904. /* end confdefs.h. */
  18905. #include <machine/joystick.h>
  18906. int
  18907. main ()
  18908. {
  18909. struct joystick t;
  18910. ;
  18911. return 0;
  18912. }
  18913. _ACEOF
  18914. if ac_fn_c_try_compile "$LINENO"; then :
  18915. have_machine_joystick=yes
  18916. fi
  18917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18918. if test x$have_machine_joystick = xyes; then
  18919. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  18920. fi
  18921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  18922. $as_echo "$have_machine_joystick" >&6; }
  18923. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  18924. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  18925. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  18926. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  18927. have_joystick=yes
  18928. fi
  18929. CFLAGS="$save_CFLAGS"
  18930. fi
  18931. ;;
  18932. esac
  18933. }
  18934. CheckClockGettime()
  18935. {
  18936. # Check whether --enable-clock_gettime was given.
  18937. if test "${enable_clock_gettime+set}" = set; then :
  18938. enableval=$enable_clock_gettime;
  18939. else
  18940. enable_clock_gettime=yes
  18941. fi
  18942. if test x$enable_clock_gettime = xyes; then
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  18944. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  18945. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  18946. $as_echo_n "(cached) " >&6
  18947. else
  18948. ac_check_lib_save_LIBS=$LIBS
  18949. LIBS="-lrt $LIBS"
  18950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18951. /* end confdefs.h. */
  18952. /* Override any GCC internal prototype to avoid an error.
  18953. Use char because int might match the return type of a GCC
  18954. builtin and then its argument prototype would still apply. */
  18955. #ifdef __cplusplus
  18956. extern "C"
  18957. #endif
  18958. char clock_gettime ();
  18959. int
  18960. main ()
  18961. {
  18962. return clock_gettime ();
  18963. ;
  18964. return 0;
  18965. }
  18966. _ACEOF
  18967. if ac_fn_c_try_link "$LINENO"; then :
  18968. ac_cv_lib_rt_clock_gettime=yes
  18969. else
  18970. ac_cv_lib_rt_clock_gettime=no
  18971. fi
  18972. rm -f core conftest.err conftest.$ac_objext \
  18973. conftest$ac_exeext conftest.$ac_ext
  18974. LIBS=$ac_check_lib_save_LIBS
  18975. fi
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  18977. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  18978. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  18979. have_clock_gettime=yes
  18980. fi
  18981. if test x$have_clock_gettime = xyes; then
  18982. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  18983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  18984. else
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  18986. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  18987. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  18988. $as_echo_n "(cached) " >&6
  18989. else
  18990. ac_check_lib_save_LIBS=$LIBS
  18991. LIBS="-lc $LIBS"
  18992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h. */
  18994. /* Override any GCC internal prototype to avoid an error.
  18995. Use char because int might match the return type of a GCC
  18996. builtin and then its argument prototype would still apply. */
  18997. #ifdef __cplusplus
  18998. extern "C"
  18999. #endif
  19000. char clock_gettime ();
  19001. int
  19002. main ()
  19003. {
  19004. return clock_gettime ();
  19005. ;
  19006. return 0;
  19007. }
  19008. _ACEOF
  19009. if ac_fn_c_try_link "$LINENO"; then :
  19010. ac_cv_lib_c_clock_gettime=yes
  19011. else
  19012. ac_cv_lib_c_clock_gettime=no
  19013. fi
  19014. rm -f core conftest.err conftest.$ac_objext \
  19015. conftest$ac_exeext conftest.$ac_ext
  19016. LIBS=$ac_check_lib_save_LIBS
  19017. fi
  19018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19019. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19020. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19021. have_clock_gettime=yes
  19022. fi
  19023. if test x$have_clock_gettime = xyes; then
  19024. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19026. fi
  19027. fi
  19028. fi
  19029. }
  19030. CheckLinuxVersion()
  19031. {
  19032. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19033. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19034. have_linux_version_h=yes
  19035. fi
  19036. if test x$have_linux_version_h = xyes; then
  19037. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19038. fi
  19039. }
  19040. CheckRPATH()
  19041. {
  19042. # Check whether --enable-rpath was given.
  19043. if test "${enable_rpath+set}" = set; then :
  19044. enableval=$enable_rpath;
  19045. else
  19046. enable_rpath=yes
  19047. fi
  19048. }
  19049. case "$host" in
  19050. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19051. case "$host" in
  19052. *-raspberry-linux*)
  19053. # Raspberry Pi
  19054. ARCH=linux
  19055. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19056. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19057. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19058. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19060. if test x$enable_video = xyes; then
  19061. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19062. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19063. fi
  19064. ;;
  19065. *-*-linux*) ARCH=linux ;;
  19066. *-*-uclinux*) ARCH=linux ;;
  19067. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19068. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19069. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19070. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19071. *-*-bsdi*) ARCH=bsdi ;;
  19072. *-*-freebsd*) ARCH=freebsd ;;
  19073. *-*-dragonfly*) ARCH=freebsd ;;
  19074. *-*-netbsd*) ARCH=netbsd ;;
  19075. *-*-openbsd*) ARCH=openbsd ;;
  19076. *-*-sysv5*) ARCH=sysv5 ;;
  19077. *-*-solaris*) ARCH=solaris ;;
  19078. *-*-hpux*) ARCH=hpux ;;
  19079. *-*-aix*) ARCH=aix ;;
  19080. *-*-minix*) ARCH=minix ;;
  19081. esac
  19082. CheckVisibilityHidden
  19083. CheckDummyVideo
  19084. CheckDiskAudio
  19085. CheckDummyAudio
  19086. CheckDLOPEN
  19087. CheckOSS
  19088. CheckALSA
  19089. CheckPulseAudio
  19090. CheckARTSC
  19091. CheckESD
  19092. CheckNAS
  19093. CheckSNDIO
  19094. CheckX11
  19095. CheckWayland
  19096. CheckDirectFB
  19097. CheckFusionSound
  19098. CheckOpenGLX11
  19099. CheckOpenGLESX11
  19100. CheckLibUDev
  19101. CheckDBus
  19102. CheckInputEvents
  19103. CheckInputKD
  19104. CheckTslib
  19105. CheckUSBHID
  19106. CheckPTHREAD
  19107. CheckClockGettime
  19108. CheckLinuxVersion
  19109. CheckRPATH
  19110. # Set up files for the audio library
  19111. if test x$enable_audio = xyes; then
  19112. case $ARCH in
  19113. sysv5|solaris|hpux)
  19114. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19115. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19116. have_audio=yes
  19117. ;;
  19118. netbsd) # Don't use this on OpenBSD, it's busted.
  19119. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19120. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19121. have_audio=yes
  19122. ;;
  19123. aix)
  19124. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19125. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19126. have_audio=yes
  19127. ;;
  19128. esac
  19129. fi
  19130. # Set up files for the joystick library
  19131. if test x$enable_joystick = xyes; then
  19132. case $ARCH in
  19133. linux)
  19134. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19135. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19136. have_joystick=yes
  19137. ;;
  19138. esac
  19139. fi
  19140. # Set up files for the haptic library
  19141. if test x$enable_haptic = xyes; then
  19142. if test x$use_input_events = xyes; then
  19143. case $ARCH in
  19144. linux)
  19145. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19146. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19147. have_haptic=yes
  19148. ;;
  19149. esac
  19150. fi
  19151. fi
  19152. # Set up files for the power library
  19153. if test x$enable_power = xyes; then
  19154. case $ARCH in
  19155. linux)
  19156. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19157. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19158. have_power=yes
  19159. ;;
  19160. esac
  19161. fi
  19162. # Set up files for the filesystem library
  19163. if test x$enable_filesystem = xyes; then
  19164. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19165. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19166. have_filesystem=yes
  19167. fi
  19168. # Set up files for the timer library
  19169. if test x$enable_timers = xyes; then
  19170. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19171. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19172. have_timers=yes
  19173. fi
  19174. # Set up files for udev hotplugging support
  19175. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19176. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19177. fi
  19178. # Set up files for evdev input
  19179. if test x$use_input_events = xyes; then
  19180. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19181. fi
  19182. ;;
  19183. *-*-cygwin* | *-*-mingw32*)
  19184. ARCH=win32
  19185. if test "$build" != "$host"; then # cross-compiling
  19186. # Default cross-compile location
  19187. ac_default_prefix=/usr/local/cross-tools/$host
  19188. else
  19189. # Look for the location of the tools and install there
  19190. if test "$BUILD_PREFIX" != ""; then
  19191. ac_default_prefix=$BUILD_PREFIX
  19192. fi
  19193. fi
  19194. CheckDummyVideo
  19195. CheckDiskAudio
  19196. CheckDummyAudio
  19197. CheckWINDOWS
  19198. CheckWINDOWSGL
  19199. CheckWINDOWSGLES
  19200. CheckDIRECTX
  19201. # Set up the core platform files
  19202. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19203. # Set up files for the video library
  19204. if test x$enable_video = xyes; then
  19205. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19206. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19207. have_video=yes
  19208. # Check whether --enable-render-d3d was given.
  19209. if test "${enable_render_d3d+set}" = set; then :
  19210. enableval=$enable_render_d3d;
  19211. else
  19212. enable_render_d3d=yes
  19213. fi
  19214. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19215. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19216. fi
  19217. fi
  19218. # Set up files for the audio library
  19219. if test x$enable_audio = xyes; then
  19220. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19221. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19222. if test x$have_dsound = xyes; then
  19223. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19224. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19225. fi
  19226. if test x$have_xaudio2 = xyes; then
  19227. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19228. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19229. fi
  19230. have_audio=yes
  19231. fi
  19232. # Set up files for the joystick library
  19233. if test x$enable_joystick = xyes; then
  19234. if test x$have_dinput = xyes; then
  19235. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19236. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19238. else
  19239. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19240. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19241. fi
  19242. have_joystick=yes
  19243. fi
  19244. if test x$enable_haptic = xyes; then
  19245. if test x$have_dinput = xyes; then
  19246. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19247. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19248. have_haptic=yes
  19249. fi
  19250. fi
  19251. if test x$enable_power = xyes; then
  19252. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19253. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19254. have_power=yes
  19255. fi
  19256. if test x$enable_filesystem = xyes; then
  19257. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19258. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19259. have_filesystem=yes
  19260. fi
  19261. # Set up files for the thread library
  19262. if test x$enable_threads = xyes; then
  19263. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19264. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19265. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19266. have_threads=yes
  19267. fi
  19268. # Set up files for the timer library
  19269. if test x$enable_timers = xyes; then
  19270. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19271. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19272. have_timers=yes
  19273. fi
  19274. # Set up files for the shared object loading library
  19275. if test x$enable_loadso = xyes; then
  19276. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19277. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19278. have_loadso=yes
  19279. fi
  19280. # Set up the system libraries we need
  19281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19282. # The Windows platform requires special setup
  19283. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19284. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19285. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19286. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19287. # Check to see if this is a mingw or cygwin build
  19288. have_mingw32=
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19290. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19291. if ${ac_cv_lib_mingw32_main+:} false; then :
  19292. $as_echo_n "(cached) " >&6
  19293. else
  19294. ac_check_lib_save_LIBS=$LIBS
  19295. LIBS="-lmingw32 $LIBS"
  19296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19297. /* end confdefs.h. */
  19298. int
  19299. main ()
  19300. {
  19301. return main ();
  19302. ;
  19303. return 0;
  19304. }
  19305. _ACEOF
  19306. if ac_fn_c_try_link "$LINENO"; then :
  19307. ac_cv_lib_mingw32_main=yes
  19308. else
  19309. ac_cv_lib_mingw32_main=no
  19310. fi
  19311. rm -f core conftest.err conftest.$ac_objext \
  19312. conftest$ac_exeext conftest.$ac_ext
  19313. LIBS=$ac_check_lib_save_LIBS
  19314. fi
  19315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19316. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19317. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19318. have_mingw32=yes
  19319. fi
  19320. if test x$have_mingw32 = xyes; then
  19321. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19322. else
  19323. SDL_LIBS="-lcygwin $SDL_LIBS"
  19324. fi
  19325. ;;
  19326. *-*-beos*)
  19327. as_fn_error $? "
  19328. *** BeOS support has been removed as of SDL 2.0.2.
  19329. " "$LINENO" 5
  19330. ;;
  19331. *-*-haiku*)
  19332. ARCH=haiku
  19333. ac_default_prefix=/boot/system
  19334. CheckDummyVideo
  19335. CheckDiskAudio
  19336. CheckDummyAudio
  19337. CheckHaikuVideo
  19338. CheckHaikuGL
  19339. CheckPTHREAD
  19340. # Set up files for the audio library
  19341. if test x$enable_audio = xyes; then
  19342. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19343. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19344. have_audio=yes
  19345. fi
  19346. # Set up files for the joystick library
  19347. if test x$enable_joystick = xyes; then
  19348. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19349. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19350. have_joystick=yes
  19351. fi
  19352. # Set up files for the timer library
  19353. if test x$enable_timers = xyes; then
  19354. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19355. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19356. have_timers=yes
  19357. fi
  19358. # Set up files for the shared object loading library
  19359. if test x$enable_loadso = xyes; then
  19360. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19361. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19362. have_loadso=yes
  19363. fi
  19364. # Set up files for the system power library
  19365. if test x$enable_power = xyes; then
  19366. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19367. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19368. have_power=yes
  19369. fi
  19370. # Set up files for the system filesystem library
  19371. if test x$enable_filesystem = xyes; then
  19372. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19373. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19374. have_filesystem=yes
  19375. fi
  19376. # The Haiku platform requires special setup.
  19377. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19378. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19379. ;;
  19380. arm*-apple-darwin*)
  19381. # iOS - We are not writing anything to confdefs.h because you have to replace
  19382. # SDL_config.h for SDL_config_iphoneos.h anyway
  19383. ARCH=ios
  19384. CheckVisibilityHidden
  19385. CheckDummyVideo
  19386. CheckDiskAudio
  19387. CheckDummyAudio
  19388. CheckDLOPEN
  19389. CheckCOCOA
  19390. CheckPTHREAD
  19391. # Set up files for the audio library
  19392. if test x$enable_audio = xyes; then
  19393. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19394. have_audio=yes
  19395. fi
  19396. # Set up files for the joystick library
  19397. if test x$enable_joystick = xyes; then
  19398. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19399. have_joystick=yes
  19400. fi
  19401. # Set up files for the haptic library
  19402. #if test x$enable_haptic = xyes; then
  19403. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19404. # have_haptic=yes
  19405. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19406. #fi
  19407. # Set up files for the power library
  19408. if test x$enable_power = xyes; then
  19409. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19410. have_power=yes
  19411. fi
  19412. # Set up files for the filesystem library
  19413. if test x$enable_filesystem = xyes; then
  19414. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19415. have_filesystem=yes
  19416. fi
  19417. # Set up files for the timer library
  19418. if test x$enable_timers = xyes; then
  19419. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19420. have_timers=yes
  19421. fi
  19422. # Set up additional files for the file library
  19423. if test x$enable_file = xyes; then
  19424. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19425. fi
  19426. # The iOS platform requires special setup.
  19427. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19428. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19432. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19435. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19436. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19437. ;;
  19438. *-*-darwin* )
  19439. # This could be either full "Mac OS X", or plain "Darwin" which is
  19440. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19441. # Next line is broken, and a few files below require Mac OS X (full)
  19442. ARCH=macosx
  19443. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19444. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19445. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19446. CheckVisibilityHidden
  19447. CheckDummyVideo
  19448. CheckDiskAudio
  19449. CheckDummyAudio
  19450. CheckDLOPEN
  19451. CheckCOCOA
  19452. CheckX11
  19453. CheckMacGL
  19454. CheckOpenGLX11
  19455. CheckPTHREAD
  19456. # Good optimization on Mac OS X, yes...
  19457. EXTRA_CFLAGS="$EXTRA_CFLAGS -falign-loops=16"
  19458. # Need this or things might misbuild on a G3.
  19459. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19460. # Set up files for the audio library
  19461. if test x$enable_audio = xyes; then
  19462. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19463. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19464. have_audio=yes
  19465. fi
  19466. # Set up files for the joystick library
  19467. if test x$enable_joystick = xyes; then
  19468. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19469. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19470. have_joystick=yes
  19471. fi
  19472. # Set up files for the haptic library
  19473. if test x$enable_haptic = xyes; then
  19474. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19475. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19476. have_haptic=yes
  19477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19478. fi
  19479. # Set up files for the power library
  19480. if test x$enable_power = xyes; then
  19481. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19482. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19483. have_power=yes
  19484. fi
  19485. # Set up files for the filesystem library
  19486. if test x$enable_filesystem = xyes; then
  19487. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19488. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19489. have_filesystem=yes
  19490. fi
  19491. # Set up files for the timer library
  19492. if test x$enable_timers = xyes; then
  19493. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19494. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19495. have_timers=yes
  19496. fi
  19497. # Set up additional files for the file library
  19498. if test x$enable_file = xyes; then
  19499. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19500. fi
  19501. # The Mac OS X platform requires special setup.
  19502. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19503. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19504. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19505. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19506. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19507. # If audio is used, add the AudioUnit framework
  19508. if test x$enable_audio = xyes; then
  19509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19510. fi
  19511. ;;
  19512. *)
  19513. as_fn_error $? "
  19514. *** Unsupported host: Please add to configure.in
  19515. " "$LINENO" 5
  19516. ;;
  19517. esac
  19518. CheckWarnAll
  19519. # Verify that we have all the platform specific files we need
  19520. if test x$have_joystick != xyes; then
  19521. if test x$enable_joystick = xyes; then
  19522. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19523. fi
  19524. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19525. fi
  19526. if test x$have_haptic != xyes; then
  19527. if test x$enable_haptic = xyes; then
  19528. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19529. fi
  19530. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19531. fi
  19532. if test x$have_threads != xyes; then
  19533. if test x$enable_threads = xyes; then
  19534. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19535. fi
  19536. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19537. fi
  19538. if test x$have_timers != xyes; then
  19539. if test x$enable_timers = xyes; then
  19540. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19541. fi
  19542. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19543. fi
  19544. if test x$have_filesystem != xyes; then
  19545. if test x$enable_filesystem = xyes; then
  19546. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19547. fi
  19548. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19549. fi
  19550. if test x$have_loadso != xyes; then
  19551. if test x$enable_loadso = xyes; then
  19552. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19553. fi
  19554. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19555. fi
  19556. if test x$SDLMAIN_SOURCES = x; then
  19557. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19558. fi
  19559. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19560. OBJECTS=`echo $SOURCES`
  19561. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19562. for EXT in asm cc m c S; do
  19563. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19564. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19565. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19566. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19567. done
  19568. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19569. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19570. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19571. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19572. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19573. \\$(WINDRES) \\$< \\$@,g"`
  19574. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19575. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19576. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19577. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19578. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19579. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19580. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19581. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19582. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19583. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19584. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19585. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19586. # Set runtime shared library paths as needed
  19587. if test "x$enable_rpath" = "xyes"; then
  19588. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19589. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19590. fi
  19591. if test $ARCH = solaris; then
  19592. SDL_RLD_FLAGS="-R\${libdir}"
  19593. fi
  19594. else
  19595. SDL_RLD_FLAGS=""
  19596. fi
  19597. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19598. if test x$enable_shared = xyes; then
  19599. ENABLE_SHARED_TRUE=
  19600. ENABLE_SHARED_FALSE="#"
  19601. else
  19602. ENABLE_SHARED_TRUE="#"
  19603. ENABLE_SHARED_FALSE=
  19604. fi
  19605. if test x$enable_static = xyes; then
  19606. ENABLE_STATIC_TRUE=
  19607. ENABLE_STATIC_FALSE="#"
  19608. else
  19609. ENABLE_STATIC_TRUE="#"
  19610. ENABLE_STATIC_FALSE=
  19611. fi
  19612. cat >Makefile.rules <<__EOF__
  19613. # Build rules for objects
  19614. -include \$(OBJECTS:.lo=.d)
  19615. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19616. $srcdir/src/SDL.c: update-revision
  19617. $DEPENDS
  19618. $VERSION_DEPENDS
  19619. $SDLMAIN_DEPENDS
  19620. $SDLTEST_DEPENDS
  19621. __EOF__
  19622. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19623. cat >confcache <<\_ACEOF
  19624. # This file is a shell script that caches the results of configure
  19625. # tests run on this system so they can be shared between configure
  19626. # scripts and configure runs, see configure's option --config-cache.
  19627. # It is not useful on other systems. If it contains results you don't
  19628. # want to keep, you may remove or edit it.
  19629. #
  19630. # config.status only pays attention to the cache file if you give it
  19631. # the --recheck option to rerun configure.
  19632. #
  19633. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19634. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19635. # following values.
  19636. _ACEOF
  19637. # The following way of writing the cache mishandles newlines in values,
  19638. # but we know of no workaround that is simple, portable, and efficient.
  19639. # So, we kill variables containing newlines.
  19640. # Ultrix sh set writes to stderr and can't be redirected directly,
  19641. # and sets the high bit in the cache file unless we assign to the vars.
  19642. (
  19643. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19644. eval ac_val=\$$ac_var
  19645. case $ac_val in #(
  19646. *${as_nl}*)
  19647. case $ac_var in #(
  19648. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19649. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19650. esac
  19651. case $ac_var in #(
  19652. _ | IFS | as_nl) ;; #(
  19653. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19654. *) { eval $ac_var=; unset $ac_var;} ;;
  19655. esac ;;
  19656. esac
  19657. done
  19658. (set) 2>&1 |
  19659. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19660. *${as_nl}ac_space=\ *)
  19661. # `set' does not quote correctly, so add quotes: double-quote
  19662. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19663. sed -n \
  19664. "s/'/'\\\\''/g;
  19665. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19666. ;; #(
  19667. *)
  19668. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19669. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19670. ;;
  19671. esac |
  19672. sort
  19673. ) |
  19674. sed '
  19675. /^ac_cv_env_/b end
  19676. t clear
  19677. :clear
  19678. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19679. t end
  19680. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19681. :end' >>confcache
  19682. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19683. if test -w "$cache_file"; then
  19684. if test "x$cache_file" != "x/dev/null"; then
  19685. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19686. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19687. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19688. cat confcache >"$cache_file"
  19689. else
  19690. case $cache_file in #(
  19691. */* | ?:*)
  19692. mv -f confcache "$cache_file"$$ &&
  19693. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19694. *)
  19695. mv -f confcache "$cache_file" ;;
  19696. esac
  19697. fi
  19698. fi
  19699. else
  19700. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19701. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19702. fi
  19703. fi
  19704. rm -f confcache
  19705. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19706. # Let make expand exec_prefix.
  19707. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19708. DEFS=-DHAVE_CONFIG_H
  19709. ac_libobjs=
  19710. ac_ltlibobjs=
  19711. U=
  19712. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19713. # 1. Remove the extension, and $U if already installed.
  19714. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19715. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19716. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19717. # will be set to the directory where LIBOBJS objects are built.
  19718. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19719. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19720. done
  19721. LIBOBJS=$ac_libobjs
  19722. LTLIBOBJS=$ac_ltlibobjs
  19723. : "${CONFIG_STATUS=./config.status}"
  19724. ac_write_fail=0
  19725. ac_clean_files_save=$ac_clean_files
  19726. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19727. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19728. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19729. as_write_fail=0
  19730. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19731. #! $SHELL
  19732. # Generated by $as_me.
  19733. # Run this file to recreate the current configuration.
  19734. # Compiler output produced by configure, useful for debugging
  19735. # configure, is in config.log if it exists.
  19736. debug=false
  19737. ac_cs_recheck=false
  19738. ac_cs_silent=false
  19739. SHELL=\${CONFIG_SHELL-$SHELL}
  19740. export SHELL
  19741. _ASEOF
  19742. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19743. ## -------------------- ##
  19744. ## M4sh Initialization. ##
  19745. ## -------------------- ##
  19746. # Be more Bourne compatible
  19747. DUALCASE=1; export DUALCASE # for MKS sh
  19748. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19749. emulate sh
  19750. NULLCMD=:
  19751. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19752. # is contrary to our usage. Disable this feature.
  19753. alias -g '${1+"$@"}'='"$@"'
  19754. setopt NO_GLOB_SUBST
  19755. else
  19756. case `(set -o) 2>/dev/null` in #(
  19757. *posix*) :
  19758. set -o posix ;; #(
  19759. *) :
  19760. ;;
  19761. esac
  19762. fi
  19763. as_nl='
  19764. '
  19765. export as_nl
  19766. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19767. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19768. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19769. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19770. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19771. # but without wasting forks for bash or zsh.
  19772. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19773. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19774. as_echo='print -r --'
  19775. as_echo_n='print -rn --'
  19776. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19777. as_echo='printf %s\n'
  19778. as_echo_n='printf %s'
  19779. else
  19780. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19781. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19782. as_echo_n='/usr/ucb/echo -n'
  19783. else
  19784. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19785. as_echo_n_body='eval
  19786. arg=$1;
  19787. case $arg in #(
  19788. *"$as_nl"*)
  19789. expr "X$arg" : "X\\(.*\\)$as_nl";
  19790. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19791. esac;
  19792. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19793. '
  19794. export as_echo_n_body
  19795. as_echo_n='sh -c $as_echo_n_body as_echo'
  19796. fi
  19797. export as_echo_body
  19798. as_echo='sh -c $as_echo_body as_echo'
  19799. fi
  19800. # The user is always right.
  19801. if test "${PATH_SEPARATOR+set}" != set; then
  19802. PATH_SEPARATOR=:
  19803. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19804. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19805. PATH_SEPARATOR=';'
  19806. }
  19807. fi
  19808. # IFS
  19809. # We need space, tab and new line, in precisely that order. Quoting is
  19810. # there to prevent editors from complaining about space-tab.
  19811. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19812. # splitting by setting IFS to empty value.)
  19813. IFS=" "" $as_nl"
  19814. # Find who we are. Look in the path if we contain no directory separator.
  19815. as_myself=
  19816. case $0 in #((
  19817. *[\\/]* ) as_myself=$0 ;;
  19818. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19819. for as_dir in $PATH
  19820. do
  19821. IFS=$as_save_IFS
  19822. test -z "$as_dir" && as_dir=.
  19823. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19824. done
  19825. IFS=$as_save_IFS
  19826. ;;
  19827. esac
  19828. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19829. # in which case we are not to be found in the path.
  19830. if test "x$as_myself" = x; then
  19831. as_myself=$0
  19832. fi
  19833. if test ! -f "$as_myself"; then
  19834. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19835. exit 1
  19836. fi
  19837. # Unset variables that we do not need and which cause bugs (e.g. in
  19838. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19839. # suppresses any "Segmentation fault" message there. '((' could
  19840. # trigger a bug in pdksh 5.2.14.
  19841. for as_var in BASH_ENV ENV MAIL MAILPATH
  19842. do eval test x\${$as_var+set} = xset \
  19843. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19844. done
  19845. PS1='$ '
  19846. PS2='> '
  19847. PS4='+ '
  19848. # NLS nuisances.
  19849. LC_ALL=C
  19850. export LC_ALL
  19851. LANGUAGE=C
  19852. export LANGUAGE
  19853. # CDPATH.
  19854. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19855. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19856. # ----------------------------------------
  19857. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19858. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19859. # script with STATUS, using 1 if that was 0.
  19860. as_fn_error ()
  19861. {
  19862. as_status=$1; test $as_status -eq 0 && as_status=1
  19863. if test "$4"; then
  19864. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19865. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19866. fi
  19867. $as_echo "$as_me: error: $2" >&2
  19868. as_fn_exit $as_status
  19869. } # as_fn_error
  19870. # as_fn_set_status STATUS
  19871. # -----------------------
  19872. # Set $? to STATUS, without forking.
  19873. as_fn_set_status ()
  19874. {
  19875. return $1
  19876. } # as_fn_set_status
  19877. # as_fn_exit STATUS
  19878. # -----------------
  19879. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19880. as_fn_exit ()
  19881. {
  19882. set +e
  19883. as_fn_set_status $1
  19884. exit $1
  19885. } # as_fn_exit
  19886. # as_fn_unset VAR
  19887. # ---------------
  19888. # Portably unset VAR.
  19889. as_fn_unset ()
  19890. {
  19891. { eval $1=; unset $1;}
  19892. }
  19893. as_unset=as_fn_unset
  19894. # as_fn_append VAR VALUE
  19895. # ----------------------
  19896. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19897. # advantage of any shell optimizations that allow amortized linear growth over
  19898. # repeated appends, instead of the typical quadratic growth present in naive
  19899. # implementations.
  19900. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19901. eval 'as_fn_append ()
  19902. {
  19903. eval $1+=\$2
  19904. }'
  19905. else
  19906. as_fn_append ()
  19907. {
  19908. eval $1=\$$1\$2
  19909. }
  19910. fi # as_fn_append
  19911. # as_fn_arith ARG...
  19912. # ------------------
  19913. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19914. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19915. # must be portable across $(()) and expr.
  19916. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19917. eval 'as_fn_arith ()
  19918. {
  19919. as_val=$(( $* ))
  19920. }'
  19921. else
  19922. as_fn_arith ()
  19923. {
  19924. as_val=`expr "$@" || test $? -eq 1`
  19925. }
  19926. fi # as_fn_arith
  19927. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19928. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19929. as_expr=expr
  19930. else
  19931. as_expr=false
  19932. fi
  19933. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19934. as_basename=basename
  19935. else
  19936. as_basename=false
  19937. fi
  19938. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19939. as_dirname=dirname
  19940. else
  19941. as_dirname=false
  19942. fi
  19943. as_me=`$as_basename -- "$0" ||
  19944. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19945. X"$0" : 'X\(//\)$' \| \
  19946. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19947. $as_echo X/"$0" |
  19948. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19949. s//\1/
  19950. q
  19951. }
  19952. /^X\/\(\/\/\)$/{
  19953. s//\1/
  19954. q
  19955. }
  19956. /^X\/\(\/\).*/{
  19957. s//\1/
  19958. q
  19959. }
  19960. s/.*/./; q'`
  19961. # Avoid depending upon Character Ranges.
  19962. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19963. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19964. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19965. as_cr_digits='0123456789'
  19966. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19967. ECHO_C= ECHO_N= ECHO_T=
  19968. case `echo -n x` in #(((((
  19969. -n*)
  19970. case `echo 'xy\c'` in
  19971. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19972. xy) ECHO_C='\c';;
  19973. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19974. ECHO_T=' ';;
  19975. esac;;
  19976. *)
  19977. ECHO_N='-n';;
  19978. esac
  19979. rm -f conf$$ conf$$.exe conf$$.file
  19980. if test -d conf$$.dir; then
  19981. rm -f conf$$.dir/conf$$.file
  19982. else
  19983. rm -f conf$$.dir
  19984. mkdir conf$$.dir 2>/dev/null
  19985. fi
  19986. if (echo >conf$$.file) 2>/dev/null; then
  19987. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19988. as_ln_s='ln -s'
  19989. # ... but there are two gotchas:
  19990. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19991. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19992. # In both cases, we have to default to `cp -pR'.
  19993. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19994. as_ln_s='cp -pR'
  19995. elif ln conf$$.file conf$$ 2>/dev/null; then
  19996. as_ln_s=ln
  19997. else
  19998. as_ln_s='cp -pR'
  19999. fi
  20000. else
  20001. as_ln_s='cp -pR'
  20002. fi
  20003. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20004. rmdir conf$$.dir 2>/dev/null
  20005. # as_fn_mkdir_p
  20006. # -------------
  20007. # Create "$as_dir" as a directory, including parents if necessary.
  20008. as_fn_mkdir_p ()
  20009. {
  20010. case $as_dir in #(
  20011. -*) as_dir=./$as_dir;;
  20012. esac
  20013. test -d "$as_dir" || eval $as_mkdir_p || {
  20014. as_dirs=
  20015. while :; do
  20016. case $as_dir in #(
  20017. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20018. *) as_qdir=$as_dir;;
  20019. esac
  20020. as_dirs="'$as_qdir' $as_dirs"
  20021. as_dir=`$as_dirname -- "$as_dir" ||
  20022. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20023. X"$as_dir" : 'X\(//\)[^/]' \| \
  20024. X"$as_dir" : 'X\(//\)$' \| \
  20025. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20026. $as_echo X"$as_dir" |
  20027. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20028. s//\1/
  20029. q
  20030. }
  20031. /^X\(\/\/\)[^/].*/{
  20032. s//\1/
  20033. q
  20034. }
  20035. /^X\(\/\/\)$/{
  20036. s//\1/
  20037. q
  20038. }
  20039. /^X\(\/\).*/{
  20040. s//\1/
  20041. q
  20042. }
  20043. s/.*/./; q'`
  20044. test -d "$as_dir" && break
  20045. done
  20046. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20047. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20048. } # as_fn_mkdir_p
  20049. if mkdir -p . 2>/dev/null; then
  20050. as_mkdir_p='mkdir -p "$as_dir"'
  20051. else
  20052. test -d ./-p && rmdir ./-p
  20053. as_mkdir_p=false
  20054. fi
  20055. # as_fn_executable_p FILE
  20056. # -----------------------
  20057. # Test if FILE is an executable regular file.
  20058. as_fn_executable_p ()
  20059. {
  20060. test -f "$1" && test -x "$1"
  20061. } # as_fn_executable_p
  20062. as_test_x='test -x'
  20063. as_executable_p=as_fn_executable_p
  20064. # Sed expression to map a string onto a valid CPP name.
  20065. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20066. # Sed expression to map a string onto a valid variable name.
  20067. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20068. exec 6>&1
  20069. ## ----------------------------------- ##
  20070. ## Main body of $CONFIG_STATUS script. ##
  20071. ## ----------------------------------- ##
  20072. _ASEOF
  20073. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20075. # Save the log message, to keep $0 and so on meaningful, and to
  20076. # report actual input values of CONFIG_FILES etc. instead of their
  20077. # values after options handling.
  20078. ac_log="
  20079. This file was extended by $as_me, which was
  20080. generated by GNU Autoconf 2.69. Invocation command line was
  20081. CONFIG_FILES = $CONFIG_FILES
  20082. CONFIG_HEADERS = $CONFIG_HEADERS
  20083. CONFIG_LINKS = $CONFIG_LINKS
  20084. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20085. $ $0 $@
  20086. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20087. "
  20088. _ACEOF
  20089. case $ac_config_files in *"
  20090. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20091. esac
  20092. case $ac_config_headers in *"
  20093. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20094. esac
  20095. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20096. # Files that config.status was made for.
  20097. config_files="$ac_config_files"
  20098. config_headers="$ac_config_headers"
  20099. config_commands="$ac_config_commands"
  20100. _ACEOF
  20101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20102. ac_cs_usage="\
  20103. \`$as_me' instantiates files and other configuration actions
  20104. from templates according to the current configuration. Unless the files
  20105. and actions are specified as TAGs, all are instantiated by default.
  20106. Usage: $0 [OPTION]... [TAG]...
  20107. -h, --help print this help, then exit
  20108. -V, --version print version number and configuration settings, then exit
  20109. --config print configuration, then exit
  20110. -q, --quiet, --silent
  20111. do not print progress messages
  20112. -d, --debug don't remove temporary files
  20113. --recheck update $as_me by reconfiguring in the same conditions
  20114. --file=FILE[:TEMPLATE]
  20115. instantiate the configuration file FILE
  20116. --header=FILE[:TEMPLATE]
  20117. instantiate the configuration header FILE
  20118. Configuration files:
  20119. $config_files
  20120. Configuration headers:
  20121. $config_headers
  20122. Configuration commands:
  20123. $config_commands
  20124. Report bugs to the package provider."
  20125. _ACEOF
  20126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20127. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20128. ac_cs_version="\\
  20129. config.status
  20130. configured by $0, generated by GNU Autoconf 2.69,
  20131. with options \\"\$ac_cs_config\\"
  20132. Copyright (C) 2012 Free Software Foundation, Inc.
  20133. This config.status script is free software; the Free Software Foundation
  20134. gives unlimited permission to copy, distribute and modify it."
  20135. ac_pwd='$ac_pwd'
  20136. srcdir='$srcdir'
  20137. INSTALL='$INSTALL'
  20138. AWK='$AWK'
  20139. test -n "\$AWK" || AWK=awk
  20140. _ACEOF
  20141. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20142. # The default lists apply if the user does not specify any file.
  20143. ac_need_defaults=:
  20144. while test $# != 0
  20145. do
  20146. case $1 in
  20147. --*=?*)
  20148. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20149. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20150. ac_shift=:
  20151. ;;
  20152. --*=)
  20153. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20154. ac_optarg=
  20155. ac_shift=:
  20156. ;;
  20157. *)
  20158. ac_option=$1
  20159. ac_optarg=$2
  20160. ac_shift=shift
  20161. ;;
  20162. esac
  20163. case $ac_option in
  20164. # Handling of the options.
  20165. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20166. ac_cs_recheck=: ;;
  20167. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20168. $as_echo "$ac_cs_version"; exit ;;
  20169. --config | --confi | --conf | --con | --co | --c )
  20170. $as_echo "$ac_cs_config"; exit ;;
  20171. --debug | --debu | --deb | --de | --d | -d )
  20172. debug=: ;;
  20173. --file | --fil | --fi | --f )
  20174. $ac_shift
  20175. case $ac_optarg in
  20176. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20177. '') as_fn_error $? "missing file argument" ;;
  20178. esac
  20179. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20180. ac_need_defaults=false;;
  20181. --header | --heade | --head | --hea )
  20182. $ac_shift
  20183. case $ac_optarg in
  20184. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20185. esac
  20186. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20187. ac_need_defaults=false;;
  20188. --he | --h)
  20189. # Conflict between --help and --header
  20190. as_fn_error $? "ambiguous option: \`$1'
  20191. Try \`$0 --help' for more information.";;
  20192. --help | --hel | -h )
  20193. $as_echo "$ac_cs_usage"; exit ;;
  20194. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20195. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20196. ac_cs_silent=: ;;
  20197. # This is an error.
  20198. -*) as_fn_error $? "unrecognized option: \`$1'
  20199. Try \`$0 --help' for more information." ;;
  20200. *) as_fn_append ac_config_targets " $1"
  20201. ac_need_defaults=false ;;
  20202. esac
  20203. shift
  20204. done
  20205. ac_configure_extra_args=
  20206. if $ac_cs_silent; then
  20207. exec 6>/dev/null
  20208. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20209. fi
  20210. _ACEOF
  20211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20212. if \$ac_cs_recheck; then
  20213. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20214. shift
  20215. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20216. CONFIG_SHELL='$SHELL'
  20217. export CONFIG_SHELL
  20218. exec "\$@"
  20219. fi
  20220. _ACEOF
  20221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20222. exec 5>>config.log
  20223. {
  20224. echo
  20225. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20226. ## Running $as_me. ##
  20227. _ASBOX
  20228. $as_echo "$ac_log"
  20229. } >&5
  20230. _ACEOF
  20231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20232. #
  20233. # INIT-COMMANDS
  20234. #
  20235. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20236. # if CDPATH is set.
  20237. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20238. sed_quote_subst='$sed_quote_subst'
  20239. double_quote_subst='$double_quote_subst'
  20240. delay_variable_subst='$delay_variable_subst'
  20241. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20242. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20243. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20244. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20245. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20246. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20247. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20248. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20249. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20250. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20251. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20252. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20253. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20254. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20255. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20256. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20257. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20258. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20259. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20260. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20261. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20262. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20263. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20264. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20265. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20266. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20267. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20268. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20269. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20270. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20271. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20272. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20273. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20274. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20275. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20276. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20277. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20278. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20279. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20280. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20281. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20282. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20283. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20284. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20285. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20286. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20287. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20288. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20289. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20290. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20291. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20292. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20293. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20294. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20295. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20296. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20297. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20298. 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"`'
  20299. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20300. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20301. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20302. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20303. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20304. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20305. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20306. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20307. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20308. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20309. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20310. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20311. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20312. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20313. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20314. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20315. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20316. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20317. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20318. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20319. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20320. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20321. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20322. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20323. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20324. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20325. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20326. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20327. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20328. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20329. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20330. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20331. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20332. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20333. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20334. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20335. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20336. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20337. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20338. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20339. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20340. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20341. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20342. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20343. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20344. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20345. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20346. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20347. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20348. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20349. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20350. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20351. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20352. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20353. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20354. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20355. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20356. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20357. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20358. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20359. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20360. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20361. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20362. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20363. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20364. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20365. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20366. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20367. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20368. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20369. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20370. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20371. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20372. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20373. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20374. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20375. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20376. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20377. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20378. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20379. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20380. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20381. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20382. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20383. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20384. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20385. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20386. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20387. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20388. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20389. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20390. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20391. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20392. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20393. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20394. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20395. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20396. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20397. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20398. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20399. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20400. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20401. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20402. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20403. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20404. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20405. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20406. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20407. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20408. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20409. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20410. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20411. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20412. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20413. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20414. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20415. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20416. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20417. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20418. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20419. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20420. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20421. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20422. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20423. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20424. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20425. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20426. LTCC='$LTCC'
  20427. LTCFLAGS='$LTCFLAGS'
  20428. compiler='$compiler_DEFAULT'
  20429. # A function that is used when there is no print builtin or printf.
  20430. func_fallback_echo ()
  20431. {
  20432. eval 'cat <<_LTECHO_EOF
  20433. \$1
  20434. _LTECHO_EOF'
  20435. }
  20436. # Quote evaled strings.
  20437. for var in AS \
  20438. DLLTOOL \
  20439. OBJDUMP \
  20440. SHELL \
  20441. ECHO \
  20442. PATH_SEPARATOR \
  20443. SED \
  20444. GREP \
  20445. EGREP \
  20446. FGREP \
  20447. LD \
  20448. NM \
  20449. LN_S \
  20450. lt_SP2NL \
  20451. lt_NL2SP \
  20452. reload_flag \
  20453. deplibs_check_method \
  20454. file_magic_cmd \
  20455. file_magic_glob \
  20456. want_nocaseglob \
  20457. sharedlib_from_linklib_cmd \
  20458. AR \
  20459. AR_FLAGS \
  20460. archiver_list_spec \
  20461. STRIP \
  20462. RANLIB \
  20463. CC \
  20464. CFLAGS \
  20465. compiler \
  20466. lt_cv_sys_global_symbol_pipe \
  20467. lt_cv_sys_global_symbol_to_cdecl \
  20468. lt_cv_sys_global_symbol_to_c_name_address \
  20469. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20470. nm_file_list_spec \
  20471. lt_prog_compiler_no_builtin_flag \
  20472. lt_prog_compiler_pic \
  20473. lt_prog_compiler_wl \
  20474. lt_prog_compiler_static \
  20475. lt_cv_prog_compiler_c_o \
  20476. need_locks \
  20477. MANIFEST_TOOL \
  20478. DSYMUTIL \
  20479. NMEDIT \
  20480. LIPO \
  20481. OTOOL \
  20482. OTOOL64 \
  20483. shrext_cmds \
  20484. export_dynamic_flag_spec \
  20485. whole_archive_flag_spec \
  20486. compiler_needs_object \
  20487. with_gnu_ld \
  20488. allow_undefined_flag \
  20489. no_undefined_flag \
  20490. hardcode_libdir_flag_spec \
  20491. hardcode_libdir_separator \
  20492. exclude_expsyms \
  20493. include_expsyms \
  20494. file_list_spec \
  20495. variables_saved_for_relink \
  20496. libname_spec \
  20497. library_names_spec \
  20498. soname_spec \
  20499. install_override_mode \
  20500. finish_eval \
  20501. old_striplib \
  20502. striplib \
  20503. compiler_lib_search_dirs \
  20504. predep_objects \
  20505. postdep_objects \
  20506. predeps \
  20507. postdeps \
  20508. compiler_lib_search_path \
  20509. LD_CXX \
  20510. reload_flag_CXX \
  20511. compiler_CXX \
  20512. lt_prog_compiler_no_builtin_flag_CXX \
  20513. lt_prog_compiler_pic_CXX \
  20514. lt_prog_compiler_wl_CXX \
  20515. lt_prog_compiler_static_CXX \
  20516. lt_cv_prog_compiler_c_o_CXX \
  20517. export_dynamic_flag_spec_CXX \
  20518. whole_archive_flag_spec_CXX \
  20519. compiler_needs_object_CXX \
  20520. with_gnu_ld_CXX \
  20521. allow_undefined_flag_CXX \
  20522. no_undefined_flag_CXX \
  20523. hardcode_libdir_flag_spec_CXX \
  20524. hardcode_libdir_separator_CXX \
  20525. exclude_expsyms_CXX \
  20526. include_expsyms_CXX \
  20527. file_list_spec_CXX \
  20528. compiler_lib_search_dirs_CXX \
  20529. predep_objects_CXX \
  20530. postdep_objects_CXX \
  20531. predeps_CXX \
  20532. postdeps_CXX \
  20533. compiler_lib_search_path_CXX; do
  20534. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20535. *[\\\\\\\`\\"\\\$]*)
  20536. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20537. ;;
  20538. *)
  20539. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20540. ;;
  20541. esac
  20542. done
  20543. # Double-quote double-evaled strings.
  20544. for var in reload_cmds \
  20545. old_postinstall_cmds \
  20546. old_postuninstall_cmds \
  20547. old_archive_cmds \
  20548. extract_expsyms_cmds \
  20549. old_archive_from_new_cmds \
  20550. old_archive_from_expsyms_cmds \
  20551. archive_cmds \
  20552. archive_expsym_cmds \
  20553. module_cmds \
  20554. module_expsym_cmds \
  20555. export_symbols_cmds \
  20556. prelink_cmds \
  20557. postlink_cmds \
  20558. postinstall_cmds \
  20559. postuninstall_cmds \
  20560. finish_cmds \
  20561. sys_lib_search_path_spec \
  20562. sys_lib_dlsearch_path_spec \
  20563. reload_cmds_CXX \
  20564. old_archive_cmds_CXX \
  20565. old_archive_from_new_cmds_CXX \
  20566. old_archive_from_expsyms_cmds_CXX \
  20567. archive_cmds_CXX \
  20568. archive_expsym_cmds_CXX \
  20569. module_cmds_CXX \
  20570. module_expsym_cmds_CXX \
  20571. export_symbols_cmds_CXX \
  20572. prelink_cmds_CXX \
  20573. postlink_cmds_CXX; do
  20574. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20575. *[\\\\\\\`\\"\\\$]*)
  20576. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20577. ;;
  20578. *)
  20579. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20580. ;;
  20581. esac
  20582. done
  20583. ac_aux_dir='$ac_aux_dir'
  20584. xsi_shell='$xsi_shell'
  20585. lt_shell_append='$lt_shell_append'
  20586. # See if we are running on zsh, and set the options which allow our
  20587. # commands through without removal of \ escapes INIT.
  20588. if test -n "\${ZSH_VERSION+set}" ; then
  20589. setopt NO_GLOB_SUBST
  20590. fi
  20591. PACKAGE='$PACKAGE'
  20592. VERSION='$VERSION'
  20593. TIMESTAMP='$TIMESTAMP'
  20594. RM='$RM'
  20595. ofile='$ofile'
  20596. _ACEOF
  20597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20598. # Handling of arguments.
  20599. for ac_config_target in $ac_config_targets
  20600. do
  20601. case $ac_config_target in
  20602. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20603. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20604. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20605. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20606. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20607. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20608. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20609. esac
  20610. done
  20611. # If the user did not use the arguments to specify the items to instantiate,
  20612. # then the envvar interface is used. Set only those that are not.
  20613. # We use the long form for the default assignment because of an extremely
  20614. # bizarre bug on SunOS 4.1.3.
  20615. if $ac_need_defaults; then
  20616. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20617. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20618. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20619. fi
  20620. # Have a temporary directory for convenience. Make it in the build tree
  20621. # simply because there is no reason against having it here, and in addition,
  20622. # creating and moving files from /tmp can sometimes cause problems.
  20623. # Hook for its removal unless debugging.
  20624. # Note that there is a small window in which the directory will not be cleaned:
  20625. # after its creation but before its name has been assigned to `$tmp'.
  20626. $debug ||
  20627. {
  20628. tmp= ac_tmp=
  20629. trap 'exit_status=$?
  20630. : "${ac_tmp:=$tmp}"
  20631. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20632. ' 0
  20633. trap 'as_fn_exit 1' 1 2 13 15
  20634. }
  20635. # Create a (secure) tmp directory for tmp files.
  20636. {
  20637. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20638. test -d "$tmp"
  20639. } ||
  20640. {
  20641. tmp=./conf$$-$RANDOM
  20642. (umask 077 && mkdir "$tmp")
  20643. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20644. ac_tmp=$tmp
  20645. # Set up the scripts for CONFIG_FILES section.
  20646. # No need to generate them if there are no CONFIG_FILES.
  20647. # This happens for instance with `./config.status config.h'.
  20648. if test -n "$CONFIG_FILES"; then
  20649. ac_cr=`echo X | tr X '\015'`
  20650. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20651. # But we know of no other shell where ac_cr would be empty at this
  20652. # point, so we can use a bashism as a fallback.
  20653. if test "x$ac_cr" = x; then
  20654. eval ac_cr=\$\'\\r\'
  20655. fi
  20656. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20657. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20658. ac_cs_awk_cr='\\r'
  20659. else
  20660. ac_cs_awk_cr=$ac_cr
  20661. fi
  20662. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20663. _ACEOF
  20664. {
  20665. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20666. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20667. echo "_ACEOF"
  20668. } >conf$$subs.sh ||
  20669. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20670. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20671. ac_delim='%!_!# '
  20672. for ac_last_try in false false false false false :; do
  20673. . ./conf$$subs.sh ||
  20674. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20675. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20676. if test $ac_delim_n = $ac_delim_num; then
  20677. break
  20678. elif $ac_last_try; then
  20679. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20680. else
  20681. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20682. fi
  20683. done
  20684. rm -f conf$$subs.sh
  20685. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20686. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20687. _ACEOF
  20688. sed -n '
  20689. h
  20690. s/^/S["/; s/!.*/"]=/
  20691. p
  20692. g
  20693. s/^[^!]*!//
  20694. :repl
  20695. t repl
  20696. s/'"$ac_delim"'$//
  20697. t delim
  20698. :nl
  20699. h
  20700. s/\(.\{148\}\)..*/\1/
  20701. t more1
  20702. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20703. p
  20704. n
  20705. b repl
  20706. :more1
  20707. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20708. p
  20709. g
  20710. s/.\{148\}//
  20711. t nl
  20712. :delim
  20713. h
  20714. s/\(.\{148\}\)..*/\1/
  20715. t more2
  20716. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20717. p
  20718. b
  20719. :more2
  20720. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20721. p
  20722. g
  20723. s/.\{148\}//
  20724. t delim
  20725. ' <conf$$subs.awk | sed '
  20726. /^[^""]/{
  20727. N
  20728. s/\n//
  20729. }
  20730. ' >>$CONFIG_STATUS || ac_write_fail=1
  20731. rm -f conf$$subs.awk
  20732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20733. _ACAWK
  20734. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20735. for (key in S) S_is_set[key] = 1
  20736. FS = ""
  20737. }
  20738. {
  20739. line = $ 0
  20740. nfields = split(line, field, "@")
  20741. substed = 0
  20742. len = length(field[1])
  20743. for (i = 2; i < nfields; i++) {
  20744. key = field[i]
  20745. keylen = length(key)
  20746. if (S_is_set[key]) {
  20747. value = S[key]
  20748. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20749. len += length(value) + length(field[++i])
  20750. substed = 1
  20751. } else
  20752. len += 1 + keylen
  20753. }
  20754. print line
  20755. }
  20756. _ACAWK
  20757. _ACEOF
  20758. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20759. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20760. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20761. else
  20762. cat
  20763. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20764. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20765. _ACEOF
  20766. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20767. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20768. # trailing colons and then remove the whole line if VPATH becomes empty
  20769. # (actually we leave an empty line to preserve line numbers).
  20770. if test "x$srcdir" = x.; then
  20771. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20772. h
  20773. s///
  20774. s/^/:/
  20775. s/[ ]*$/:/
  20776. s/:\$(srcdir):/:/g
  20777. s/:\${srcdir}:/:/g
  20778. s/:@srcdir@:/:/g
  20779. s/^:*//
  20780. s/:*$//
  20781. x
  20782. s/\(=[ ]*\).*/\1/
  20783. G
  20784. s/\n//
  20785. s/^[^=]*=[ ]*$//
  20786. }'
  20787. fi
  20788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20789. fi # test -n "$CONFIG_FILES"
  20790. # Set up the scripts for CONFIG_HEADERS section.
  20791. # No need to generate them if there are no CONFIG_HEADERS.
  20792. # This happens for instance with `./config.status Makefile'.
  20793. if test -n "$CONFIG_HEADERS"; then
  20794. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20795. BEGIN {
  20796. _ACEOF
  20797. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20798. # here-document in config.status, that substitutes the proper values into
  20799. # config.h.in to produce config.h.
  20800. # Create a delimiter string that does not exist in confdefs.h, to ease
  20801. # handling of long lines.
  20802. ac_delim='%!_!# '
  20803. for ac_last_try in false false :; do
  20804. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20805. if test -z "$ac_tt"; then
  20806. break
  20807. elif $ac_last_try; then
  20808. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20809. else
  20810. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20811. fi
  20812. done
  20813. # For the awk script, D is an array of macro values keyed by name,
  20814. # likewise P contains macro parameters if any. Preserve backslash
  20815. # newline sequences.
  20816. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20817. sed -n '
  20818. s/.\{148\}/&'"$ac_delim"'/g
  20819. t rset
  20820. :rset
  20821. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20822. t def
  20823. d
  20824. :def
  20825. s/\\$//
  20826. t bsnl
  20827. s/["\\]/\\&/g
  20828. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20829. D["\1"]=" \3"/p
  20830. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20831. d
  20832. :bsnl
  20833. s/["\\]/\\&/g
  20834. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20835. D["\1"]=" \3\\\\\\n"\\/p
  20836. t cont
  20837. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20838. t cont
  20839. d
  20840. :cont
  20841. n
  20842. s/.\{148\}/&'"$ac_delim"'/g
  20843. t clear
  20844. :clear
  20845. s/\\$//
  20846. t bsnlc
  20847. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20848. d
  20849. :bsnlc
  20850. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20851. b cont
  20852. ' <confdefs.h | sed '
  20853. s/'"$ac_delim"'/"\\\
  20854. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20855. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20856. for (key in D) D_is_set[key] = 1
  20857. FS = ""
  20858. }
  20859. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20860. line = \$ 0
  20861. split(line, arg, " ")
  20862. if (arg[1] == "#") {
  20863. defundef = arg[2]
  20864. mac1 = arg[3]
  20865. } else {
  20866. defundef = substr(arg[1], 2)
  20867. mac1 = arg[2]
  20868. }
  20869. split(mac1, mac2, "(") #)
  20870. macro = mac2[1]
  20871. prefix = substr(line, 1, index(line, defundef) - 1)
  20872. if (D_is_set[macro]) {
  20873. # Preserve the white space surrounding the "#".
  20874. print prefix "define", macro P[macro] D[macro]
  20875. next
  20876. } else {
  20877. # Replace #undef with comments. This is necessary, for example,
  20878. # in the case of _POSIX_SOURCE, which is predefined and required
  20879. # on some systems where configure will not decide to define it.
  20880. if (defundef == "undef") {
  20881. print "/*", prefix defundef, macro, "*/"
  20882. next
  20883. }
  20884. }
  20885. }
  20886. { print }
  20887. _ACAWK
  20888. _ACEOF
  20889. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20890. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20891. fi # test -n "$CONFIG_HEADERS"
  20892. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20893. shift
  20894. for ac_tag
  20895. do
  20896. case $ac_tag in
  20897. :[FHLC]) ac_mode=$ac_tag; continue;;
  20898. esac
  20899. case $ac_mode$ac_tag in
  20900. :[FHL]*:*);;
  20901. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20902. :[FH]-) ac_tag=-:-;;
  20903. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20904. esac
  20905. ac_save_IFS=$IFS
  20906. IFS=:
  20907. set x $ac_tag
  20908. IFS=$ac_save_IFS
  20909. shift
  20910. ac_file=$1
  20911. shift
  20912. case $ac_mode in
  20913. :L) ac_source=$1;;
  20914. :[FH])
  20915. ac_file_inputs=
  20916. for ac_f
  20917. do
  20918. case $ac_f in
  20919. -) ac_f="$ac_tmp/stdin";;
  20920. *) # Look for the file first in the build tree, then in the source tree
  20921. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20922. # because $ac_f cannot contain `:'.
  20923. test -f "$ac_f" ||
  20924. case $ac_f in
  20925. [\\/$]*) false;;
  20926. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20927. esac ||
  20928. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20929. esac
  20930. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20931. as_fn_append ac_file_inputs " '$ac_f'"
  20932. done
  20933. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20934. # use $as_me), people would be surprised to read:
  20935. # /* config.h. Generated by config.status. */
  20936. configure_input='Generated from '`
  20937. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20938. `' by configure.'
  20939. if test x"$ac_file" != x-; then
  20940. configure_input="$ac_file. $configure_input"
  20941. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20942. $as_echo "$as_me: creating $ac_file" >&6;}
  20943. fi
  20944. # Neutralize special characters interpreted by sed in replacement strings.
  20945. case $configure_input in #(
  20946. *\&* | *\|* | *\\* )
  20947. ac_sed_conf_input=`$as_echo "$configure_input" |
  20948. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20949. *) ac_sed_conf_input=$configure_input;;
  20950. esac
  20951. case $ac_tag in
  20952. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20953. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20954. esac
  20955. ;;
  20956. esac
  20957. ac_dir=`$as_dirname -- "$ac_file" ||
  20958. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20959. X"$ac_file" : 'X\(//\)[^/]' \| \
  20960. X"$ac_file" : 'X\(//\)$' \| \
  20961. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20962. $as_echo X"$ac_file" |
  20963. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20964. s//\1/
  20965. q
  20966. }
  20967. /^X\(\/\/\)[^/].*/{
  20968. s//\1/
  20969. q
  20970. }
  20971. /^X\(\/\/\)$/{
  20972. s//\1/
  20973. q
  20974. }
  20975. /^X\(\/\).*/{
  20976. s//\1/
  20977. q
  20978. }
  20979. s/.*/./; q'`
  20980. as_dir="$ac_dir"; as_fn_mkdir_p
  20981. ac_builddir=.
  20982. case "$ac_dir" in
  20983. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20984. *)
  20985. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20986. # A ".." for each directory in $ac_dir_suffix.
  20987. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20988. case $ac_top_builddir_sub in
  20989. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20990. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20991. esac ;;
  20992. esac
  20993. ac_abs_top_builddir=$ac_pwd
  20994. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20995. # for backward compatibility:
  20996. ac_top_builddir=$ac_top_build_prefix
  20997. case $srcdir in
  20998. .) # We are building in place.
  20999. ac_srcdir=.
  21000. ac_top_srcdir=$ac_top_builddir_sub
  21001. ac_abs_top_srcdir=$ac_pwd ;;
  21002. [\\/]* | ?:[\\/]* ) # Absolute name.
  21003. ac_srcdir=$srcdir$ac_dir_suffix;
  21004. ac_top_srcdir=$srcdir
  21005. ac_abs_top_srcdir=$srcdir ;;
  21006. *) # Relative name.
  21007. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21008. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21009. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21010. esac
  21011. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21012. case $ac_mode in
  21013. :F)
  21014. #
  21015. # CONFIG_FILE
  21016. #
  21017. case $INSTALL in
  21018. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21019. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21020. esac
  21021. _ACEOF
  21022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21023. # If the template does not know about datarootdir, expand it.
  21024. # FIXME: This hack should be removed a few years after 2.60.
  21025. ac_datarootdir_hack=; ac_datarootdir_seen=
  21026. ac_sed_dataroot='
  21027. /datarootdir/ {
  21028. p
  21029. q
  21030. }
  21031. /@datadir@/p
  21032. /@docdir@/p
  21033. /@infodir@/p
  21034. /@localedir@/p
  21035. /@mandir@/p'
  21036. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21037. *datarootdir*) ac_datarootdir_seen=yes;;
  21038. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21040. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21041. _ACEOF
  21042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21043. ac_datarootdir_hack='
  21044. s&@datadir@&$datadir&g
  21045. s&@docdir@&$docdir&g
  21046. s&@infodir@&$infodir&g
  21047. s&@localedir@&$localedir&g
  21048. s&@mandir@&$mandir&g
  21049. s&\\\${datarootdir}&$datarootdir&g' ;;
  21050. esac
  21051. _ACEOF
  21052. # Neutralize VPATH when `$srcdir' = `.'.
  21053. # Shell code in configure.ac might set extrasub.
  21054. # FIXME: do we really want to maintain this feature?
  21055. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21056. ac_sed_extra="$ac_vpsub
  21057. $extrasub
  21058. _ACEOF
  21059. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21060. :t
  21061. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21062. s|@configure_input@|$ac_sed_conf_input|;t t
  21063. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21064. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21065. s&@srcdir@&$ac_srcdir&;t t
  21066. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21067. s&@top_srcdir@&$ac_top_srcdir&;t t
  21068. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21069. s&@builddir@&$ac_builddir&;t t
  21070. s&@abs_builddir@&$ac_abs_builddir&;t t
  21071. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21072. s&@INSTALL@&$ac_INSTALL&;t t
  21073. $ac_datarootdir_hack
  21074. "
  21075. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21076. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21077. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21078. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21079. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21080. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21082. which seems to be undefined. Please make sure it is defined" >&5
  21083. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21084. which seems to be undefined. Please make sure it is defined" >&2;}
  21085. rm -f "$ac_tmp/stdin"
  21086. case $ac_file in
  21087. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21088. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21089. esac \
  21090. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21091. ;;
  21092. :H)
  21093. #
  21094. # CONFIG_HEADER
  21095. #
  21096. if test x"$ac_file" != x-; then
  21097. {
  21098. $as_echo "/* $configure_input */" \
  21099. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21100. } >"$ac_tmp/config.h" \
  21101. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21102. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21103. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21104. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21105. else
  21106. rm -f "$ac_file"
  21107. mv "$ac_tmp/config.h" "$ac_file" \
  21108. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21109. fi
  21110. else
  21111. $as_echo "/* $configure_input */" \
  21112. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21113. || as_fn_error $? "could not create -" "$LINENO" 5
  21114. fi
  21115. ;;
  21116. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21117. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21118. ;;
  21119. esac
  21120. case $ac_file$ac_mode in
  21121. "libtool":C)
  21122. # See if we are running on zsh, and set the options which allow our
  21123. # commands through without removal of \ escapes.
  21124. if test -n "${ZSH_VERSION+set}" ; then
  21125. setopt NO_GLOB_SUBST
  21126. fi
  21127. cfgfile="${ofile}T"
  21128. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21129. $RM "$cfgfile"
  21130. cat <<_LT_EOF >> "$cfgfile"
  21131. #! $SHELL
  21132. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21133. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21134. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21135. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21136. #
  21137. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21138. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21139. # Foundation, Inc.
  21140. # Written by Gordon Matzigkeit, 1996
  21141. #
  21142. # This file is part of GNU Libtool.
  21143. #
  21144. # GNU Libtool is free software; you can redistribute it and/or
  21145. # modify it under the terms of the GNU General Public License as
  21146. # published by the Free Software Foundation; either version 2 of
  21147. # the License, or (at your option) any later version.
  21148. #
  21149. # As a special exception to the GNU General Public License,
  21150. # if you distribute this file as part of a program or library that
  21151. # is built using GNU Libtool, you may include this file under the
  21152. # same distribution terms that you use for the rest of that program.
  21153. #
  21154. # GNU Libtool is distributed in the hope that it will be useful,
  21155. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21156. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21157. # GNU General Public License for more details.
  21158. #
  21159. # You should have received a copy of the GNU General Public License
  21160. # along with GNU Libtool; see the file COPYING. If not, a copy
  21161. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21162. # obtained by writing to the Free Software Foundation, Inc.,
  21163. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21164. # The names of the tagged configurations supported by this script.
  21165. available_tags="CXX "
  21166. # ### BEGIN LIBTOOL CONFIG
  21167. # Which release of libtool.m4 was used?
  21168. macro_version=$macro_version
  21169. macro_revision=$macro_revision
  21170. # Assembler program.
  21171. AS=$lt_AS
  21172. # DLL creation program.
  21173. DLLTOOL=$lt_DLLTOOL
  21174. # Object dumper program.
  21175. OBJDUMP=$lt_OBJDUMP
  21176. # Whether or not to build shared libraries.
  21177. build_libtool_libs=$enable_shared
  21178. # Whether or not to build static libraries.
  21179. build_old_libs=$enable_static
  21180. # What type of objects to build.
  21181. pic_mode=$pic_mode
  21182. # Whether or not to optimize for fast installation.
  21183. fast_install=$enable_fast_install
  21184. # Shell to use when invoking shell scripts.
  21185. SHELL=$lt_SHELL
  21186. # An echo program that protects backslashes.
  21187. ECHO=$lt_ECHO
  21188. # The PATH separator for the build system.
  21189. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21190. # The host system.
  21191. host_alias=$host_alias
  21192. host=$host
  21193. host_os=$host_os
  21194. # The build system.
  21195. build_alias=$build_alias
  21196. build=$build
  21197. build_os=$build_os
  21198. # A sed program that does not truncate output.
  21199. SED=$lt_SED
  21200. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21201. Xsed="\$SED -e 1s/^X//"
  21202. # A grep program that handles long lines.
  21203. GREP=$lt_GREP
  21204. # An ERE matcher.
  21205. EGREP=$lt_EGREP
  21206. # A literal string matcher.
  21207. FGREP=$lt_FGREP
  21208. # A BSD- or MS-compatible name lister.
  21209. NM=$lt_NM
  21210. # Whether we need soft or hard links.
  21211. LN_S=$lt_LN_S
  21212. # What is the maximum length of a command?
  21213. max_cmd_len=$max_cmd_len
  21214. # Object file suffix (normally "o").
  21215. objext=$ac_objext
  21216. # Executable file suffix (normally "").
  21217. exeext=$exeext
  21218. # whether the shell understands "unset".
  21219. lt_unset=$lt_unset
  21220. # turn spaces into newlines.
  21221. SP2NL=$lt_lt_SP2NL
  21222. # turn newlines into spaces.
  21223. NL2SP=$lt_lt_NL2SP
  21224. # convert \$build file names to \$host format.
  21225. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21226. # convert \$build files to toolchain format.
  21227. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21228. # Method to check whether dependent libraries are shared objects.
  21229. deplibs_check_method=$lt_deplibs_check_method
  21230. # Command to use when deplibs_check_method = "file_magic".
  21231. file_magic_cmd=$lt_file_magic_cmd
  21232. # How to find potential files when deplibs_check_method = "file_magic".
  21233. file_magic_glob=$lt_file_magic_glob
  21234. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21235. want_nocaseglob=$lt_want_nocaseglob
  21236. # Command to associate shared and link libraries.
  21237. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21238. # The archiver.
  21239. AR=$lt_AR
  21240. # Flags to create an archive.
  21241. AR_FLAGS=$lt_AR_FLAGS
  21242. # How to feed a file listing to the archiver.
  21243. archiver_list_spec=$lt_archiver_list_spec
  21244. # A symbol stripping program.
  21245. STRIP=$lt_STRIP
  21246. # Commands used to install an old-style archive.
  21247. RANLIB=$lt_RANLIB
  21248. old_postinstall_cmds=$lt_old_postinstall_cmds
  21249. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21250. # Whether to use a lock for old archive extraction.
  21251. lock_old_archive_extraction=$lock_old_archive_extraction
  21252. # A C compiler.
  21253. LTCC=$lt_CC
  21254. # LTCC compiler flags.
  21255. LTCFLAGS=$lt_CFLAGS
  21256. # Take the output of nm and produce a listing of raw symbols and C names.
  21257. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21258. # Transform the output of nm in a proper C declaration.
  21259. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21260. # Transform the output of nm in a C name address pair.
  21261. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21262. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21263. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21264. # Specify filename containing input files for \$NM.
  21265. nm_file_list_spec=$lt_nm_file_list_spec
  21266. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21267. lt_sysroot=$lt_sysroot
  21268. # The name of the directory that contains temporary libtool files.
  21269. objdir=$objdir
  21270. # Used to examine libraries when file_magic_cmd begins with "file".
  21271. MAGIC_CMD=$MAGIC_CMD
  21272. # Must we lock files when doing compilation?
  21273. need_locks=$lt_need_locks
  21274. # Manifest tool.
  21275. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21276. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21277. DSYMUTIL=$lt_DSYMUTIL
  21278. # Tool to change global to local symbols on Mac OS X.
  21279. NMEDIT=$lt_NMEDIT
  21280. # Tool to manipulate fat objects and archives on Mac OS X.
  21281. LIPO=$lt_LIPO
  21282. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21283. OTOOL=$lt_OTOOL
  21284. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21285. OTOOL64=$lt_OTOOL64
  21286. # Old archive suffix (normally "a").
  21287. libext=$libext
  21288. # Shared library suffix (normally ".so").
  21289. shrext_cmds=$lt_shrext_cmds
  21290. # The commands to extract the exported symbol list from a shared archive.
  21291. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21292. # Variables whose values should be saved in libtool wrapper scripts and
  21293. # restored at link time.
  21294. variables_saved_for_relink=$lt_variables_saved_for_relink
  21295. # Do we need the "lib" prefix for modules?
  21296. need_lib_prefix=$need_lib_prefix
  21297. # Do we need a version for libraries?
  21298. need_version=$need_version
  21299. # Library versioning type.
  21300. version_type=$version_type
  21301. # Shared library runtime path variable.
  21302. runpath_var=$runpath_var
  21303. # Shared library path variable.
  21304. shlibpath_var=$shlibpath_var
  21305. # Is shlibpath searched before the hard-coded library search path?
  21306. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21307. # Format of library name prefix.
  21308. libname_spec=$lt_libname_spec
  21309. # List of archive names. First name is the real one, the rest are links.
  21310. # The last name is the one that the linker finds with -lNAME
  21311. library_names_spec=$lt_library_names_spec
  21312. # The coded name of the library, if different from the real name.
  21313. soname_spec=$lt_soname_spec
  21314. # Permission mode override for installation of shared libraries.
  21315. install_override_mode=$lt_install_override_mode
  21316. # Command to use after installation of a shared archive.
  21317. postinstall_cmds=$lt_postinstall_cmds
  21318. # Command to use after uninstallation of a shared archive.
  21319. postuninstall_cmds=$lt_postuninstall_cmds
  21320. # Commands used to finish a libtool library installation in a directory.
  21321. finish_cmds=$lt_finish_cmds
  21322. # As "finish_cmds", except a single script fragment to be evaled but
  21323. # not shown.
  21324. finish_eval=$lt_finish_eval
  21325. # Whether we should hardcode library paths into libraries.
  21326. hardcode_into_libs=$hardcode_into_libs
  21327. # Compile-time system search path for libraries.
  21328. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21329. # Run-time system search path for libraries.
  21330. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21331. # Whether dlopen is supported.
  21332. dlopen_support=$enable_dlopen
  21333. # Whether dlopen of programs is supported.
  21334. dlopen_self=$enable_dlopen_self
  21335. # Whether dlopen of statically linked programs is supported.
  21336. dlopen_self_static=$enable_dlopen_self_static
  21337. # Commands to strip libraries.
  21338. old_striplib=$lt_old_striplib
  21339. striplib=$lt_striplib
  21340. # The linker used to build libraries.
  21341. LD=$lt_LD
  21342. # How to create reloadable object files.
  21343. reload_flag=$lt_reload_flag
  21344. reload_cmds=$lt_reload_cmds
  21345. # Commands used to build an old-style archive.
  21346. old_archive_cmds=$lt_old_archive_cmds
  21347. # A language specific compiler.
  21348. CC=$lt_compiler
  21349. # Is the compiler the GNU compiler?
  21350. with_gcc=$GCC
  21351. # Compiler flag to turn off builtin functions.
  21352. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21353. # Additional compiler flags for building library objects.
  21354. pic_flag=$lt_lt_prog_compiler_pic
  21355. # How to pass a linker flag through the compiler.
  21356. wl=$lt_lt_prog_compiler_wl
  21357. # Compiler flag to prevent dynamic linking.
  21358. link_static_flag=$lt_lt_prog_compiler_static
  21359. # Does compiler simultaneously support -c and -o options?
  21360. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21361. # Whether or not to add -lc for building shared libraries.
  21362. build_libtool_need_lc=$archive_cmds_need_lc
  21363. # Whether or not to disallow shared libs when runtime libs are static.
  21364. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21365. # Compiler flag to allow reflexive dlopens.
  21366. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21367. # Compiler flag to generate shared objects directly from archives.
  21368. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21369. # Whether the compiler copes with passing no objects directly.
  21370. compiler_needs_object=$lt_compiler_needs_object
  21371. # Create an old-style archive from a shared archive.
  21372. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21373. # Create a temporary old-style archive to link instead of a shared archive.
  21374. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21375. # Commands used to build a shared archive.
  21376. archive_cmds=$lt_archive_cmds
  21377. archive_expsym_cmds=$lt_archive_expsym_cmds
  21378. # Commands used to build a loadable module if different from building
  21379. # a shared archive.
  21380. module_cmds=$lt_module_cmds
  21381. module_expsym_cmds=$lt_module_expsym_cmds
  21382. # Whether we are building with GNU ld or not.
  21383. with_gnu_ld=$lt_with_gnu_ld
  21384. # Flag that allows shared libraries with undefined symbols to be built.
  21385. allow_undefined_flag=$lt_allow_undefined_flag
  21386. # Flag that enforces no undefined symbols.
  21387. no_undefined_flag=$lt_no_undefined_flag
  21388. # Flag to hardcode \$libdir into a binary during linking.
  21389. # This must work even if \$libdir does not exist
  21390. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21391. # Whether we need a single "-rpath" flag with a separated argument.
  21392. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21393. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21394. # DIR into the resulting binary.
  21395. hardcode_direct=$hardcode_direct
  21396. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21397. # DIR into the resulting binary and the resulting library dependency is
  21398. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21399. # library is relocated.
  21400. hardcode_direct_absolute=$hardcode_direct_absolute
  21401. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21402. # into the resulting binary.
  21403. hardcode_minus_L=$hardcode_minus_L
  21404. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21405. # into the resulting binary.
  21406. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21407. # Set to "yes" if building a shared library automatically hardcodes DIR
  21408. # into the library and all subsequent libraries and executables linked
  21409. # against it.
  21410. hardcode_automatic=$hardcode_automatic
  21411. # Set to yes if linker adds runtime paths of dependent libraries
  21412. # to runtime path list.
  21413. inherit_rpath=$inherit_rpath
  21414. # Whether libtool must link a program against all its dependency libraries.
  21415. link_all_deplibs=$link_all_deplibs
  21416. # Set to "yes" if exported symbols are required.
  21417. always_export_symbols=$always_export_symbols
  21418. # The commands to list exported symbols.
  21419. export_symbols_cmds=$lt_export_symbols_cmds
  21420. # Symbols that should not be listed in the preloaded symbols.
  21421. exclude_expsyms=$lt_exclude_expsyms
  21422. # Symbols that must always be exported.
  21423. include_expsyms=$lt_include_expsyms
  21424. # Commands necessary for linking programs (against libraries) with templates.
  21425. prelink_cmds=$lt_prelink_cmds
  21426. # Commands necessary for finishing linking programs.
  21427. postlink_cmds=$lt_postlink_cmds
  21428. # Specify filename containing input files.
  21429. file_list_spec=$lt_file_list_spec
  21430. # How to hardcode a shared library path into an executable.
  21431. hardcode_action=$hardcode_action
  21432. # The directories searched by this compiler when creating a shared library.
  21433. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21434. # Dependencies to place before and after the objects being linked to
  21435. # create a shared library.
  21436. predep_objects=$lt_predep_objects
  21437. postdep_objects=$lt_postdep_objects
  21438. predeps=$lt_predeps
  21439. postdeps=$lt_postdeps
  21440. # The library search path used internally by the compiler when linking
  21441. # a shared library.
  21442. compiler_lib_search_path=$lt_compiler_lib_search_path
  21443. # ### END LIBTOOL CONFIG
  21444. _LT_EOF
  21445. case $host_os in
  21446. aix3*)
  21447. cat <<\_LT_EOF >> "$cfgfile"
  21448. # AIX sometimes has problems with the GCC collect2 program. For some
  21449. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21450. # vanish in a puff of smoke.
  21451. if test "X${COLLECT_NAMES+set}" != Xset; then
  21452. COLLECT_NAMES=
  21453. export COLLECT_NAMES
  21454. fi
  21455. _LT_EOF
  21456. ;;
  21457. esac
  21458. ltmain="$ac_aux_dir/ltmain.sh"
  21459. # We use sed instead of cat because bash on DJGPP gets confused if
  21460. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21461. # text mode, it properly converts lines to CR/LF. This bash problem
  21462. # is reportedly fixed, but why not run on old versions too?
  21463. sed '$q' "$ltmain" >> "$cfgfile" \
  21464. || (rm -f "$cfgfile"; exit 1)
  21465. if test x"$xsi_shell" = xyes; then
  21466. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21467. func_dirname ()\
  21468. {\
  21469. \ case ${1} in\
  21470. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21471. \ * ) func_dirname_result="${3}" ;;\
  21472. \ esac\
  21473. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21474. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21475. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21476. test 0 -eq $? || _lt_function_replace_fail=:
  21477. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21478. func_basename ()\
  21479. {\
  21480. \ func_basename_result="${1##*/}"\
  21481. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21482. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21483. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21484. test 0 -eq $? || _lt_function_replace_fail=:
  21485. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21486. func_dirname_and_basename ()\
  21487. {\
  21488. \ case ${1} in\
  21489. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21490. \ * ) func_dirname_result="${3}" ;;\
  21491. \ esac\
  21492. \ func_basename_result="${1##*/}"\
  21493. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21494. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21495. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21496. test 0 -eq $? || _lt_function_replace_fail=:
  21497. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21498. func_stripname ()\
  21499. {\
  21500. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21501. \ # positional parameters, so assign one to ordinary parameter first.\
  21502. \ func_stripname_result=${3}\
  21503. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21504. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21505. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21506. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21507. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21508. test 0 -eq $? || _lt_function_replace_fail=:
  21509. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21510. func_split_long_opt ()\
  21511. {\
  21512. \ func_split_long_opt_name=${1%%=*}\
  21513. \ func_split_long_opt_arg=${1#*=}\
  21514. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21515. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21516. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21517. test 0 -eq $? || _lt_function_replace_fail=:
  21518. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21519. func_split_short_opt ()\
  21520. {\
  21521. \ func_split_short_opt_arg=${1#??}\
  21522. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21523. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21524. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21525. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21526. test 0 -eq $? || _lt_function_replace_fail=:
  21527. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21528. func_lo2o ()\
  21529. {\
  21530. \ case ${1} in\
  21531. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21532. \ *) func_lo2o_result=${1} ;;\
  21533. \ esac\
  21534. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21535. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21536. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21537. test 0 -eq $? || _lt_function_replace_fail=:
  21538. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21539. func_xform ()\
  21540. {\
  21541. func_xform_result=${1%.*}.lo\
  21542. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21543. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21544. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21545. test 0 -eq $? || _lt_function_replace_fail=:
  21546. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21547. func_arith ()\
  21548. {\
  21549. func_arith_result=$(( $* ))\
  21550. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21551. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21552. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21553. test 0 -eq $? || _lt_function_replace_fail=:
  21554. sed -e '/^func_len ()$/,/^} # func_len /c\
  21555. func_len ()\
  21556. {\
  21557. func_len_result=${#1}\
  21558. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21559. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21560. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21561. test 0 -eq $? || _lt_function_replace_fail=:
  21562. fi
  21563. if test x"$lt_shell_append" = xyes; then
  21564. sed -e '/^func_append ()$/,/^} # func_append /c\
  21565. func_append ()\
  21566. {\
  21567. eval "${1}+=\\${2}"\
  21568. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21569. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21570. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21571. test 0 -eq $? || _lt_function_replace_fail=:
  21572. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21573. func_append_quoted ()\
  21574. {\
  21575. \ func_quote_for_eval "${2}"\
  21576. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21577. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21578. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21579. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21580. test 0 -eq $? || _lt_function_replace_fail=:
  21581. # Save a `func_append' function call where possible by direct use of '+='
  21582. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21583. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21584. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21585. test 0 -eq $? || _lt_function_replace_fail=:
  21586. else
  21587. # Save a `func_append' function call even when '+=' is not available
  21588. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21589. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21590. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21591. test 0 -eq $? || _lt_function_replace_fail=:
  21592. fi
  21593. if test x"$_lt_function_replace_fail" = x":"; then
  21594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21595. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21596. fi
  21597. mv -f "$cfgfile" "$ofile" ||
  21598. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21599. chmod +x "$ofile"
  21600. cat <<_LT_EOF >> "$ofile"
  21601. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21602. # The linker used to build libraries.
  21603. LD=$lt_LD_CXX
  21604. # How to create reloadable object files.
  21605. reload_flag=$lt_reload_flag_CXX
  21606. reload_cmds=$lt_reload_cmds_CXX
  21607. # Commands used to build an old-style archive.
  21608. old_archive_cmds=$lt_old_archive_cmds_CXX
  21609. # A language specific compiler.
  21610. CC=$lt_compiler_CXX
  21611. # Is the compiler the GNU compiler?
  21612. with_gcc=$GCC_CXX
  21613. # Compiler flag to turn off builtin functions.
  21614. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21615. # Additional compiler flags for building library objects.
  21616. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21617. # How to pass a linker flag through the compiler.
  21618. wl=$lt_lt_prog_compiler_wl_CXX
  21619. # Compiler flag to prevent dynamic linking.
  21620. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21621. # Does compiler simultaneously support -c and -o options?
  21622. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21623. # Whether or not to add -lc for building shared libraries.
  21624. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21625. # Whether or not to disallow shared libs when runtime libs are static.
  21626. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21627. # Compiler flag to allow reflexive dlopens.
  21628. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21629. # Compiler flag to generate shared objects directly from archives.
  21630. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21631. # Whether the compiler copes with passing no objects directly.
  21632. compiler_needs_object=$lt_compiler_needs_object_CXX
  21633. # Create an old-style archive from a shared archive.
  21634. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21635. # Create a temporary old-style archive to link instead of a shared archive.
  21636. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21637. # Commands used to build a shared archive.
  21638. archive_cmds=$lt_archive_cmds_CXX
  21639. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21640. # Commands used to build a loadable module if different from building
  21641. # a shared archive.
  21642. module_cmds=$lt_module_cmds_CXX
  21643. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21644. # Whether we are building with GNU ld or not.
  21645. with_gnu_ld=$lt_with_gnu_ld_CXX
  21646. # Flag that allows shared libraries with undefined symbols to be built.
  21647. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21648. # Flag that enforces no undefined symbols.
  21649. no_undefined_flag=$lt_no_undefined_flag_CXX
  21650. # Flag to hardcode \$libdir into a binary during linking.
  21651. # This must work even if \$libdir does not exist
  21652. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21653. # Whether we need a single "-rpath" flag with a separated argument.
  21654. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21655. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21656. # DIR into the resulting binary.
  21657. hardcode_direct=$hardcode_direct_CXX
  21658. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21659. # DIR into the resulting binary and the resulting library dependency is
  21660. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21661. # library is relocated.
  21662. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21663. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21664. # into the resulting binary.
  21665. hardcode_minus_L=$hardcode_minus_L_CXX
  21666. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21667. # into the resulting binary.
  21668. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21669. # Set to "yes" if building a shared library automatically hardcodes DIR
  21670. # into the library and all subsequent libraries and executables linked
  21671. # against it.
  21672. hardcode_automatic=$hardcode_automatic_CXX
  21673. # Set to yes if linker adds runtime paths of dependent libraries
  21674. # to runtime path list.
  21675. inherit_rpath=$inherit_rpath_CXX
  21676. # Whether libtool must link a program against all its dependency libraries.
  21677. link_all_deplibs=$link_all_deplibs_CXX
  21678. # Set to "yes" if exported symbols are required.
  21679. always_export_symbols=$always_export_symbols_CXX
  21680. # The commands to list exported symbols.
  21681. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21682. # Symbols that should not be listed in the preloaded symbols.
  21683. exclude_expsyms=$lt_exclude_expsyms_CXX
  21684. # Symbols that must always be exported.
  21685. include_expsyms=$lt_include_expsyms_CXX
  21686. # Commands necessary for linking programs (against libraries) with templates.
  21687. prelink_cmds=$lt_prelink_cmds_CXX
  21688. # Commands necessary for finishing linking programs.
  21689. postlink_cmds=$lt_postlink_cmds_CXX
  21690. # Specify filename containing input files.
  21691. file_list_spec=$lt_file_list_spec_CXX
  21692. # How to hardcode a shared library path into an executable.
  21693. hardcode_action=$hardcode_action_CXX
  21694. # The directories searched by this compiler when creating a shared library.
  21695. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21696. # Dependencies to place before and after the objects being linked to
  21697. # create a shared library.
  21698. predep_objects=$lt_predep_objects_CXX
  21699. postdep_objects=$lt_postdep_objects_CXX
  21700. predeps=$lt_predeps_CXX
  21701. postdeps=$lt_postdeps_CXX
  21702. # The library search path used internally by the compiler when linking
  21703. # a shared library.
  21704. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21705. # ### END LIBTOOL TAG CONFIG: CXX
  21706. _LT_EOF
  21707. ;;
  21708. esac
  21709. done # for ac_tag
  21710. as_fn_exit 0
  21711. _ACEOF
  21712. ac_clean_files=$ac_clean_files_save
  21713. test $ac_write_fail = 0 ||
  21714. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21715. # configure is writing to config.log, and then calls config.status.
  21716. # config.status does its own redirection, appending to config.log.
  21717. # Unfortunately, on DOS this fails, as config.log is still kept open
  21718. # by configure, so config.status won't be able to write to it; its
  21719. # output is simply discarded. So we exec the FD to /dev/null,
  21720. # effectively closing config.log, so it can be properly (re)opened and
  21721. # appended to by config.status. When coming back to configure, we
  21722. # need to make the FD available again.
  21723. if test "$no_create" != yes; then
  21724. ac_cs_success=:
  21725. ac_config_status_args=
  21726. test "$silent" = yes &&
  21727. ac_config_status_args="$ac_config_status_args --quiet"
  21728. exec 5>/dev/null
  21729. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21730. exec 5>>config.log
  21731. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21732. # would make configure fail if this is the last instruction.
  21733. $ac_cs_success || as_fn_exit 1
  21734. fi
  21735. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21737. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21738. fi
  21739. chmod a+x sdl2-config