configure 754 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755
  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_wayland_shared
  771. enable_video_mir
  772. enable_mir_shared
  773. enable_video_x11
  774. with_x
  775. enable_x11_shared
  776. enable_video_x11_xcursor
  777. enable_video_x11_xinerama
  778. enable_video_x11_xinput
  779. enable_video_x11_xrandr
  780. enable_video_x11_scrnsaver
  781. enable_video_x11_xshape
  782. enable_video_x11_vm
  783. enable_video_cocoa
  784. enable_video_directfb
  785. enable_directfb_shared
  786. enable_fusionsound
  787. enable_fusionsound_shared
  788. enable_video_dummy
  789. enable_video_opengl
  790. enable_video_opengles
  791. enable_libudev
  792. enable_dbus
  793. enable_input_tslib
  794. enable_pthreads
  795. enable_pthread_sem
  796. enable_directx
  797. enable_sdl_dlopen
  798. enable_clock_gettime
  799. enable_rpath
  800. enable_render_d3d
  801. '
  802. ac_precious_vars='build_alias
  803. host_alias
  804. target_alias
  805. CC
  806. CFLAGS
  807. LDFLAGS
  808. LIBS
  809. CPPFLAGS
  810. CPP
  811. CXX
  812. CXXFLAGS
  813. CCC
  814. CXXCPP
  815. XMKMF'
  816. # Initialize some variables set by options.
  817. ac_init_help=
  818. ac_init_version=false
  819. ac_unrecognized_opts=
  820. ac_unrecognized_sep=
  821. # The variables have the same names as the options, with
  822. # dashes changed to underlines.
  823. cache_file=/dev/null
  824. exec_prefix=NONE
  825. no_create=
  826. no_recursion=
  827. prefix=NONE
  828. program_prefix=NONE
  829. program_suffix=NONE
  830. program_transform_name=s,x,x,
  831. silent=
  832. site=
  833. srcdir=
  834. verbose=
  835. x_includes=NONE
  836. x_libraries=NONE
  837. # Installation directory options.
  838. # These are left unexpanded so users can "make install exec_prefix=/foo"
  839. # and all the variables that are supposed to be based on exec_prefix
  840. # by default will actually change.
  841. # Use braces instead of parens because sh, perl, etc. also accept them.
  842. # (The list follows the same order as the GNU Coding Standards.)
  843. bindir='${exec_prefix}/bin'
  844. sbindir='${exec_prefix}/sbin'
  845. libexecdir='${exec_prefix}/libexec'
  846. datarootdir='${prefix}/share'
  847. datadir='${datarootdir}'
  848. sysconfdir='${prefix}/etc'
  849. sharedstatedir='${prefix}/com'
  850. localstatedir='${prefix}/var'
  851. includedir='${prefix}/include'
  852. oldincludedir='/usr/include'
  853. docdir='${datarootdir}/doc/${PACKAGE}'
  854. infodir='${datarootdir}/info'
  855. htmldir='${docdir}'
  856. dvidir='${docdir}'
  857. pdfdir='${docdir}'
  858. psdir='${docdir}'
  859. libdir='${exec_prefix}/lib'
  860. localedir='${datarootdir}/locale'
  861. mandir='${datarootdir}/man'
  862. ac_prev=
  863. ac_dashdash=
  864. for ac_option
  865. do
  866. # If the previous option needs an argument, assign it.
  867. if test -n "$ac_prev"; then
  868. eval $ac_prev=\$ac_option
  869. ac_prev=
  870. continue
  871. fi
  872. case $ac_option in
  873. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  874. *=) ac_optarg= ;;
  875. *) ac_optarg=yes ;;
  876. esac
  877. # Accept the important Cygnus configure options, so we can diagnose typos.
  878. case $ac_dashdash$ac_option in
  879. --)
  880. ac_dashdash=yes ;;
  881. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  882. ac_prev=bindir ;;
  883. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  884. bindir=$ac_optarg ;;
  885. -build | --build | --buil | --bui | --bu)
  886. ac_prev=build_alias ;;
  887. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  888. build_alias=$ac_optarg ;;
  889. -cache-file | --cache-file | --cache-fil | --cache-fi \
  890. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  891. ac_prev=cache_file ;;
  892. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  893. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  894. cache_file=$ac_optarg ;;
  895. --config-cache | -C)
  896. cache_file=config.cache ;;
  897. -datadir | --datadir | --datadi | --datad)
  898. ac_prev=datadir ;;
  899. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  900. datadir=$ac_optarg ;;
  901. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  902. | --dataroo | --dataro | --datar)
  903. ac_prev=datarootdir ;;
  904. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  905. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  906. datarootdir=$ac_optarg ;;
  907. -disable-* | --disable-*)
  908. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  911. as_fn_error $? "invalid feature name: $ac_useropt"
  912. ac_useropt_orig=$ac_useropt
  913. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  914. case $ac_user_opts in
  915. *"
  916. "enable_$ac_useropt"
  917. "*) ;;
  918. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  919. ac_unrecognized_sep=', ';;
  920. esac
  921. eval enable_$ac_useropt=no ;;
  922. -docdir | --docdir | --docdi | --doc | --do)
  923. ac_prev=docdir ;;
  924. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  925. docdir=$ac_optarg ;;
  926. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  927. ac_prev=dvidir ;;
  928. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  929. dvidir=$ac_optarg ;;
  930. -enable-* | --enable-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid feature name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=\$ac_optarg ;;
  945. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  946. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  947. | --exec | --exe | --ex)
  948. ac_prev=exec_prefix ;;
  949. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  950. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  951. | --exec=* | --exe=* | --ex=*)
  952. exec_prefix=$ac_optarg ;;
  953. -gas | --gas | --ga | --g)
  954. # Obsolete; use --with-gas.
  955. with_gas=yes ;;
  956. -help | --help | --hel | --he | -h)
  957. ac_init_help=long ;;
  958. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  959. ac_init_help=recursive ;;
  960. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  961. ac_init_help=short ;;
  962. -host | --host | --hos | --ho)
  963. ac_prev=host_alias ;;
  964. -host=* | --host=* | --hos=* | --ho=*)
  965. host_alias=$ac_optarg ;;
  966. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  967. ac_prev=htmldir ;;
  968. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  969. | --ht=*)
  970. htmldir=$ac_optarg ;;
  971. -includedir | --includedir | --includedi | --included | --include \
  972. | --includ | --inclu | --incl | --inc)
  973. ac_prev=includedir ;;
  974. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  975. | --includ=* | --inclu=* | --incl=* | --inc=*)
  976. includedir=$ac_optarg ;;
  977. -infodir | --infodir | --infodi | --infod | --info | --inf)
  978. ac_prev=infodir ;;
  979. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  980. infodir=$ac_optarg ;;
  981. -libdir | --libdir | --libdi | --libd)
  982. ac_prev=libdir ;;
  983. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  984. libdir=$ac_optarg ;;
  985. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  986. | --libexe | --libex | --libe)
  987. ac_prev=libexecdir ;;
  988. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  989. | --libexe=* | --libex=* | --libe=*)
  990. libexecdir=$ac_optarg ;;
  991. -localedir | --localedir | --localedi | --localed | --locale)
  992. ac_prev=localedir ;;
  993. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  994. localedir=$ac_optarg ;;
  995. -localstatedir | --localstatedir | --localstatedi | --localstated \
  996. | --localstate | --localstat | --localsta | --localst | --locals)
  997. ac_prev=localstatedir ;;
  998. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  999. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1000. localstatedir=$ac_optarg ;;
  1001. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1002. ac_prev=mandir ;;
  1003. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1004. mandir=$ac_optarg ;;
  1005. -nfp | --nfp | --nf)
  1006. # Obsolete; use --without-fp.
  1007. with_fp=no ;;
  1008. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1009. | --no-cr | --no-c | -n)
  1010. no_create=yes ;;
  1011. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1012. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1013. no_recursion=yes ;;
  1014. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1015. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1016. | --oldin | --oldi | --old | --ol | --o)
  1017. ac_prev=oldincludedir ;;
  1018. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1019. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1020. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1021. oldincludedir=$ac_optarg ;;
  1022. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1023. ac_prev=prefix ;;
  1024. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1025. prefix=$ac_optarg ;;
  1026. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1027. | --program-pre | --program-pr | --program-p)
  1028. ac_prev=program_prefix ;;
  1029. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1030. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1031. program_prefix=$ac_optarg ;;
  1032. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1033. | --program-suf | --program-su | --program-s)
  1034. ac_prev=program_suffix ;;
  1035. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1036. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1037. program_suffix=$ac_optarg ;;
  1038. -program-transform-name | --program-transform-name \
  1039. | --program-transform-nam | --program-transform-na \
  1040. | --program-transform-n | --program-transform- \
  1041. | --program-transform | --program-transfor \
  1042. | --program-transfo | --program-transf \
  1043. | --program-trans | --program-tran \
  1044. | --progr-tra | --program-tr | --program-t)
  1045. ac_prev=program_transform_name ;;
  1046. -program-transform-name=* | --program-transform-name=* \
  1047. | --program-transform-nam=* | --program-transform-na=* \
  1048. | --program-transform-n=* | --program-transform-=* \
  1049. | --program-transform=* | --program-transfor=* \
  1050. | --program-transfo=* | --program-transf=* \
  1051. | --program-trans=* | --program-tran=* \
  1052. | --progr-tra=* | --program-tr=* | --program-t=*)
  1053. program_transform_name=$ac_optarg ;;
  1054. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1055. ac_prev=pdfdir ;;
  1056. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1057. pdfdir=$ac_optarg ;;
  1058. -psdir | --psdir | --psdi | --psd | --ps)
  1059. ac_prev=psdir ;;
  1060. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1061. psdir=$ac_optarg ;;
  1062. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1063. | -silent | --silent | --silen | --sile | --sil)
  1064. silent=yes ;;
  1065. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1066. ac_prev=sbindir ;;
  1067. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1068. | --sbi=* | --sb=*)
  1069. sbindir=$ac_optarg ;;
  1070. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1071. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1072. | --sharedst | --shareds | --shared | --share | --shar \
  1073. | --sha | --sh)
  1074. ac_prev=sharedstatedir ;;
  1075. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1076. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1077. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1078. | --sha=* | --sh=*)
  1079. sharedstatedir=$ac_optarg ;;
  1080. -site | --site | --sit)
  1081. ac_prev=site ;;
  1082. -site=* | --site=* | --sit=*)
  1083. site=$ac_optarg ;;
  1084. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1085. ac_prev=srcdir ;;
  1086. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1087. srcdir=$ac_optarg ;;
  1088. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1089. | --syscon | --sysco | --sysc | --sys | --sy)
  1090. ac_prev=sysconfdir ;;
  1091. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1092. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1093. sysconfdir=$ac_optarg ;;
  1094. -target | --target | --targe | --targ | --tar | --ta | --t)
  1095. ac_prev=target_alias ;;
  1096. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1097. target_alias=$ac_optarg ;;
  1098. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1099. verbose=yes ;;
  1100. -version | --version | --versio | --versi | --vers | -V)
  1101. ac_init_version=: ;;
  1102. -with-* | --with-*)
  1103. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1104. # Reject names that are not valid shell variable names.
  1105. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1106. as_fn_error $? "invalid package name: $ac_useropt"
  1107. ac_useropt_orig=$ac_useropt
  1108. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1109. case $ac_user_opts in
  1110. *"
  1111. "with_$ac_useropt"
  1112. "*) ;;
  1113. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1114. ac_unrecognized_sep=', ';;
  1115. esac
  1116. eval with_$ac_useropt=\$ac_optarg ;;
  1117. -without-* | --without-*)
  1118. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1119. # Reject names that are not valid shell variable names.
  1120. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1121. as_fn_error $? "invalid package name: $ac_useropt"
  1122. ac_useropt_orig=$ac_useropt
  1123. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1124. case $ac_user_opts in
  1125. *"
  1126. "with_$ac_useropt"
  1127. "*) ;;
  1128. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1129. ac_unrecognized_sep=', ';;
  1130. esac
  1131. eval with_$ac_useropt=no ;;
  1132. --x)
  1133. # Obsolete; use --with-x.
  1134. with_x=yes ;;
  1135. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1136. | --x-incl | --x-inc | --x-in | --x-i)
  1137. ac_prev=x_includes ;;
  1138. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1139. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1140. x_includes=$ac_optarg ;;
  1141. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1142. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1143. ac_prev=x_libraries ;;
  1144. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1145. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1146. x_libraries=$ac_optarg ;;
  1147. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1148. Try \`$0 --help' for more information"
  1149. ;;
  1150. *=*)
  1151. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1152. # Reject names that are not valid shell variable names.
  1153. case $ac_envvar in #(
  1154. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1155. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1156. esac
  1157. eval $ac_envvar=\$ac_optarg
  1158. export $ac_envvar ;;
  1159. *)
  1160. # FIXME: should be removed in autoconf 3.0.
  1161. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1162. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1163. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1164. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1165. ;;
  1166. esac
  1167. done
  1168. if test -n "$ac_prev"; then
  1169. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1170. as_fn_error $? "missing argument to $ac_option"
  1171. fi
  1172. if test -n "$ac_unrecognized_opts"; then
  1173. case $enable_option_checking in
  1174. no) ;;
  1175. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1176. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1177. esac
  1178. fi
  1179. # Check all directory arguments for consistency.
  1180. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1181. datadir sysconfdir sharedstatedir localstatedir includedir \
  1182. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1183. libdir localedir mandir
  1184. do
  1185. eval ac_val=\$$ac_var
  1186. # Remove trailing slashes.
  1187. case $ac_val in
  1188. */ )
  1189. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1190. eval $ac_var=\$ac_val;;
  1191. esac
  1192. # Be sure to have absolute directory names.
  1193. case $ac_val in
  1194. [\\/$]* | ?:[\\/]* ) continue;;
  1195. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1196. esac
  1197. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1198. done
  1199. # There might be people who depend on the old broken behavior: `$host'
  1200. # used to hold the argument of --host etc.
  1201. # FIXME: To remove some day.
  1202. build=$build_alias
  1203. host=$host_alias
  1204. target=$target_alias
  1205. # FIXME: To remove some day.
  1206. if test "x$host_alias" != x; then
  1207. if test "x$build_alias" = x; then
  1208. cross_compiling=maybe
  1209. elif test "x$build_alias" != "x$host_alias"; then
  1210. cross_compiling=yes
  1211. fi
  1212. fi
  1213. ac_tool_prefix=
  1214. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1215. test "$silent" = yes && exec 6>/dev/null
  1216. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1217. ac_ls_di=`ls -di .` &&
  1218. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1219. as_fn_error $? "working directory cannot be determined"
  1220. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1221. as_fn_error $? "pwd does not report name of working directory"
  1222. # Find the source files, if location was not specified.
  1223. if test -z "$srcdir"; then
  1224. ac_srcdir_defaulted=yes
  1225. # Try the directory containing this script, then the parent directory.
  1226. ac_confdir=`$as_dirname -- "$as_myself" ||
  1227. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1228. X"$as_myself" : 'X\(//\)[^/]' \| \
  1229. X"$as_myself" : 'X\(//\)$' \| \
  1230. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1231. $as_echo X"$as_myself" |
  1232. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1233. s//\1/
  1234. q
  1235. }
  1236. /^X\(\/\/\)[^/].*/{
  1237. s//\1/
  1238. q
  1239. }
  1240. /^X\(\/\/\)$/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\).*/{
  1245. s//\1/
  1246. q
  1247. }
  1248. s/.*/./; q'`
  1249. srcdir=$ac_confdir
  1250. if test ! -r "$srcdir/$ac_unique_file"; then
  1251. srcdir=..
  1252. fi
  1253. else
  1254. ac_srcdir_defaulted=no
  1255. fi
  1256. if test ! -r "$srcdir/$ac_unique_file"; then
  1257. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1258. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1259. fi
  1260. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1261. ac_abs_confdir=`(
  1262. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1263. pwd)`
  1264. # When building in place, set srcdir=.
  1265. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1266. srcdir=.
  1267. fi
  1268. # Remove unnecessary trailing slashes from srcdir.
  1269. # Double slashes in file names in object file debugging info
  1270. # mess up M-x gdb in Emacs.
  1271. case $srcdir in
  1272. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1273. esac
  1274. for ac_var in $ac_precious_vars; do
  1275. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1276. eval ac_env_${ac_var}_value=\$${ac_var}
  1277. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1278. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1279. done
  1280. #
  1281. # Report the --help message.
  1282. #
  1283. if test "$ac_init_help" = "long"; then
  1284. # Omit some internal or obsolete options to make the list less imposing.
  1285. # This message is too long to be a string in the A/UX 3.1 sh.
  1286. cat <<_ACEOF
  1287. \`configure' configures this package to adapt to many kinds of systems.
  1288. Usage: $0 [OPTION]... [VAR=VALUE]...
  1289. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1290. VAR=VALUE. See below for descriptions of some of the useful variables.
  1291. Defaults for the options are specified in brackets.
  1292. Configuration:
  1293. -h, --help display this help and exit
  1294. --help=short display options specific to this package
  1295. --help=recursive display the short help of all the included packages
  1296. -V, --version display version information and exit
  1297. -q, --quiet, --silent do not print \`checking ...' messages
  1298. --cache-file=FILE cache test results in FILE [disabled]
  1299. -C, --config-cache alias for \`--cache-file=config.cache'
  1300. -n, --no-create do not create output files
  1301. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1302. Installation directories:
  1303. --prefix=PREFIX install architecture-independent files in PREFIX
  1304. [$ac_default_prefix]
  1305. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1306. [PREFIX]
  1307. By default, \`make install' will install all the files in
  1308. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1309. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1310. for instance \`--prefix=\$HOME'.
  1311. For better control, use the options below.
  1312. Fine tuning of the installation directories:
  1313. --bindir=DIR user executables [EPREFIX/bin]
  1314. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1315. --libexecdir=DIR program executables [EPREFIX/libexec]
  1316. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1317. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1318. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1319. --libdir=DIR object code libraries [EPREFIX/lib]
  1320. --includedir=DIR C header files [PREFIX/include]
  1321. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1322. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1323. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1324. --infodir=DIR info documentation [DATAROOTDIR/info]
  1325. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1326. --mandir=DIR man documentation [DATAROOTDIR/man]
  1327. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1328. --htmldir=DIR html documentation [DOCDIR]
  1329. --dvidir=DIR dvi documentation [DOCDIR]
  1330. --pdfdir=DIR pdf documentation [DOCDIR]
  1331. --psdir=DIR ps documentation [DOCDIR]
  1332. _ACEOF
  1333. cat <<\_ACEOF
  1334. X features:
  1335. --x-includes=DIR X include files are in DIR
  1336. --x-libraries=DIR X library files are in DIR
  1337. System types:
  1338. --build=BUILD configure for building on BUILD [guessed]
  1339. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1340. _ACEOF
  1341. fi
  1342. if test -n "$ac_init_help"; then
  1343. cat <<\_ACEOF
  1344. Optional Features:
  1345. --disable-option-checking ignore unrecognized --enable/--with options
  1346. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1347. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1348. --enable-shared[=PKGS] build shared libraries [default=yes]
  1349. --enable-static[=PKGS] build static libraries [default=yes]
  1350. --enable-fast-install[=PKGS]
  1351. optimize for fast installation [default=yes]
  1352. --disable-libtool-lock avoid locking (might break parallel builds)
  1353. --enable-assertions Enable internal sanity checks
  1354. (auto/disabled/release/enabled/paranoid)
  1355. [[default=auto]]
  1356. --enable-dependency-tracking
  1357. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1358. --enable-libc Use the system C library [[default=yes]]
  1359. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1360. --enable-atomic Enable the atomic operations subsystem
  1361. [[default=yes]]
  1362. --enable-audio Enable the audio subsystem [[default=yes]]
  1363. --enable-video Enable the video subsystem [[default=yes]]
  1364. --enable-render Enable the render subsystem [[default=yes]]
  1365. --enable-events Enable the events subsystem [[default=yes]]
  1366. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1367. --enable-haptic Enable the haptic (force feedback) subsystem
  1368. [[default=yes]]
  1369. --enable-power Enable the power subsystem [[default=yes]]
  1370. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1371. --enable-threads Enable the threading subsystem [[default=yes]]
  1372. --enable-timers Enable the timer subsystem [[default=yes]]
  1373. --enable-file Enable the file subsystem [[default=yes]]
  1374. --enable-loadso Enable the shared object loading subsystem
  1375. [[default=yes]]
  1376. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1377. --enable-assembly Enable assembly routines [[default=yes]]
  1378. --enable-ssemath Allow GCC to use SSE floating point math
  1379. [[default=no]]
  1380. --enable-mmx use MMX assembly routines [[default=yes]]
  1381. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1382. --enable-sse use SSE assembly routines [[default=yes]]
  1383. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1384. --enable-altivec use Altivec assembly routines [[default=yes]]
  1385. --enable-oss support the OSS audio API [[default=maybe]]
  1386. --enable-alsa support the ALSA audio API [[default=yes]]
  1387. --disable-alsatest Do not try to compile and run a test Alsa program
  1388. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1389. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1390. --disable-esdtest Do not try to compile and run a test ESD program
  1391. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1392. --enable-pulseaudio use PulseAudio [[default=yes]]
  1393. --enable-pulseaudio-shared
  1394. dynamically load PulseAudio support [[default=yes]]
  1395. --enable-arts support the Analog Real Time Synthesizer
  1396. [[default=yes]]
  1397. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1398. --enable-nas support the NAS audio API [[default=yes]]
  1399. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1400. --enable-sndio support the sndio audio API [[default=yes]]
  1401. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1402. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1403. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1404. --enable-video-wayland use Wayland video driver [[default=yes]]
  1405. --enable-video-wayland-qt-touch
  1406. QtWayland server support for Wayland video driver
  1407. [[default=yes]]
  1408. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1409. --enable-video-mir use Mir video driver [[default=yes]]
  1410. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1411. --enable-video-x11 use X11 video driver [[default=yes]]
  1412. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1413. --enable-video-x11-xcursor
  1414. enable X11 Xcursor support [[default=yes]]
  1415. --enable-video-x11-xinerama
  1416. enable X11 Xinerama support [[default=yes]]
  1417. --enable-video-x11-xinput
  1418. enable X11 XInput extension for manymouse, tablets,
  1419. etc [[default=yes]]
  1420. --enable-video-x11-xrandr
  1421. enable X11 Xrandr extension for fullscreen
  1422. [[default=yes]]
  1423. --enable-video-x11-scrnsaver
  1424. enable X11 screensaver extension [[default=yes]]
  1425. --enable-video-x11-xshape
  1426. enable X11 XShape support [[default=yes]]
  1427. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1428. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1429. --enable-video-directfb use DirectFB video driver [[default=no]]
  1430. --enable-directfb-shared
  1431. dynamically load directfb support [[default=yes]]
  1432. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1433. --enable-fusionsound-shared
  1434. dynamically load fusionsound audio support
  1435. [[default=yes]]
  1436. --enable-video-dummy use dummy video driver [[default=yes]]
  1437. --enable-video-opengl include OpenGL support [[default=yes]]
  1438. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1439. --enable-libudev enable libudev support [[default=yes]]
  1440. --enable-dbus enable D-Bus support [[default=yes]]
  1441. --enable-input-tslib use the Touchscreen library for input
  1442. [[default=yes]]
  1443. --enable-pthreads use POSIX threads for multi-threading
  1444. [[default=yes]]
  1445. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1446. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1447. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1448. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1449. UNIX [[default=yes]]
  1450. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1451. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1452. Optional Packages:
  1453. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1454. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1455. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1456. both]
  1457. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1458. --with-sysroot=DIR Search for dependent libraries within DIR
  1459. (or the compiler's sysroot if not specified).
  1460. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1461. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1462. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1463. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1464. --with-x use the X Window System
  1465. Some influential environment variables:
  1466. CC C compiler command
  1467. CFLAGS C compiler flags
  1468. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1469. nonstandard directory <lib dir>
  1470. LIBS libraries to pass to the linker, e.g. -l<library>
  1471. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1472. you have headers in a nonstandard directory <include dir>
  1473. CPP C preprocessor
  1474. CXX C++ compiler command
  1475. CXXFLAGS C++ compiler flags
  1476. CXXCPP C++ preprocessor
  1477. XMKMF Path to xmkmf, Makefile generator for X Window System
  1478. Use these variables to override the choices made by `configure' or to help
  1479. it to find libraries and programs with nonstandard names/locations.
  1480. Report bugs to the package provider.
  1481. _ACEOF
  1482. ac_status=$?
  1483. fi
  1484. if test "$ac_init_help" = "recursive"; then
  1485. # If there are subdirs, report their specific --help.
  1486. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1487. test -d "$ac_dir" ||
  1488. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1489. continue
  1490. ac_builddir=.
  1491. case "$ac_dir" in
  1492. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1493. *)
  1494. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1495. # A ".." for each directory in $ac_dir_suffix.
  1496. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1497. case $ac_top_builddir_sub in
  1498. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1499. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1500. esac ;;
  1501. esac
  1502. ac_abs_top_builddir=$ac_pwd
  1503. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1504. # for backward compatibility:
  1505. ac_top_builddir=$ac_top_build_prefix
  1506. case $srcdir in
  1507. .) # We are building in place.
  1508. ac_srcdir=.
  1509. ac_top_srcdir=$ac_top_builddir_sub
  1510. ac_abs_top_srcdir=$ac_pwd ;;
  1511. [\\/]* | ?:[\\/]* ) # Absolute name.
  1512. ac_srcdir=$srcdir$ac_dir_suffix;
  1513. ac_top_srcdir=$srcdir
  1514. ac_abs_top_srcdir=$srcdir ;;
  1515. *) # Relative name.
  1516. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1517. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1518. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1519. esac
  1520. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1521. cd "$ac_dir" || { ac_status=$?; continue; }
  1522. # Check for guested configure.
  1523. if test -f "$ac_srcdir/configure.gnu"; then
  1524. echo &&
  1525. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1526. elif test -f "$ac_srcdir/configure"; then
  1527. echo &&
  1528. $SHELL "$ac_srcdir/configure" --help=recursive
  1529. else
  1530. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1531. fi || ac_status=$?
  1532. cd "$ac_pwd" || { ac_status=$?; break; }
  1533. done
  1534. fi
  1535. test -n "$ac_init_help" && exit $ac_status
  1536. if $ac_init_version; then
  1537. cat <<\_ACEOF
  1538. configure
  1539. generated by GNU Autoconf 2.69
  1540. Copyright (C) 2012 Free Software Foundation, Inc.
  1541. This configure script is free software; the Free Software Foundation
  1542. gives unlimited permission to copy, distribute and modify it.
  1543. _ACEOF
  1544. exit
  1545. fi
  1546. ## ------------------------ ##
  1547. ## Autoconf initialization. ##
  1548. ## ------------------------ ##
  1549. # ac_fn_c_try_compile LINENO
  1550. # --------------------------
  1551. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1552. ac_fn_c_try_compile ()
  1553. {
  1554. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1555. rm -f conftest.$ac_objext
  1556. if { { ac_try="$ac_compile"
  1557. case "(($ac_try" in
  1558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1559. *) ac_try_echo=$ac_try;;
  1560. esac
  1561. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1562. $as_echo "$ac_try_echo"; } >&5
  1563. (eval "$ac_compile") 2>conftest.err
  1564. ac_status=$?
  1565. if test -s conftest.err; then
  1566. grep -v '^ *+' conftest.err >conftest.er1
  1567. cat conftest.er1 >&5
  1568. mv -f conftest.er1 conftest.err
  1569. fi
  1570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1571. test $ac_status = 0; } && {
  1572. test -z "$ac_c_werror_flag" ||
  1573. test ! -s conftest.err
  1574. } && test -s conftest.$ac_objext; then :
  1575. ac_retval=0
  1576. else
  1577. $as_echo "$as_me: failed program was:" >&5
  1578. sed 's/^/| /' conftest.$ac_ext >&5
  1579. ac_retval=1
  1580. fi
  1581. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1582. as_fn_set_status $ac_retval
  1583. } # ac_fn_c_try_compile
  1584. # ac_fn_c_try_link LINENO
  1585. # -----------------------
  1586. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1587. ac_fn_c_try_link ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. rm -f conftest.$ac_objext conftest$ac_exeext
  1591. if { { ac_try="$ac_link"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_link") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } && {
  1607. test -z "$ac_c_werror_flag" ||
  1608. test ! -s conftest.err
  1609. } && test -s conftest$ac_exeext && {
  1610. test "$cross_compiling" = yes ||
  1611. test -x conftest$ac_exeext
  1612. }; then :
  1613. ac_retval=0
  1614. else
  1615. $as_echo "$as_me: failed program was:" >&5
  1616. sed 's/^/| /' conftest.$ac_ext >&5
  1617. ac_retval=1
  1618. fi
  1619. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1620. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1621. # interfere with the next link command; also delete a directory that is
  1622. # left behind by Apple's compiler. We do this before executing the actions.
  1623. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1624. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1625. as_fn_set_status $ac_retval
  1626. } # ac_fn_c_try_link
  1627. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1628. # -------------------------------------------------------
  1629. # Tests whether HEADER exists and can be compiled using the include files in
  1630. # INCLUDES, setting the cache variable VAR accordingly.
  1631. ac_fn_c_check_header_compile ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1635. $as_echo_n "checking for $2... " >&6; }
  1636. if eval \${$3+:} false; then :
  1637. $as_echo_n "(cached) " >&6
  1638. else
  1639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1640. /* end confdefs.h. */
  1641. $4
  1642. #include <$2>
  1643. _ACEOF
  1644. if ac_fn_c_try_compile "$LINENO"; then :
  1645. eval "$3=yes"
  1646. else
  1647. eval "$3=no"
  1648. fi
  1649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1650. fi
  1651. eval ac_res=\$$3
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1653. $as_echo "$ac_res" >&6; }
  1654. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1655. } # ac_fn_c_check_header_compile
  1656. # ac_fn_c_try_cpp LINENO
  1657. # ----------------------
  1658. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_c_try_cpp ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1663. case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1668. $as_echo "$ac_try_echo"; } >&5
  1669. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1670. ac_status=$?
  1671. if test -s conftest.err; then
  1672. grep -v '^ *+' conftest.err >conftest.er1
  1673. cat conftest.er1 >&5
  1674. mv -f conftest.er1 conftest.err
  1675. fi
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; } > conftest.i && {
  1678. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1679. test ! -s conftest.err
  1680. }; then :
  1681. ac_retval=0
  1682. else
  1683. $as_echo "$as_me: failed program was:" >&5
  1684. sed 's/^/| /' conftest.$ac_ext >&5
  1685. ac_retval=1
  1686. fi
  1687. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1688. as_fn_set_status $ac_retval
  1689. } # ac_fn_c_try_cpp
  1690. # ac_fn_c_try_run LINENO
  1691. # ----------------------
  1692. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1693. # that executables *can* be run.
  1694. ac_fn_c_try_run ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. if { { ac_try="$ac_link"
  1698. case "(($ac_try" in
  1699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1700. *) ac_try_echo=$ac_try;;
  1701. esac
  1702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1703. $as_echo "$ac_try_echo"; } >&5
  1704. (eval "$ac_link") 2>&5
  1705. ac_status=$?
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1708. { { case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_try") 2>&5
  1715. ac_status=$?
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; }; }; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: program exited with status $ac_status" >&5
  1721. $as_echo "$as_me: failed program was:" >&5
  1722. sed 's/^/| /' conftest.$ac_ext >&5
  1723. ac_retval=$ac_status
  1724. fi
  1725. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_run
  1729. # ac_fn_c_check_func LINENO FUNC VAR
  1730. # ----------------------------------
  1731. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1732. ac_fn_c_check_func ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1736. $as_echo_n "checking for $2... " >&6; }
  1737. if eval \${$3+:} false; then :
  1738. $as_echo_n "(cached) " >&6
  1739. else
  1740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1741. /* end confdefs.h. */
  1742. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1743. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1744. #define $2 innocuous_$2
  1745. /* System header to define __stub macros and hopefully few prototypes,
  1746. which can conflict with char $2 (); below.
  1747. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1748. <limits.h> exists even on freestanding compilers. */
  1749. #ifdef __STDC__
  1750. # include <limits.h>
  1751. #else
  1752. # include <assert.h>
  1753. #endif
  1754. #undef $2
  1755. /* Override any GCC internal prototype to avoid an error.
  1756. Use char because int might match the return type of a GCC
  1757. builtin and then its argument prototype would still apply. */
  1758. #ifdef __cplusplus
  1759. extern "C"
  1760. #endif
  1761. char $2 ();
  1762. /* The GNU C library defines this for functions which it implements
  1763. to always fail with ENOSYS. Some functions are actually named
  1764. something starting with __ and the normal name is an alias. */
  1765. #if defined __stub_$2 || defined __stub___$2
  1766. choke me
  1767. #endif
  1768. int
  1769. main ()
  1770. {
  1771. return $2 ();
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_c_try_link "$LINENO"; then :
  1777. eval "$3=yes"
  1778. else
  1779. eval "$3=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext \
  1782. conftest$ac_exeext conftest.$ac_ext
  1783. fi
  1784. eval ac_res=\$$3
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1786. $as_echo "$ac_res" >&6; }
  1787. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1788. } # ac_fn_c_check_func
  1789. # ac_fn_cxx_try_compile LINENO
  1790. # ----------------------------
  1791. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1792. ac_fn_cxx_try_compile ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. rm -f conftest.$ac_objext
  1796. if { { ac_try="$ac_compile"
  1797. case "(($ac_try" in
  1798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1799. *) ac_try_echo=$ac_try;;
  1800. esac
  1801. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1802. $as_echo "$ac_try_echo"; } >&5
  1803. (eval "$ac_compile") 2>conftest.err
  1804. ac_status=$?
  1805. if test -s conftest.err; then
  1806. grep -v '^ *+' conftest.err >conftest.er1
  1807. cat conftest.er1 >&5
  1808. mv -f conftest.er1 conftest.err
  1809. fi
  1810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1811. test $ac_status = 0; } && {
  1812. test -z "$ac_cxx_werror_flag" ||
  1813. test ! -s conftest.err
  1814. } && test -s conftest.$ac_objext; then :
  1815. ac_retval=0
  1816. else
  1817. $as_echo "$as_me: failed program was:" >&5
  1818. sed 's/^/| /' conftest.$ac_ext >&5
  1819. ac_retval=1
  1820. fi
  1821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1822. as_fn_set_status $ac_retval
  1823. } # ac_fn_cxx_try_compile
  1824. # ac_fn_cxx_try_cpp LINENO
  1825. # ------------------------
  1826. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1827. ac_fn_cxx_try_cpp ()
  1828. {
  1829. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1831. case "(($ac_try" in
  1832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1833. *) ac_try_echo=$ac_try;;
  1834. esac
  1835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1836. $as_echo "$ac_try_echo"; } >&5
  1837. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1838. ac_status=$?
  1839. if test -s conftest.err; then
  1840. grep -v '^ *+' conftest.err >conftest.er1
  1841. cat conftest.er1 >&5
  1842. mv -f conftest.er1 conftest.err
  1843. fi
  1844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1845. test $ac_status = 0; } > conftest.i && {
  1846. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1847. test ! -s conftest.err
  1848. }; then :
  1849. ac_retval=0
  1850. else
  1851. $as_echo "$as_me: failed program was:" >&5
  1852. sed 's/^/| /' conftest.$ac_ext >&5
  1853. ac_retval=1
  1854. fi
  1855. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1856. as_fn_set_status $ac_retval
  1857. } # ac_fn_cxx_try_cpp
  1858. # ac_fn_cxx_try_link LINENO
  1859. # -------------------------
  1860. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1861. ac_fn_cxx_try_link ()
  1862. {
  1863. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1864. rm -f conftest.$ac_objext conftest$ac_exeext
  1865. if { { ac_try="$ac_link"
  1866. case "(($ac_try" in
  1867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1868. *) ac_try_echo=$ac_try;;
  1869. esac
  1870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1871. $as_echo "$ac_try_echo"; } >&5
  1872. (eval "$ac_link") 2>conftest.err
  1873. ac_status=$?
  1874. if test -s conftest.err; then
  1875. grep -v '^ *+' conftest.err >conftest.er1
  1876. cat conftest.er1 >&5
  1877. mv -f conftest.er1 conftest.err
  1878. fi
  1879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1880. test $ac_status = 0; } && {
  1881. test -z "$ac_cxx_werror_flag" ||
  1882. test ! -s conftest.err
  1883. } && test -s conftest$ac_exeext && {
  1884. test "$cross_compiling" = yes ||
  1885. test -x conftest$ac_exeext
  1886. }; then :
  1887. ac_retval=0
  1888. else
  1889. $as_echo "$as_me: failed program was:" >&5
  1890. sed 's/^/| /' conftest.$ac_ext >&5
  1891. ac_retval=1
  1892. fi
  1893. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1894. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1895. # interfere with the next link command; also delete a directory that is
  1896. # left behind by Apple's compiler. We do this before executing the actions.
  1897. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1898. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1899. as_fn_set_status $ac_retval
  1900. } # ac_fn_cxx_try_link
  1901. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1902. # -------------------------------------------------------
  1903. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1904. # the include files in INCLUDES and setting the cache variable VAR
  1905. # accordingly.
  1906. ac_fn_c_check_header_mongrel ()
  1907. {
  1908. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1909. if eval \${$3+:} false; then :
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1911. $as_echo_n "checking for $2... " >&6; }
  1912. if eval \${$3+:} false; then :
  1913. $as_echo_n "(cached) " >&6
  1914. fi
  1915. eval ac_res=\$$3
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1917. $as_echo "$ac_res" >&6; }
  1918. else
  1919. # Is the header compilable?
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1921. $as_echo_n "checking $2 usability... " >&6; }
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. #include <$2>
  1926. _ACEOF
  1927. if ac_fn_c_try_compile "$LINENO"; then :
  1928. ac_header_compiler=yes
  1929. else
  1930. ac_header_compiler=no
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1934. $as_echo "$ac_header_compiler" >&6; }
  1935. # Is the header present?
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1937. $as_echo_n "checking $2 presence... " >&6; }
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. #include <$2>
  1941. _ACEOF
  1942. if ac_fn_c_try_cpp "$LINENO"; then :
  1943. ac_header_preproc=yes
  1944. else
  1945. ac_header_preproc=no
  1946. fi
  1947. rm -f conftest.err conftest.i conftest.$ac_ext
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1949. $as_echo "$ac_header_preproc" >&6; }
  1950. # So? What about this header?
  1951. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1952. yes:no: )
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1954. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1956. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1957. ;;
  1958. no:yes:* )
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1960. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1962. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1964. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1966. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1968. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1969. ;;
  1970. esac
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1972. $as_echo_n "checking for $2... " >&6; }
  1973. if eval \${$3+:} false; then :
  1974. $as_echo_n "(cached) " >&6
  1975. else
  1976. eval "$3=\$ac_header_compiler"
  1977. fi
  1978. eval ac_res=\$$3
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1980. $as_echo "$ac_res" >&6; }
  1981. fi
  1982. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1983. } # ac_fn_c_check_header_mongrel
  1984. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1985. # -------------------------------------------
  1986. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1987. # variable VAR accordingly.
  1988. ac_fn_c_check_type ()
  1989. {
  1990. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1992. $as_echo_n "checking for $2... " >&6; }
  1993. if eval \${$3+:} false; then :
  1994. $as_echo_n "(cached) " >&6
  1995. else
  1996. eval "$3=no"
  1997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1998. /* end confdefs.h. */
  1999. $4
  2000. int
  2001. main ()
  2002. {
  2003. if (sizeof ($2))
  2004. return 0;
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. if ac_fn_c_try_compile "$LINENO"; then :
  2010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2011. /* end confdefs.h. */
  2012. $4
  2013. int
  2014. main ()
  2015. {
  2016. if (sizeof (($2)))
  2017. return 0;
  2018. ;
  2019. return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_compile "$LINENO"; then :
  2023. else
  2024. eval "$3=yes"
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2027. fi
  2028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2029. fi
  2030. eval ac_res=\$$3
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2032. $as_echo "$ac_res" >&6; }
  2033. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2034. } # ac_fn_c_check_type
  2035. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2036. # ----------------------------------------------------
  2037. # Tries to find if the field MEMBER exists in type AGGR, after including
  2038. # INCLUDES, setting cache variable VAR accordingly.
  2039. ac_fn_c_check_member ()
  2040. {
  2041. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2043. $as_echo_n "checking for $2.$3... " >&6; }
  2044. if eval \${$4+:} false; then :
  2045. $as_echo_n "(cached) " >&6
  2046. else
  2047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2048. /* end confdefs.h. */
  2049. $5
  2050. int
  2051. main ()
  2052. {
  2053. static $2 ac_aggr;
  2054. if (ac_aggr.$3)
  2055. return 0;
  2056. ;
  2057. return 0;
  2058. }
  2059. _ACEOF
  2060. if ac_fn_c_try_compile "$LINENO"; then :
  2061. eval "$4=yes"
  2062. else
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $5
  2066. int
  2067. main ()
  2068. {
  2069. static $2 ac_aggr;
  2070. if (sizeof ac_aggr.$3)
  2071. return 0;
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. if ac_fn_c_try_compile "$LINENO"; then :
  2077. eval "$4=yes"
  2078. else
  2079. eval "$4=no"
  2080. fi
  2081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2082. fi
  2083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2084. fi
  2085. eval ac_res=\$$4
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2087. $as_echo "$ac_res" >&6; }
  2088. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2089. } # ac_fn_c_check_member
  2090. cat >config.log <<_ACEOF
  2091. This file contains any messages produced by compilers while
  2092. running configure, to aid debugging if configure makes a mistake.
  2093. It was created by $as_me, which was
  2094. generated by GNU Autoconf 2.69. Invocation command line was
  2095. $ $0 $@
  2096. _ACEOF
  2097. exec 5>>config.log
  2098. {
  2099. cat <<_ASUNAME
  2100. ## --------- ##
  2101. ## Platform. ##
  2102. ## --------- ##
  2103. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2104. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2105. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2106. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2107. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2108. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2109. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2110. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2111. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2112. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2113. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2114. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2115. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2116. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2117. _ASUNAME
  2118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2119. for as_dir in $PATH
  2120. do
  2121. IFS=$as_save_IFS
  2122. test -z "$as_dir" && as_dir=.
  2123. $as_echo "PATH: $as_dir"
  2124. done
  2125. IFS=$as_save_IFS
  2126. } >&5
  2127. cat >&5 <<_ACEOF
  2128. ## ----------- ##
  2129. ## Core tests. ##
  2130. ## ----------- ##
  2131. _ACEOF
  2132. # Keep a trace of the command line.
  2133. # Strip out --no-create and --no-recursion so they do not pile up.
  2134. # Strip out --silent because we don't want to record it for future runs.
  2135. # Also quote any args containing shell meta-characters.
  2136. # Make two passes to allow for proper duplicate-argument suppression.
  2137. ac_configure_args=
  2138. ac_configure_args0=
  2139. ac_configure_args1=
  2140. ac_must_keep_next=false
  2141. for ac_pass in 1 2
  2142. do
  2143. for ac_arg
  2144. do
  2145. case $ac_arg in
  2146. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2147. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2148. | -silent | --silent | --silen | --sile | --sil)
  2149. continue ;;
  2150. *\'*)
  2151. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2152. esac
  2153. case $ac_pass in
  2154. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2155. 2)
  2156. as_fn_append ac_configure_args1 " '$ac_arg'"
  2157. if test $ac_must_keep_next = true; then
  2158. ac_must_keep_next=false # Got value, back to normal.
  2159. else
  2160. case $ac_arg in
  2161. *=* | --config-cache | -C | -disable-* | --disable-* \
  2162. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2163. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2164. | -with-* | --with-* | -without-* | --without-* | --x)
  2165. case "$ac_configure_args0 " in
  2166. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2167. esac
  2168. ;;
  2169. -* ) ac_must_keep_next=true ;;
  2170. esac
  2171. fi
  2172. as_fn_append ac_configure_args " '$ac_arg'"
  2173. ;;
  2174. esac
  2175. done
  2176. done
  2177. { ac_configure_args0=; unset ac_configure_args0;}
  2178. { ac_configure_args1=; unset ac_configure_args1;}
  2179. # When interrupted or exit'd, cleanup temporary files, and complete
  2180. # config.log. We remove comments because anyway the quotes in there
  2181. # would cause problems or look ugly.
  2182. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2183. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2184. trap 'exit_status=$?
  2185. # Save into config.log some information that might help in debugging.
  2186. {
  2187. echo
  2188. $as_echo "## ---------------- ##
  2189. ## Cache variables. ##
  2190. ## ---------------- ##"
  2191. echo
  2192. # The following way of writing the cache mishandles newlines in values,
  2193. (
  2194. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2195. eval ac_val=\$$ac_var
  2196. case $ac_val in #(
  2197. *${as_nl}*)
  2198. case $ac_var in #(
  2199. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2200. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2201. esac
  2202. case $ac_var in #(
  2203. _ | IFS | as_nl) ;; #(
  2204. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2205. *) { eval $ac_var=; unset $ac_var;} ;;
  2206. esac ;;
  2207. esac
  2208. done
  2209. (set) 2>&1 |
  2210. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2211. *${as_nl}ac_space=\ *)
  2212. sed -n \
  2213. "s/'\''/'\''\\\\'\'''\''/g;
  2214. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2215. ;; #(
  2216. *)
  2217. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2218. ;;
  2219. esac |
  2220. sort
  2221. )
  2222. echo
  2223. $as_echo "## ----------------- ##
  2224. ## Output variables. ##
  2225. ## ----------------- ##"
  2226. echo
  2227. for ac_var in $ac_subst_vars
  2228. do
  2229. eval ac_val=\$$ac_var
  2230. case $ac_val in
  2231. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2232. esac
  2233. $as_echo "$ac_var='\''$ac_val'\''"
  2234. done | sort
  2235. echo
  2236. if test -n "$ac_subst_files"; then
  2237. $as_echo "## ------------------- ##
  2238. ## File substitutions. ##
  2239. ## ------------------- ##"
  2240. echo
  2241. for ac_var in $ac_subst_files
  2242. do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in
  2245. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2246. esac
  2247. $as_echo "$ac_var='\''$ac_val'\''"
  2248. done | sort
  2249. echo
  2250. fi
  2251. if test -s confdefs.h; then
  2252. $as_echo "## ----------- ##
  2253. ## confdefs.h. ##
  2254. ## ----------- ##"
  2255. echo
  2256. cat confdefs.h
  2257. echo
  2258. fi
  2259. test "$ac_signal" != 0 &&
  2260. $as_echo "$as_me: caught signal $ac_signal"
  2261. $as_echo "$as_me: exit $exit_status"
  2262. } >&5
  2263. rm -f core *.core core.conftest.* &&
  2264. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2265. exit $exit_status
  2266. ' 0
  2267. for ac_signal in 1 2 13 15; do
  2268. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2269. done
  2270. ac_signal=0
  2271. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2272. rm -f -r conftest* confdefs.h
  2273. $as_echo "/* confdefs.h */" > confdefs.h
  2274. # Predefined preprocessor variables.
  2275. cat >>confdefs.h <<_ACEOF
  2276. #define PACKAGE_NAME "$PACKAGE_NAME"
  2277. _ACEOF
  2278. cat >>confdefs.h <<_ACEOF
  2279. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2280. _ACEOF
  2281. cat >>confdefs.h <<_ACEOF
  2282. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2283. _ACEOF
  2284. cat >>confdefs.h <<_ACEOF
  2285. #define PACKAGE_STRING "$PACKAGE_STRING"
  2286. _ACEOF
  2287. cat >>confdefs.h <<_ACEOF
  2288. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2289. _ACEOF
  2290. cat >>confdefs.h <<_ACEOF
  2291. #define PACKAGE_URL "$PACKAGE_URL"
  2292. _ACEOF
  2293. # Let the site file select an alternate cache file if it wants to.
  2294. # Prefer an explicitly selected file to automatically selected ones.
  2295. ac_site_file1=NONE
  2296. ac_site_file2=NONE
  2297. if test -n "$CONFIG_SITE"; then
  2298. # We do not want a PATH search for config.site.
  2299. case $CONFIG_SITE in #((
  2300. -*) ac_site_file1=./$CONFIG_SITE;;
  2301. */*) ac_site_file1=$CONFIG_SITE;;
  2302. *) ac_site_file1=./$CONFIG_SITE;;
  2303. esac
  2304. elif test "x$prefix" != xNONE; then
  2305. ac_site_file1=$prefix/share/config.site
  2306. ac_site_file2=$prefix/etc/config.site
  2307. else
  2308. ac_site_file1=$ac_default_prefix/share/config.site
  2309. ac_site_file2=$ac_default_prefix/etc/config.site
  2310. fi
  2311. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2312. do
  2313. test "x$ac_site_file" = xNONE && continue
  2314. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2316. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2317. sed 's/^/| /' "$ac_site_file" >&5
  2318. . "$ac_site_file" \
  2319. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2320. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2321. as_fn_error $? "failed to load site script $ac_site_file
  2322. See \`config.log' for more details" "$LINENO" 5; }
  2323. fi
  2324. done
  2325. if test -r "$cache_file"; then
  2326. # Some versions of bash will fail to source /dev/null (special files
  2327. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2328. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2330. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2331. case $cache_file in
  2332. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2333. *) . "./$cache_file";;
  2334. esac
  2335. fi
  2336. else
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2338. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2339. >$cache_file
  2340. fi
  2341. # Check that the precious variables saved in the cache have kept the same
  2342. # value.
  2343. ac_cache_corrupted=false
  2344. for ac_var in $ac_precious_vars; do
  2345. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2346. eval ac_new_set=\$ac_env_${ac_var}_set
  2347. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2348. eval ac_new_val=\$ac_env_${ac_var}_value
  2349. case $ac_old_set,$ac_new_set in
  2350. set,)
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2352. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2353. ac_cache_corrupted=: ;;
  2354. ,set)
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2356. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2357. ac_cache_corrupted=: ;;
  2358. ,);;
  2359. *)
  2360. if test "x$ac_old_val" != "x$ac_new_val"; then
  2361. # differences in whitespace do not lead to failure.
  2362. ac_old_val_w=`echo x $ac_old_val`
  2363. ac_new_val_w=`echo x $ac_new_val`
  2364. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2366. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2367. ac_cache_corrupted=:
  2368. else
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2370. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2371. eval $ac_var=\$ac_old_val
  2372. fi
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2374. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2376. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2377. fi;;
  2378. esac
  2379. # Pass precious variables to config.status.
  2380. if test "$ac_new_set" = set; then
  2381. case $ac_new_val in
  2382. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2383. *) ac_arg=$ac_var=$ac_new_val ;;
  2384. esac
  2385. case " $ac_configure_args " in
  2386. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2387. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2388. esac
  2389. fi
  2390. done
  2391. if $ac_cache_corrupted; then
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2395. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2396. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2397. fi
  2398. ## -------------------- ##
  2399. ## Main body of script. ##
  2400. ## -------------------- ##
  2401. ac_ext=c
  2402. ac_cpp='$CPP $CPPFLAGS'
  2403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2406. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2407. ac_aux_dir=
  2408. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2409. if test -f "$ac_dir/install-sh"; then
  2410. ac_aux_dir=$ac_dir
  2411. ac_install_sh="$ac_aux_dir/install-sh -c"
  2412. break
  2413. elif test -f "$ac_dir/install.sh"; then
  2414. ac_aux_dir=$ac_dir
  2415. ac_install_sh="$ac_aux_dir/install.sh -c"
  2416. break
  2417. elif test -f "$ac_dir/shtool"; then
  2418. ac_aux_dir=$ac_dir
  2419. ac_install_sh="$ac_aux_dir/shtool install -c"
  2420. break
  2421. fi
  2422. done
  2423. if test -z "$ac_aux_dir"; then
  2424. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2425. fi
  2426. # These three variables are undocumented and unsupported,
  2427. # and are intended to be withdrawn in a future Autoconf release.
  2428. # They can cause serious problems if a builder's source tree is in a directory
  2429. # whose full name contains unusual characters.
  2430. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2431. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2432. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2433. orig_CFLAGS="$CFLAGS"
  2434. #
  2435. # Making releases:
  2436. # Edit include/SDL_version.h and change the version, then:
  2437. # SDL_MICRO_VERSION += 1;
  2438. # SDL_INTERFACE_AGE += 1;
  2439. # SDL_BINARY_AGE += 1;
  2440. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2441. # if backwards compatibility has been broken,
  2442. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2443. #
  2444. SDL_MAJOR_VERSION=2
  2445. SDL_MINOR_VERSION=0
  2446. SDL_MICRO_VERSION=3
  2447. SDL_INTERFACE_AGE=1
  2448. SDL_BINARY_AGE=3
  2449. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2450. # libtool versioning
  2451. case `pwd` in
  2452. *\ * | *\ *)
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2454. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2455. esac
  2456. macro_version='2.4.2'
  2457. macro_revision='1.3337'
  2458. ltmain="$ac_aux_dir/ltmain.sh"
  2459. # Make sure we can run config.sub.
  2460. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2461. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2463. $as_echo_n "checking build system type... " >&6; }
  2464. if ${ac_cv_build+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. ac_build_alias=$build_alias
  2468. test "x$ac_build_alias" = x &&
  2469. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2470. test "x$ac_build_alias" = x &&
  2471. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2472. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2473. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2474. fi
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2476. $as_echo "$ac_cv_build" >&6; }
  2477. case $ac_cv_build in
  2478. *-*-*) ;;
  2479. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2480. esac
  2481. build=$ac_cv_build
  2482. ac_save_IFS=$IFS; IFS='-'
  2483. set x $ac_cv_build
  2484. shift
  2485. build_cpu=$1
  2486. build_vendor=$2
  2487. shift; shift
  2488. # Remember, the first character of IFS is used to create $*,
  2489. # except with old shells:
  2490. build_os=$*
  2491. IFS=$ac_save_IFS
  2492. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2494. $as_echo_n "checking host system type... " >&6; }
  2495. if ${ac_cv_host+:} false; then :
  2496. $as_echo_n "(cached) " >&6
  2497. else
  2498. if test "x$host_alias" = x; then
  2499. ac_cv_host=$ac_cv_build
  2500. else
  2501. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2502. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2503. fi
  2504. fi
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2506. $as_echo "$ac_cv_host" >&6; }
  2507. case $ac_cv_host in
  2508. *-*-*) ;;
  2509. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2510. esac
  2511. host=$ac_cv_host
  2512. ac_save_IFS=$IFS; IFS='-'
  2513. set x $ac_cv_host
  2514. shift
  2515. host_cpu=$1
  2516. host_vendor=$2
  2517. shift; shift
  2518. # Remember, the first character of IFS is used to create $*,
  2519. # except with old shells:
  2520. host_os=$*
  2521. IFS=$ac_save_IFS
  2522. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2523. # Backslashify metacharacters that are still active within
  2524. # double-quoted strings.
  2525. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2526. # Same as above, but do not quote variable references.
  2527. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2528. # Sed substitution to delay expansion of an escaped shell variable in a
  2529. # double_quote_subst'ed string.
  2530. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2531. # Sed substitution to delay expansion of an escaped single quote.
  2532. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2533. # Sed substitution to avoid accidental globbing in evaled expressions
  2534. no_glob_subst='s/\*/\\\*/g'
  2535. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2536. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2537. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2539. $as_echo_n "checking how to print strings... " >&6; }
  2540. # Test print first, because it will be a builtin if present.
  2541. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2542. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2543. ECHO='print -r --'
  2544. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2545. ECHO='printf %s\n'
  2546. else
  2547. # Use this function as a fallback that always works.
  2548. func_fallback_echo ()
  2549. {
  2550. eval 'cat <<_LTECHO_EOF
  2551. $1
  2552. _LTECHO_EOF'
  2553. }
  2554. ECHO='func_fallback_echo'
  2555. fi
  2556. # func_echo_all arg...
  2557. # Invoke $ECHO with all args, space-separated.
  2558. func_echo_all ()
  2559. {
  2560. $ECHO ""
  2561. }
  2562. case "$ECHO" in
  2563. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2564. $as_echo "printf" >&6; } ;;
  2565. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2566. $as_echo "print -r" >&6; } ;;
  2567. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2568. $as_echo "cat" >&6; } ;;
  2569. esac
  2570. ac_ext=c
  2571. ac_cpp='$CPP $CPPFLAGS'
  2572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2575. if test -n "$ac_tool_prefix"; then
  2576. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2577. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2579. $as_echo_n "checking for $ac_word... " >&6; }
  2580. if ${ac_cv_prog_CC+:} false; then :
  2581. $as_echo_n "(cached) " >&6
  2582. else
  2583. if test -n "$CC"; then
  2584. ac_cv_prog_CC="$CC" # Let the user override the test.
  2585. else
  2586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2587. for as_dir in $PATH
  2588. do
  2589. IFS=$as_save_IFS
  2590. test -z "$as_dir" && as_dir=.
  2591. for ac_exec_ext in '' $ac_executable_extensions; do
  2592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2593. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2595. break 2
  2596. fi
  2597. done
  2598. done
  2599. IFS=$as_save_IFS
  2600. fi
  2601. fi
  2602. CC=$ac_cv_prog_CC
  2603. if test -n "$CC"; then
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2605. $as_echo "$CC" >&6; }
  2606. else
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2608. $as_echo "no" >&6; }
  2609. fi
  2610. fi
  2611. if test -z "$ac_cv_prog_CC"; then
  2612. ac_ct_CC=$CC
  2613. # Extract the first word of "gcc", so it can be a program name with args.
  2614. set dummy gcc; ac_word=$2
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2616. $as_echo_n "checking for $ac_word... " >&6; }
  2617. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. if test -n "$ac_ct_CC"; then
  2621. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2622. else
  2623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2624. for as_dir in $PATH
  2625. do
  2626. IFS=$as_save_IFS
  2627. test -z "$as_dir" && as_dir=.
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2630. ac_cv_prog_ac_ct_CC="gcc"
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. IFS=$as_save_IFS
  2637. fi
  2638. fi
  2639. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2640. if test -n "$ac_ct_CC"; then
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2642. $as_echo "$ac_ct_CC" >&6; }
  2643. else
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2645. $as_echo "no" >&6; }
  2646. fi
  2647. if test "x$ac_ct_CC" = x; then
  2648. CC=""
  2649. else
  2650. case $cross_compiling:$ac_tool_warned in
  2651. yes:)
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2654. ac_tool_warned=yes ;;
  2655. esac
  2656. CC=$ac_ct_CC
  2657. fi
  2658. else
  2659. CC="$ac_cv_prog_CC"
  2660. fi
  2661. if test -z "$CC"; then
  2662. if test -n "$ac_tool_prefix"; then
  2663. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2664. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2666. $as_echo_n "checking for $ac_word... " >&6; }
  2667. if ${ac_cv_prog_CC+:} false; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test -n "$CC"; then
  2671. ac_cv_prog_CC="$CC" # Let the user override the test.
  2672. else
  2673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2674. for as_dir in $PATH
  2675. do
  2676. IFS=$as_save_IFS
  2677. test -z "$as_dir" && as_dir=.
  2678. for ac_exec_ext in '' $ac_executable_extensions; do
  2679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2680. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2682. break 2
  2683. fi
  2684. done
  2685. done
  2686. IFS=$as_save_IFS
  2687. fi
  2688. fi
  2689. CC=$ac_cv_prog_CC
  2690. if test -n "$CC"; then
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2692. $as_echo "$CC" >&6; }
  2693. else
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2695. $as_echo "no" >&6; }
  2696. fi
  2697. fi
  2698. fi
  2699. if test -z "$CC"; then
  2700. # Extract the first word of "cc", so it can be a program name with args.
  2701. set dummy cc; ac_word=$2
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2703. $as_echo_n "checking for $ac_word... " >&6; }
  2704. if ${ac_cv_prog_CC+:} false; then :
  2705. $as_echo_n "(cached) " >&6
  2706. else
  2707. if test -n "$CC"; then
  2708. ac_cv_prog_CC="$CC" # Let the user override the test.
  2709. else
  2710. ac_prog_rejected=no
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2719. ac_prog_rejected=yes
  2720. continue
  2721. fi
  2722. ac_cv_prog_CC="cc"
  2723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2724. break 2
  2725. fi
  2726. done
  2727. done
  2728. IFS=$as_save_IFS
  2729. if test $ac_prog_rejected = yes; then
  2730. # We found a bogon in the path, so make sure we never use it.
  2731. set dummy $ac_cv_prog_CC
  2732. shift
  2733. if test $# != 0; then
  2734. # We chose a different compiler from the bogus one.
  2735. # However, it has the same basename, so the bogon will be chosen
  2736. # first if we set CC to just the basename; use the full file name.
  2737. shift
  2738. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2739. fi
  2740. fi
  2741. fi
  2742. fi
  2743. CC=$ac_cv_prog_CC
  2744. if test -n "$CC"; then
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2746. $as_echo "$CC" >&6; }
  2747. else
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2749. $as_echo "no" >&6; }
  2750. fi
  2751. fi
  2752. if test -z "$CC"; then
  2753. if test -n "$ac_tool_prefix"; then
  2754. for ac_prog in cl.exe
  2755. do
  2756. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2757. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if ${ac_cv_prog_CC+:} false; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$CC"; then
  2764. ac_cv_prog_CC="$CC" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. CC=$ac_cv_prog_CC
  2783. if test -n "$CC"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2785. $as_echo "$CC" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. test -n "$CC" && break
  2791. done
  2792. fi
  2793. if test -z "$CC"; then
  2794. ac_ct_CC=$CC
  2795. for ac_prog in cl.exe
  2796. do
  2797. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2798. set dummy $ac_prog; ac_word=$2
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2800. $as_echo_n "checking for $ac_word... " >&6; }
  2801. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. if test -n "$ac_ct_CC"; then
  2805. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2806. else
  2807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2808. for as_dir in $PATH
  2809. do
  2810. IFS=$as_save_IFS
  2811. test -z "$as_dir" && as_dir=.
  2812. for ac_exec_ext in '' $ac_executable_extensions; do
  2813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2814. ac_cv_prog_ac_ct_CC="$ac_prog"
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. done
  2820. IFS=$as_save_IFS
  2821. fi
  2822. fi
  2823. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2824. if test -n "$ac_ct_CC"; then
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2826. $as_echo "$ac_ct_CC" >&6; }
  2827. else
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831. test -n "$ac_ct_CC" && break
  2832. done
  2833. if test "x$ac_ct_CC" = x; then
  2834. CC=""
  2835. else
  2836. case $cross_compiling:$ac_tool_warned in
  2837. yes:)
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2840. ac_tool_warned=yes ;;
  2841. esac
  2842. CC=$ac_ct_CC
  2843. fi
  2844. fi
  2845. fi
  2846. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2848. as_fn_error $? "no acceptable C compiler found in \$PATH
  2849. See \`config.log' for more details" "$LINENO" 5; }
  2850. # Provide some information about the compiler.
  2851. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2852. set X $ac_compile
  2853. ac_compiler=$2
  2854. for ac_option in --version -v -V -qversion; do
  2855. { { ac_try="$ac_compiler $ac_option >&5"
  2856. case "(($ac_try" in
  2857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2858. *) ac_try_echo=$ac_try;;
  2859. esac
  2860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2861. $as_echo "$ac_try_echo"; } >&5
  2862. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2863. ac_status=$?
  2864. if test -s conftest.err; then
  2865. sed '10a\
  2866. ... rest of stderr output deleted ...
  2867. 10q' conftest.err >conftest.er1
  2868. cat conftest.er1 >&5
  2869. fi
  2870. rm -f conftest.er1 conftest.err
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2872. test $ac_status = 0; }
  2873. done
  2874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2875. /* end confdefs.h. */
  2876. int
  2877. main ()
  2878. {
  2879. ;
  2880. return 0;
  2881. }
  2882. _ACEOF
  2883. ac_clean_files_save=$ac_clean_files
  2884. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2885. # Try to create an executable without -o first, disregard a.out.
  2886. # It will help us diagnose broken compilers, and finding out an intuition
  2887. # of exeext.
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2889. $as_echo_n "checking whether the C compiler works... " >&6; }
  2890. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2891. # The possible output files:
  2892. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2893. ac_rmfiles=
  2894. for ac_file in $ac_files
  2895. do
  2896. case $ac_file in
  2897. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2898. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2899. esac
  2900. done
  2901. rm -f $ac_rmfiles
  2902. if { { ac_try="$ac_link_default"
  2903. case "(($ac_try" in
  2904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2905. *) ac_try_echo=$ac_try;;
  2906. esac
  2907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2908. $as_echo "$ac_try_echo"; } >&5
  2909. (eval "$ac_link_default") 2>&5
  2910. ac_status=$?
  2911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2912. test $ac_status = 0; }; then :
  2913. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2914. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2915. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2916. # so that the user can short-circuit this test for compilers unknown to
  2917. # Autoconf.
  2918. for ac_file in $ac_files ''
  2919. do
  2920. test -f "$ac_file" || continue
  2921. case $ac_file in
  2922. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2923. ;;
  2924. [ab].out )
  2925. # We found the default executable, but exeext='' is most
  2926. # certainly right.
  2927. break;;
  2928. *.* )
  2929. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2930. then :; else
  2931. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2932. fi
  2933. # We set ac_cv_exeext here because the later test for it is not
  2934. # safe: cross compilers may not add the suffix if given an `-o'
  2935. # argument, so we may need to know it at that point already.
  2936. # Even if this section looks crufty: it has the advantage of
  2937. # actually working.
  2938. break;;
  2939. * )
  2940. break;;
  2941. esac
  2942. done
  2943. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2944. else
  2945. ac_file=''
  2946. fi
  2947. if test -z "$ac_file"; then :
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2949. $as_echo "no" >&6; }
  2950. $as_echo "$as_me: failed program was:" >&5
  2951. sed 's/^/| /' conftest.$ac_ext >&5
  2952. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2954. as_fn_error 77 "C compiler cannot create executables
  2955. See \`config.log' for more details" "$LINENO" 5; }
  2956. else
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2958. $as_echo "yes" >&6; }
  2959. fi
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2961. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2963. $as_echo "$ac_file" >&6; }
  2964. ac_exeext=$ac_cv_exeext
  2965. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2966. ac_clean_files=$ac_clean_files_save
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2968. $as_echo_n "checking for suffix of executables... " >&6; }
  2969. if { { ac_try="$ac_link"
  2970. case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2975. $as_echo "$ac_try_echo"; } >&5
  2976. (eval "$ac_link") 2>&5
  2977. ac_status=$?
  2978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2979. test $ac_status = 0; }; then :
  2980. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2981. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2982. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2983. # `rm'.
  2984. for ac_file in conftest.exe conftest conftest.*; do
  2985. test -f "$ac_file" || continue
  2986. case $ac_file in
  2987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2988. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2989. break;;
  2990. * ) break;;
  2991. esac
  2992. done
  2993. else
  2994. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2995. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2996. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2997. See \`config.log' for more details" "$LINENO" 5; }
  2998. fi
  2999. rm -f conftest conftest$ac_cv_exeext
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3001. $as_echo "$ac_cv_exeext" >&6; }
  3002. rm -f conftest.$ac_ext
  3003. EXEEXT=$ac_cv_exeext
  3004. ac_exeext=$EXEEXT
  3005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3006. /* end confdefs.h. */
  3007. #include <stdio.h>
  3008. int
  3009. main ()
  3010. {
  3011. FILE *f = fopen ("conftest.out", "w");
  3012. return ferror (f) || fclose (f) != 0;
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. ac_clean_files="$ac_clean_files conftest.out"
  3018. # Check that the compiler produces executables we can run. If not, either
  3019. # the compiler is broken, or we cross compile.
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3021. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3022. if test "$cross_compiling" != yes; then
  3023. { { ac_try="$ac_link"
  3024. case "(($ac_try" in
  3025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3026. *) ac_try_echo=$ac_try;;
  3027. esac
  3028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3029. $as_echo "$ac_try_echo"; } >&5
  3030. (eval "$ac_link") 2>&5
  3031. ac_status=$?
  3032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3033. test $ac_status = 0; }
  3034. if { ac_try='./conftest$ac_cv_exeext'
  3035. { { case "(($ac_try" in
  3036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. *) ac_try_echo=$ac_try;;
  3038. esac
  3039. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3040. $as_echo "$ac_try_echo"; } >&5
  3041. (eval "$ac_try") 2>&5
  3042. ac_status=$?
  3043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3044. test $ac_status = 0; }; }; then
  3045. cross_compiling=no
  3046. else
  3047. if test "$cross_compiling" = maybe; then
  3048. cross_compiling=yes
  3049. else
  3050. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3052. as_fn_error $? "cannot run C compiled programs.
  3053. If you meant to cross compile, use \`--host'.
  3054. See \`config.log' for more details" "$LINENO" 5; }
  3055. fi
  3056. fi
  3057. fi
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3059. $as_echo "$cross_compiling" >&6; }
  3060. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3061. ac_clean_files=$ac_clean_files_save
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3063. $as_echo_n "checking for suffix of object files... " >&6; }
  3064. if ${ac_cv_objext+:} false; then :
  3065. $as_echo_n "(cached) " >&6
  3066. else
  3067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3068. /* end confdefs.h. */
  3069. int
  3070. main ()
  3071. {
  3072. ;
  3073. return 0;
  3074. }
  3075. _ACEOF
  3076. rm -f conftest.o conftest.obj
  3077. if { { ac_try="$ac_compile"
  3078. case "(($ac_try" in
  3079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3080. *) ac_try_echo=$ac_try;;
  3081. esac
  3082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3083. $as_echo "$ac_try_echo"; } >&5
  3084. (eval "$ac_compile") 2>&5
  3085. ac_status=$?
  3086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3087. test $ac_status = 0; }; then :
  3088. for ac_file in conftest.o conftest.obj conftest.*; do
  3089. test -f "$ac_file" || continue;
  3090. case $ac_file in
  3091. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3092. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3093. break;;
  3094. esac
  3095. done
  3096. else
  3097. $as_echo "$as_me: failed program was:" >&5
  3098. sed 's/^/| /' conftest.$ac_ext >&5
  3099. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3100. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3101. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3102. See \`config.log' for more details" "$LINENO" 5; }
  3103. fi
  3104. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3107. $as_echo "$ac_cv_objext" >&6; }
  3108. OBJEXT=$ac_cv_objext
  3109. ac_objext=$OBJEXT
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3111. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3112. if ${ac_cv_c_compiler_gnu+:} false; then :
  3113. $as_echo_n "(cached) " >&6
  3114. else
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. #ifndef __GNUC__
  3121. choke me
  3122. #endif
  3123. ;
  3124. return 0;
  3125. }
  3126. _ACEOF
  3127. if ac_fn_c_try_compile "$LINENO"; then :
  3128. ac_compiler_gnu=yes
  3129. else
  3130. ac_compiler_gnu=no
  3131. fi
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3136. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3137. if test $ac_compiler_gnu = yes; then
  3138. GCC=yes
  3139. else
  3140. GCC=
  3141. fi
  3142. ac_test_CFLAGS=${CFLAGS+set}
  3143. ac_save_CFLAGS=$CFLAGS
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3145. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3146. if ${ac_cv_prog_cc_g+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. ac_save_c_werror_flag=$ac_c_werror_flag
  3150. ac_c_werror_flag=yes
  3151. ac_cv_prog_cc_g=no
  3152. CFLAGS="-g"
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. int
  3156. main ()
  3157. {
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. if ac_fn_c_try_compile "$LINENO"; then :
  3163. ac_cv_prog_cc_g=yes
  3164. else
  3165. CFLAGS=""
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. int
  3169. main ()
  3170. {
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. if ac_fn_c_try_compile "$LINENO"; then :
  3176. else
  3177. ac_c_werror_flag=$ac_save_c_werror_flag
  3178. CFLAGS="-g"
  3179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3180. /* end confdefs.h. */
  3181. int
  3182. main ()
  3183. {
  3184. ;
  3185. return 0;
  3186. }
  3187. _ACEOF
  3188. if ac_fn_c_try_compile "$LINENO"; then :
  3189. ac_cv_prog_cc_g=yes
  3190. fi
  3191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3192. fi
  3193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3194. fi
  3195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3196. ac_c_werror_flag=$ac_save_c_werror_flag
  3197. fi
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3199. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3200. if test "$ac_test_CFLAGS" = set; then
  3201. CFLAGS=$ac_save_CFLAGS
  3202. elif test $ac_cv_prog_cc_g = yes; then
  3203. if test "$GCC" = yes; then
  3204. CFLAGS="-g -O2"
  3205. else
  3206. CFLAGS="-g"
  3207. fi
  3208. else
  3209. if test "$GCC" = yes; then
  3210. CFLAGS="-O2"
  3211. else
  3212. CFLAGS=
  3213. fi
  3214. fi
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3216. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3217. if ${ac_cv_prog_cc_c89+:} false; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. ac_cv_prog_cc_c89=no
  3221. ac_save_CC=$CC
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. #include <stdarg.h>
  3225. #include <stdio.h>
  3226. struct stat;
  3227. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3228. struct buf { int x; };
  3229. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3230. static char *e (p, i)
  3231. char **p;
  3232. int i;
  3233. {
  3234. return p[i];
  3235. }
  3236. static char *f (char * (*g) (char **, int), char **p, ...)
  3237. {
  3238. char *s;
  3239. va_list v;
  3240. va_start (v,p);
  3241. s = g (p, va_arg (v,int));
  3242. va_end (v);
  3243. return s;
  3244. }
  3245. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3246. function prototypes and stuff, but not '\xHH' hex character constants.
  3247. These don't provoke an error unfortunately, instead are silently treated
  3248. as 'x'. The following induces an error, until -std is added to get
  3249. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3250. array size at least. It's necessary to write '\x00'==0 to get something
  3251. that's true only with -std. */
  3252. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3253. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3254. inside strings and character constants. */
  3255. #define FOO(x) 'x'
  3256. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3257. int test (int i, double x);
  3258. struct s1 {int (*f) (int a);};
  3259. struct s2 {int (*f) (double a);};
  3260. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3261. int argc;
  3262. char **argv;
  3263. int
  3264. main ()
  3265. {
  3266. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3272. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3273. do
  3274. CC="$ac_save_CC $ac_arg"
  3275. if ac_fn_c_try_compile "$LINENO"; then :
  3276. ac_cv_prog_cc_c89=$ac_arg
  3277. fi
  3278. rm -f core conftest.err conftest.$ac_objext
  3279. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3280. done
  3281. rm -f conftest.$ac_ext
  3282. CC=$ac_save_CC
  3283. fi
  3284. # AC_CACHE_VAL
  3285. case "x$ac_cv_prog_cc_c89" in
  3286. x)
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3288. $as_echo "none needed" >&6; } ;;
  3289. xno)
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3291. $as_echo "unsupported" >&6; } ;;
  3292. *)
  3293. CC="$CC $ac_cv_prog_cc_c89"
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3295. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3296. esac
  3297. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3298. fi
  3299. ac_ext=c
  3300. ac_cpp='$CPP $CPPFLAGS'
  3301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3305. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3306. if ${ac_cv_path_SED+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3310. for ac_i in 1 2 3 4 5 6 7; do
  3311. ac_script="$ac_script$as_nl$ac_script"
  3312. done
  3313. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3314. { ac_script=; unset ac_script;}
  3315. if test -z "$SED"; then
  3316. ac_path_SED_found=false
  3317. # Loop through the user's path and test for each of PROGNAME-LIST
  3318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3319. for as_dir in $PATH
  3320. do
  3321. IFS=$as_save_IFS
  3322. test -z "$as_dir" && as_dir=.
  3323. for ac_prog in sed gsed; do
  3324. for ac_exec_ext in '' $ac_executable_extensions; do
  3325. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3326. as_fn_executable_p "$ac_path_SED" || continue
  3327. # Check for GNU ac_path_SED and select it if it is found.
  3328. # Check for GNU $ac_path_SED
  3329. case `"$ac_path_SED" --version 2>&1` in
  3330. *GNU*)
  3331. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3332. *)
  3333. ac_count=0
  3334. $as_echo_n 0123456789 >"conftest.in"
  3335. while :
  3336. do
  3337. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3338. mv "conftest.tmp" "conftest.in"
  3339. cp "conftest.in" "conftest.nl"
  3340. $as_echo '' >> "conftest.nl"
  3341. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3342. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3343. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3344. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3345. # Best one so far, save it but keep looking for a better one
  3346. ac_cv_path_SED="$ac_path_SED"
  3347. ac_path_SED_max=$ac_count
  3348. fi
  3349. # 10*(2^10) chars as input seems more than enough
  3350. test $ac_count -gt 10 && break
  3351. done
  3352. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3353. esac
  3354. $ac_path_SED_found && break 3
  3355. done
  3356. done
  3357. done
  3358. IFS=$as_save_IFS
  3359. if test -z "$ac_cv_path_SED"; then
  3360. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3361. fi
  3362. else
  3363. ac_cv_path_SED=$SED
  3364. fi
  3365. fi
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3367. $as_echo "$ac_cv_path_SED" >&6; }
  3368. SED="$ac_cv_path_SED"
  3369. rm -f conftest.sed
  3370. test -z "$SED" && SED=sed
  3371. Xsed="$SED -e 1s/^X//"
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3373. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3374. if ${ac_cv_path_GREP+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. if test -z "$GREP"; then
  3378. ac_path_GREP_found=false
  3379. # Loop through the user's path and test for each of PROGNAME-LIST
  3380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3381. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3382. do
  3383. IFS=$as_save_IFS
  3384. test -z "$as_dir" && as_dir=.
  3385. for ac_prog in grep ggrep; do
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3388. as_fn_executable_p "$ac_path_GREP" || continue
  3389. # Check for GNU ac_path_GREP and select it if it is found.
  3390. # Check for GNU $ac_path_GREP
  3391. case `"$ac_path_GREP" --version 2>&1` in
  3392. *GNU*)
  3393. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3394. *)
  3395. ac_count=0
  3396. $as_echo_n 0123456789 >"conftest.in"
  3397. while :
  3398. do
  3399. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3400. mv "conftest.tmp" "conftest.in"
  3401. cp "conftest.in" "conftest.nl"
  3402. $as_echo 'GREP' >> "conftest.nl"
  3403. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3404. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3405. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3406. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3407. # Best one so far, save it but keep looking for a better one
  3408. ac_cv_path_GREP="$ac_path_GREP"
  3409. ac_path_GREP_max=$ac_count
  3410. fi
  3411. # 10*(2^10) chars as input seems more than enough
  3412. test $ac_count -gt 10 && break
  3413. done
  3414. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3415. esac
  3416. $ac_path_GREP_found && break 3
  3417. done
  3418. done
  3419. done
  3420. IFS=$as_save_IFS
  3421. if test -z "$ac_cv_path_GREP"; then
  3422. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3423. fi
  3424. else
  3425. ac_cv_path_GREP=$GREP
  3426. fi
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3429. $as_echo "$ac_cv_path_GREP" >&6; }
  3430. GREP="$ac_cv_path_GREP"
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3432. $as_echo_n "checking for egrep... " >&6; }
  3433. if ${ac_cv_path_EGREP+:} false; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3437. then ac_cv_path_EGREP="$GREP -E"
  3438. else
  3439. if test -z "$EGREP"; then
  3440. ac_path_EGREP_found=false
  3441. # Loop through the user's path and test for each of PROGNAME-LIST
  3442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3443. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3444. do
  3445. IFS=$as_save_IFS
  3446. test -z "$as_dir" && as_dir=.
  3447. for ac_prog in egrep; do
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3450. as_fn_executable_p "$ac_path_EGREP" || continue
  3451. # Check for GNU ac_path_EGREP and select it if it is found.
  3452. # Check for GNU $ac_path_EGREP
  3453. case `"$ac_path_EGREP" --version 2>&1` in
  3454. *GNU*)
  3455. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3456. *)
  3457. ac_count=0
  3458. $as_echo_n 0123456789 >"conftest.in"
  3459. while :
  3460. do
  3461. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3462. mv "conftest.tmp" "conftest.in"
  3463. cp "conftest.in" "conftest.nl"
  3464. $as_echo 'EGREP' >> "conftest.nl"
  3465. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3466. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3467. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3468. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3469. # Best one so far, save it but keep looking for a better one
  3470. ac_cv_path_EGREP="$ac_path_EGREP"
  3471. ac_path_EGREP_max=$ac_count
  3472. fi
  3473. # 10*(2^10) chars as input seems more than enough
  3474. test $ac_count -gt 10 && break
  3475. done
  3476. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3477. esac
  3478. $ac_path_EGREP_found && break 3
  3479. done
  3480. done
  3481. done
  3482. IFS=$as_save_IFS
  3483. if test -z "$ac_cv_path_EGREP"; then
  3484. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3485. fi
  3486. else
  3487. ac_cv_path_EGREP=$EGREP
  3488. fi
  3489. fi
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3492. $as_echo "$ac_cv_path_EGREP" >&6; }
  3493. EGREP="$ac_cv_path_EGREP"
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3495. $as_echo_n "checking for fgrep... " >&6; }
  3496. if ${ac_cv_path_FGREP+:} false; then :
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3500. then ac_cv_path_FGREP="$GREP -F"
  3501. else
  3502. if test -z "$FGREP"; then
  3503. ac_path_FGREP_found=false
  3504. # Loop through the user's path and test for each of PROGNAME-LIST
  3505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3506. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3507. do
  3508. IFS=$as_save_IFS
  3509. test -z "$as_dir" && as_dir=.
  3510. for ac_prog in fgrep; do
  3511. for ac_exec_ext in '' $ac_executable_extensions; do
  3512. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3513. as_fn_executable_p "$ac_path_FGREP" || continue
  3514. # Check for GNU ac_path_FGREP and select it if it is found.
  3515. # Check for GNU $ac_path_FGREP
  3516. case `"$ac_path_FGREP" --version 2>&1` in
  3517. *GNU*)
  3518. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3519. *)
  3520. ac_count=0
  3521. $as_echo_n 0123456789 >"conftest.in"
  3522. while :
  3523. do
  3524. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3525. mv "conftest.tmp" "conftest.in"
  3526. cp "conftest.in" "conftest.nl"
  3527. $as_echo 'FGREP' >> "conftest.nl"
  3528. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3529. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3530. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3531. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3532. # Best one so far, save it but keep looking for a better one
  3533. ac_cv_path_FGREP="$ac_path_FGREP"
  3534. ac_path_FGREP_max=$ac_count
  3535. fi
  3536. # 10*(2^10) chars as input seems more than enough
  3537. test $ac_count -gt 10 && break
  3538. done
  3539. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3540. esac
  3541. $ac_path_FGREP_found && break 3
  3542. done
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. if test -z "$ac_cv_path_FGREP"; then
  3547. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3548. fi
  3549. else
  3550. ac_cv_path_FGREP=$FGREP
  3551. fi
  3552. fi
  3553. fi
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3555. $as_echo "$ac_cv_path_FGREP" >&6; }
  3556. FGREP="$ac_cv_path_FGREP"
  3557. test -z "$GREP" && GREP=grep
  3558. # Check whether --with-gnu-ld was given.
  3559. if test "${with_gnu_ld+set}" = set; then :
  3560. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3561. else
  3562. with_gnu_ld=no
  3563. fi
  3564. ac_prog=ld
  3565. if test "$GCC" = yes; then
  3566. # Check if gcc -print-prog-name=ld gives a path.
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3568. $as_echo_n "checking for ld used by $CC... " >&6; }
  3569. case $host in
  3570. *-*-mingw*)
  3571. # gcc leaves a trailing carriage return which upsets mingw
  3572. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3573. *)
  3574. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3575. esac
  3576. case $ac_prog in
  3577. # Accept absolute paths.
  3578. [\\/]* | ?:[\\/]*)
  3579. re_direlt='/[^/][^/]*/\.\./'
  3580. # Canonicalize the pathname of ld
  3581. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3582. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3583. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3584. done
  3585. test -z "$LD" && LD="$ac_prog"
  3586. ;;
  3587. "")
  3588. # If it fails, then pretend we aren't using GCC.
  3589. ac_prog=ld
  3590. ;;
  3591. *)
  3592. # If it is relative, then search for the first ld in PATH.
  3593. with_gnu_ld=unknown
  3594. ;;
  3595. esac
  3596. elif test "$with_gnu_ld" = yes; then
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3598. $as_echo_n "checking for GNU ld... " >&6; }
  3599. else
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3601. $as_echo_n "checking for non-GNU ld... " >&6; }
  3602. fi
  3603. if ${lt_cv_path_LD+:} false; then :
  3604. $as_echo_n "(cached) " >&6
  3605. else
  3606. if test -z "$LD"; then
  3607. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3608. for ac_dir in $PATH; do
  3609. IFS="$lt_save_ifs"
  3610. test -z "$ac_dir" && ac_dir=.
  3611. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3612. lt_cv_path_LD="$ac_dir/$ac_prog"
  3613. # Check to see if the program is GNU ld. I'd rather use --version,
  3614. # but apparently some variants of GNU ld only accept -v.
  3615. # Break only if it was the GNU/non-GNU ld that we prefer.
  3616. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3617. *GNU* | *'with BFD'*)
  3618. test "$with_gnu_ld" != no && break
  3619. ;;
  3620. *)
  3621. test "$with_gnu_ld" != yes && break
  3622. ;;
  3623. esac
  3624. fi
  3625. done
  3626. IFS="$lt_save_ifs"
  3627. else
  3628. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3629. fi
  3630. fi
  3631. LD="$lt_cv_path_LD"
  3632. if test -n "$LD"; then
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3634. $as_echo "$LD" >&6; }
  3635. else
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3637. $as_echo "no" >&6; }
  3638. fi
  3639. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3641. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3642. if ${lt_cv_prog_gnu_ld+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3646. case `$LD -v 2>&1 </dev/null` in
  3647. *GNU* | *'with BFD'*)
  3648. lt_cv_prog_gnu_ld=yes
  3649. ;;
  3650. *)
  3651. lt_cv_prog_gnu_ld=no
  3652. ;;
  3653. esac
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3656. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3657. with_gnu_ld=$lt_cv_prog_gnu_ld
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3659. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3660. if ${lt_cv_path_NM+:} false; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. if test -n "$NM"; then
  3664. # Let the user override the test.
  3665. lt_cv_path_NM="$NM"
  3666. else
  3667. lt_nm_to_check="${ac_tool_prefix}nm"
  3668. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3669. lt_nm_to_check="$lt_nm_to_check nm"
  3670. fi
  3671. for lt_tmp_nm in $lt_nm_to_check; do
  3672. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3673. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3674. IFS="$lt_save_ifs"
  3675. test -z "$ac_dir" && ac_dir=.
  3676. tmp_nm="$ac_dir/$lt_tmp_nm"
  3677. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3678. # Check to see if the nm accepts a BSD-compat flag.
  3679. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3680. # nm: unknown option "B" ignored
  3681. # Tru64's nm complains that /dev/null is an invalid object file
  3682. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3683. */dev/null* | *'Invalid file or object type'*)
  3684. lt_cv_path_NM="$tmp_nm -B"
  3685. break
  3686. ;;
  3687. *)
  3688. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3689. */dev/null*)
  3690. lt_cv_path_NM="$tmp_nm -p"
  3691. break
  3692. ;;
  3693. *)
  3694. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3695. continue # so that we can try to find one that supports BSD flags
  3696. ;;
  3697. esac
  3698. ;;
  3699. esac
  3700. fi
  3701. done
  3702. IFS="$lt_save_ifs"
  3703. done
  3704. : ${lt_cv_path_NM=no}
  3705. fi
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3708. $as_echo "$lt_cv_path_NM" >&6; }
  3709. if test "$lt_cv_path_NM" != "no"; then
  3710. NM="$lt_cv_path_NM"
  3711. else
  3712. # Didn't find any BSD compatible name lister, look for dumpbin.
  3713. if test -n "$DUMPBIN"; then :
  3714. # Let the user override the test.
  3715. else
  3716. if test -n "$ac_tool_prefix"; then
  3717. for ac_prog in dumpbin "link -dump"
  3718. do
  3719. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3720. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3722. $as_echo_n "checking for $ac_word... " >&6; }
  3723. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. if test -n "$DUMPBIN"; then
  3727. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3728. else
  3729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3730. for as_dir in $PATH
  3731. do
  3732. IFS=$as_save_IFS
  3733. test -z "$as_dir" && as_dir=.
  3734. for ac_exec_ext in '' $ac_executable_extensions; do
  3735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3736. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3738. break 2
  3739. fi
  3740. done
  3741. done
  3742. IFS=$as_save_IFS
  3743. fi
  3744. fi
  3745. DUMPBIN=$ac_cv_prog_DUMPBIN
  3746. if test -n "$DUMPBIN"; then
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3748. $as_echo "$DUMPBIN" >&6; }
  3749. else
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3751. $as_echo "no" >&6; }
  3752. fi
  3753. test -n "$DUMPBIN" && break
  3754. done
  3755. fi
  3756. if test -z "$DUMPBIN"; then
  3757. ac_ct_DUMPBIN=$DUMPBIN
  3758. for ac_prog in dumpbin "link -dump"
  3759. do
  3760. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3761. set dummy $ac_prog; ac_word=$2
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3763. $as_echo_n "checking for $ac_word... " >&6; }
  3764. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -n "$ac_ct_DUMPBIN"; then
  3768. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3769. else
  3770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3771. for as_dir in $PATH
  3772. do
  3773. IFS=$as_save_IFS
  3774. test -z "$as_dir" && as_dir=.
  3775. for ac_exec_ext in '' $ac_executable_extensions; do
  3776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3777. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3779. break 2
  3780. fi
  3781. done
  3782. done
  3783. IFS=$as_save_IFS
  3784. fi
  3785. fi
  3786. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3787. if test -n "$ac_ct_DUMPBIN"; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3789. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3790. else
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. $as_echo "no" >&6; }
  3793. fi
  3794. test -n "$ac_ct_DUMPBIN" && break
  3795. done
  3796. if test "x$ac_ct_DUMPBIN" = x; then
  3797. DUMPBIN=":"
  3798. else
  3799. case $cross_compiling:$ac_tool_warned in
  3800. yes:)
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3803. ac_tool_warned=yes ;;
  3804. esac
  3805. DUMPBIN=$ac_ct_DUMPBIN
  3806. fi
  3807. fi
  3808. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3809. *COFF*)
  3810. DUMPBIN="$DUMPBIN -symbols"
  3811. ;;
  3812. *)
  3813. DUMPBIN=:
  3814. ;;
  3815. esac
  3816. fi
  3817. if test "$DUMPBIN" != ":"; then
  3818. NM="$DUMPBIN"
  3819. fi
  3820. fi
  3821. test -z "$NM" && NM=nm
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3823. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3824. if ${lt_cv_nm_interface+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. lt_cv_nm_interface="BSD nm"
  3828. echo "int some_variable = 0;" > conftest.$ac_ext
  3829. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3830. (eval "$ac_compile" 2>conftest.err)
  3831. cat conftest.err >&5
  3832. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3833. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3834. cat conftest.err >&5
  3835. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3836. cat conftest.out >&5
  3837. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3838. lt_cv_nm_interface="MS dumpbin"
  3839. fi
  3840. rm -f conftest*
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3843. $as_echo "$lt_cv_nm_interface" >&6; }
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3845. $as_echo_n "checking whether ln -s works... " >&6; }
  3846. LN_S=$as_ln_s
  3847. if test "$LN_S" = "ln -s"; then
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3849. $as_echo "yes" >&6; }
  3850. else
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3852. $as_echo "no, using $LN_S" >&6; }
  3853. fi
  3854. # find the maximum length of command line arguments
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3856. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3857. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3858. $as_echo_n "(cached) " >&6
  3859. else
  3860. i=0
  3861. teststring="ABCD"
  3862. case $build_os in
  3863. msdosdjgpp*)
  3864. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3865. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3866. # during glob expansion). Even if it were fixed, the result of this
  3867. # check would be larger than it should be.
  3868. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3869. ;;
  3870. gnu*)
  3871. # Under GNU Hurd, this test is not required because there is
  3872. # no limit to the length of command line arguments.
  3873. # Libtool will interpret -1 as no limit whatsoever
  3874. lt_cv_sys_max_cmd_len=-1;
  3875. ;;
  3876. cygwin* | mingw* | cegcc*)
  3877. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3878. # about 5 minutes as the teststring grows exponentially.
  3879. # Worse, since 9x/ME are not pre-emptively multitasking,
  3880. # you end up with a "frozen" computer, even though with patience
  3881. # the test eventually succeeds (with a max line length of 256k).
  3882. # Instead, let's just punt: use the minimum linelength reported by
  3883. # all of the supported platforms: 8192 (on NT/2K/XP).
  3884. lt_cv_sys_max_cmd_len=8192;
  3885. ;;
  3886. mint*)
  3887. # On MiNT this can take a long time and run out of memory.
  3888. lt_cv_sys_max_cmd_len=8192;
  3889. ;;
  3890. amigaos*)
  3891. # On AmigaOS with pdksh, this test takes hours, literally.
  3892. # So we just punt and use a minimum line length of 8192.
  3893. lt_cv_sys_max_cmd_len=8192;
  3894. ;;
  3895. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3896. # This has been around since 386BSD, at least. Likely further.
  3897. if test -x /sbin/sysctl; then
  3898. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3899. elif test -x /usr/sbin/sysctl; then
  3900. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3901. else
  3902. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3903. fi
  3904. # And add a safety zone
  3905. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3906. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3907. ;;
  3908. interix*)
  3909. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3910. lt_cv_sys_max_cmd_len=196608
  3911. ;;
  3912. os2*)
  3913. # The test takes a long time on OS/2.
  3914. lt_cv_sys_max_cmd_len=8192
  3915. ;;
  3916. osf*)
  3917. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3918. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3919. # nice to cause kernel panics so lets avoid the loop below.
  3920. # First set a reasonable default.
  3921. lt_cv_sys_max_cmd_len=16384
  3922. #
  3923. if test -x /sbin/sysconfig; then
  3924. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3925. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3926. esac
  3927. fi
  3928. ;;
  3929. sco3.2v5*)
  3930. lt_cv_sys_max_cmd_len=102400
  3931. ;;
  3932. sysv5* | sco5v6* | sysv4.2uw2*)
  3933. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3934. if test -n "$kargmax"; then
  3935. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3936. else
  3937. lt_cv_sys_max_cmd_len=32768
  3938. fi
  3939. ;;
  3940. *)
  3941. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3942. if test -n "$lt_cv_sys_max_cmd_len"; then
  3943. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3944. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3945. else
  3946. # Make teststring a little bigger before we do anything with it.
  3947. # a 1K string should be a reasonable start.
  3948. for i in 1 2 3 4 5 6 7 8 ; do
  3949. teststring=$teststring$teststring
  3950. done
  3951. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3952. # If test is not a shell built-in, we'll probably end up computing a
  3953. # maximum length that is only half of the actual maximum length, but
  3954. # we can't tell.
  3955. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3956. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3957. test $i != 17 # 1/2 MB should be enough
  3958. do
  3959. i=`expr $i + 1`
  3960. teststring=$teststring$teststring
  3961. done
  3962. # Only check the string length outside the loop.
  3963. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3964. teststring=
  3965. # Add a significant safety factor because C++ compilers can tack on
  3966. # massive amounts of additional arguments before passing them to the
  3967. # linker. It appears as though 1/2 is a usable value.
  3968. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3969. fi
  3970. ;;
  3971. esac
  3972. fi
  3973. if test -n $lt_cv_sys_max_cmd_len ; then
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3975. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3976. else
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3978. $as_echo "none" >&6; }
  3979. fi
  3980. max_cmd_len=$lt_cv_sys_max_cmd_len
  3981. : ${CP="cp -f"}
  3982. : ${MV="mv -f"}
  3983. : ${RM="rm -f"}
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3985. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3986. # Try some XSI features
  3987. xsi_shell=no
  3988. ( _lt_dummy="a/b/c"
  3989. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3990. = c,a/b,b/c, \
  3991. && eval 'test $(( 1 + 1 )) -eq 2 \
  3992. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3993. && xsi_shell=yes
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3995. $as_echo "$xsi_shell" >&6; }
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3997. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3998. lt_shell_append=no
  3999. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4000. >/dev/null 2>&1 \
  4001. && lt_shell_append=yes
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4003. $as_echo "$lt_shell_append" >&6; }
  4004. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4005. lt_unset=unset
  4006. else
  4007. lt_unset=false
  4008. fi
  4009. # test EBCDIC or ASCII
  4010. case `echo X|tr X '\101'` in
  4011. A) # ASCII based system
  4012. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4013. lt_SP2NL='tr \040 \012'
  4014. lt_NL2SP='tr \015\012 \040\040'
  4015. ;;
  4016. *) # EBCDIC based system
  4017. lt_SP2NL='tr \100 \n'
  4018. lt_NL2SP='tr \r\n \100\100'
  4019. ;;
  4020. esac
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4022. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4023. if ${lt_cv_to_host_file_cmd+:} false; then :
  4024. $as_echo_n "(cached) " >&6
  4025. else
  4026. case $host in
  4027. *-*-mingw* )
  4028. case $build in
  4029. *-*-mingw* ) # actually msys
  4030. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4031. ;;
  4032. *-*-cygwin* )
  4033. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4034. ;;
  4035. * ) # otherwise, assume *nix
  4036. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4037. ;;
  4038. esac
  4039. ;;
  4040. *-*-cygwin* )
  4041. case $build in
  4042. *-*-mingw* ) # actually msys
  4043. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4044. ;;
  4045. *-*-cygwin* )
  4046. lt_cv_to_host_file_cmd=func_convert_file_noop
  4047. ;;
  4048. * ) # otherwise, assume *nix
  4049. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4050. ;;
  4051. esac
  4052. ;;
  4053. * ) # unhandled hosts (and "normal" native builds)
  4054. lt_cv_to_host_file_cmd=func_convert_file_noop
  4055. ;;
  4056. esac
  4057. fi
  4058. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4060. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4062. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4063. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4064. $as_echo_n "(cached) " >&6
  4065. else
  4066. #assume ordinary cross tools, or native build.
  4067. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4068. case $host in
  4069. *-*-mingw* )
  4070. case $build in
  4071. *-*-mingw* ) # actually msys
  4072. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4073. ;;
  4074. esac
  4075. ;;
  4076. esac
  4077. fi
  4078. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4080. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4082. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4083. if ${lt_cv_ld_reload_flag+:} false; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. lt_cv_ld_reload_flag='-r'
  4087. fi
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4089. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4090. reload_flag=$lt_cv_ld_reload_flag
  4091. case $reload_flag in
  4092. "" | " "*) ;;
  4093. *) reload_flag=" $reload_flag" ;;
  4094. esac
  4095. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4096. case $host_os in
  4097. cygwin* | mingw* | pw32* | cegcc*)
  4098. if test "$GCC" != yes; then
  4099. reload_cmds=false
  4100. fi
  4101. ;;
  4102. darwin*)
  4103. if test "$GCC" = yes; then
  4104. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4105. else
  4106. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4107. fi
  4108. ;;
  4109. esac
  4110. if test -n "$ac_tool_prefix"; then
  4111. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4112. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4114. $as_echo_n "checking for $ac_word... " >&6; }
  4115. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if test -n "$OBJDUMP"; then
  4119. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4120. else
  4121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4122. for as_dir in $PATH
  4123. do
  4124. IFS=$as_save_IFS
  4125. test -z "$as_dir" && as_dir=.
  4126. for ac_exec_ext in '' $ac_executable_extensions; do
  4127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4128. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4130. break 2
  4131. fi
  4132. done
  4133. done
  4134. IFS=$as_save_IFS
  4135. fi
  4136. fi
  4137. OBJDUMP=$ac_cv_prog_OBJDUMP
  4138. if test -n "$OBJDUMP"; then
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4140. $as_echo "$OBJDUMP" >&6; }
  4141. else
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4143. $as_echo "no" >&6; }
  4144. fi
  4145. fi
  4146. if test -z "$ac_cv_prog_OBJDUMP"; then
  4147. ac_ct_OBJDUMP=$OBJDUMP
  4148. # Extract the first word of "objdump", so it can be a program name with args.
  4149. set dummy objdump; ac_word=$2
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4151. $as_echo_n "checking for $ac_word... " >&6; }
  4152. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. if test -n "$ac_ct_OBJDUMP"; then
  4156. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4157. else
  4158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159. for as_dir in $PATH
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4165. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4167. break 2
  4168. fi
  4169. done
  4170. done
  4171. IFS=$as_save_IFS
  4172. fi
  4173. fi
  4174. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4175. if test -n "$ac_ct_OBJDUMP"; then
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4177. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4178. else
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4180. $as_echo "no" >&6; }
  4181. fi
  4182. if test "x$ac_ct_OBJDUMP" = x; then
  4183. OBJDUMP="false"
  4184. else
  4185. case $cross_compiling:$ac_tool_warned in
  4186. yes:)
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4188. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4189. ac_tool_warned=yes ;;
  4190. esac
  4191. OBJDUMP=$ac_ct_OBJDUMP
  4192. fi
  4193. else
  4194. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4195. fi
  4196. test -z "$OBJDUMP" && OBJDUMP=objdump
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4198. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4199. if ${lt_cv_deplibs_check_method+:} false; then :
  4200. $as_echo_n "(cached) " >&6
  4201. else
  4202. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4203. lt_cv_file_magic_test_file=
  4204. lt_cv_deplibs_check_method='unknown'
  4205. # Need to set the preceding variable on all platforms that support
  4206. # interlibrary dependencies.
  4207. # 'none' -- dependencies not supported.
  4208. # `unknown' -- same as none, but documents that we really don't know.
  4209. # 'pass_all' -- all dependencies passed with no checks.
  4210. # 'test_compile' -- check by making test program.
  4211. # 'file_magic [[regex]]' -- check by looking for files in library path
  4212. # which responds to the $file_magic_cmd with a given extended regex.
  4213. # If you have `file' or equivalent on your system and you're not sure
  4214. # whether `pass_all' will *always* work, you probably want this one.
  4215. case $host_os in
  4216. aix[4-9]*)
  4217. lt_cv_deplibs_check_method=pass_all
  4218. ;;
  4219. beos*)
  4220. lt_cv_deplibs_check_method=pass_all
  4221. ;;
  4222. bsdi[45]*)
  4223. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4224. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4225. lt_cv_file_magic_test_file=/shlib/libc.so
  4226. ;;
  4227. cygwin*)
  4228. # func_win32_libid is a shell function defined in ltmain.sh
  4229. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4230. lt_cv_file_magic_cmd='func_win32_libid'
  4231. lt_cv_deplibs_check_method=pass_all
  4232. ;;
  4233. mingw* | pw32*)
  4234. # Base MSYS/MinGW do not provide the 'file' command needed by
  4235. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4236. # unless we find 'file', for example because we are cross-compiling.
  4237. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4238. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4239. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4240. lt_cv_file_magic_cmd='func_win32_libid'
  4241. else
  4242. # Keep this pattern in sync with the one in func_win32_libid.
  4243. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4244. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4245. fi
  4246. lt_cv_deplibs_check_method=pass_all
  4247. ;;
  4248. cegcc*)
  4249. # use the weaker test based on 'objdump'. See mingw*.
  4250. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4251. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4252. ;;
  4253. darwin* | rhapsody*)
  4254. lt_cv_deplibs_check_method=pass_all
  4255. ;;
  4256. freebsd* | dragonfly*)
  4257. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4258. case $host_cpu in
  4259. i*86 )
  4260. # Not sure whether the presence of OpenBSD here was a mistake.
  4261. # Let's accept both of them until this is cleared up.
  4262. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4263. lt_cv_file_magic_cmd=/usr/bin/file
  4264. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4265. ;;
  4266. esac
  4267. else
  4268. lt_cv_deplibs_check_method=pass_all
  4269. fi
  4270. ;;
  4271. gnu*)
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. haiku*)
  4275. lt_cv_deplibs_check_method=pass_all
  4276. ;;
  4277. hpux10.20* | hpux11*)
  4278. lt_cv_file_magic_cmd=/usr/bin/file
  4279. case $host_cpu in
  4280. ia64*)
  4281. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4282. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4283. ;;
  4284. hppa*64*)
  4285. 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]'
  4286. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4287. ;;
  4288. *)
  4289. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4290. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4291. ;;
  4292. esac
  4293. ;;
  4294. interix[3-9]*)
  4295. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4296. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4297. ;;
  4298. irix5* | irix6* | nonstopux*)
  4299. case $LD in
  4300. *-32|*"-32 ") libmagic=32-bit;;
  4301. *-n32|*"-n32 ") libmagic=N32;;
  4302. *-64|*"-64 ") libmagic=64-bit;;
  4303. *) libmagic=never-match;;
  4304. esac
  4305. lt_cv_deplibs_check_method=pass_all
  4306. ;;
  4307. # This must be glibc/ELF.
  4308. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4309. lt_cv_deplibs_check_method=pass_all
  4310. ;;
  4311. netbsd*)
  4312. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4313. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4314. else
  4315. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4316. fi
  4317. ;;
  4318. newos6*)
  4319. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4320. lt_cv_file_magic_cmd=/usr/bin/file
  4321. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4322. ;;
  4323. *nto* | *qnx*)
  4324. lt_cv_deplibs_check_method=pass_all
  4325. ;;
  4326. openbsd*)
  4327. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4328. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4329. else
  4330. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4331. fi
  4332. ;;
  4333. osf3* | osf4* | osf5*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. rdos*)
  4337. lt_cv_deplibs_check_method=pass_all
  4338. ;;
  4339. solaris*)
  4340. lt_cv_deplibs_check_method=pass_all
  4341. ;;
  4342. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4343. lt_cv_deplibs_check_method=pass_all
  4344. ;;
  4345. sysv4 | sysv4.3*)
  4346. case $host_vendor in
  4347. motorola)
  4348. 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]'
  4349. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4350. ;;
  4351. ncr)
  4352. lt_cv_deplibs_check_method=pass_all
  4353. ;;
  4354. sequent)
  4355. lt_cv_file_magic_cmd='/bin/file'
  4356. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4357. ;;
  4358. sni)
  4359. lt_cv_file_magic_cmd='/bin/file'
  4360. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4361. lt_cv_file_magic_test_file=/lib/libc.so
  4362. ;;
  4363. siemens)
  4364. lt_cv_deplibs_check_method=pass_all
  4365. ;;
  4366. pc)
  4367. lt_cv_deplibs_check_method=pass_all
  4368. ;;
  4369. esac
  4370. ;;
  4371. tpf*)
  4372. lt_cv_deplibs_check_method=pass_all
  4373. ;;
  4374. esac
  4375. fi
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4377. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4378. file_magic_glob=
  4379. want_nocaseglob=no
  4380. if test "$build" = "$host"; then
  4381. case $host_os in
  4382. mingw* | pw32*)
  4383. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4384. want_nocaseglob=yes
  4385. else
  4386. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4387. fi
  4388. ;;
  4389. esac
  4390. fi
  4391. file_magic_cmd=$lt_cv_file_magic_cmd
  4392. deplibs_check_method=$lt_cv_deplibs_check_method
  4393. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4394. if test -n "$ac_tool_prefix"; then
  4395. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4396. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4398. $as_echo_n "checking for $ac_word... " >&6; }
  4399. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4400. $as_echo_n "(cached) " >&6
  4401. else
  4402. if test -n "$DLLTOOL"; then
  4403. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4404. else
  4405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4406. for as_dir in $PATH
  4407. do
  4408. IFS=$as_save_IFS
  4409. test -z "$as_dir" && as_dir=.
  4410. for ac_exec_ext in '' $ac_executable_extensions; do
  4411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4412. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4414. break 2
  4415. fi
  4416. done
  4417. done
  4418. IFS=$as_save_IFS
  4419. fi
  4420. fi
  4421. DLLTOOL=$ac_cv_prog_DLLTOOL
  4422. if test -n "$DLLTOOL"; then
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4424. $as_echo "$DLLTOOL" >&6; }
  4425. else
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4427. $as_echo "no" >&6; }
  4428. fi
  4429. fi
  4430. if test -z "$ac_cv_prog_DLLTOOL"; then
  4431. ac_ct_DLLTOOL=$DLLTOOL
  4432. # Extract the first word of "dlltool", so it can be a program name with args.
  4433. set dummy dlltool; ac_word=$2
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4435. $as_echo_n "checking for $ac_word... " >&6; }
  4436. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4437. $as_echo_n "(cached) " >&6
  4438. else
  4439. if test -n "$ac_ct_DLLTOOL"; then
  4440. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4441. else
  4442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4443. for as_dir in $PATH
  4444. do
  4445. IFS=$as_save_IFS
  4446. test -z "$as_dir" && as_dir=.
  4447. for ac_exec_ext in '' $ac_executable_extensions; do
  4448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4449. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4451. break 2
  4452. fi
  4453. done
  4454. done
  4455. IFS=$as_save_IFS
  4456. fi
  4457. fi
  4458. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4459. if test -n "$ac_ct_DLLTOOL"; then
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4461. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4462. else
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4464. $as_echo "no" >&6; }
  4465. fi
  4466. if test "x$ac_ct_DLLTOOL" = x; then
  4467. DLLTOOL="false"
  4468. else
  4469. case $cross_compiling:$ac_tool_warned in
  4470. yes:)
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4473. ac_tool_warned=yes ;;
  4474. esac
  4475. DLLTOOL=$ac_ct_DLLTOOL
  4476. fi
  4477. else
  4478. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4479. fi
  4480. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4482. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4483. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4487. case $host_os in
  4488. cygwin* | mingw* | pw32* | cegcc*)
  4489. # two different shell functions defined in ltmain.sh
  4490. # decide which to use based on capabilities of $DLLTOOL
  4491. case `$DLLTOOL --help 2>&1` in
  4492. *--identify-strict*)
  4493. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4494. ;;
  4495. *)
  4496. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4497. ;;
  4498. esac
  4499. ;;
  4500. *)
  4501. # fallback: assume linklib IS sharedlib
  4502. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4503. ;;
  4504. esac
  4505. fi
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4507. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4508. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4509. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4510. if test -n "$ac_tool_prefix"; then
  4511. for ac_prog in ar
  4512. do
  4513. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4514. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4516. $as_echo_n "checking for $ac_word... " >&6; }
  4517. if ${ac_cv_prog_AR+:} false; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. if test -n "$AR"; then
  4521. ac_cv_prog_AR="$AR" # Let the user override the test.
  4522. else
  4523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4524. for as_dir in $PATH
  4525. do
  4526. IFS=$as_save_IFS
  4527. test -z "$as_dir" && as_dir=.
  4528. for ac_exec_ext in '' $ac_executable_extensions; do
  4529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4530. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4532. break 2
  4533. fi
  4534. done
  4535. done
  4536. IFS=$as_save_IFS
  4537. fi
  4538. fi
  4539. AR=$ac_cv_prog_AR
  4540. if test -n "$AR"; then
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4542. $as_echo "$AR" >&6; }
  4543. else
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4545. $as_echo "no" >&6; }
  4546. fi
  4547. test -n "$AR" && break
  4548. done
  4549. fi
  4550. if test -z "$AR"; then
  4551. ac_ct_AR=$AR
  4552. for ac_prog in ar
  4553. do
  4554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4555. set dummy $ac_prog; ac_word=$2
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4557. $as_echo_n "checking for $ac_word... " >&6; }
  4558. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$ac_ct_AR"; then
  4562. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4563. else
  4564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4565. for as_dir in $PATH
  4566. do
  4567. IFS=$as_save_IFS
  4568. test -z "$as_dir" && as_dir=.
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4571. ac_cv_prog_ac_ct_AR="$ac_prog"
  4572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4573. break 2
  4574. fi
  4575. done
  4576. done
  4577. IFS=$as_save_IFS
  4578. fi
  4579. fi
  4580. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4581. if test -n "$ac_ct_AR"; then
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4583. $as_echo "$ac_ct_AR" >&6; }
  4584. else
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4586. $as_echo "no" >&6; }
  4587. fi
  4588. test -n "$ac_ct_AR" && break
  4589. done
  4590. if test "x$ac_ct_AR" = x; then
  4591. AR="false"
  4592. else
  4593. case $cross_compiling:$ac_tool_warned in
  4594. yes:)
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4597. ac_tool_warned=yes ;;
  4598. esac
  4599. AR=$ac_ct_AR
  4600. fi
  4601. fi
  4602. : ${AR=ar}
  4603. : ${AR_FLAGS=cru}
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4605. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4606. if ${lt_cv_ar_at_file+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. lt_cv_ar_at_file=no
  4610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4611. /* end confdefs.h. */
  4612. int
  4613. main ()
  4614. {
  4615. ;
  4616. return 0;
  4617. }
  4618. _ACEOF
  4619. if ac_fn_c_try_compile "$LINENO"; then :
  4620. echo conftest.$ac_objext > conftest.lst
  4621. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4622. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4623. (eval $lt_ar_try) 2>&5
  4624. ac_status=$?
  4625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4626. test $ac_status = 0; }
  4627. if test "$ac_status" -eq 0; then
  4628. # Ensure the archiver fails upon bogus file names.
  4629. rm -f conftest.$ac_objext libconftest.a
  4630. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4631. (eval $lt_ar_try) 2>&5
  4632. ac_status=$?
  4633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4634. test $ac_status = 0; }
  4635. if test "$ac_status" -ne 0; then
  4636. lt_cv_ar_at_file=@
  4637. fi
  4638. fi
  4639. rm -f conftest.* libconftest.a
  4640. fi
  4641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4642. fi
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4644. $as_echo "$lt_cv_ar_at_file" >&6; }
  4645. if test "x$lt_cv_ar_at_file" = xno; then
  4646. archiver_list_spec=
  4647. else
  4648. archiver_list_spec=$lt_cv_ar_at_file
  4649. fi
  4650. if test -n "$ac_tool_prefix"; then
  4651. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4652. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4654. $as_echo_n "checking for $ac_word... " >&6; }
  4655. if ${ac_cv_prog_STRIP+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. if test -n "$STRIP"; then
  4659. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4660. else
  4661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH
  4663. do
  4664. IFS=$as_save_IFS
  4665. test -z "$as_dir" && as_dir=.
  4666. for ac_exec_ext in '' $ac_executable_extensions; do
  4667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4668. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4670. break 2
  4671. fi
  4672. done
  4673. done
  4674. IFS=$as_save_IFS
  4675. fi
  4676. fi
  4677. STRIP=$ac_cv_prog_STRIP
  4678. if test -n "$STRIP"; then
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4680. $as_echo "$STRIP" >&6; }
  4681. else
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4683. $as_echo "no" >&6; }
  4684. fi
  4685. fi
  4686. if test -z "$ac_cv_prog_STRIP"; then
  4687. ac_ct_STRIP=$STRIP
  4688. # Extract the first word of "strip", so it can be a program name with args.
  4689. set dummy strip; ac_word=$2
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4691. $as_echo_n "checking for $ac_word... " >&6; }
  4692. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test -n "$ac_ct_STRIP"; then
  4696. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_ac_ct_STRIP="strip"
  4706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4715. if test -n "$ac_ct_STRIP"; then
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4717. $as_echo "$ac_ct_STRIP" >&6; }
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. fi
  4722. if test "x$ac_ct_STRIP" = x; then
  4723. STRIP=":"
  4724. else
  4725. case $cross_compiling:$ac_tool_warned in
  4726. yes:)
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4729. ac_tool_warned=yes ;;
  4730. esac
  4731. STRIP=$ac_ct_STRIP
  4732. fi
  4733. else
  4734. STRIP="$ac_cv_prog_STRIP"
  4735. fi
  4736. test -z "$STRIP" && STRIP=:
  4737. if test -n "$ac_tool_prefix"; then
  4738. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4739. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4741. $as_echo_n "checking for $ac_word... " >&6; }
  4742. if ${ac_cv_prog_RANLIB+:} false; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. if test -n "$RANLIB"; then
  4746. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4747. else
  4748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4749. for as_dir in $PATH
  4750. do
  4751. IFS=$as_save_IFS
  4752. test -z "$as_dir" && as_dir=.
  4753. for ac_exec_ext in '' $ac_executable_extensions; do
  4754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4755. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4757. break 2
  4758. fi
  4759. done
  4760. done
  4761. IFS=$as_save_IFS
  4762. fi
  4763. fi
  4764. RANLIB=$ac_cv_prog_RANLIB
  4765. if test -n "$RANLIB"; then
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4767. $as_echo "$RANLIB" >&6; }
  4768. else
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4770. $as_echo "no" >&6; }
  4771. fi
  4772. fi
  4773. if test -z "$ac_cv_prog_RANLIB"; then
  4774. ac_ct_RANLIB=$RANLIB
  4775. # Extract the first word of "ranlib", so it can be a program name with args.
  4776. set dummy ranlib; ac_word=$2
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4778. $as_echo_n "checking for $ac_word... " >&6; }
  4779. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. if test -n "$ac_ct_RANLIB"; then
  4783. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4784. else
  4785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4786. for as_dir in $PATH
  4787. do
  4788. IFS=$as_save_IFS
  4789. test -z "$as_dir" && as_dir=.
  4790. for ac_exec_ext in '' $ac_executable_extensions; do
  4791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4792. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4794. break 2
  4795. fi
  4796. done
  4797. done
  4798. IFS=$as_save_IFS
  4799. fi
  4800. fi
  4801. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4802. if test -n "$ac_ct_RANLIB"; then
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4804. $as_echo "$ac_ct_RANLIB" >&6; }
  4805. else
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4807. $as_echo "no" >&6; }
  4808. fi
  4809. if test "x$ac_ct_RANLIB" = x; then
  4810. RANLIB=":"
  4811. else
  4812. case $cross_compiling:$ac_tool_warned in
  4813. yes:)
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4815. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4816. ac_tool_warned=yes ;;
  4817. esac
  4818. RANLIB=$ac_ct_RANLIB
  4819. fi
  4820. else
  4821. RANLIB="$ac_cv_prog_RANLIB"
  4822. fi
  4823. test -z "$RANLIB" && RANLIB=:
  4824. # Determine commands to create old-style static archives.
  4825. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4826. old_postinstall_cmds='chmod 644 $oldlib'
  4827. old_postuninstall_cmds=
  4828. if test -n "$RANLIB"; then
  4829. case $host_os in
  4830. openbsd*)
  4831. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4832. ;;
  4833. *)
  4834. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4835. ;;
  4836. esac
  4837. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4838. fi
  4839. case $host_os in
  4840. darwin*)
  4841. lock_old_archive_extraction=yes ;;
  4842. *)
  4843. lock_old_archive_extraction=no ;;
  4844. esac
  4845. for ac_prog in gawk mawk nawk awk
  4846. do
  4847. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4848. set dummy $ac_prog; ac_word=$2
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4850. $as_echo_n "checking for $ac_word... " >&6; }
  4851. if ${ac_cv_prog_AWK+:} false; then :
  4852. $as_echo_n "(cached) " >&6
  4853. else
  4854. if test -n "$AWK"; then
  4855. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4856. else
  4857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4858. for as_dir in $PATH
  4859. do
  4860. IFS=$as_save_IFS
  4861. test -z "$as_dir" && as_dir=.
  4862. for ac_exec_ext in '' $ac_executable_extensions; do
  4863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4864. ac_cv_prog_AWK="$ac_prog"
  4865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4866. break 2
  4867. fi
  4868. done
  4869. done
  4870. IFS=$as_save_IFS
  4871. fi
  4872. fi
  4873. AWK=$ac_cv_prog_AWK
  4874. if test -n "$AWK"; then
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4876. $as_echo "$AWK" >&6; }
  4877. else
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4879. $as_echo "no" >&6; }
  4880. fi
  4881. test -n "$AWK" && break
  4882. done
  4883. # If no C compiler was specified, use CC.
  4884. LTCC=${LTCC-"$CC"}
  4885. # If no C compiler flags were specified, use CFLAGS.
  4886. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4887. # Allow CC to be a program name with arguments.
  4888. compiler=$CC
  4889. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4891. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4892. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. # These are sane defaults that work on at least a few old systems.
  4896. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4897. # Character class describing NM global symbol codes.
  4898. symcode='[BCDEGRST]'
  4899. # Regexp to match symbols that can be accessed directly from C.
  4900. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4901. # Define system-specific variables.
  4902. case $host_os in
  4903. aix*)
  4904. symcode='[BCDT]'
  4905. ;;
  4906. cygwin* | mingw* | pw32* | cegcc*)
  4907. symcode='[ABCDGISTW]'
  4908. ;;
  4909. hpux*)
  4910. if test "$host_cpu" = ia64; then
  4911. symcode='[ABCDEGRST]'
  4912. fi
  4913. ;;
  4914. irix* | nonstopux*)
  4915. symcode='[BCDEGRST]'
  4916. ;;
  4917. osf*)
  4918. symcode='[BCDEGQRST]'
  4919. ;;
  4920. solaris*)
  4921. symcode='[BDRT]'
  4922. ;;
  4923. sco3.2v5*)
  4924. symcode='[DT]'
  4925. ;;
  4926. sysv4.2uw2*)
  4927. symcode='[DT]'
  4928. ;;
  4929. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4930. symcode='[ABDT]'
  4931. ;;
  4932. sysv4)
  4933. symcode='[DFNSTU]'
  4934. ;;
  4935. esac
  4936. # If we're using GNU nm, then use its standard symbol codes.
  4937. case `$NM -V 2>&1` in
  4938. *GNU* | *'with BFD'*)
  4939. symcode='[ABCDGIRSTW]' ;;
  4940. esac
  4941. # Transform an extracted symbol line into a proper C declaration.
  4942. # Some systems (esp. on ia64) link data and code symbols differently,
  4943. # so use this general approach.
  4944. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4945. # Transform an extracted symbol line into symbol name and symbol address
  4946. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4947. 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'"
  4948. # Handle CRLF in mingw tool chain
  4949. opt_cr=
  4950. case $build_os in
  4951. mingw*)
  4952. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4953. ;;
  4954. esac
  4955. # Try without a prefix underscore, then with it.
  4956. for ac_symprfx in "" "_"; do
  4957. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4958. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4959. # Write the raw and C identifiers.
  4960. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4961. # Fake it for dumpbin and say T for any non-static function
  4962. # and D for any global variable.
  4963. # Also find C++ and __fastcall symbols from MSVC++,
  4964. # which start with @ or ?.
  4965. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4966. " {last_section=section; section=\$ 3};"\
  4967. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4968. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4969. " \$ 0!~/External *\|/{next};"\
  4970. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4971. " {if(hide[section]) next};"\
  4972. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4973. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4974. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4975. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4976. " ' prfx=^$ac_symprfx"
  4977. else
  4978. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4979. fi
  4980. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4981. # Check to see that the pipe works correctly.
  4982. pipe_works=no
  4983. rm -f conftest*
  4984. cat > conftest.$ac_ext <<_LT_EOF
  4985. #ifdef __cplusplus
  4986. extern "C" {
  4987. #endif
  4988. char nm_test_var;
  4989. void nm_test_func(void);
  4990. void nm_test_func(void){}
  4991. #ifdef __cplusplus
  4992. }
  4993. #endif
  4994. int main(){nm_test_var='a';nm_test_func();return(0);}
  4995. _LT_EOF
  4996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4997. (eval $ac_compile) 2>&5
  4998. ac_status=$?
  4999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5000. test $ac_status = 0; }; then
  5001. # Now try to grab the symbols.
  5002. nlist=conftest.nm
  5003. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5004. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5005. ac_status=$?
  5006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5007. test $ac_status = 0; } && test -s "$nlist"; then
  5008. # Try sorting and uniquifying the output.
  5009. if sort "$nlist" | uniq > "$nlist"T; then
  5010. mv -f "$nlist"T "$nlist"
  5011. else
  5012. rm -f "$nlist"T
  5013. fi
  5014. # Make sure that we snagged all the symbols we need.
  5015. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5016. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5017. cat <<_LT_EOF > conftest.$ac_ext
  5018. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5019. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5020. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5021. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5022. # define LT_DLSYM_CONST
  5023. #elif defined(__osf__)
  5024. /* This system does not cope well with relocations in const data. */
  5025. # define LT_DLSYM_CONST
  5026. #else
  5027. # define LT_DLSYM_CONST const
  5028. #endif
  5029. #ifdef __cplusplus
  5030. extern "C" {
  5031. #endif
  5032. _LT_EOF
  5033. # Now generate the symbol file.
  5034. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5035. cat <<_LT_EOF >> conftest.$ac_ext
  5036. /* The mapping between symbol names and symbols. */
  5037. LT_DLSYM_CONST struct {
  5038. const char *name;
  5039. void *address;
  5040. }
  5041. lt__PROGRAM__LTX_preloaded_symbols[] =
  5042. {
  5043. { "@PROGRAM@", (void *) 0 },
  5044. _LT_EOF
  5045. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5046. cat <<\_LT_EOF >> conftest.$ac_ext
  5047. {0, (void *) 0}
  5048. };
  5049. /* This works around a problem in FreeBSD linker */
  5050. #ifdef FREEBSD_WORKAROUND
  5051. static const void *lt_preloaded_setup() {
  5052. return lt__PROGRAM__LTX_preloaded_symbols;
  5053. }
  5054. #endif
  5055. #ifdef __cplusplus
  5056. }
  5057. #endif
  5058. _LT_EOF
  5059. # Now try linking the two files.
  5060. mv conftest.$ac_objext conftstm.$ac_objext
  5061. lt_globsym_save_LIBS=$LIBS
  5062. lt_globsym_save_CFLAGS=$CFLAGS
  5063. LIBS="conftstm.$ac_objext"
  5064. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5066. (eval $ac_link) 2>&5
  5067. ac_status=$?
  5068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5069. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5070. pipe_works=yes
  5071. fi
  5072. LIBS=$lt_globsym_save_LIBS
  5073. CFLAGS=$lt_globsym_save_CFLAGS
  5074. else
  5075. echo "cannot find nm_test_func in $nlist" >&5
  5076. fi
  5077. else
  5078. echo "cannot find nm_test_var in $nlist" >&5
  5079. fi
  5080. else
  5081. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5082. fi
  5083. else
  5084. echo "$progname: failed program was:" >&5
  5085. cat conftest.$ac_ext >&5
  5086. fi
  5087. rm -rf conftest* conftst*
  5088. # Do not use the global_symbol_pipe unless it works.
  5089. if test "$pipe_works" = yes; then
  5090. break
  5091. else
  5092. lt_cv_sys_global_symbol_pipe=
  5093. fi
  5094. done
  5095. fi
  5096. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5097. lt_cv_sys_global_symbol_to_cdecl=
  5098. fi
  5099. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5101. $as_echo "failed" >&6; }
  5102. else
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5104. $as_echo "ok" >&6; }
  5105. fi
  5106. # Response file support.
  5107. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5108. nm_file_list_spec='@'
  5109. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5110. nm_file_list_spec='@'
  5111. fi
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5113. $as_echo_n "checking for sysroot... " >&6; }
  5114. # Check whether --with-sysroot was given.
  5115. if test "${with_sysroot+set}" = set; then :
  5116. withval=$with_sysroot;
  5117. else
  5118. with_sysroot=no
  5119. fi
  5120. lt_sysroot=
  5121. case ${with_sysroot} in #(
  5122. yes)
  5123. if test "$GCC" = yes; then
  5124. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5125. fi
  5126. ;; #(
  5127. /*)
  5128. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5129. ;; #(
  5130. no|'')
  5131. ;; #(
  5132. *)
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5134. $as_echo "${with_sysroot}" >&6; }
  5135. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5136. ;;
  5137. esac
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5139. $as_echo "${lt_sysroot:-no}" >&6; }
  5140. # Check whether --enable-libtool-lock was given.
  5141. if test "${enable_libtool_lock+set}" = set; then :
  5142. enableval=$enable_libtool_lock;
  5143. fi
  5144. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5145. # Some flags need to be propagated to the compiler or linker for good
  5146. # libtool support.
  5147. case $host in
  5148. ia64-*-hpux*)
  5149. # Find out which ABI we are using.
  5150. echo 'int i;' > conftest.$ac_ext
  5151. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5152. (eval $ac_compile) 2>&5
  5153. ac_status=$?
  5154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5155. test $ac_status = 0; }; then
  5156. case `/usr/bin/file conftest.$ac_objext` in
  5157. *ELF-32*)
  5158. HPUX_IA64_MODE="32"
  5159. ;;
  5160. *ELF-64*)
  5161. HPUX_IA64_MODE="64"
  5162. ;;
  5163. esac
  5164. fi
  5165. rm -rf conftest*
  5166. ;;
  5167. *-*-irix6*)
  5168. # Find out which ABI we are using.
  5169. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5170. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5171. (eval $ac_compile) 2>&5
  5172. ac_status=$?
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5174. test $ac_status = 0; }; then
  5175. if test "$lt_cv_prog_gnu_ld" = yes; then
  5176. case `/usr/bin/file conftest.$ac_objext` in
  5177. *32-bit*)
  5178. LD="${LD-ld} -melf32bsmip"
  5179. ;;
  5180. *N32*)
  5181. LD="${LD-ld} -melf32bmipn32"
  5182. ;;
  5183. *64-bit*)
  5184. LD="${LD-ld} -melf64bmip"
  5185. ;;
  5186. esac
  5187. else
  5188. case `/usr/bin/file conftest.$ac_objext` in
  5189. *32-bit*)
  5190. LD="${LD-ld} -32"
  5191. ;;
  5192. *N32*)
  5193. LD="${LD-ld} -n32"
  5194. ;;
  5195. *64-bit*)
  5196. LD="${LD-ld} -64"
  5197. ;;
  5198. esac
  5199. fi
  5200. fi
  5201. rm -rf conftest*
  5202. ;;
  5203. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5204. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5205. # Find out which ABI we are using.
  5206. echo 'int i;' > conftest.$ac_ext
  5207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5208. (eval $ac_compile) 2>&5
  5209. ac_status=$?
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5211. test $ac_status = 0; }; then
  5212. case `/usr/bin/file conftest.o` in
  5213. *32-bit*)
  5214. case $host in
  5215. x86_64-*kfreebsd*-gnu)
  5216. LD="${LD-ld} -m elf_i386_fbsd"
  5217. ;;
  5218. x86_64-*linux*)
  5219. LD="${LD-ld} -m elf_i386"
  5220. ;;
  5221. ppc64-*linux*|powerpc64-*linux*)
  5222. LD="${LD-ld} -m elf32ppclinux"
  5223. ;;
  5224. s390x-*linux*)
  5225. LD="${LD-ld} -m elf_s390"
  5226. ;;
  5227. sparc64-*linux*)
  5228. LD="${LD-ld} -m elf32_sparc"
  5229. ;;
  5230. esac
  5231. ;;
  5232. *64-bit*)
  5233. case $host in
  5234. x86_64-*kfreebsd*-gnu)
  5235. LD="${LD-ld} -m elf_x86_64_fbsd"
  5236. ;;
  5237. x86_64-*linux*)
  5238. LD="${LD-ld} -m elf_x86_64"
  5239. ;;
  5240. ppc*-*linux*|powerpc*-*linux*)
  5241. LD="${LD-ld} -m elf64ppc"
  5242. ;;
  5243. s390*-*linux*|s390*-*tpf*)
  5244. LD="${LD-ld} -m elf64_s390"
  5245. ;;
  5246. sparc*-*linux*)
  5247. LD="${LD-ld} -m elf64_sparc"
  5248. ;;
  5249. esac
  5250. ;;
  5251. esac
  5252. fi
  5253. rm -rf conftest*
  5254. ;;
  5255. *-*-sco3.2v5*)
  5256. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5257. SAVE_CFLAGS="$CFLAGS"
  5258. CFLAGS="$CFLAGS -belf"
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5260. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5261. if ${lt_cv_cc_needs_belf+:} false; then :
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. ac_ext=c
  5265. ac_cpp='$CPP $CPPFLAGS'
  5266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5270. /* end confdefs.h. */
  5271. int
  5272. main ()
  5273. {
  5274. ;
  5275. return 0;
  5276. }
  5277. _ACEOF
  5278. if ac_fn_c_try_link "$LINENO"; then :
  5279. lt_cv_cc_needs_belf=yes
  5280. else
  5281. lt_cv_cc_needs_belf=no
  5282. fi
  5283. rm -f core conftest.err conftest.$ac_objext \
  5284. conftest$ac_exeext conftest.$ac_ext
  5285. ac_ext=c
  5286. ac_cpp='$CPP $CPPFLAGS'
  5287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5290. fi
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5292. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5293. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5294. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5295. CFLAGS="$SAVE_CFLAGS"
  5296. fi
  5297. ;;
  5298. *-*solaris*)
  5299. # Find out which ABI we are using.
  5300. echo 'int i;' > conftest.$ac_ext
  5301. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5302. (eval $ac_compile) 2>&5
  5303. ac_status=$?
  5304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5305. test $ac_status = 0; }; then
  5306. case `/usr/bin/file conftest.o` in
  5307. *64-bit*)
  5308. case $lt_cv_prog_gnu_ld in
  5309. yes*)
  5310. case $host in
  5311. i?86-*-solaris*)
  5312. LD="${LD-ld} -m elf_x86_64"
  5313. ;;
  5314. sparc*-*-solaris*)
  5315. LD="${LD-ld} -m elf64_sparc"
  5316. ;;
  5317. esac
  5318. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5319. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5320. LD="${LD-ld}_sol2"
  5321. fi
  5322. ;;
  5323. *)
  5324. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5325. LD="${LD-ld} -64"
  5326. fi
  5327. ;;
  5328. esac
  5329. ;;
  5330. esac
  5331. fi
  5332. rm -rf conftest*
  5333. ;;
  5334. esac
  5335. need_locks="$enable_libtool_lock"
  5336. if test -n "$ac_tool_prefix"; then
  5337. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5338. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5340. $as_echo_n "checking for $ac_word... " >&6; }
  5341. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. if test -n "$MANIFEST_TOOL"; then
  5345. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5346. else
  5347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5348. for as_dir in $PATH
  5349. do
  5350. IFS=$as_save_IFS
  5351. test -z "$as_dir" && as_dir=.
  5352. for ac_exec_ext in '' $ac_executable_extensions; do
  5353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5354. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5356. break 2
  5357. fi
  5358. done
  5359. done
  5360. IFS=$as_save_IFS
  5361. fi
  5362. fi
  5363. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5364. if test -n "$MANIFEST_TOOL"; then
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5366. $as_echo "$MANIFEST_TOOL" >&6; }
  5367. else
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5369. $as_echo "no" >&6; }
  5370. fi
  5371. fi
  5372. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5373. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5374. # Extract the first word of "mt", so it can be a program name with args.
  5375. set dummy mt; ac_word=$2
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5377. $as_echo_n "checking for $ac_word... " >&6; }
  5378. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5379. $as_echo_n "(cached) " >&6
  5380. else
  5381. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5382. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5383. else
  5384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5385. for as_dir in $PATH
  5386. do
  5387. IFS=$as_save_IFS
  5388. test -z "$as_dir" && as_dir=.
  5389. for ac_exec_ext in '' $ac_executable_extensions; do
  5390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5391. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5393. break 2
  5394. fi
  5395. done
  5396. done
  5397. IFS=$as_save_IFS
  5398. fi
  5399. fi
  5400. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5401. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5403. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5404. else
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5406. $as_echo "no" >&6; }
  5407. fi
  5408. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5409. MANIFEST_TOOL=":"
  5410. else
  5411. case $cross_compiling:$ac_tool_warned in
  5412. yes:)
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5415. ac_tool_warned=yes ;;
  5416. esac
  5417. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5418. fi
  5419. else
  5420. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5421. fi
  5422. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5424. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5425. if ${lt_cv_path_mainfest_tool+:} false; then :
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. lt_cv_path_mainfest_tool=no
  5429. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5430. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5431. cat conftest.err >&5
  5432. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5433. lt_cv_path_mainfest_tool=yes
  5434. fi
  5435. rm -f conftest*
  5436. fi
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5438. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5439. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5440. MANIFEST_TOOL=:
  5441. fi
  5442. case $host_os in
  5443. rhapsody* | darwin*)
  5444. if test -n "$ac_tool_prefix"; then
  5445. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5446. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5448. $as_echo_n "checking for $ac_word... " >&6; }
  5449. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5450. $as_echo_n "(cached) " >&6
  5451. else
  5452. if test -n "$DSYMUTIL"; then
  5453. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5454. else
  5455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5456. for as_dir in $PATH
  5457. do
  5458. IFS=$as_save_IFS
  5459. test -z "$as_dir" && as_dir=.
  5460. for ac_exec_ext in '' $ac_executable_extensions; do
  5461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5462. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5464. break 2
  5465. fi
  5466. done
  5467. done
  5468. IFS=$as_save_IFS
  5469. fi
  5470. fi
  5471. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5472. if test -n "$DSYMUTIL"; then
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5474. $as_echo "$DSYMUTIL" >&6; }
  5475. else
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5477. $as_echo "no" >&6; }
  5478. fi
  5479. fi
  5480. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5481. ac_ct_DSYMUTIL=$DSYMUTIL
  5482. # Extract the first word of "dsymutil", so it can be a program name with args.
  5483. set dummy dsymutil; ac_word=$2
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5485. $as_echo_n "checking for $ac_word... " >&6; }
  5486. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5487. $as_echo_n "(cached) " >&6
  5488. else
  5489. if test -n "$ac_ct_DSYMUTIL"; then
  5490. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5491. else
  5492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5493. for as_dir in $PATH
  5494. do
  5495. IFS=$as_save_IFS
  5496. test -z "$as_dir" && as_dir=.
  5497. for ac_exec_ext in '' $ac_executable_extensions; do
  5498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5499. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5501. break 2
  5502. fi
  5503. done
  5504. done
  5505. IFS=$as_save_IFS
  5506. fi
  5507. fi
  5508. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5509. if test -n "$ac_ct_DSYMUTIL"; then
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5511. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5512. else
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5514. $as_echo "no" >&6; }
  5515. fi
  5516. if test "x$ac_ct_DSYMUTIL" = x; then
  5517. DSYMUTIL=":"
  5518. else
  5519. case $cross_compiling:$ac_tool_warned in
  5520. yes:)
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5522. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5523. ac_tool_warned=yes ;;
  5524. esac
  5525. DSYMUTIL=$ac_ct_DSYMUTIL
  5526. fi
  5527. else
  5528. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5529. fi
  5530. if test -n "$ac_tool_prefix"; then
  5531. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5532. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_NMEDIT+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$NMEDIT"; then
  5539. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. NMEDIT=$ac_cv_prog_NMEDIT
  5558. if test -n "$NMEDIT"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5560. $as_echo "$NMEDIT" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. fi
  5566. if test -z "$ac_cv_prog_NMEDIT"; then
  5567. ac_ct_NMEDIT=$NMEDIT
  5568. # Extract the first word of "nmedit", so it can be a program name with args.
  5569. set dummy nmedit; ac_word=$2
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5571. $as_echo_n "checking for $ac_word... " >&6; }
  5572. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. if test -n "$ac_ct_NMEDIT"; then
  5576. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5577. else
  5578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5579. for as_dir in $PATH
  5580. do
  5581. IFS=$as_save_IFS
  5582. test -z "$as_dir" && as_dir=.
  5583. for ac_exec_ext in '' $ac_executable_extensions; do
  5584. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5585. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5587. break 2
  5588. fi
  5589. done
  5590. done
  5591. IFS=$as_save_IFS
  5592. fi
  5593. fi
  5594. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5595. if test -n "$ac_ct_NMEDIT"; then
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5597. $as_echo "$ac_ct_NMEDIT" >&6; }
  5598. else
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5600. $as_echo "no" >&6; }
  5601. fi
  5602. if test "x$ac_ct_NMEDIT" = x; then
  5603. NMEDIT=":"
  5604. else
  5605. case $cross_compiling:$ac_tool_warned in
  5606. yes:)
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5608. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5609. ac_tool_warned=yes ;;
  5610. esac
  5611. NMEDIT=$ac_ct_NMEDIT
  5612. fi
  5613. else
  5614. NMEDIT="$ac_cv_prog_NMEDIT"
  5615. fi
  5616. if test -n "$ac_tool_prefix"; then
  5617. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5618. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5620. $as_echo_n "checking for $ac_word... " >&6; }
  5621. if ${ac_cv_prog_LIPO+:} false; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. if test -n "$LIPO"; then
  5625. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5626. else
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5634. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. LIPO=$ac_cv_prog_LIPO
  5644. if test -n "$LIPO"; then
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5646. $as_echo "$LIPO" >&6; }
  5647. else
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5649. $as_echo "no" >&6; }
  5650. fi
  5651. fi
  5652. if test -z "$ac_cv_prog_LIPO"; then
  5653. ac_ct_LIPO=$LIPO
  5654. # Extract the first word of "lipo", so it can be a program name with args.
  5655. set dummy lipo; ac_word=$2
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. if test -n "$ac_ct_LIPO"; then
  5662. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. for ac_exec_ext in '' $ac_executable_extensions; do
  5670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5671. ac_cv_prog_ac_ct_LIPO="lipo"
  5672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5673. break 2
  5674. fi
  5675. done
  5676. done
  5677. IFS=$as_save_IFS
  5678. fi
  5679. fi
  5680. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5681. if test -n "$ac_ct_LIPO"; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5683. $as_echo "$ac_ct_LIPO" >&6; }
  5684. else
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5686. $as_echo "no" >&6; }
  5687. fi
  5688. if test "x$ac_ct_LIPO" = x; then
  5689. LIPO=":"
  5690. else
  5691. case $cross_compiling:$ac_tool_warned in
  5692. yes:)
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5695. ac_tool_warned=yes ;;
  5696. esac
  5697. LIPO=$ac_ct_LIPO
  5698. fi
  5699. else
  5700. LIPO="$ac_cv_prog_LIPO"
  5701. fi
  5702. if test -n "$ac_tool_prefix"; then
  5703. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5704. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. $as_echo_n "checking for $ac_word... " >&6; }
  5707. if ${ac_cv_prog_OTOOL+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. if test -n "$OTOOL"; then
  5711. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. test -z "$as_dir" && as_dir=.
  5718. for ac_exec_ext in '' $ac_executable_extensions; do
  5719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5720. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5722. break 2
  5723. fi
  5724. done
  5725. done
  5726. IFS=$as_save_IFS
  5727. fi
  5728. fi
  5729. OTOOL=$ac_cv_prog_OTOOL
  5730. if test -n "$OTOOL"; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5732. $as_echo "$OTOOL" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5735. $as_echo "no" >&6; }
  5736. fi
  5737. fi
  5738. if test -z "$ac_cv_prog_OTOOL"; then
  5739. ac_ct_OTOOL=$OTOOL
  5740. # Extract the first word of "otool", so it can be a program name with args.
  5741. set dummy otool; ac_word=$2
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5743. $as_echo_n "checking for $ac_word... " >&6; }
  5744. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. if test -n "$ac_ct_OTOOL"; then
  5748. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. test -z "$as_dir" && as_dir=.
  5755. for ac_exec_ext in '' $ac_executable_extensions; do
  5756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5757. ac_cv_prog_ac_ct_OTOOL="otool"
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5759. break 2
  5760. fi
  5761. done
  5762. done
  5763. IFS=$as_save_IFS
  5764. fi
  5765. fi
  5766. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5767. if test -n "$ac_ct_OTOOL"; then
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5769. $as_echo "$ac_ct_OTOOL" >&6; }
  5770. else
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5772. $as_echo "no" >&6; }
  5773. fi
  5774. if test "x$ac_ct_OTOOL" = x; then
  5775. OTOOL=":"
  5776. else
  5777. case $cross_compiling:$ac_tool_warned in
  5778. yes:)
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5781. ac_tool_warned=yes ;;
  5782. esac
  5783. OTOOL=$ac_ct_OTOOL
  5784. fi
  5785. else
  5786. OTOOL="$ac_cv_prog_OTOOL"
  5787. fi
  5788. if test -n "$ac_tool_prefix"; then
  5789. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5790. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5792. $as_echo_n "checking for $ac_word... " >&6; }
  5793. if ${ac_cv_prog_OTOOL64+:} false; then :
  5794. $as_echo_n "(cached) " >&6
  5795. else
  5796. if test -n "$OTOOL64"; then
  5797. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5798. else
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5806. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. fi
  5814. fi
  5815. OTOOL64=$ac_cv_prog_OTOOL64
  5816. if test -n "$OTOOL64"; then
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5818. $as_echo "$OTOOL64" >&6; }
  5819. else
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5821. $as_echo "no" >&6; }
  5822. fi
  5823. fi
  5824. if test -z "$ac_cv_prog_OTOOL64"; then
  5825. ac_ct_OTOOL64=$OTOOL64
  5826. # Extract the first word of "otool64", so it can be a program name with args.
  5827. set dummy otool64; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$ac_ct_OTOOL64"; then
  5834. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5843. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5853. if test -n "$ac_ct_OTOOL64"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5855. $as_echo "$ac_ct_OTOOL64" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. if test "x$ac_ct_OTOOL64" = x; then
  5861. OTOOL64=":"
  5862. else
  5863. case $cross_compiling:$ac_tool_warned in
  5864. yes:)
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5867. ac_tool_warned=yes ;;
  5868. esac
  5869. OTOOL64=$ac_ct_OTOOL64
  5870. fi
  5871. else
  5872. OTOOL64="$ac_cv_prog_OTOOL64"
  5873. fi
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5875. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5876. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5877. $as_echo_n "(cached) " >&6
  5878. else
  5879. lt_cv_apple_cc_single_mod=no
  5880. if test -z "${LT_MULTI_MODULE}"; then
  5881. # By default we will add the -single_module flag. You can override
  5882. # by either setting the environment variable LT_MULTI_MODULE
  5883. # non-empty at configure time, or by adding -multi_module to the
  5884. # link flags.
  5885. rm -rf libconftest.dylib*
  5886. echo "int foo(void){return 1;}" > conftest.c
  5887. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5888. -dynamiclib -Wl,-single_module conftest.c" >&5
  5889. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5890. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5891. _lt_result=$?
  5892. # If there is a non-empty error log, and "single_module"
  5893. # appears in it, assume the flag caused a linker warning
  5894. if test -s conftest.err && $GREP single_module conftest.err; then
  5895. cat conftest.err >&5
  5896. # Otherwise, if the output was created with a 0 exit code from
  5897. # the compiler, it worked.
  5898. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5899. lt_cv_apple_cc_single_mod=yes
  5900. else
  5901. cat conftest.err >&5
  5902. fi
  5903. rm -rf libconftest.dylib*
  5904. rm -f conftest.*
  5905. fi
  5906. fi
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5908. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5910. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5911. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. lt_cv_ld_exported_symbols_list=no
  5915. save_LDFLAGS=$LDFLAGS
  5916. echo "_main" > conftest.sym
  5917. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5919. /* end confdefs.h. */
  5920. int
  5921. main ()
  5922. {
  5923. ;
  5924. return 0;
  5925. }
  5926. _ACEOF
  5927. if ac_fn_c_try_link "$LINENO"; then :
  5928. lt_cv_ld_exported_symbols_list=yes
  5929. else
  5930. lt_cv_ld_exported_symbols_list=no
  5931. fi
  5932. rm -f core conftest.err conftest.$ac_objext \
  5933. conftest$ac_exeext conftest.$ac_ext
  5934. LDFLAGS="$save_LDFLAGS"
  5935. fi
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5937. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5939. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5940. if ${lt_cv_ld_force_load+:} false; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. lt_cv_ld_force_load=no
  5944. cat > conftest.c << _LT_EOF
  5945. int forced_loaded() { return 2;}
  5946. _LT_EOF
  5947. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5948. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5949. echo "$AR cru libconftest.a conftest.o" >&5
  5950. $AR cru libconftest.a conftest.o 2>&5
  5951. echo "$RANLIB libconftest.a" >&5
  5952. $RANLIB libconftest.a 2>&5
  5953. cat > conftest.c << _LT_EOF
  5954. int main() { return 0;}
  5955. _LT_EOF
  5956. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5957. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5958. _lt_result=$?
  5959. if test -s conftest.err && $GREP force_load conftest.err; then
  5960. cat conftest.err >&5
  5961. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5962. lt_cv_ld_force_load=yes
  5963. else
  5964. cat conftest.err >&5
  5965. fi
  5966. rm -f conftest.err libconftest.a conftest conftest.c
  5967. rm -rf conftest.dSYM
  5968. fi
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5970. $as_echo "$lt_cv_ld_force_load" >&6; }
  5971. case $host_os in
  5972. rhapsody* | darwin1.[012])
  5973. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5974. darwin1.*)
  5975. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5976. darwin*) # darwin 5.x on
  5977. # if running on 10.5 or later, the deployment target defaults
  5978. # to the OS version, if on x86, and 10.4, the deployment
  5979. # target defaults to 10.4. Don't you love it?
  5980. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5981. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5982. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5983. 10.[012]*)
  5984. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5985. 10.*)
  5986. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5987. esac
  5988. ;;
  5989. esac
  5990. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5991. _lt_dar_single_mod='$single_module'
  5992. fi
  5993. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5994. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5995. else
  5996. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5997. fi
  5998. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5999. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6000. else
  6001. _lt_dsymutil=
  6002. fi
  6003. ;;
  6004. esac
  6005. ac_ext=c
  6006. ac_cpp='$CPP $CPPFLAGS'
  6007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6011. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6012. # On Suns, sometimes $CPP names a directory.
  6013. if test -n "$CPP" && test -d "$CPP"; then
  6014. CPP=
  6015. fi
  6016. if test -z "$CPP"; then
  6017. if ${ac_cv_prog_CPP+:} false; then :
  6018. $as_echo_n "(cached) " >&6
  6019. else
  6020. # Double quotes because CPP needs to be expanded
  6021. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6022. do
  6023. ac_preproc_ok=false
  6024. for ac_c_preproc_warn_flag in '' yes
  6025. do
  6026. # Use a header file that comes with gcc, so configuring glibc
  6027. # with a fresh cross-compiler works.
  6028. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6029. # <limits.h> exists even on freestanding compilers.
  6030. # On the NeXT, cc -E runs the code through the compiler's parser,
  6031. # not just through cpp. "Syntax error" is here to catch this case.
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. #ifdef __STDC__
  6035. # include <limits.h>
  6036. #else
  6037. # include <assert.h>
  6038. #endif
  6039. Syntax error
  6040. _ACEOF
  6041. if ac_fn_c_try_cpp "$LINENO"; then :
  6042. else
  6043. # Broken: fails on valid input.
  6044. continue
  6045. fi
  6046. rm -f conftest.err conftest.i conftest.$ac_ext
  6047. # OK, works on sane cases. Now check whether nonexistent headers
  6048. # can be detected and how.
  6049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6050. /* end confdefs.h. */
  6051. #include <ac_nonexistent.h>
  6052. _ACEOF
  6053. if ac_fn_c_try_cpp "$LINENO"; then :
  6054. # Broken: success on invalid input.
  6055. continue
  6056. else
  6057. # Passes both tests.
  6058. ac_preproc_ok=:
  6059. break
  6060. fi
  6061. rm -f conftest.err conftest.i conftest.$ac_ext
  6062. done
  6063. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6064. rm -f conftest.i conftest.err conftest.$ac_ext
  6065. if $ac_preproc_ok; then :
  6066. break
  6067. fi
  6068. done
  6069. ac_cv_prog_CPP=$CPP
  6070. fi
  6071. CPP=$ac_cv_prog_CPP
  6072. else
  6073. ac_cv_prog_CPP=$CPP
  6074. fi
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6076. $as_echo "$CPP" >&6; }
  6077. ac_preproc_ok=false
  6078. for ac_c_preproc_warn_flag in '' yes
  6079. do
  6080. # Use a header file that comes with gcc, so configuring glibc
  6081. # with a fresh cross-compiler works.
  6082. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6083. # <limits.h> exists even on freestanding compilers.
  6084. # On the NeXT, cc -E runs the code through the compiler's parser,
  6085. # not just through cpp. "Syntax error" is here to catch this case.
  6086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6087. /* end confdefs.h. */
  6088. #ifdef __STDC__
  6089. # include <limits.h>
  6090. #else
  6091. # include <assert.h>
  6092. #endif
  6093. Syntax error
  6094. _ACEOF
  6095. if ac_fn_c_try_cpp "$LINENO"; then :
  6096. else
  6097. # Broken: fails on valid input.
  6098. continue
  6099. fi
  6100. rm -f conftest.err conftest.i conftest.$ac_ext
  6101. # OK, works on sane cases. Now check whether nonexistent headers
  6102. # can be detected and how.
  6103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6104. /* end confdefs.h. */
  6105. #include <ac_nonexistent.h>
  6106. _ACEOF
  6107. if ac_fn_c_try_cpp "$LINENO"; then :
  6108. # Broken: success on invalid input.
  6109. continue
  6110. else
  6111. # Passes both tests.
  6112. ac_preproc_ok=:
  6113. break
  6114. fi
  6115. rm -f conftest.err conftest.i conftest.$ac_ext
  6116. done
  6117. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6118. rm -f conftest.i conftest.err conftest.$ac_ext
  6119. if $ac_preproc_ok; then :
  6120. else
  6121. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6123. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6124. See \`config.log' for more details" "$LINENO" 5; }
  6125. fi
  6126. ac_ext=c
  6127. ac_cpp='$CPP $CPPFLAGS'
  6128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6132. $as_echo_n "checking for ANSI C header files... " >&6; }
  6133. if ${ac_cv_header_stdc+:} false; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6137. /* end confdefs.h. */
  6138. #include <stdlib.h>
  6139. #include <stdarg.h>
  6140. #include <string.h>
  6141. #include <float.h>
  6142. int
  6143. main ()
  6144. {
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. if ac_fn_c_try_compile "$LINENO"; then :
  6150. ac_cv_header_stdc=yes
  6151. else
  6152. ac_cv_header_stdc=no
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6155. if test $ac_cv_header_stdc = yes; then
  6156. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6158. /* end confdefs.h. */
  6159. #include <string.h>
  6160. _ACEOF
  6161. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6162. $EGREP "memchr" >/dev/null 2>&1; then :
  6163. else
  6164. ac_cv_header_stdc=no
  6165. fi
  6166. rm -f conftest*
  6167. fi
  6168. if test $ac_cv_header_stdc = yes; then
  6169. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6171. /* end confdefs.h. */
  6172. #include <stdlib.h>
  6173. _ACEOF
  6174. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6175. $EGREP "free" >/dev/null 2>&1; then :
  6176. else
  6177. ac_cv_header_stdc=no
  6178. fi
  6179. rm -f conftest*
  6180. fi
  6181. if test $ac_cv_header_stdc = yes; then
  6182. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6183. if test "$cross_compiling" = yes; then :
  6184. :
  6185. else
  6186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6187. /* end confdefs.h. */
  6188. #include <ctype.h>
  6189. #include <stdlib.h>
  6190. #if ((' ' & 0x0FF) == 0x020)
  6191. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6192. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6193. #else
  6194. # define ISLOWER(c) \
  6195. (('a' <= (c) && (c) <= 'i') \
  6196. || ('j' <= (c) && (c) <= 'r') \
  6197. || ('s' <= (c) && (c) <= 'z'))
  6198. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6199. #endif
  6200. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6201. int
  6202. main ()
  6203. {
  6204. int i;
  6205. for (i = 0; i < 256; i++)
  6206. if (XOR (islower (i), ISLOWER (i))
  6207. || toupper (i) != TOUPPER (i))
  6208. return 2;
  6209. return 0;
  6210. }
  6211. _ACEOF
  6212. if ac_fn_c_try_run "$LINENO"; then :
  6213. else
  6214. ac_cv_header_stdc=no
  6215. fi
  6216. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6217. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6218. fi
  6219. fi
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6222. $as_echo "$ac_cv_header_stdc" >&6; }
  6223. if test $ac_cv_header_stdc = yes; then
  6224. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6225. fi
  6226. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6227. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6228. inttypes.h stdint.h unistd.h
  6229. do :
  6230. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6231. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6232. "
  6233. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6234. cat >>confdefs.h <<_ACEOF
  6235. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6236. _ACEOF
  6237. fi
  6238. done
  6239. for ac_header in dlfcn.h
  6240. do :
  6241. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6242. "
  6243. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6244. cat >>confdefs.h <<_ACEOF
  6245. #define HAVE_DLFCN_H 1
  6246. _ACEOF
  6247. fi
  6248. done
  6249. # Set options
  6250. enable_win32_dll=yes
  6251. case $host in
  6252. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6253. if test -n "$ac_tool_prefix"; then
  6254. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6255. set dummy ${ac_tool_prefix}as; ac_word=$2
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6257. $as_echo_n "checking for $ac_word... " >&6; }
  6258. if ${ac_cv_prog_AS+:} false; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. if test -n "$AS"; then
  6262. ac_cv_prog_AS="$AS" # Let the user override the test.
  6263. else
  6264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6265. for as_dir in $PATH
  6266. do
  6267. IFS=$as_save_IFS
  6268. test -z "$as_dir" && as_dir=.
  6269. for ac_exec_ext in '' $ac_executable_extensions; do
  6270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6271. ac_cv_prog_AS="${ac_tool_prefix}as"
  6272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6273. break 2
  6274. fi
  6275. done
  6276. done
  6277. IFS=$as_save_IFS
  6278. fi
  6279. fi
  6280. AS=$ac_cv_prog_AS
  6281. if test -n "$AS"; then
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6283. $as_echo "$AS" >&6; }
  6284. else
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6286. $as_echo "no" >&6; }
  6287. fi
  6288. fi
  6289. if test -z "$ac_cv_prog_AS"; then
  6290. ac_ct_AS=$AS
  6291. # Extract the first word of "as", so it can be a program name with args.
  6292. set dummy as; ac_word=$2
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6294. $as_echo_n "checking for $ac_word... " >&6; }
  6295. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6296. $as_echo_n "(cached) " >&6
  6297. else
  6298. if test -n "$ac_ct_AS"; then
  6299. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6300. else
  6301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6302. for as_dir in $PATH
  6303. do
  6304. IFS=$as_save_IFS
  6305. test -z "$as_dir" && as_dir=.
  6306. for ac_exec_ext in '' $ac_executable_extensions; do
  6307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6308. ac_cv_prog_ac_ct_AS="as"
  6309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6310. break 2
  6311. fi
  6312. done
  6313. done
  6314. IFS=$as_save_IFS
  6315. fi
  6316. fi
  6317. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6318. if test -n "$ac_ct_AS"; then
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6320. $as_echo "$ac_ct_AS" >&6; }
  6321. else
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6323. $as_echo "no" >&6; }
  6324. fi
  6325. if test "x$ac_ct_AS" = x; then
  6326. AS="false"
  6327. else
  6328. case $cross_compiling:$ac_tool_warned in
  6329. yes:)
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6332. ac_tool_warned=yes ;;
  6333. esac
  6334. AS=$ac_ct_AS
  6335. fi
  6336. else
  6337. AS="$ac_cv_prog_AS"
  6338. fi
  6339. if test -n "$ac_tool_prefix"; then
  6340. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6341. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. $as_echo_n "checking for $ac_word... " >&6; }
  6344. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. if test -n "$DLLTOOL"; then
  6348. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6349. else
  6350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6351. for as_dir in $PATH
  6352. do
  6353. IFS=$as_save_IFS
  6354. test -z "$as_dir" && as_dir=.
  6355. for ac_exec_ext in '' $ac_executable_extensions; do
  6356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6357. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6359. break 2
  6360. fi
  6361. done
  6362. done
  6363. IFS=$as_save_IFS
  6364. fi
  6365. fi
  6366. DLLTOOL=$ac_cv_prog_DLLTOOL
  6367. if test -n "$DLLTOOL"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6369. $as_echo "$DLLTOOL" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. fi
  6375. if test -z "$ac_cv_prog_DLLTOOL"; then
  6376. ac_ct_DLLTOOL=$DLLTOOL
  6377. # Extract the first word of "dlltool", so it can be a program name with args.
  6378. set dummy dlltool; ac_word=$2
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6380. $as_echo_n "checking for $ac_word... " >&6; }
  6381. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. if test -n "$ac_ct_DLLTOOL"; then
  6385. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6386. else
  6387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6388. for as_dir in $PATH
  6389. do
  6390. IFS=$as_save_IFS
  6391. test -z "$as_dir" && as_dir=.
  6392. for ac_exec_ext in '' $ac_executable_extensions; do
  6393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6394. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6396. break 2
  6397. fi
  6398. done
  6399. done
  6400. IFS=$as_save_IFS
  6401. fi
  6402. fi
  6403. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6404. if test -n "$ac_ct_DLLTOOL"; then
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6406. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6407. else
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6409. $as_echo "no" >&6; }
  6410. fi
  6411. if test "x$ac_ct_DLLTOOL" = x; then
  6412. DLLTOOL="false"
  6413. else
  6414. case $cross_compiling:$ac_tool_warned in
  6415. yes:)
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6418. ac_tool_warned=yes ;;
  6419. esac
  6420. DLLTOOL=$ac_ct_DLLTOOL
  6421. fi
  6422. else
  6423. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6424. fi
  6425. if test -n "$ac_tool_prefix"; then
  6426. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6427. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6429. $as_echo_n "checking for $ac_word... " >&6; }
  6430. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. if test -n "$OBJDUMP"; then
  6434. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6435. else
  6436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6437. for as_dir in $PATH
  6438. do
  6439. IFS=$as_save_IFS
  6440. test -z "$as_dir" && as_dir=.
  6441. for ac_exec_ext in '' $ac_executable_extensions; do
  6442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6443. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6445. break 2
  6446. fi
  6447. done
  6448. done
  6449. IFS=$as_save_IFS
  6450. fi
  6451. fi
  6452. OBJDUMP=$ac_cv_prog_OBJDUMP
  6453. if test -n "$OBJDUMP"; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6455. $as_echo "$OBJDUMP" >&6; }
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. fi
  6460. fi
  6461. if test -z "$ac_cv_prog_OBJDUMP"; then
  6462. ac_ct_OBJDUMP=$OBJDUMP
  6463. # Extract the first word of "objdump", so it can be a program name with args.
  6464. set dummy objdump; ac_word=$2
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6466. $as_echo_n "checking for $ac_word... " >&6; }
  6467. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6468. $as_echo_n "(cached) " >&6
  6469. else
  6470. if test -n "$ac_ct_OBJDUMP"; then
  6471. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6472. else
  6473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6474. for as_dir in $PATH
  6475. do
  6476. IFS=$as_save_IFS
  6477. test -z "$as_dir" && as_dir=.
  6478. for ac_exec_ext in '' $ac_executable_extensions; do
  6479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6480. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6482. break 2
  6483. fi
  6484. done
  6485. done
  6486. IFS=$as_save_IFS
  6487. fi
  6488. fi
  6489. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6490. if test -n "$ac_ct_OBJDUMP"; then
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6492. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6493. else
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6495. $as_echo "no" >&6; }
  6496. fi
  6497. if test "x$ac_ct_OBJDUMP" = x; then
  6498. OBJDUMP="false"
  6499. else
  6500. case $cross_compiling:$ac_tool_warned in
  6501. yes:)
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6503. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6504. ac_tool_warned=yes ;;
  6505. esac
  6506. OBJDUMP=$ac_ct_OBJDUMP
  6507. fi
  6508. else
  6509. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6510. fi
  6511. ;;
  6512. esac
  6513. test -z "$AS" && AS=as
  6514. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6515. test -z "$OBJDUMP" && OBJDUMP=objdump
  6516. enable_dlopen=no
  6517. # Check whether --enable-shared was given.
  6518. if test "${enable_shared+set}" = set; then :
  6519. enableval=$enable_shared; p=${PACKAGE-default}
  6520. case $enableval in
  6521. yes) enable_shared=yes ;;
  6522. no) enable_shared=no ;;
  6523. *)
  6524. enable_shared=no
  6525. # Look at the argument we got. We use all the common list separators.
  6526. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6527. for pkg in $enableval; do
  6528. IFS="$lt_save_ifs"
  6529. if test "X$pkg" = "X$p"; then
  6530. enable_shared=yes
  6531. fi
  6532. done
  6533. IFS="$lt_save_ifs"
  6534. ;;
  6535. esac
  6536. else
  6537. enable_shared=yes
  6538. fi
  6539. # Check whether --enable-static was given.
  6540. if test "${enable_static+set}" = set; then :
  6541. enableval=$enable_static; p=${PACKAGE-default}
  6542. case $enableval in
  6543. yes) enable_static=yes ;;
  6544. no) enable_static=no ;;
  6545. *)
  6546. enable_static=no
  6547. # Look at the argument we got. We use all the common list separators.
  6548. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6549. for pkg in $enableval; do
  6550. IFS="$lt_save_ifs"
  6551. if test "X$pkg" = "X$p"; then
  6552. enable_static=yes
  6553. fi
  6554. done
  6555. IFS="$lt_save_ifs"
  6556. ;;
  6557. esac
  6558. else
  6559. enable_static=yes
  6560. fi
  6561. # Check whether --with-pic was given.
  6562. if test "${with_pic+set}" = set; then :
  6563. withval=$with_pic; lt_p=${PACKAGE-default}
  6564. case $withval in
  6565. yes|no) pic_mode=$withval ;;
  6566. *)
  6567. pic_mode=default
  6568. # Look at the argument we got. We use all the common list separators.
  6569. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6570. for lt_pkg in $withval; do
  6571. IFS="$lt_save_ifs"
  6572. if test "X$lt_pkg" = "X$lt_p"; then
  6573. pic_mode=yes
  6574. fi
  6575. done
  6576. IFS="$lt_save_ifs"
  6577. ;;
  6578. esac
  6579. else
  6580. pic_mode=default
  6581. fi
  6582. test -z "$pic_mode" && pic_mode=default
  6583. # Check whether --enable-fast-install was given.
  6584. if test "${enable_fast_install+set}" = set; then :
  6585. enableval=$enable_fast_install; p=${PACKAGE-default}
  6586. case $enableval in
  6587. yes) enable_fast_install=yes ;;
  6588. no) enable_fast_install=no ;;
  6589. *)
  6590. enable_fast_install=no
  6591. # Look at the argument we got. We use all the common list separators.
  6592. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6593. for pkg in $enableval; do
  6594. IFS="$lt_save_ifs"
  6595. if test "X$pkg" = "X$p"; then
  6596. enable_fast_install=yes
  6597. fi
  6598. done
  6599. IFS="$lt_save_ifs"
  6600. ;;
  6601. esac
  6602. else
  6603. enable_fast_install=yes
  6604. fi
  6605. # This can be used to rebuild libtool when needed
  6606. LIBTOOL_DEPS="$ltmain"
  6607. # Always use our own libtool.
  6608. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6609. test -z "$LN_S" && LN_S="ln -s"
  6610. if test -n "${ZSH_VERSION+set}" ; then
  6611. setopt NO_GLOB_SUBST
  6612. fi
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6614. $as_echo_n "checking for objdir... " >&6; }
  6615. if ${lt_cv_objdir+:} false; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. rm -f .libs 2>/dev/null
  6619. mkdir .libs 2>/dev/null
  6620. if test -d .libs; then
  6621. lt_cv_objdir=.libs
  6622. else
  6623. # MS-DOS does not allow filenames that begin with a dot.
  6624. lt_cv_objdir=_libs
  6625. fi
  6626. rmdir .libs 2>/dev/null
  6627. fi
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6629. $as_echo "$lt_cv_objdir" >&6; }
  6630. objdir=$lt_cv_objdir
  6631. cat >>confdefs.h <<_ACEOF
  6632. #define LT_OBJDIR "$lt_cv_objdir/"
  6633. _ACEOF
  6634. case $host_os in
  6635. aix3*)
  6636. # AIX sometimes has problems with the GCC collect2 program. For some
  6637. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6638. # vanish in a puff of smoke.
  6639. if test "X${COLLECT_NAMES+set}" != Xset; then
  6640. COLLECT_NAMES=
  6641. export COLLECT_NAMES
  6642. fi
  6643. ;;
  6644. esac
  6645. # Global variables:
  6646. ofile=libtool
  6647. can_build_shared=yes
  6648. # All known linkers require a `.a' archive for static linking (except MSVC,
  6649. # which needs '.lib').
  6650. libext=a
  6651. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6652. old_CC="$CC"
  6653. old_CFLAGS="$CFLAGS"
  6654. # Set sane defaults for various variables
  6655. test -z "$CC" && CC=cc
  6656. test -z "$LTCC" && LTCC=$CC
  6657. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6658. test -z "$LD" && LD=ld
  6659. test -z "$ac_objext" && ac_objext=o
  6660. for cc_temp in $compiler""; do
  6661. case $cc_temp in
  6662. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6663. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6664. \-*) ;;
  6665. *) break;;
  6666. esac
  6667. done
  6668. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6669. # Only perform the check for file, if the check method requires it
  6670. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6671. case $deplibs_check_method in
  6672. file_magic*)
  6673. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6675. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6676. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6677. $as_echo_n "(cached) " >&6
  6678. else
  6679. case $MAGIC_CMD in
  6680. [\\/*] | ?:[\\/]*)
  6681. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6682. ;;
  6683. *)
  6684. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6685. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6686. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6687. for ac_dir in $ac_dummy; do
  6688. IFS="$lt_save_ifs"
  6689. test -z "$ac_dir" && ac_dir=.
  6690. if test -f $ac_dir/${ac_tool_prefix}file; then
  6691. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6692. if test -n "$file_magic_test_file"; then
  6693. case $deplibs_check_method in
  6694. "file_magic "*)
  6695. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6696. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6697. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6698. $EGREP "$file_magic_regex" > /dev/null; then
  6699. :
  6700. else
  6701. cat <<_LT_EOF 1>&2
  6702. *** Warning: the command libtool uses to detect shared libraries,
  6703. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6704. *** The result is that libtool may fail to recognize shared libraries
  6705. *** as such. This will affect the creation of libtool libraries that
  6706. *** depend on shared libraries, but programs linked with such libtool
  6707. *** libraries will work regardless of this problem. Nevertheless, you
  6708. *** may want to report the problem to your system manager and/or to
  6709. *** bug-libtool@gnu.org
  6710. _LT_EOF
  6711. fi ;;
  6712. esac
  6713. fi
  6714. break
  6715. fi
  6716. done
  6717. IFS="$lt_save_ifs"
  6718. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6719. ;;
  6720. esac
  6721. fi
  6722. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6723. if test -n "$MAGIC_CMD"; then
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6725. $as_echo "$MAGIC_CMD" >&6; }
  6726. else
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6728. $as_echo "no" >&6; }
  6729. fi
  6730. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6731. if test -n "$ac_tool_prefix"; then
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6733. $as_echo_n "checking for file... " >&6; }
  6734. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. case $MAGIC_CMD in
  6738. [\\/*] | ?:[\\/]*)
  6739. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6740. ;;
  6741. *)
  6742. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6743. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6744. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6745. for ac_dir in $ac_dummy; do
  6746. IFS="$lt_save_ifs"
  6747. test -z "$ac_dir" && ac_dir=.
  6748. if test -f $ac_dir/file; then
  6749. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6750. if test -n "$file_magic_test_file"; then
  6751. case $deplibs_check_method in
  6752. "file_magic "*)
  6753. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6754. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6755. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6756. $EGREP "$file_magic_regex" > /dev/null; then
  6757. :
  6758. else
  6759. cat <<_LT_EOF 1>&2
  6760. *** Warning: the command libtool uses to detect shared libraries,
  6761. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6762. *** The result is that libtool may fail to recognize shared libraries
  6763. *** as such. This will affect the creation of libtool libraries that
  6764. *** depend on shared libraries, but programs linked with such libtool
  6765. *** libraries will work regardless of this problem. Nevertheless, you
  6766. *** may want to report the problem to your system manager and/or to
  6767. *** bug-libtool@gnu.org
  6768. _LT_EOF
  6769. fi ;;
  6770. esac
  6771. fi
  6772. break
  6773. fi
  6774. done
  6775. IFS="$lt_save_ifs"
  6776. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6777. ;;
  6778. esac
  6779. fi
  6780. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6781. if test -n "$MAGIC_CMD"; then
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6783. $as_echo "$MAGIC_CMD" >&6; }
  6784. else
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6786. $as_echo "no" >&6; }
  6787. fi
  6788. else
  6789. MAGIC_CMD=:
  6790. fi
  6791. fi
  6792. fi
  6793. ;;
  6794. esac
  6795. # Use C for the default configuration in the libtool script
  6796. lt_save_CC="$CC"
  6797. ac_ext=c
  6798. ac_cpp='$CPP $CPPFLAGS'
  6799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6802. # Source file extension for C test sources.
  6803. ac_ext=c
  6804. # Object file extension for compiled C test sources.
  6805. objext=o
  6806. objext=$objext
  6807. # Code to be used in simple compile tests
  6808. lt_simple_compile_test_code="int some_variable = 0;"
  6809. # Code to be used in simple link tests
  6810. lt_simple_link_test_code='int main(){return(0);}'
  6811. # If no C compiler was specified, use CC.
  6812. LTCC=${LTCC-"$CC"}
  6813. # If no C compiler flags were specified, use CFLAGS.
  6814. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6815. # Allow CC to be a program name with arguments.
  6816. compiler=$CC
  6817. # Save the default compiler, since it gets overwritten when the other
  6818. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6819. compiler_DEFAULT=$CC
  6820. # save warnings/boilerplate of simple test code
  6821. ac_outfile=conftest.$ac_objext
  6822. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6823. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6824. _lt_compiler_boilerplate=`cat conftest.err`
  6825. $RM conftest*
  6826. ac_outfile=conftest.$ac_objext
  6827. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6828. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6829. _lt_linker_boilerplate=`cat conftest.err`
  6830. $RM -r conftest*
  6831. ## CAVEAT EMPTOR:
  6832. ## There is no encapsulation within the following macros, do not change
  6833. ## the running order or otherwise move them around unless you know exactly
  6834. ## what you are doing...
  6835. if test -n "$compiler"; then
  6836. lt_prog_compiler_no_builtin_flag=
  6837. if test "$GCC" = yes; then
  6838. case $cc_basename in
  6839. nvcc*)
  6840. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6841. *)
  6842. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6843. esac
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6845. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6846. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6847. $as_echo_n "(cached) " >&6
  6848. else
  6849. lt_cv_prog_compiler_rtti_exceptions=no
  6850. ac_outfile=conftest.$ac_objext
  6851. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6852. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6853. # Insert the option either (1) after the last *FLAGS variable, or
  6854. # (2) before a word containing "conftest.", or (3) at the end.
  6855. # Note that $ac_compile itself does not contain backslashes and begins
  6856. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6857. # The option is referenced via a variable to avoid confusing sed.
  6858. lt_compile=`echo "$ac_compile" | $SED \
  6859. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6860. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6861. -e 's:$: $lt_compiler_flag:'`
  6862. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6863. (eval "$lt_compile" 2>conftest.err)
  6864. ac_status=$?
  6865. cat conftest.err >&5
  6866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6867. if (exit $ac_status) && test -s "$ac_outfile"; then
  6868. # The compiler can only warn and ignore the option if not recognized
  6869. # So say no if there are warnings other than the usual output.
  6870. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6871. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6872. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6873. lt_cv_prog_compiler_rtti_exceptions=yes
  6874. fi
  6875. fi
  6876. $RM conftest*
  6877. fi
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6879. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6880. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6881. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6882. else
  6883. :
  6884. fi
  6885. fi
  6886. lt_prog_compiler_wl=
  6887. lt_prog_compiler_pic=
  6888. lt_prog_compiler_static=
  6889. if test "$GCC" = yes; then
  6890. lt_prog_compiler_wl='-Wl,'
  6891. lt_prog_compiler_static='-static'
  6892. case $host_os in
  6893. aix*)
  6894. # All AIX code is PIC.
  6895. if test "$host_cpu" = ia64; then
  6896. # AIX 5 now supports IA64 processor
  6897. lt_prog_compiler_static='-Bstatic'
  6898. fi
  6899. ;;
  6900. amigaos*)
  6901. case $host_cpu in
  6902. powerpc)
  6903. # see comment about AmigaOS4 .so support
  6904. lt_prog_compiler_pic='-fPIC'
  6905. ;;
  6906. m68k)
  6907. # FIXME: we need at least 68020 code to build shared libraries, but
  6908. # adding the `-m68020' flag to GCC prevents building anything better,
  6909. # like `-m68040'.
  6910. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6911. ;;
  6912. esac
  6913. ;;
  6914. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6915. # PIC is the default for these OSes.
  6916. ;;
  6917. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6918. # This hack is so that the source file can tell whether it is being
  6919. # built for inclusion in a dll (and should export symbols for example).
  6920. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6921. # (--disable-auto-import) libraries
  6922. lt_prog_compiler_pic='-DDLL_EXPORT'
  6923. ;;
  6924. darwin* | rhapsody*)
  6925. # PIC is the default on this platform
  6926. # Common symbols not allowed in MH_DYLIB files
  6927. lt_prog_compiler_pic='-fno-common'
  6928. ;;
  6929. haiku*)
  6930. # PIC is the default for Haiku.
  6931. # The "-static" flag exists, but is broken.
  6932. lt_prog_compiler_static=
  6933. ;;
  6934. hpux*)
  6935. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6936. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6937. # sets the default TLS model and affects inlining.
  6938. case $host_cpu in
  6939. hppa*64*)
  6940. # +Z the default
  6941. ;;
  6942. *)
  6943. lt_prog_compiler_pic='-fPIC'
  6944. ;;
  6945. esac
  6946. ;;
  6947. interix[3-9]*)
  6948. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6949. # Instead, we relocate shared libraries at runtime.
  6950. ;;
  6951. msdosdjgpp*)
  6952. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6953. # on systems that don't support them.
  6954. lt_prog_compiler_can_build_shared=no
  6955. enable_shared=no
  6956. ;;
  6957. *nto* | *qnx*)
  6958. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6959. # it will coredump.
  6960. lt_prog_compiler_pic='-fPIC -shared'
  6961. ;;
  6962. sysv4*MP*)
  6963. if test -d /usr/nec; then
  6964. lt_prog_compiler_pic=-Kconform_pic
  6965. fi
  6966. ;;
  6967. *)
  6968. lt_prog_compiler_pic='-fPIC'
  6969. ;;
  6970. esac
  6971. case $cc_basename in
  6972. nvcc*) # Cuda Compiler Driver 2.2
  6973. lt_prog_compiler_wl='-Xlinker '
  6974. if test -n "$lt_prog_compiler_pic"; then
  6975. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6976. fi
  6977. ;;
  6978. esac
  6979. else
  6980. # PORTME Check for flag to pass linker flags through the system compiler.
  6981. case $host_os in
  6982. aix*)
  6983. lt_prog_compiler_wl='-Wl,'
  6984. if test "$host_cpu" = ia64; then
  6985. # AIX 5 now supports IA64 processor
  6986. lt_prog_compiler_static='-Bstatic'
  6987. else
  6988. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6989. fi
  6990. ;;
  6991. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6992. # This hack is so that the source file can tell whether it is being
  6993. # built for inclusion in a dll (and should export symbols for example).
  6994. lt_prog_compiler_pic='-DDLL_EXPORT'
  6995. ;;
  6996. hpux9* | hpux10* | hpux11*)
  6997. lt_prog_compiler_wl='-Wl,'
  6998. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6999. # not for PA HP-UX.
  7000. case $host_cpu in
  7001. hppa*64*|ia64*)
  7002. # +Z the default
  7003. ;;
  7004. *)
  7005. lt_prog_compiler_pic='+Z'
  7006. ;;
  7007. esac
  7008. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7009. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7010. ;;
  7011. irix5* | irix6* | nonstopux*)
  7012. lt_prog_compiler_wl='-Wl,'
  7013. # PIC (with -KPIC) is the default.
  7014. lt_prog_compiler_static='-non_shared'
  7015. ;;
  7016. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7017. case $cc_basename in
  7018. # old Intel for x86_64 which still supported -KPIC.
  7019. ecc*)
  7020. lt_prog_compiler_wl='-Wl,'
  7021. lt_prog_compiler_pic='-KPIC'
  7022. lt_prog_compiler_static='-static'
  7023. ;;
  7024. # icc used to be incompatible with GCC.
  7025. # ICC 10 doesn't accept -KPIC any more.
  7026. icc* | ifort*)
  7027. lt_prog_compiler_wl='-Wl,'
  7028. lt_prog_compiler_pic='-fPIC'
  7029. lt_prog_compiler_static='-static'
  7030. ;;
  7031. # Lahey Fortran 8.1.
  7032. lf95*)
  7033. lt_prog_compiler_wl='-Wl,'
  7034. lt_prog_compiler_pic='--shared'
  7035. lt_prog_compiler_static='--static'
  7036. ;;
  7037. nagfor*)
  7038. # NAG Fortran compiler
  7039. lt_prog_compiler_wl='-Wl,-Wl,,'
  7040. lt_prog_compiler_pic='-PIC'
  7041. lt_prog_compiler_static='-Bstatic'
  7042. ;;
  7043. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7044. # Portland Group compilers (*not* the Pentium gcc compiler,
  7045. # which looks to be a dead project)
  7046. lt_prog_compiler_wl='-Wl,'
  7047. lt_prog_compiler_pic='-fpic'
  7048. lt_prog_compiler_static='-Bstatic'
  7049. ;;
  7050. ccc*)
  7051. lt_prog_compiler_wl='-Wl,'
  7052. # All Alpha code is PIC.
  7053. lt_prog_compiler_static='-non_shared'
  7054. ;;
  7055. xl* | bgxl* | bgf* | mpixl*)
  7056. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7057. lt_prog_compiler_wl='-Wl,'
  7058. lt_prog_compiler_pic='-qpic'
  7059. lt_prog_compiler_static='-qstaticlink'
  7060. ;;
  7061. *)
  7062. case `$CC -V 2>&1 | sed 5q` in
  7063. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7064. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7065. lt_prog_compiler_pic='-KPIC'
  7066. lt_prog_compiler_static='-Bstatic'
  7067. lt_prog_compiler_wl=''
  7068. ;;
  7069. *Sun\ F* | *Sun*Fortran*)
  7070. lt_prog_compiler_pic='-KPIC'
  7071. lt_prog_compiler_static='-Bstatic'
  7072. lt_prog_compiler_wl='-Qoption ld '
  7073. ;;
  7074. *Sun\ C*)
  7075. # Sun C 5.9
  7076. lt_prog_compiler_pic='-KPIC'
  7077. lt_prog_compiler_static='-Bstatic'
  7078. lt_prog_compiler_wl='-Wl,'
  7079. ;;
  7080. *Intel*\ [CF]*Compiler*)
  7081. lt_prog_compiler_wl='-Wl,'
  7082. lt_prog_compiler_pic='-fPIC'
  7083. lt_prog_compiler_static='-static'
  7084. ;;
  7085. *Portland\ Group*)
  7086. lt_prog_compiler_wl='-Wl,'
  7087. lt_prog_compiler_pic='-fpic'
  7088. lt_prog_compiler_static='-Bstatic'
  7089. ;;
  7090. esac
  7091. ;;
  7092. esac
  7093. ;;
  7094. newsos6)
  7095. lt_prog_compiler_pic='-KPIC'
  7096. lt_prog_compiler_static='-Bstatic'
  7097. ;;
  7098. *nto* | *qnx*)
  7099. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7100. # it will coredump.
  7101. lt_prog_compiler_pic='-fPIC -shared'
  7102. ;;
  7103. osf3* | osf4* | osf5*)
  7104. lt_prog_compiler_wl='-Wl,'
  7105. # All OSF/1 code is PIC.
  7106. lt_prog_compiler_static='-non_shared'
  7107. ;;
  7108. rdos*)
  7109. lt_prog_compiler_static='-non_shared'
  7110. ;;
  7111. solaris*)
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. case $cc_basename in
  7115. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7116. lt_prog_compiler_wl='-Qoption ld ';;
  7117. *)
  7118. lt_prog_compiler_wl='-Wl,';;
  7119. esac
  7120. ;;
  7121. sunos4*)
  7122. lt_prog_compiler_wl='-Qoption ld '
  7123. lt_prog_compiler_pic='-PIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. ;;
  7126. sysv4 | sysv4.2uw2* | sysv4.3*)
  7127. lt_prog_compiler_wl='-Wl,'
  7128. lt_prog_compiler_pic='-KPIC'
  7129. lt_prog_compiler_static='-Bstatic'
  7130. ;;
  7131. sysv4*MP*)
  7132. if test -d /usr/nec ;then
  7133. lt_prog_compiler_pic='-Kconform_pic'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. fi
  7136. ;;
  7137. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7138. lt_prog_compiler_wl='-Wl,'
  7139. lt_prog_compiler_pic='-KPIC'
  7140. lt_prog_compiler_static='-Bstatic'
  7141. ;;
  7142. unicos*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. lt_prog_compiler_can_build_shared=no
  7145. ;;
  7146. uts4*)
  7147. lt_prog_compiler_pic='-pic'
  7148. lt_prog_compiler_static='-Bstatic'
  7149. ;;
  7150. *)
  7151. lt_prog_compiler_can_build_shared=no
  7152. ;;
  7153. esac
  7154. fi
  7155. case $host_os in
  7156. # For platforms which do not support PIC, -DPIC is meaningless:
  7157. *djgpp*)
  7158. lt_prog_compiler_pic=
  7159. ;;
  7160. *)
  7161. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7162. ;;
  7163. esac
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7165. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7166. if ${lt_cv_prog_compiler_pic+:} false; then :
  7167. $as_echo_n "(cached) " >&6
  7168. else
  7169. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7170. fi
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7172. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7173. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7174. #
  7175. # Check to make sure the PIC flag actually works.
  7176. #
  7177. if test -n "$lt_prog_compiler_pic"; then
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7179. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7180. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. lt_cv_prog_compiler_pic_works=no
  7184. ac_outfile=conftest.$ac_objext
  7185. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7186. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7187. # Insert the option either (1) after the last *FLAGS variable, or
  7188. # (2) before a word containing "conftest.", or (3) at the end.
  7189. # Note that $ac_compile itself does not contain backslashes and begins
  7190. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7191. # The option is referenced via a variable to avoid confusing sed.
  7192. lt_compile=`echo "$ac_compile" | $SED \
  7193. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7194. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7195. -e 's:$: $lt_compiler_flag:'`
  7196. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7197. (eval "$lt_compile" 2>conftest.err)
  7198. ac_status=$?
  7199. cat conftest.err >&5
  7200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7201. if (exit $ac_status) && test -s "$ac_outfile"; then
  7202. # The compiler can only warn and ignore the option if not recognized
  7203. # So say no if there are warnings other than the usual output.
  7204. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7205. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7206. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7207. lt_cv_prog_compiler_pic_works=yes
  7208. fi
  7209. fi
  7210. $RM conftest*
  7211. fi
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7213. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7214. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7215. case $lt_prog_compiler_pic in
  7216. "" | " "*) ;;
  7217. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7218. esac
  7219. else
  7220. lt_prog_compiler_pic=
  7221. lt_prog_compiler_can_build_shared=no
  7222. fi
  7223. fi
  7224. #
  7225. # Check to make sure the static flag actually works.
  7226. #
  7227. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7229. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7230. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7231. $as_echo_n "(cached) " >&6
  7232. else
  7233. lt_cv_prog_compiler_static_works=no
  7234. save_LDFLAGS="$LDFLAGS"
  7235. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7236. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7237. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7238. # The linker can only warn and ignore the option if not recognized
  7239. # So say no if there are warnings
  7240. if test -s conftest.err; then
  7241. # Append any errors to the config.log.
  7242. cat conftest.err 1>&5
  7243. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7244. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7245. if diff conftest.exp conftest.er2 >/dev/null; then
  7246. lt_cv_prog_compiler_static_works=yes
  7247. fi
  7248. else
  7249. lt_cv_prog_compiler_static_works=yes
  7250. fi
  7251. fi
  7252. $RM -r conftest*
  7253. LDFLAGS="$save_LDFLAGS"
  7254. fi
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7256. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7257. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7258. :
  7259. else
  7260. lt_prog_compiler_static=
  7261. fi
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7263. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7264. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7265. $as_echo_n "(cached) " >&6
  7266. else
  7267. lt_cv_prog_compiler_c_o=no
  7268. $RM -r conftest 2>/dev/null
  7269. mkdir conftest
  7270. cd conftest
  7271. mkdir out
  7272. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7273. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7274. # Insert the option either (1) after the last *FLAGS variable, or
  7275. # (2) before a word containing "conftest.", or (3) at the end.
  7276. # Note that $ac_compile itself does not contain backslashes and begins
  7277. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7278. lt_compile=`echo "$ac_compile" | $SED \
  7279. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7280. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7281. -e 's:$: $lt_compiler_flag:'`
  7282. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7283. (eval "$lt_compile" 2>out/conftest.err)
  7284. ac_status=$?
  7285. cat out/conftest.err >&5
  7286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7287. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7288. then
  7289. # The compiler can only warn and ignore the option if not recognized
  7290. # So say no if there are warnings
  7291. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7292. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7293. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7294. lt_cv_prog_compiler_c_o=yes
  7295. fi
  7296. fi
  7297. chmod u+w . 2>&5
  7298. $RM conftest*
  7299. # SGI C++ compiler will create directory out/ii_files/ for
  7300. # template instantiation
  7301. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7302. $RM out/* && rmdir out
  7303. cd ..
  7304. $RM -r conftest
  7305. $RM conftest*
  7306. fi
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7308. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7310. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7311. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. lt_cv_prog_compiler_c_o=no
  7315. $RM -r conftest 2>/dev/null
  7316. mkdir conftest
  7317. cd conftest
  7318. mkdir out
  7319. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7320. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7321. # Insert the option either (1) after the last *FLAGS variable, or
  7322. # (2) before a word containing "conftest.", or (3) at the end.
  7323. # Note that $ac_compile itself does not contain backslashes and begins
  7324. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7325. lt_compile=`echo "$ac_compile" | $SED \
  7326. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7327. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7328. -e 's:$: $lt_compiler_flag:'`
  7329. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7330. (eval "$lt_compile" 2>out/conftest.err)
  7331. ac_status=$?
  7332. cat out/conftest.err >&5
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7335. then
  7336. # The compiler can only warn and ignore the option if not recognized
  7337. # So say no if there are warnings
  7338. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7339. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7340. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7341. lt_cv_prog_compiler_c_o=yes
  7342. fi
  7343. fi
  7344. chmod u+w . 2>&5
  7345. $RM conftest*
  7346. # SGI C++ compiler will create directory out/ii_files/ for
  7347. # template instantiation
  7348. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7349. $RM out/* && rmdir out
  7350. cd ..
  7351. $RM -r conftest
  7352. $RM conftest*
  7353. fi
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7355. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7356. hard_links="nottested"
  7357. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7358. # do not overwrite the value of need_locks provided by the user
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7360. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7361. hard_links=yes
  7362. $RM conftest*
  7363. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7364. touch conftest.a
  7365. ln conftest.a conftest.b 2>&5 || hard_links=no
  7366. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7368. $as_echo "$hard_links" >&6; }
  7369. if test "$hard_links" = no; then
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7371. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7372. need_locks=warn
  7373. fi
  7374. else
  7375. need_locks=no
  7376. fi
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7378. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7379. runpath_var=
  7380. allow_undefined_flag=
  7381. always_export_symbols=no
  7382. archive_cmds=
  7383. archive_expsym_cmds=
  7384. compiler_needs_object=no
  7385. enable_shared_with_static_runtimes=no
  7386. export_dynamic_flag_spec=
  7387. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7388. hardcode_automatic=no
  7389. hardcode_direct=no
  7390. hardcode_direct_absolute=no
  7391. hardcode_libdir_flag_spec=
  7392. hardcode_libdir_separator=
  7393. hardcode_minus_L=no
  7394. hardcode_shlibpath_var=unsupported
  7395. inherit_rpath=no
  7396. link_all_deplibs=unknown
  7397. module_cmds=
  7398. module_expsym_cmds=
  7399. old_archive_from_new_cmds=
  7400. old_archive_from_expsyms_cmds=
  7401. thread_safe_flag_spec=
  7402. whole_archive_flag_spec=
  7403. # include_expsyms should be a list of space-separated symbols to be *always*
  7404. # included in the symbol list
  7405. include_expsyms=
  7406. # exclude_expsyms can be an extended regexp of symbols to exclude
  7407. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7408. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7409. # as well as any symbol that contains `d'.
  7410. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7411. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7412. # platforms (ab)use it in PIC code, but their linkers get confused if
  7413. # the symbol is explicitly referenced. Since portable code cannot
  7414. # rely on this symbol name, it's probably fine to never include it in
  7415. # preloaded symbol tables.
  7416. # Exclude shared library initialization/finalization symbols.
  7417. extract_expsyms_cmds=
  7418. case $host_os in
  7419. cygwin* | mingw* | pw32* | cegcc*)
  7420. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7421. # When not using gcc, we currently assume that we are using
  7422. # Microsoft Visual C++.
  7423. if test "$GCC" != yes; then
  7424. with_gnu_ld=no
  7425. fi
  7426. ;;
  7427. interix*)
  7428. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7429. with_gnu_ld=yes
  7430. ;;
  7431. openbsd*)
  7432. with_gnu_ld=no
  7433. ;;
  7434. esac
  7435. ld_shlibs=yes
  7436. # On some targets, GNU ld is compatible enough with the native linker
  7437. # that we're better off using the native interface for both.
  7438. lt_use_gnu_ld_interface=no
  7439. if test "$with_gnu_ld" = yes; then
  7440. case $host_os in
  7441. aix*)
  7442. # The AIX port of GNU ld has always aspired to compatibility
  7443. # with the native linker. However, as the warning in the GNU ld
  7444. # block says, versions before 2.19.5* couldn't really create working
  7445. # shared libraries, regardless of the interface used.
  7446. case `$LD -v 2>&1` in
  7447. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7448. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7449. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7450. *)
  7451. lt_use_gnu_ld_interface=yes
  7452. ;;
  7453. esac
  7454. ;;
  7455. *)
  7456. lt_use_gnu_ld_interface=yes
  7457. ;;
  7458. esac
  7459. fi
  7460. if test "$lt_use_gnu_ld_interface" = yes; then
  7461. # If archive_cmds runs LD, not CC, wlarc should be empty
  7462. wlarc='${wl}'
  7463. # Set some defaults for GNU ld with shared library support. These
  7464. # are reset later if shared libraries are not supported. Putting them
  7465. # here allows them to be overridden if necessary.
  7466. runpath_var=LD_RUN_PATH
  7467. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7468. export_dynamic_flag_spec='${wl}--export-dynamic'
  7469. # ancient GNU ld didn't support --whole-archive et. al.
  7470. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7471. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7472. else
  7473. whole_archive_flag_spec=
  7474. fi
  7475. supports_anon_versioning=no
  7476. case `$LD -v 2>&1` in
  7477. *GNU\ gold*) supports_anon_versioning=yes ;;
  7478. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7479. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7480. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7481. *\ 2.11.*) ;; # other 2.11 versions
  7482. *) supports_anon_versioning=yes ;;
  7483. esac
  7484. # See if GNU ld supports shared libraries.
  7485. case $host_os in
  7486. aix[3-9]*)
  7487. # On AIX/PPC, the GNU linker is very broken
  7488. if test "$host_cpu" != ia64; then
  7489. ld_shlibs=no
  7490. cat <<_LT_EOF 1>&2
  7491. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7492. *** to be unable to reliably create shared libraries on AIX.
  7493. *** Therefore, libtool is disabling shared libraries support. If you
  7494. *** really care for shared libraries, you may want to install binutils
  7495. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7496. *** You will then need to restart the configuration process.
  7497. _LT_EOF
  7498. fi
  7499. ;;
  7500. amigaos*)
  7501. case $host_cpu in
  7502. powerpc)
  7503. # see comment about AmigaOS4 .so support
  7504. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7505. archive_expsym_cmds=''
  7506. ;;
  7507. m68k)
  7508. 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)'
  7509. hardcode_libdir_flag_spec='-L$libdir'
  7510. hardcode_minus_L=yes
  7511. ;;
  7512. esac
  7513. ;;
  7514. beos*)
  7515. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7516. allow_undefined_flag=unsupported
  7517. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7518. # support --undefined. This deserves some investigation. FIXME
  7519. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7520. else
  7521. ld_shlibs=no
  7522. fi
  7523. ;;
  7524. cygwin* | mingw* | pw32* | cegcc*)
  7525. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7526. # as there is no search path for DLLs.
  7527. hardcode_libdir_flag_spec='-L$libdir'
  7528. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7529. allow_undefined_flag=unsupported
  7530. always_export_symbols=no
  7531. enable_shared_with_static_runtimes=yes
  7532. 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'
  7533. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7534. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7535. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7536. # If the export-symbols file already is a .def file (1st line
  7537. # is EXPORTS), use it as is; otherwise, prepend...
  7538. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7539. cp $export_symbols $output_objdir/$soname.def;
  7540. else
  7541. echo EXPORTS > $output_objdir/$soname.def;
  7542. cat $export_symbols >> $output_objdir/$soname.def;
  7543. fi~
  7544. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7545. else
  7546. ld_shlibs=no
  7547. fi
  7548. ;;
  7549. haiku*)
  7550. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7551. link_all_deplibs=yes
  7552. ;;
  7553. interix[3-9]*)
  7554. hardcode_direct=no
  7555. hardcode_shlibpath_var=no
  7556. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7557. export_dynamic_flag_spec='${wl}-E'
  7558. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7559. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7560. # default) and relocated if they conflict, which is a slow very memory
  7561. # consuming and fragmenting process. To avoid this, we pick a random,
  7562. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7563. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7564. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7565. 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'
  7566. ;;
  7567. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7568. tmp_diet=no
  7569. if test "$host_os" = linux-dietlibc; then
  7570. case $cc_basename in
  7571. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7572. esac
  7573. fi
  7574. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7575. && test "$tmp_diet" = no
  7576. then
  7577. tmp_addflag=' $pic_flag'
  7578. tmp_sharedflag='-shared'
  7579. case $cc_basename,$host_cpu in
  7580. pgcc*) # Portland Group C compiler
  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'
  7583. ;;
  7584. pgf77* | pgf90* | pgf95* | pgfortran*)
  7585. # Portland Group f77 and f90 compilers
  7586. 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'
  7587. tmp_addflag=' $pic_flag -Mnomain' ;;
  7588. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7589. tmp_addflag=' -i_dynamic' ;;
  7590. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7591. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7592. ifc* | ifort*) # Intel Fortran compiler
  7593. tmp_addflag=' -nofor_main' ;;
  7594. lf95*) # Lahey Fortran 8.1
  7595. whole_archive_flag_spec=
  7596. tmp_sharedflag='--shared' ;;
  7597. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7598. tmp_sharedflag='-qmkshrobj'
  7599. tmp_addflag= ;;
  7600. nvcc*) # Cuda Compiler Driver 2.2
  7601. 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'
  7602. compiler_needs_object=yes
  7603. ;;
  7604. esac
  7605. case `$CC -V 2>&1 | sed 5q` in
  7606. *Sun\ C*) # Sun C 5.9
  7607. 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'
  7608. compiler_needs_object=yes
  7609. tmp_sharedflag='-G' ;;
  7610. *Sun\ F*) # Sun Fortran 8.3
  7611. tmp_sharedflag='-G' ;;
  7612. esac
  7613. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7614. if test "x$supports_anon_versioning" = xyes; then
  7615. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7616. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7617. echo "local: *; };" >> $output_objdir/$libname.ver~
  7618. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7619. fi
  7620. case $cc_basename in
  7621. xlf* | bgf* | bgxlf* | mpixlf*)
  7622. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7623. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7624. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7625. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7626. if test "x$supports_anon_versioning" = xyes; then
  7627. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7628. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7629. echo "local: *; };" >> $output_objdir/$libname.ver~
  7630. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7631. fi
  7632. ;;
  7633. esac
  7634. else
  7635. ld_shlibs=no
  7636. fi
  7637. ;;
  7638. netbsd*)
  7639. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7640. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7641. wlarc=
  7642. else
  7643. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7644. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7645. fi
  7646. ;;
  7647. solaris*)
  7648. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7649. ld_shlibs=no
  7650. cat <<_LT_EOF 1>&2
  7651. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7652. *** create shared libraries on Solaris systems. Therefore, libtool
  7653. *** is disabling shared libraries support. We urge you to upgrade GNU
  7654. *** binutils to release 2.9.1 or newer. Another option is to modify
  7655. *** your PATH or compiler configuration so that the native linker is
  7656. *** used, and then restart.
  7657. _LT_EOF
  7658. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7659. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7660. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7661. else
  7662. ld_shlibs=no
  7663. fi
  7664. ;;
  7665. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7666. case `$LD -v 2>&1` in
  7667. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7668. ld_shlibs=no
  7669. cat <<_LT_EOF 1>&2
  7670. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7671. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7672. *** is disabling shared libraries support. We urge you to upgrade GNU
  7673. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7674. *** your PATH or compiler configuration so that the native linker is
  7675. *** used, and then restart.
  7676. _LT_EOF
  7677. ;;
  7678. *)
  7679. # For security reasons, it is highly recommended that you always
  7680. # use absolute paths for naming shared libraries, and exclude the
  7681. # DT_RUNPATH tag from executables and libraries. But doing so
  7682. # requires that you compile everything twice, which is a pain.
  7683. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7684. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7685. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7686. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7687. else
  7688. ld_shlibs=no
  7689. fi
  7690. ;;
  7691. esac
  7692. ;;
  7693. sunos4*)
  7694. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7695. wlarc=
  7696. hardcode_direct=yes
  7697. hardcode_shlibpath_var=no
  7698. ;;
  7699. *)
  7700. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7701. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7702. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7703. else
  7704. ld_shlibs=no
  7705. fi
  7706. ;;
  7707. esac
  7708. if test "$ld_shlibs" = no; then
  7709. runpath_var=
  7710. hardcode_libdir_flag_spec=
  7711. export_dynamic_flag_spec=
  7712. whole_archive_flag_spec=
  7713. fi
  7714. else
  7715. # PORTME fill in a description of your system's linker (not GNU ld)
  7716. case $host_os in
  7717. aix3*)
  7718. allow_undefined_flag=unsupported
  7719. always_export_symbols=yes
  7720. 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'
  7721. # Note: this linker hardcodes the directories in LIBPATH if there
  7722. # are no directories specified by -L.
  7723. hardcode_minus_L=yes
  7724. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7725. # Neither direct hardcoding nor static linking is supported with a
  7726. # broken collect2.
  7727. hardcode_direct=unsupported
  7728. fi
  7729. ;;
  7730. aix[4-9]*)
  7731. if test "$host_cpu" = ia64; then
  7732. # On IA64, the linker does run time linking by default, so we don't
  7733. # have to do anything special.
  7734. aix_use_runtimelinking=no
  7735. exp_sym_flag='-Bexport'
  7736. no_entry_flag=""
  7737. else
  7738. # If we're using GNU nm, then we don't want the "-C" option.
  7739. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7740. # Also, AIX nm treats weak defined symbols like other global
  7741. # defined symbols, whereas GNU nm marks them as "W".
  7742. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7743. 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'
  7744. else
  7745. 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'
  7746. fi
  7747. aix_use_runtimelinking=no
  7748. # Test if we are trying to use run time linking or normal
  7749. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7750. # need to do runtime linking.
  7751. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7752. for ld_flag in $LDFLAGS; do
  7753. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7754. aix_use_runtimelinking=yes
  7755. break
  7756. fi
  7757. done
  7758. ;;
  7759. esac
  7760. exp_sym_flag='-bexport'
  7761. no_entry_flag='-bnoentry'
  7762. fi
  7763. # When large executables or shared objects are built, AIX ld can
  7764. # have problems creating the table of contents. If linking a library
  7765. # or program results in "error TOC overflow" add -mminimal-toc to
  7766. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7767. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7768. archive_cmds=''
  7769. hardcode_direct=yes
  7770. hardcode_direct_absolute=yes
  7771. hardcode_libdir_separator=':'
  7772. link_all_deplibs=yes
  7773. file_list_spec='${wl}-f,'
  7774. if test "$GCC" = yes; then
  7775. case $host_os in aix4.[012]|aix4.[012].*)
  7776. # We only want to do this on AIX 4.2 and lower, the check
  7777. # below for broken collect2 doesn't work under 4.3+
  7778. collect2name=`${CC} -print-prog-name=collect2`
  7779. if test -f "$collect2name" &&
  7780. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7781. then
  7782. # We have reworked collect2
  7783. :
  7784. else
  7785. # We have old collect2
  7786. hardcode_direct=unsupported
  7787. # It fails to find uninstalled libraries when the uninstalled
  7788. # path is not listed in the libpath. Setting hardcode_minus_L
  7789. # to unsupported forces relinking
  7790. hardcode_minus_L=yes
  7791. hardcode_libdir_flag_spec='-L$libdir'
  7792. hardcode_libdir_separator=
  7793. fi
  7794. ;;
  7795. esac
  7796. shared_flag='-shared'
  7797. if test "$aix_use_runtimelinking" = yes; then
  7798. shared_flag="$shared_flag "'${wl}-G'
  7799. fi
  7800. else
  7801. # not using gcc
  7802. if test "$host_cpu" = ia64; then
  7803. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7804. # chokes on -Wl,-G. The following line is correct:
  7805. shared_flag='-G'
  7806. else
  7807. if test "$aix_use_runtimelinking" = yes; then
  7808. shared_flag='${wl}-G'
  7809. else
  7810. shared_flag='${wl}-bM:SRE'
  7811. fi
  7812. fi
  7813. fi
  7814. export_dynamic_flag_spec='${wl}-bexpall'
  7815. # It seems that -bexpall does not export symbols beginning with
  7816. # underscore (_), so it is better to generate a list of symbols to export.
  7817. always_export_symbols=yes
  7818. if test "$aix_use_runtimelinking" = yes; then
  7819. # Warning - without using the other runtime loading flags (-brtl),
  7820. # -berok will link without error, but may produce a broken library.
  7821. allow_undefined_flag='-berok'
  7822. # Determine the default libpath from the value encoded in an
  7823. # empty executable.
  7824. if test "${lt_cv_aix_libpath+set}" = set; then
  7825. aix_libpath=$lt_cv_aix_libpath
  7826. else
  7827. if ${lt_cv_aix_libpath_+:} false; then :
  7828. $as_echo_n "(cached) " >&6
  7829. else
  7830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7831. /* end confdefs.h. */
  7832. int
  7833. main ()
  7834. {
  7835. ;
  7836. return 0;
  7837. }
  7838. _ACEOF
  7839. if ac_fn_c_try_link "$LINENO"; then :
  7840. lt_aix_libpath_sed='
  7841. /Import File Strings/,/^$/ {
  7842. /^0/ {
  7843. s/^0 *\([^ ]*\) *$/\1/
  7844. p
  7845. }
  7846. }'
  7847. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7848. # Check for a 64-bit object if we didn't find anything.
  7849. if test -z "$lt_cv_aix_libpath_"; then
  7850. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7851. fi
  7852. fi
  7853. rm -f core conftest.err conftest.$ac_objext \
  7854. conftest$ac_exeext conftest.$ac_ext
  7855. if test -z "$lt_cv_aix_libpath_"; then
  7856. lt_cv_aix_libpath_="/usr/lib:/lib"
  7857. fi
  7858. fi
  7859. aix_libpath=$lt_cv_aix_libpath_
  7860. fi
  7861. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7862. 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"
  7863. else
  7864. if test "$host_cpu" = ia64; then
  7865. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7866. allow_undefined_flag="-z nodefs"
  7867. 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"
  7868. else
  7869. # Determine the default libpath from the value encoded in an
  7870. # empty executable.
  7871. if test "${lt_cv_aix_libpath+set}" = set; then
  7872. aix_libpath=$lt_cv_aix_libpath
  7873. else
  7874. if ${lt_cv_aix_libpath_+:} false; then :
  7875. $as_echo_n "(cached) " >&6
  7876. else
  7877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7878. /* end confdefs.h. */
  7879. int
  7880. main ()
  7881. {
  7882. ;
  7883. return 0;
  7884. }
  7885. _ACEOF
  7886. if ac_fn_c_try_link "$LINENO"; then :
  7887. lt_aix_libpath_sed='
  7888. /Import File Strings/,/^$/ {
  7889. /^0/ {
  7890. s/^0 *\([^ ]*\) *$/\1/
  7891. p
  7892. }
  7893. }'
  7894. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7895. # Check for a 64-bit object if we didn't find anything.
  7896. if test -z "$lt_cv_aix_libpath_"; then
  7897. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7898. fi
  7899. fi
  7900. rm -f core conftest.err conftest.$ac_objext \
  7901. conftest$ac_exeext conftest.$ac_ext
  7902. if test -z "$lt_cv_aix_libpath_"; then
  7903. lt_cv_aix_libpath_="/usr/lib:/lib"
  7904. fi
  7905. fi
  7906. aix_libpath=$lt_cv_aix_libpath_
  7907. fi
  7908. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7909. # Warning - without using the other run time loading flags,
  7910. # -berok will link without error, but may produce a broken library.
  7911. no_undefined_flag=' ${wl}-bernotok'
  7912. allow_undefined_flag=' ${wl}-berok'
  7913. if test "$with_gnu_ld" = yes; then
  7914. # We only use this code for GNU lds that support --whole-archive.
  7915. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7916. else
  7917. # Exported symbols can be pulled into shared objects from archives
  7918. whole_archive_flag_spec='$convenience'
  7919. fi
  7920. archive_cmds_need_lc=yes
  7921. # This is similar to how AIX traditionally builds its shared libraries.
  7922. 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'
  7923. fi
  7924. fi
  7925. ;;
  7926. amigaos*)
  7927. case $host_cpu in
  7928. powerpc)
  7929. # see comment about AmigaOS4 .so support
  7930. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7931. archive_expsym_cmds=''
  7932. ;;
  7933. m68k)
  7934. 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)'
  7935. hardcode_libdir_flag_spec='-L$libdir'
  7936. hardcode_minus_L=yes
  7937. ;;
  7938. esac
  7939. ;;
  7940. bsdi[45]*)
  7941. export_dynamic_flag_spec=-rdynamic
  7942. ;;
  7943. cygwin* | mingw* | pw32* | cegcc*)
  7944. # When not using gcc, we currently assume that we are using
  7945. # Microsoft Visual C++.
  7946. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7947. # no search path for DLLs.
  7948. case $cc_basename in
  7949. cl*)
  7950. # Native MSVC
  7951. hardcode_libdir_flag_spec=' '
  7952. allow_undefined_flag=unsupported
  7953. always_export_symbols=yes
  7954. file_list_spec='@'
  7955. # Tell ltmain to make .lib files, not .a files.
  7956. libext=lib
  7957. # Tell ltmain to make .dll files, not .so files.
  7958. shrext_cmds=".dll"
  7959. # FIXME: Setting linknames here is a bad hack.
  7960. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7961. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7962. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7963. else
  7964. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7965. fi~
  7966. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7967. linknames='
  7968. # The linker will not automatically build a static lib if we build a DLL.
  7969. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7970. enable_shared_with_static_runtimes=yes
  7971. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7972. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7973. # Don't use ranlib
  7974. old_postinstall_cmds='chmod 644 $oldlib'
  7975. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7976. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7977. case $lt_outputfile in
  7978. *.exe|*.EXE) ;;
  7979. *)
  7980. lt_outputfile="$lt_outputfile.exe"
  7981. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7982. ;;
  7983. esac~
  7984. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7985. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7986. $RM "$lt_outputfile.manifest";
  7987. fi'
  7988. ;;
  7989. *)
  7990. # Assume MSVC wrapper
  7991. hardcode_libdir_flag_spec=' '
  7992. allow_undefined_flag=unsupported
  7993. # Tell ltmain to make .lib files, not .a files.
  7994. libext=lib
  7995. # Tell ltmain to make .dll files, not .so files.
  7996. shrext_cmds=".dll"
  7997. # FIXME: Setting linknames here is a bad hack.
  7998. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7999. # The linker will automatically build a .lib file if we build a DLL.
  8000. old_archive_from_new_cmds='true'
  8001. # FIXME: Should let the user specify the lib program.
  8002. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8003. enable_shared_with_static_runtimes=yes
  8004. ;;
  8005. esac
  8006. ;;
  8007. darwin* | rhapsody*)
  8008. archive_cmds_need_lc=no
  8009. hardcode_direct=no
  8010. hardcode_automatic=yes
  8011. hardcode_shlibpath_var=unsupported
  8012. if test "$lt_cv_ld_force_load" = "yes"; then
  8013. 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\"`'
  8014. else
  8015. whole_archive_flag_spec=''
  8016. fi
  8017. link_all_deplibs=yes
  8018. allow_undefined_flag="$_lt_dar_allow_undefined"
  8019. case $cc_basename in
  8020. ifort*) _lt_dar_can_shared=yes ;;
  8021. *) _lt_dar_can_shared=$GCC ;;
  8022. esac
  8023. if test "$_lt_dar_can_shared" = "yes"; then
  8024. output_verbose_link_cmd=func_echo_all
  8025. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8026. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8027. 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}"
  8028. 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}"
  8029. else
  8030. ld_shlibs=no
  8031. fi
  8032. ;;
  8033. dgux*)
  8034. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8035. hardcode_libdir_flag_spec='-L$libdir'
  8036. hardcode_shlibpath_var=no
  8037. ;;
  8038. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8039. # support. Future versions do this automatically, but an explicit c++rt0.o
  8040. # does not break anything, and helps significantly (at the cost of a little
  8041. # extra space).
  8042. freebsd2.2*)
  8043. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8044. hardcode_libdir_flag_spec='-R$libdir'
  8045. hardcode_direct=yes
  8046. hardcode_shlibpath_var=no
  8047. ;;
  8048. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8049. freebsd2.*)
  8050. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8051. hardcode_direct=yes
  8052. hardcode_minus_L=yes
  8053. hardcode_shlibpath_var=no
  8054. ;;
  8055. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8056. freebsd* | dragonfly*)
  8057. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8058. hardcode_libdir_flag_spec='-R$libdir'
  8059. hardcode_direct=yes
  8060. hardcode_shlibpath_var=no
  8061. ;;
  8062. hpux9*)
  8063. if test "$GCC" = yes; then
  8064. 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'
  8065. else
  8066. 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'
  8067. fi
  8068. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8069. hardcode_libdir_separator=:
  8070. hardcode_direct=yes
  8071. # hardcode_minus_L: Not really in the search PATH,
  8072. # but as the default location of the library.
  8073. hardcode_minus_L=yes
  8074. export_dynamic_flag_spec='${wl}-E'
  8075. ;;
  8076. hpux10*)
  8077. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8078. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8079. else
  8080. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8081. fi
  8082. if test "$with_gnu_ld" = no; then
  8083. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8084. hardcode_libdir_separator=:
  8085. hardcode_direct=yes
  8086. hardcode_direct_absolute=yes
  8087. export_dynamic_flag_spec='${wl}-E'
  8088. # hardcode_minus_L: Not really in the search PATH,
  8089. # but as the default location of the library.
  8090. hardcode_minus_L=yes
  8091. fi
  8092. ;;
  8093. hpux11*)
  8094. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8095. case $host_cpu in
  8096. hppa*64*)
  8097. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8098. ;;
  8099. ia64*)
  8100. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8101. ;;
  8102. *)
  8103. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8104. ;;
  8105. esac
  8106. else
  8107. case $host_cpu in
  8108. hppa*64*)
  8109. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8110. ;;
  8111. ia64*)
  8112. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8113. ;;
  8114. *)
  8115. # Older versions of the 11.00 compiler do not understand -b yet
  8116. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8118. $as_echo_n "checking if $CC understands -b... " >&6; }
  8119. if ${lt_cv_prog_compiler__b+:} false; then :
  8120. $as_echo_n "(cached) " >&6
  8121. else
  8122. lt_cv_prog_compiler__b=no
  8123. save_LDFLAGS="$LDFLAGS"
  8124. LDFLAGS="$LDFLAGS -b"
  8125. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8126. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8127. # The linker can only warn and ignore the option if not recognized
  8128. # So say no if there are warnings
  8129. if test -s conftest.err; then
  8130. # Append any errors to the config.log.
  8131. cat conftest.err 1>&5
  8132. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8133. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8134. if diff conftest.exp conftest.er2 >/dev/null; then
  8135. lt_cv_prog_compiler__b=yes
  8136. fi
  8137. else
  8138. lt_cv_prog_compiler__b=yes
  8139. fi
  8140. fi
  8141. $RM -r conftest*
  8142. LDFLAGS="$save_LDFLAGS"
  8143. fi
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8145. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8146. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8147. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8148. else
  8149. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8150. fi
  8151. ;;
  8152. esac
  8153. fi
  8154. if test "$with_gnu_ld" = no; then
  8155. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8156. hardcode_libdir_separator=:
  8157. case $host_cpu in
  8158. hppa*64*|ia64*)
  8159. hardcode_direct=no
  8160. hardcode_shlibpath_var=no
  8161. ;;
  8162. *)
  8163. hardcode_direct=yes
  8164. hardcode_direct_absolute=yes
  8165. export_dynamic_flag_spec='${wl}-E'
  8166. # hardcode_minus_L: Not really in the search PATH,
  8167. # but as the default location of the library.
  8168. hardcode_minus_L=yes
  8169. ;;
  8170. esac
  8171. fi
  8172. ;;
  8173. irix5* | irix6* | nonstopux*)
  8174. if test "$GCC" = yes; then
  8175. 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'
  8176. # Try to use the -exported_symbol ld option, if it does not
  8177. # work, assume that -exports_file does not work either and
  8178. # implicitly export all symbols.
  8179. # This should be the same for all languages, so no per-tag cache variable.
  8180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8181. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8182. if ${lt_cv_irix_exported_symbol+:} false; then :
  8183. $as_echo_n "(cached) " >&6
  8184. else
  8185. save_LDFLAGS="$LDFLAGS"
  8186. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8188. /* end confdefs.h. */
  8189. int foo (void) { return 0; }
  8190. _ACEOF
  8191. if ac_fn_c_try_link "$LINENO"; then :
  8192. lt_cv_irix_exported_symbol=yes
  8193. else
  8194. lt_cv_irix_exported_symbol=no
  8195. fi
  8196. rm -f core conftest.err conftest.$ac_objext \
  8197. conftest$ac_exeext conftest.$ac_ext
  8198. LDFLAGS="$save_LDFLAGS"
  8199. fi
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8201. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8202. if test "$lt_cv_irix_exported_symbol" = yes; then
  8203. 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'
  8204. fi
  8205. else
  8206. 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'
  8207. 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'
  8208. fi
  8209. archive_cmds_need_lc='no'
  8210. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8211. hardcode_libdir_separator=:
  8212. inherit_rpath=yes
  8213. link_all_deplibs=yes
  8214. ;;
  8215. netbsd*)
  8216. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8217. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8218. else
  8219. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8220. fi
  8221. hardcode_libdir_flag_spec='-R$libdir'
  8222. hardcode_direct=yes
  8223. hardcode_shlibpath_var=no
  8224. ;;
  8225. newsos6)
  8226. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8227. hardcode_direct=yes
  8228. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8229. hardcode_libdir_separator=:
  8230. hardcode_shlibpath_var=no
  8231. ;;
  8232. *nto* | *qnx*)
  8233. ;;
  8234. openbsd*)
  8235. if test -f /usr/libexec/ld.so; then
  8236. hardcode_direct=yes
  8237. hardcode_shlibpath_var=no
  8238. hardcode_direct_absolute=yes
  8239. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8240. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8241. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8242. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8243. export_dynamic_flag_spec='${wl}-E'
  8244. else
  8245. case $host_os in
  8246. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8247. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8248. hardcode_libdir_flag_spec='-R$libdir'
  8249. ;;
  8250. *)
  8251. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8252. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8253. ;;
  8254. esac
  8255. fi
  8256. else
  8257. ld_shlibs=no
  8258. fi
  8259. ;;
  8260. os2*)
  8261. hardcode_libdir_flag_spec='-L$libdir'
  8262. hardcode_minus_L=yes
  8263. allow_undefined_flag=unsupported
  8264. 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'
  8265. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8266. ;;
  8267. osf3*)
  8268. if test "$GCC" = yes; then
  8269. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8270. 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'
  8271. else
  8272. allow_undefined_flag=' -expect_unresolved \*'
  8273. 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'
  8274. fi
  8275. archive_cmds_need_lc='no'
  8276. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8277. hardcode_libdir_separator=:
  8278. ;;
  8279. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8280. if test "$GCC" = yes; then
  8281. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8282. 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'
  8283. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8284. else
  8285. allow_undefined_flag=' -expect_unresolved \*'
  8286. 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'
  8287. 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~
  8288. $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'
  8289. # Both c and cxx compiler support -rpath directly
  8290. hardcode_libdir_flag_spec='-rpath $libdir'
  8291. fi
  8292. archive_cmds_need_lc='no'
  8293. hardcode_libdir_separator=:
  8294. ;;
  8295. solaris*)
  8296. no_undefined_flag=' -z defs'
  8297. if test "$GCC" = yes; then
  8298. wlarc='${wl}'
  8299. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8300. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8301. $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'
  8302. else
  8303. case `$CC -V 2>&1` in
  8304. *"Compilers 5.0"*)
  8305. wlarc=''
  8306. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8307. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8308. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8309. ;;
  8310. *)
  8311. wlarc='${wl}'
  8312. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8313. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8314. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8315. ;;
  8316. esac
  8317. fi
  8318. hardcode_libdir_flag_spec='-R$libdir'
  8319. hardcode_shlibpath_var=no
  8320. case $host_os in
  8321. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8322. *)
  8323. # The compiler driver will combine and reorder linker options,
  8324. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8325. # but is careful enough not to reorder.
  8326. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8327. if test "$GCC" = yes; then
  8328. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8329. else
  8330. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8331. fi
  8332. ;;
  8333. esac
  8334. link_all_deplibs=yes
  8335. ;;
  8336. sunos4*)
  8337. if test "x$host_vendor" = xsequent; then
  8338. # Use $CC to link under sequent, because it throws in some extra .o
  8339. # files that make .init and .fini sections work.
  8340. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8341. else
  8342. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8343. fi
  8344. hardcode_libdir_flag_spec='-L$libdir'
  8345. hardcode_direct=yes
  8346. hardcode_minus_L=yes
  8347. hardcode_shlibpath_var=no
  8348. ;;
  8349. sysv4)
  8350. case $host_vendor in
  8351. sni)
  8352. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8353. hardcode_direct=yes # is this really true???
  8354. ;;
  8355. siemens)
  8356. ## LD is ld it makes a PLAMLIB
  8357. ## CC just makes a GrossModule.
  8358. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8359. reload_cmds='$CC -r -o $output$reload_objs'
  8360. hardcode_direct=no
  8361. ;;
  8362. motorola)
  8363. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8364. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8365. ;;
  8366. esac
  8367. runpath_var='LD_RUN_PATH'
  8368. hardcode_shlibpath_var=no
  8369. ;;
  8370. sysv4.3*)
  8371. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8372. hardcode_shlibpath_var=no
  8373. export_dynamic_flag_spec='-Bexport'
  8374. ;;
  8375. sysv4*MP*)
  8376. if test -d /usr/nec; then
  8377. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8378. hardcode_shlibpath_var=no
  8379. runpath_var=LD_RUN_PATH
  8380. hardcode_runpath_var=yes
  8381. ld_shlibs=yes
  8382. fi
  8383. ;;
  8384. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8385. no_undefined_flag='${wl}-z,text'
  8386. archive_cmds_need_lc=no
  8387. hardcode_shlibpath_var=no
  8388. runpath_var='LD_RUN_PATH'
  8389. if test "$GCC" = yes; then
  8390. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8391. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. else
  8393. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8394. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8395. fi
  8396. ;;
  8397. sysv5* | sco3.2v5* | sco5v6*)
  8398. # Note: We can NOT use -z defs as we might desire, because we do not
  8399. # link with -lc, and that would cause any symbols used from libc to
  8400. # always be unresolved, which means just about no library would
  8401. # ever link correctly. If we're not using GNU ld we use -z text
  8402. # though, which does catch some bad symbols but isn't as heavy-handed
  8403. # as -z defs.
  8404. no_undefined_flag='${wl}-z,text'
  8405. allow_undefined_flag='${wl}-z,nodefs'
  8406. archive_cmds_need_lc=no
  8407. hardcode_shlibpath_var=no
  8408. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8409. hardcode_libdir_separator=':'
  8410. link_all_deplibs=yes
  8411. export_dynamic_flag_spec='${wl}-Bexport'
  8412. runpath_var='LD_RUN_PATH'
  8413. if test "$GCC" = yes; then
  8414. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8415. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8416. else
  8417. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8418. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. fi
  8420. ;;
  8421. uts4*)
  8422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_libdir_flag_spec='-L$libdir'
  8424. hardcode_shlibpath_var=no
  8425. ;;
  8426. *)
  8427. ld_shlibs=no
  8428. ;;
  8429. esac
  8430. if test x$host_vendor = xsni; then
  8431. case $host in
  8432. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8433. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8434. ;;
  8435. esac
  8436. fi
  8437. fi
  8438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8439. $as_echo "$ld_shlibs" >&6; }
  8440. test "$ld_shlibs" = no && can_build_shared=no
  8441. with_gnu_ld=$with_gnu_ld
  8442. #
  8443. # Do we need to explicitly link libc?
  8444. #
  8445. case "x$archive_cmds_need_lc" in
  8446. x|xyes)
  8447. # Assume -lc should be added
  8448. archive_cmds_need_lc=yes
  8449. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8450. case $archive_cmds in
  8451. *'~'*)
  8452. # FIXME: we may have to deal with multi-command sequences.
  8453. ;;
  8454. '$CC '*)
  8455. # Test whether the compiler implicitly links with -lc since on some
  8456. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8457. # to ld, don't add -lc before -lgcc.
  8458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8459. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8460. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8461. $as_echo_n "(cached) " >&6
  8462. else
  8463. $RM conftest*
  8464. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8465. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8466. (eval $ac_compile) 2>&5
  8467. ac_status=$?
  8468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8469. test $ac_status = 0; } 2>conftest.err; then
  8470. soname=conftest
  8471. lib=conftest
  8472. libobjs=conftest.$ac_objext
  8473. deplibs=
  8474. wl=$lt_prog_compiler_wl
  8475. pic_flag=$lt_prog_compiler_pic
  8476. compiler_flags=-v
  8477. linker_flags=-v
  8478. verstring=
  8479. output_objdir=.
  8480. libname=conftest
  8481. lt_save_allow_undefined_flag=$allow_undefined_flag
  8482. allow_undefined_flag=
  8483. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8484. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8485. ac_status=$?
  8486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8487. test $ac_status = 0; }
  8488. then
  8489. lt_cv_archive_cmds_need_lc=no
  8490. else
  8491. lt_cv_archive_cmds_need_lc=yes
  8492. fi
  8493. allow_undefined_flag=$lt_save_allow_undefined_flag
  8494. else
  8495. cat conftest.err 1>&5
  8496. fi
  8497. $RM conftest*
  8498. fi
  8499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8500. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8501. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8502. ;;
  8503. esac
  8504. fi
  8505. ;;
  8506. esac
  8507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8508. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8509. if test "$GCC" = yes; then
  8510. case $host_os in
  8511. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8512. *) lt_awk_arg="/^libraries:/" ;;
  8513. esac
  8514. case $host_os in
  8515. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8516. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8517. esac
  8518. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8519. case $lt_search_path_spec in
  8520. *\;*)
  8521. # if the path contains ";" then we assume it to be the separator
  8522. # otherwise default to the standard path separator (i.e. ":") - it is
  8523. # assumed that no part of a normal pathname contains ";" but that should
  8524. # okay in the real world where ";" in dirpaths is itself problematic.
  8525. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8526. ;;
  8527. *)
  8528. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8529. ;;
  8530. esac
  8531. # Ok, now we have the path, separated by spaces, we can step through it
  8532. # and add multilib dir if necessary.
  8533. lt_tmp_lt_search_path_spec=
  8534. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8535. for lt_sys_path in $lt_search_path_spec; do
  8536. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8537. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8538. else
  8539. test -d "$lt_sys_path" && \
  8540. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8541. fi
  8542. done
  8543. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8544. BEGIN {RS=" "; FS="/|\n";} {
  8545. lt_foo="";
  8546. lt_count=0;
  8547. for (lt_i = NF; lt_i > 0; lt_i--) {
  8548. if ($lt_i != "" && $lt_i != ".") {
  8549. if ($lt_i == "..") {
  8550. lt_count++;
  8551. } else {
  8552. if (lt_count == 0) {
  8553. lt_foo="/" $lt_i lt_foo;
  8554. } else {
  8555. lt_count--;
  8556. }
  8557. }
  8558. }
  8559. }
  8560. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8561. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8562. }'`
  8563. # AWK program above erroneously prepends '/' to C:/dos/paths
  8564. # for these hosts.
  8565. case $host_os in
  8566. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8567. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8568. esac
  8569. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8570. else
  8571. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8572. fi
  8573. library_names_spec=
  8574. libname_spec='lib$name'
  8575. soname_spec=
  8576. shrext_cmds=".so"
  8577. postinstall_cmds=
  8578. postuninstall_cmds=
  8579. finish_cmds=
  8580. finish_eval=
  8581. shlibpath_var=
  8582. shlibpath_overrides_runpath=unknown
  8583. version_type=none
  8584. dynamic_linker="$host_os ld.so"
  8585. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8586. need_lib_prefix=unknown
  8587. hardcode_into_libs=no
  8588. # when you set need_version to no, make sure it does not cause -set_version
  8589. # flags to be left without arguments
  8590. need_version=unknown
  8591. case $host_os in
  8592. aix3*)
  8593. version_type=linux # correct to gnu/linux during the next big refactor
  8594. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8595. shlibpath_var=LIBPATH
  8596. # AIX 3 has no versioning support, so we append a major version to the name.
  8597. soname_spec='${libname}${release}${shared_ext}$major'
  8598. ;;
  8599. aix[4-9]*)
  8600. version_type=linux # correct to gnu/linux during the next big refactor
  8601. need_lib_prefix=no
  8602. need_version=no
  8603. hardcode_into_libs=yes
  8604. if test "$host_cpu" = ia64; then
  8605. # AIX 5 supports IA64
  8606. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8607. shlibpath_var=LD_LIBRARY_PATH
  8608. else
  8609. # With GCC up to 2.95.x, collect2 would create an import file
  8610. # for dependence libraries. The import file would start with
  8611. # the line `#! .'. This would cause the generated library to
  8612. # depend on `.', always an invalid library. This was fixed in
  8613. # development snapshots of GCC prior to 3.0.
  8614. case $host_os in
  8615. aix4 | aix4.[01] | aix4.[01].*)
  8616. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8617. echo ' yes '
  8618. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8619. :
  8620. else
  8621. can_build_shared=no
  8622. fi
  8623. ;;
  8624. esac
  8625. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8626. # soname into executable. Probably we can add versioning support to
  8627. # collect2, so additional links can be useful in future.
  8628. if test "$aix_use_runtimelinking" = yes; then
  8629. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8630. # instead of lib<name>.a to let people know that these are not
  8631. # typical AIX shared libraries.
  8632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8633. else
  8634. # We preserve .a as extension for shared libraries through AIX4.2
  8635. # and later when we are not doing run time linking.
  8636. library_names_spec='${libname}${release}.a $libname.a'
  8637. soname_spec='${libname}${release}${shared_ext}$major'
  8638. fi
  8639. shlibpath_var=LIBPATH
  8640. fi
  8641. ;;
  8642. amigaos*)
  8643. case $host_cpu in
  8644. powerpc)
  8645. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8646. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8648. ;;
  8649. m68k)
  8650. library_names_spec='$libname.ixlibrary $libname.a'
  8651. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8652. 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'
  8653. ;;
  8654. esac
  8655. ;;
  8656. beos*)
  8657. library_names_spec='${libname}${shared_ext}'
  8658. dynamic_linker="$host_os ld.so"
  8659. shlibpath_var=LIBRARY_PATH
  8660. ;;
  8661. bsdi[45]*)
  8662. version_type=linux # correct to gnu/linux during the next big refactor
  8663. need_version=no
  8664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8665. soname_spec='${libname}${release}${shared_ext}$major'
  8666. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8667. shlibpath_var=LD_LIBRARY_PATH
  8668. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8669. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8670. # the default ld.so.conf also contains /usr/contrib/lib and
  8671. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8672. # libtool to hard-code these into programs
  8673. ;;
  8674. cygwin* | mingw* | pw32* | cegcc*)
  8675. version_type=windows
  8676. shrext_cmds=".dll"
  8677. need_version=no
  8678. need_lib_prefix=no
  8679. case $GCC,$cc_basename in
  8680. yes,*)
  8681. # gcc
  8682. library_names_spec='$libname.dll.a'
  8683. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8684. postinstall_cmds='base_file=`basename \${file}`~
  8685. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8686. dldir=$destdir/`dirname \$dlpath`~
  8687. test -d \$dldir || mkdir -p \$dldir~
  8688. $install_prog $dir/$dlname \$dldir/$dlname~
  8689. chmod a+x \$dldir/$dlname~
  8690. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8691. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8692. fi'
  8693. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8694. dlpath=$dir/\$dldll~
  8695. $RM \$dlpath'
  8696. shlibpath_overrides_runpath=yes
  8697. case $host_os in
  8698. cygwin*)
  8699. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8700. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8701. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8702. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8703. ;;
  8704. mingw* | cegcc*)
  8705. # MinGW DLLs use traditional 'lib' prefix
  8706. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8707. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8708. ;;
  8709. pw32*)
  8710. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8711. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8712. ;;
  8713. esac
  8714. dynamic_linker='Win32 ld.exe'
  8715. ;;
  8716. *,cl*)
  8717. # Native MSVC
  8718. libname_spec='$name'
  8719. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8720. library_names_spec='${libname}.dll.lib'
  8721. case $build_os in
  8722. mingw*)
  8723. sys_lib_search_path_spec=
  8724. lt_save_ifs=$IFS
  8725. IFS=';'
  8726. for lt_path in $LIB
  8727. do
  8728. IFS=$lt_save_ifs
  8729. # Let DOS variable expansion print the short 8.3 style file name.
  8730. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8731. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8732. done
  8733. IFS=$lt_save_ifs
  8734. # Convert to MSYS style.
  8735. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8736. ;;
  8737. cygwin*)
  8738. # Convert to unix form, then to dos form, then back to unix form
  8739. # but this time dos style (no spaces!) so that the unix form looks
  8740. # like /cygdrive/c/PROGRA~1:/cygdr...
  8741. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8742. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8743. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8744. ;;
  8745. *)
  8746. sys_lib_search_path_spec="$LIB"
  8747. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8748. # It is most probably a Windows format PATH.
  8749. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8750. else
  8751. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8752. fi
  8753. # FIXME: find the short name or the path components, as spaces are
  8754. # common. (e.g. "Program Files" -> "PROGRA~1")
  8755. ;;
  8756. esac
  8757. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8758. postinstall_cmds='base_file=`basename \${file}`~
  8759. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8760. dldir=$destdir/`dirname \$dlpath`~
  8761. test -d \$dldir || mkdir -p \$dldir~
  8762. $install_prog $dir/$dlname \$dldir/$dlname'
  8763. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8764. dlpath=$dir/\$dldll~
  8765. $RM \$dlpath'
  8766. shlibpath_overrides_runpath=yes
  8767. dynamic_linker='Win32 link.exe'
  8768. ;;
  8769. *)
  8770. # Assume MSVC wrapper
  8771. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8772. dynamic_linker='Win32 ld.exe'
  8773. ;;
  8774. esac
  8775. # FIXME: first we should search . and the directory the executable is in
  8776. shlibpath_var=PATH
  8777. ;;
  8778. darwin* | rhapsody*)
  8779. dynamic_linker="$host_os dyld"
  8780. version_type=darwin
  8781. need_lib_prefix=no
  8782. need_version=no
  8783. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8784. soname_spec='${libname}${release}${major}$shared_ext'
  8785. shlibpath_overrides_runpath=yes
  8786. shlibpath_var=DYLD_LIBRARY_PATH
  8787. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8788. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8789. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8790. ;;
  8791. dgux*)
  8792. version_type=linux # correct to gnu/linux during the next big refactor
  8793. need_lib_prefix=no
  8794. need_version=no
  8795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8796. soname_spec='${libname}${release}${shared_ext}$major'
  8797. shlibpath_var=LD_LIBRARY_PATH
  8798. ;;
  8799. freebsd* | dragonfly*)
  8800. # DragonFly does not have aout. When/if they implement a new
  8801. # versioning mechanism, adjust this.
  8802. if test -x /usr/bin/objformat; then
  8803. objformat=`/usr/bin/objformat`
  8804. else
  8805. case $host_os in
  8806. freebsd[23].*) objformat=aout ;;
  8807. *) objformat=elf ;;
  8808. esac
  8809. fi
  8810. version_type=freebsd-$objformat
  8811. case $version_type in
  8812. freebsd-elf*)
  8813. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8814. need_version=no
  8815. need_lib_prefix=no
  8816. ;;
  8817. freebsd-*)
  8818. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8819. need_version=yes
  8820. ;;
  8821. esac
  8822. shlibpath_var=LD_LIBRARY_PATH
  8823. case $host_os in
  8824. freebsd2.*)
  8825. shlibpath_overrides_runpath=yes
  8826. ;;
  8827. freebsd3.[01]* | freebsdelf3.[01]*)
  8828. shlibpath_overrides_runpath=yes
  8829. hardcode_into_libs=yes
  8830. ;;
  8831. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8832. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8833. shlibpath_overrides_runpath=no
  8834. hardcode_into_libs=yes
  8835. ;;
  8836. *) # from 4.6 on, and DragonFly
  8837. shlibpath_overrides_runpath=yes
  8838. hardcode_into_libs=yes
  8839. ;;
  8840. esac
  8841. ;;
  8842. gnu*)
  8843. version_type=linux # correct to gnu/linux during the next big refactor
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8847. soname_spec='${libname}${release}${shared_ext}$major'
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. shlibpath_overrides_runpath=no
  8850. hardcode_into_libs=yes
  8851. ;;
  8852. haiku*)
  8853. version_type=linux # correct to gnu/linux during the next big refactor
  8854. need_lib_prefix=no
  8855. need_version=no
  8856. dynamic_linker="$host_os runtime_loader"
  8857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8858. soname_spec='${libname}${release}${shared_ext}$major'
  8859. shlibpath_var=LIBRARY_PATH
  8860. shlibpath_overrides_runpath=yes
  8861. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8862. hardcode_into_libs=yes
  8863. ;;
  8864. hpux9* | hpux10* | hpux11*)
  8865. # Give a soname corresponding to the major version so that dld.sl refuses to
  8866. # link against other versions.
  8867. version_type=sunos
  8868. need_lib_prefix=no
  8869. need_version=no
  8870. case $host_cpu in
  8871. ia64*)
  8872. shrext_cmds='.so'
  8873. hardcode_into_libs=yes
  8874. dynamic_linker="$host_os dld.so"
  8875. shlibpath_var=LD_LIBRARY_PATH
  8876. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8878. soname_spec='${libname}${release}${shared_ext}$major'
  8879. if test "X$HPUX_IA64_MODE" = X32; then
  8880. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8881. else
  8882. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8883. fi
  8884. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8885. ;;
  8886. hppa*64*)
  8887. shrext_cmds='.sl'
  8888. hardcode_into_libs=yes
  8889. dynamic_linker="$host_os dld.sl"
  8890. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8891. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8895. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8896. ;;
  8897. *)
  8898. shrext_cmds='.sl'
  8899. dynamic_linker="$host_os dld.sl"
  8900. shlibpath_var=SHLIB_PATH
  8901. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. ;;
  8905. esac
  8906. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8907. postinstall_cmds='chmod 555 $lib'
  8908. # or fails outright, so override atomically:
  8909. install_override_mode=555
  8910. ;;
  8911. interix[3-9]*)
  8912. version_type=linux # correct to gnu/linux during the next big refactor
  8913. need_lib_prefix=no
  8914. need_version=no
  8915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8916. soname_spec='${libname}${release}${shared_ext}$major'
  8917. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8918. shlibpath_var=LD_LIBRARY_PATH
  8919. shlibpath_overrides_runpath=no
  8920. hardcode_into_libs=yes
  8921. ;;
  8922. irix5* | irix6* | nonstopux*)
  8923. case $host_os in
  8924. nonstopux*) version_type=nonstopux ;;
  8925. *)
  8926. if test "$lt_cv_prog_gnu_ld" = yes; then
  8927. version_type=linux # correct to gnu/linux during the next big refactor
  8928. else
  8929. version_type=irix
  8930. fi ;;
  8931. esac
  8932. need_lib_prefix=no
  8933. need_version=no
  8934. soname_spec='${libname}${release}${shared_ext}$major'
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8936. case $host_os in
  8937. irix5* | nonstopux*)
  8938. libsuff= shlibsuff=
  8939. ;;
  8940. *)
  8941. case $LD in # libtool.m4 will add one of these switches to LD
  8942. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8943. libsuff= shlibsuff= libmagic=32-bit;;
  8944. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8945. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8946. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8947. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8948. *) libsuff= shlibsuff= libmagic=never-match;;
  8949. esac
  8950. ;;
  8951. esac
  8952. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8953. shlibpath_overrides_runpath=no
  8954. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8955. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8956. hardcode_into_libs=yes
  8957. ;;
  8958. # No shared lib support for Linux oldld, aout, or coff.
  8959. linux*oldld* | linux*aout* | linux*coff*)
  8960. dynamic_linker=no
  8961. ;;
  8962. # This must be glibc/ELF.
  8963. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8964. version_type=linux # correct to gnu/linux during the next big refactor
  8965. need_lib_prefix=no
  8966. need_version=no
  8967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8968. soname_spec='${libname}${release}${shared_ext}$major'
  8969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8970. shlibpath_var=LD_LIBRARY_PATH
  8971. shlibpath_overrides_runpath=no
  8972. # Some binutils ld are patched to set DT_RUNPATH
  8973. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8974. $as_echo_n "(cached) " >&6
  8975. else
  8976. lt_cv_shlibpath_overrides_runpath=no
  8977. save_LDFLAGS=$LDFLAGS
  8978. save_libdir=$libdir
  8979. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8980. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8982. /* end confdefs.h. */
  8983. int
  8984. main ()
  8985. {
  8986. ;
  8987. return 0;
  8988. }
  8989. _ACEOF
  8990. if ac_fn_c_try_link "$LINENO"; then :
  8991. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8992. lt_cv_shlibpath_overrides_runpath=yes
  8993. fi
  8994. fi
  8995. rm -f core conftest.err conftest.$ac_objext \
  8996. conftest$ac_exeext conftest.$ac_ext
  8997. LDFLAGS=$save_LDFLAGS
  8998. libdir=$save_libdir
  8999. fi
  9000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9001. # This implies no fast_install, which is unacceptable.
  9002. # Some rework will be needed to allow for fast_install
  9003. # before this can be enabled.
  9004. hardcode_into_libs=yes
  9005. # Append ld.so.conf contents to the search path
  9006. if test -f /etc/ld.so.conf; then
  9007. 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' ' '`
  9008. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9009. fi
  9010. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9011. # powerpc, because MkLinux only supported shared libraries with the
  9012. # GNU dynamic linker. Since this was broken with cross compilers,
  9013. # most powerpc-linux boxes support dynamic linking these days and
  9014. # people can always --disable-shared, the test was removed, and we
  9015. # assume the GNU/Linux dynamic linker is in use.
  9016. dynamic_linker='GNU/Linux ld.so'
  9017. ;;
  9018. netbsd*)
  9019. version_type=sunos
  9020. need_lib_prefix=no
  9021. need_version=no
  9022. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9024. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9025. dynamic_linker='NetBSD (a.out) ld.so'
  9026. else
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. dynamic_linker='NetBSD ld.elf_so'
  9030. fi
  9031. shlibpath_var=LD_LIBRARY_PATH
  9032. shlibpath_overrides_runpath=yes
  9033. hardcode_into_libs=yes
  9034. ;;
  9035. newsos6)
  9036. version_type=linux # correct to gnu/linux during the next big refactor
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9038. shlibpath_var=LD_LIBRARY_PATH
  9039. shlibpath_overrides_runpath=yes
  9040. ;;
  9041. *nto* | *qnx*)
  9042. version_type=qnx
  9043. need_lib_prefix=no
  9044. need_version=no
  9045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9046. soname_spec='${libname}${release}${shared_ext}$major'
  9047. shlibpath_var=LD_LIBRARY_PATH
  9048. shlibpath_overrides_runpath=no
  9049. hardcode_into_libs=yes
  9050. dynamic_linker='ldqnx.so'
  9051. ;;
  9052. openbsd*)
  9053. version_type=sunos
  9054. sys_lib_dlsearch_path_spec="/usr/lib"
  9055. need_lib_prefix=no
  9056. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9057. case $host_os in
  9058. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9059. *) need_version=no ;;
  9060. esac
  9061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9062. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9063. shlibpath_var=LD_LIBRARY_PATH
  9064. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9065. case $host_os in
  9066. openbsd2.[89] | openbsd2.[89].*)
  9067. shlibpath_overrides_runpath=no
  9068. ;;
  9069. *)
  9070. shlibpath_overrides_runpath=yes
  9071. ;;
  9072. esac
  9073. else
  9074. shlibpath_overrides_runpath=yes
  9075. fi
  9076. ;;
  9077. os2*)
  9078. libname_spec='$name'
  9079. shrext_cmds=".dll"
  9080. need_lib_prefix=no
  9081. library_names_spec='$libname${shared_ext} $libname.a'
  9082. dynamic_linker='OS/2 ld.exe'
  9083. shlibpath_var=LIBPATH
  9084. ;;
  9085. osf3* | osf4* | osf5*)
  9086. version_type=osf
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. soname_spec='${libname}${release}${shared_ext}$major'
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9091. shlibpath_var=LD_LIBRARY_PATH
  9092. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9093. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9094. ;;
  9095. rdos*)
  9096. dynamic_linker=no
  9097. ;;
  9098. solaris*)
  9099. version_type=linux # correct to gnu/linux during the next big refactor
  9100. need_lib_prefix=no
  9101. need_version=no
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9103. soname_spec='${libname}${release}${shared_ext}$major'
  9104. shlibpath_var=LD_LIBRARY_PATH
  9105. shlibpath_overrides_runpath=yes
  9106. hardcode_into_libs=yes
  9107. # ldd complains unless libraries are executable
  9108. postinstall_cmds='chmod +x $lib'
  9109. ;;
  9110. sunos4*)
  9111. version_type=sunos
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9113. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes
  9116. if test "$with_gnu_ld" = yes; then
  9117. need_lib_prefix=no
  9118. fi
  9119. need_version=yes
  9120. ;;
  9121. sysv4 | sysv4.3*)
  9122. version_type=linux # correct to gnu/linux during the next big refactor
  9123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9124. soname_spec='${libname}${release}${shared_ext}$major'
  9125. shlibpath_var=LD_LIBRARY_PATH
  9126. case $host_vendor in
  9127. sni)
  9128. shlibpath_overrides_runpath=no
  9129. need_lib_prefix=no
  9130. runpath_var=LD_RUN_PATH
  9131. ;;
  9132. siemens)
  9133. need_lib_prefix=no
  9134. ;;
  9135. motorola)
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. shlibpath_overrides_runpath=no
  9139. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9140. ;;
  9141. esac
  9142. ;;
  9143. sysv4*MP*)
  9144. if test -d /usr/nec ;then
  9145. version_type=linux # correct to gnu/linux during the next big refactor
  9146. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9147. soname_spec='$libname${shared_ext}.$major'
  9148. shlibpath_var=LD_LIBRARY_PATH
  9149. fi
  9150. ;;
  9151. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9152. version_type=freebsd-elf
  9153. need_lib_prefix=no
  9154. need_version=no
  9155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9156. soname_spec='${libname}${release}${shared_ext}$major'
  9157. shlibpath_var=LD_LIBRARY_PATH
  9158. shlibpath_overrides_runpath=yes
  9159. hardcode_into_libs=yes
  9160. if test "$with_gnu_ld" = yes; then
  9161. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9162. else
  9163. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9164. case $host_os in
  9165. sco3.2v5*)
  9166. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9167. ;;
  9168. esac
  9169. fi
  9170. sys_lib_dlsearch_path_spec='/usr/lib'
  9171. ;;
  9172. tpf*)
  9173. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9174. version_type=linux # correct to gnu/linux during the next big refactor
  9175. need_lib_prefix=no
  9176. need_version=no
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9178. shlibpath_var=LD_LIBRARY_PATH
  9179. shlibpath_overrides_runpath=no
  9180. hardcode_into_libs=yes
  9181. ;;
  9182. uts4*)
  9183. version_type=linux # correct to gnu/linux during the next big refactor
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9185. soname_spec='${libname}${release}${shared_ext}$major'
  9186. shlibpath_var=LD_LIBRARY_PATH
  9187. ;;
  9188. *)
  9189. dynamic_linker=no
  9190. ;;
  9191. esac
  9192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9193. $as_echo "$dynamic_linker" >&6; }
  9194. test "$dynamic_linker" = no && can_build_shared=no
  9195. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9196. if test "$GCC" = yes; then
  9197. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9198. fi
  9199. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9200. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9201. fi
  9202. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9203. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9204. fi
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9206. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9207. hardcode_action=
  9208. if test -n "$hardcode_libdir_flag_spec" ||
  9209. test -n "$runpath_var" ||
  9210. test "X$hardcode_automatic" = "Xyes" ; then
  9211. # We can hardcode non-existent directories.
  9212. if test "$hardcode_direct" != no &&
  9213. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9214. # have to relink, otherwise we might link with an installed library
  9215. # when we should be linking with a yet-to-be-installed one
  9216. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9217. test "$hardcode_minus_L" != no; then
  9218. # Linking always hardcodes the temporary library directory.
  9219. hardcode_action=relink
  9220. else
  9221. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9222. hardcode_action=immediate
  9223. fi
  9224. else
  9225. # We cannot hardcode anything, or else we can only hardcode existing
  9226. # directories.
  9227. hardcode_action=unsupported
  9228. fi
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9230. $as_echo "$hardcode_action" >&6; }
  9231. if test "$hardcode_action" = relink ||
  9232. test "$inherit_rpath" = yes; then
  9233. # Fast installation is not supported
  9234. enable_fast_install=no
  9235. elif test "$shlibpath_overrides_runpath" = yes ||
  9236. test "$enable_shared" = no; then
  9237. # Fast installation is not necessary
  9238. enable_fast_install=needless
  9239. fi
  9240. if test "x$enable_dlopen" != xyes; then
  9241. enable_dlopen=unknown
  9242. enable_dlopen_self=unknown
  9243. enable_dlopen_self_static=unknown
  9244. else
  9245. lt_cv_dlopen=no
  9246. lt_cv_dlopen_libs=
  9247. case $host_os in
  9248. beos*)
  9249. lt_cv_dlopen="load_add_on"
  9250. lt_cv_dlopen_libs=
  9251. lt_cv_dlopen_self=yes
  9252. ;;
  9253. mingw* | pw32* | cegcc*)
  9254. lt_cv_dlopen="LoadLibrary"
  9255. lt_cv_dlopen_libs=
  9256. ;;
  9257. cygwin*)
  9258. lt_cv_dlopen="dlopen"
  9259. lt_cv_dlopen_libs=
  9260. ;;
  9261. darwin*)
  9262. # if libdl is installed we need to link against it
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9264. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9265. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9266. $as_echo_n "(cached) " >&6
  9267. else
  9268. ac_check_lib_save_LIBS=$LIBS
  9269. LIBS="-ldl $LIBS"
  9270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9271. /* end confdefs.h. */
  9272. /* Override any GCC internal prototype to avoid an error.
  9273. Use char because int might match the return type of a GCC
  9274. builtin and then its argument prototype would still apply. */
  9275. #ifdef __cplusplus
  9276. extern "C"
  9277. #endif
  9278. char dlopen ();
  9279. int
  9280. main ()
  9281. {
  9282. return dlopen ();
  9283. ;
  9284. return 0;
  9285. }
  9286. _ACEOF
  9287. if ac_fn_c_try_link "$LINENO"; then :
  9288. ac_cv_lib_dl_dlopen=yes
  9289. else
  9290. ac_cv_lib_dl_dlopen=no
  9291. fi
  9292. rm -f core conftest.err conftest.$ac_objext \
  9293. conftest$ac_exeext conftest.$ac_ext
  9294. LIBS=$ac_check_lib_save_LIBS
  9295. fi
  9296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9297. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9298. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9299. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9300. else
  9301. lt_cv_dlopen="dyld"
  9302. lt_cv_dlopen_libs=
  9303. lt_cv_dlopen_self=yes
  9304. fi
  9305. ;;
  9306. *)
  9307. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9308. if test "x$ac_cv_func_shl_load" = xyes; then :
  9309. lt_cv_dlopen="shl_load"
  9310. else
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9312. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9313. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9314. $as_echo_n "(cached) " >&6
  9315. else
  9316. ac_check_lib_save_LIBS=$LIBS
  9317. LIBS="-ldld $LIBS"
  9318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9319. /* end confdefs.h. */
  9320. /* Override any GCC internal prototype to avoid an error.
  9321. Use char because int might match the return type of a GCC
  9322. builtin and then its argument prototype would still apply. */
  9323. #ifdef __cplusplus
  9324. extern "C"
  9325. #endif
  9326. char shl_load ();
  9327. int
  9328. main ()
  9329. {
  9330. return shl_load ();
  9331. ;
  9332. return 0;
  9333. }
  9334. _ACEOF
  9335. if ac_fn_c_try_link "$LINENO"; then :
  9336. ac_cv_lib_dld_shl_load=yes
  9337. else
  9338. ac_cv_lib_dld_shl_load=no
  9339. fi
  9340. rm -f core conftest.err conftest.$ac_objext \
  9341. conftest$ac_exeext conftest.$ac_ext
  9342. LIBS=$ac_check_lib_save_LIBS
  9343. fi
  9344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9345. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9346. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9347. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9348. else
  9349. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9350. if test "x$ac_cv_func_dlopen" = xyes; then :
  9351. lt_cv_dlopen="dlopen"
  9352. else
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9354. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9355. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9356. $as_echo_n "(cached) " >&6
  9357. else
  9358. ac_check_lib_save_LIBS=$LIBS
  9359. LIBS="-ldl $LIBS"
  9360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9361. /* end confdefs.h. */
  9362. /* Override any GCC internal prototype to avoid an error.
  9363. Use char because int might match the return type of a GCC
  9364. builtin and then its argument prototype would still apply. */
  9365. #ifdef __cplusplus
  9366. extern "C"
  9367. #endif
  9368. char dlopen ();
  9369. int
  9370. main ()
  9371. {
  9372. return dlopen ();
  9373. ;
  9374. return 0;
  9375. }
  9376. _ACEOF
  9377. if ac_fn_c_try_link "$LINENO"; then :
  9378. ac_cv_lib_dl_dlopen=yes
  9379. else
  9380. ac_cv_lib_dl_dlopen=no
  9381. fi
  9382. rm -f core conftest.err conftest.$ac_objext \
  9383. conftest$ac_exeext conftest.$ac_ext
  9384. LIBS=$ac_check_lib_save_LIBS
  9385. fi
  9386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9387. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9388. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9389. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9390. else
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9392. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9393. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9394. $as_echo_n "(cached) " >&6
  9395. else
  9396. ac_check_lib_save_LIBS=$LIBS
  9397. LIBS="-lsvld $LIBS"
  9398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9399. /* end confdefs.h. */
  9400. /* Override any GCC internal prototype to avoid an error.
  9401. Use char because int might match the return type of a GCC
  9402. builtin and then its argument prototype would still apply. */
  9403. #ifdef __cplusplus
  9404. extern "C"
  9405. #endif
  9406. char dlopen ();
  9407. int
  9408. main ()
  9409. {
  9410. return dlopen ();
  9411. ;
  9412. return 0;
  9413. }
  9414. _ACEOF
  9415. if ac_fn_c_try_link "$LINENO"; then :
  9416. ac_cv_lib_svld_dlopen=yes
  9417. else
  9418. ac_cv_lib_svld_dlopen=no
  9419. fi
  9420. rm -f core conftest.err conftest.$ac_objext \
  9421. conftest$ac_exeext conftest.$ac_ext
  9422. LIBS=$ac_check_lib_save_LIBS
  9423. fi
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9425. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9426. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9427. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9428. else
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9430. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9431. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9432. $as_echo_n "(cached) " >&6
  9433. else
  9434. ac_check_lib_save_LIBS=$LIBS
  9435. LIBS="-ldld $LIBS"
  9436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9437. /* end confdefs.h. */
  9438. /* Override any GCC internal prototype to avoid an error.
  9439. Use char because int might match the return type of a GCC
  9440. builtin and then its argument prototype would still apply. */
  9441. #ifdef __cplusplus
  9442. extern "C"
  9443. #endif
  9444. char dld_link ();
  9445. int
  9446. main ()
  9447. {
  9448. return dld_link ();
  9449. ;
  9450. return 0;
  9451. }
  9452. _ACEOF
  9453. if ac_fn_c_try_link "$LINENO"; then :
  9454. ac_cv_lib_dld_dld_link=yes
  9455. else
  9456. ac_cv_lib_dld_dld_link=no
  9457. fi
  9458. rm -f core conftest.err conftest.$ac_objext \
  9459. conftest$ac_exeext conftest.$ac_ext
  9460. LIBS=$ac_check_lib_save_LIBS
  9461. fi
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9463. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9464. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9465. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9466. fi
  9467. fi
  9468. fi
  9469. fi
  9470. fi
  9471. fi
  9472. ;;
  9473. esac
  9474. if test "x$lt_cv_dlopen" != xno; then
  9475. enable_dlopen=yes
  9476. else
  9477. enable_dlopen=no
  9478. fi
  9479. case $lt_cv_dlopen in
  9480. dlopen)
  9481. save_CPPFLAGS="$CPPFLAGS"
  9482. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9483. save_LDFLAGS="$LDFLAGS"
  9484. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9485. save_LIBS="$LIBS"
  9486. LIBS="$lt_cv_dlopen_libs $LIBS"
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9488. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9489. if ${lt_cv_dlopen_self+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. if test "$cross_compiling" = yes; then :
  9493. lt_cv_dlopen_self=cross
  9494. else
  9495. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9496. lt_status=$lt_dlunknown
  9497. cat > conftest.$ac_ext <<_LT_EOF
  9498. #line $LINENO "configure"
  9499. #include "confdefs.h"
  9500. #if HAVE_DLFCN_H
  9501. #include <dlfcn.h>
  9502. #endif
  9503. #include <stdio.h>
  9504. #ifdef RTLD_GLOBAL
  9505. # define LT_DLGLOBAL RTLD_GLOBAL
  9506. #else
  9507. # ifdef DL_GLOBAL
  9508. # define LT_DLGLOBAL DL_GLOBAL
  9509. # else
  9510. # define LT_DLGLOBAL 0
  9511. # endif
  9512. #endif
  9513. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9514. find out it does not work in some platform. */
  9515. #ifndef LT_DLLAZY_OR_NOW
  9516. # ifdef RTLD_LAZY
  9517. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9518. # else
  9519. # ifdef DL_LAZY
  9520. # define LT_DLLAZY_OR_NOW DL_LAZY
  9521. # else
  9522. # ifdef RTLD_NOW
  9523. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9524. # else
  9525. # ifdef DL_NOW
  9526. # define LT_DLLAZY_OR_NOW DL_NOW
  9527. # else
  9528. # define LT_DLLAZY_OR_NOW 0
  9529. # endif
  9530. # endif
  9531. # endif
  9532. # endif
  9533. #endif
  9534. /* When -fvisbility=hidden is used, assume the code has been annotated
  9535. correspondingly for the symbols needed. */
  9536. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9537. int fnord () __attribute__((visibility("default")));
  9538. #endif
  9539. int fnord () { return 42; }
  9540. int main ()
  9541. {
  9542. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9543. int status = $lt_dlunknown;
  9544. if (self)
  9545. {
  9546. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9547. else
  9548. {
  9549. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9550. else puts (dlerror ());
  9551. }
  9552. /* dlclose (self); */
  9553. }
  9554. else
  9555. puts (dlerror ());
  9556. return status;
  9557. }
  9558. _LT_EOF
  9559. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9560. (eval $ac_link) 2>&5
  9561. ac_status=$?
  9562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9563. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9564. (./conftest; exit; ) >&5 2>/dev/null
  9565. lt_status=$?
  9566. case x$lt_status in
  9567. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9568. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9569. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9570. esac
  9571. else :
  9572. # compilation failed
  9573. lt_cv_dlopen_self=no
  9574. fi
  9575. fi
  9576. rm -fr conftest*
  9577. fi
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9579. $as_echo "$lt_cv_dlopen_self" >&6; }
  9580. if test "x$lt_cv_dlopen_self" = xyes; then
  9581. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9583. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9584. if ${lt_cv_dlopen_self_static+:} false; then :
  9585. $as_echo_n "(cached) " >&6
  9586. else
  9587. if test "$cross_compiling" = yes; then :
  9588. lt_cv_dlopen_self_static=cross
  9589. else
  9590. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9591. lt_status=$lt_dlunknown
  9592. cat > conftest.$ac_ext <<_LT_EOF
  9593. #line $LINENO "configure"
  9594. #include "confdefs.h"
  9595. #if HAVE_DLFCN_H
  9596. #include <dlfcn.h>
  9597. #endif
  9598. #include <stdio.h>
  9599. #ifdef RTLD_GLOBAL
  9600. # define LT_DLGLOBAL RTLD_GLOBAL
  9601. #else
  9602. # ifdef DL_GLOBAL
  9603. # define LT_DLGLOBAL DL_GLOBAL
  9604. # else
  9605. # define LT_DLGLOBAL 0
  9606. # endif
  9607. #endif
  9608. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9609. find out it does not work in some platform. */
  9610. #ifndef LT_DLLAZY_OR_NOW
  9611. # ifdef RTLD_LAZY
  9612. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9613. # else
  9614. # ifdef DL_LAZY
  9615. # define LT_DLLAZY_OR_NOW DL_LAZY
  9616. # else
  9617. # ifdef RTLD_NOW
  9618. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9619. # else
  9620. # ifdef DL_NOW
  9621. # define LT_DLLAZY_OR_NOW DL_NOW
  9622. # else
  9623. # define LT_DLLAZY_OR_NOW 0
  9624. # endif
  9625. # endif
  9626. # endif
  9627. # endif
  9628. #endif
  9629. /* When -fvisbility=hidden is used, assume the code has been annotated
  9630. correspondingly for the symbols needed. */
  9631. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9632. int fnord () __attribute__((visibility("default")));
  9633. #endif
  9634. int fnord () { return 42; }
  9635. int main ()
  9636. {
  9637. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9638. int status = $lt_dlunknown;
  9639. if (self)
  9640. {
  9641. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9642. else
  9643. {
  9644. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9645. else puts (dlerror ());
  9646. }
  9647. /* dlclose (self); */
  9648. }
  9649. else
  9650. puts (dlerror ());
  9651. return status;
  9652. }
  9653. _LT_EOF
  9654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9655. (eval $ac_link) 2>&5
  9656. ac_status=$?
  9657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9658. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9659. (./conftest; exit; ) >&5 2>/dev/null
  9660. lt_status=$?
  9661. case x$lt_status in
  9662. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9663. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9664. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9665. esac
  9666. else :
  9667. # compilation failed
  9668. lt_cv_dlopen_self_static=no
  9669. fi
  9670. fi
  9671. rm -fr conftest*
  9672. fi
  9673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9674. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9675. fi
  9676. CPPFLAGS="$save_CPPFLAGS"
  9677. LDFLAGS="$save_LDFLAGS"
  9678. LIBS="$save_LIBS"
  9679. ;;
  9680. esac
  9681. case $lt_cv_dlopen_self in
  9682. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9683. *) enable_dlopen_self=unknown ;;
  9684. esac
  9685. case $lt_cv_dlopen_self_static in
  9686. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9687. *) enable_dlopen_self_static=unknown ;;
  9688. esac
  9689. fi
  9690. striplib=
  9691. old_striplib=
  9692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9693. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9694. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9695. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9696. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9698. $as_echo "yes" >&6; }
  9699. else
  9700. # FIXME - insert some real tests, host_os isn't really good enough
  9701. case $host_os in
  9702. darwin*)
  9703. if test -n "$STRIP" ; then
  9704. striplib="$STRIP -x"
  9705. old_striplib="$STRIP -S"
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9707. $as_echo "yes" >&6; }
  9708. else
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9710. $as_echo "no" >&6; }
  9711. fi
  9712. ;;
  9713. *)
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9715. $as_echo "no" >&6; }
  9716. ;;
  9717. esac
  9718. fi
  9719. # Report which library types will actually be built
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9721. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9723. $as_echo "$can_build_shared" >&6; }
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9725. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9726. test "$can_build_shared" = "no" && enable_shared=no
  9727. # On AIX, shared libraries and static libraries use the same namespace, and
  9728. # are all built from PIC.
  9729. case $host_os in
  9730. aix3*)
  9731. test "$enable_shared" = yes && enable_static=no
  9732. if test -n "$RANLIB"; then
  9733. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9734. postinstall_cmds='$RANLIB $lib'
  9735. fi
  9736. ;;
  9737. aix[4-9]*)
  9738. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9739. test "$enable_shared" = yes && enable_static=no
  9740. fi
  9741. ;;
  9742. esac
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9744. $as_echo "$enable_shared" >&6; }
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9746. $as_echo_n "checking whether to build static libraries... " >&6; }
  9747. # Make sure either enable_shared or enable_static is yes.
  9748. test "$enable_shared" = yes || enable_static=yes
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9750. $as_echo "$enable_static" >&6; }
  9751. fi
  9752. ac_ext=c
  9753. ac_cpp='$CPP $CPPFLAGS'
  9754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9757. CC="$lt_save_CC"
  9758. ac_config_commands="$ac_config_commands libtool"
  9759. # Only expand once:
  9760. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9761. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9762. LT_REVISION=$SDL_INTERFACE_AGE
  9763. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9764. ac_ext=c
  9765. ac_cpp='$CPP $CPPFLAGS'
  9766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9769. if test -n "$ac_tool_prefix"; then
  9770. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9771. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9773. $as_echo_n "checking for $ac_word... " >&6; }
  9774. if ${ac_cv_prog_CC+:} false; then :
  9775. $as_echo_n "(cached) " >&6
  9776. else
  9777. if test -n "$CC"; then
  9778. ac_cv_prog_CC="$CC" # Let the user override the test.
  9779. else
  9780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9781. for as_dir in $PATH
  9782. do
  9783. IFS=$as_save_IFS
  9784. test -z "$as_dir" && as_dir=.
  9785. for ac_exec_ext in '' $ac_executable_extensions; do
  9786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9787. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9789. break 2
  9790. fi
  9791. done
  9792. done
  9793. IFS=$as_save_IFS
  9794. fi
  9795. fi
  9796. CC=$ac_cv_prog_CC
  9797. if test -n "$CC"; then
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9799. $as_echo "$CC" >&6; }
  9800. else
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9802. $as_echo "no" >&6; }
  9803. fi
  9804. fi
  9805. if test -z "$ac_cv_prog_CC"; then
  9806. ac_ct_CC=$CC
  9807. # Extract the first word of "gcc", so it can be a program name with args.
  9808. set dummy gcc; ac_word=$2
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9810. $as_echo_n "checking for $ac_word... " >&6; }
  9811. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9812. $as_echo_n "(cached) " >&6
  9813. else
  9814. if test -n "$ac_ct_CC"; then
  9815. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9816. else
  9817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9818. for as_dir in $PATH
  9819. do
  9820. IFS=$as_save_IFS
  9821. test -z "$as_dir" && as_dir=.
  9822. for ac_exec_ext in '' $ac_executable_extensions; do
  9823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9824. ac_cv_prog_ac_ct_CC="gcc"
  9825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9826. break 2
  9827. fi
  9828. done
  9829. done
  9830. IFS=$as_save_IFS
  9831. fi
  9832. fi
  9833. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9834. if test -n "$ac_ct_CC"; then
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9836. $as_echo "$ac_ct_CC" >&6; }
  9837. else
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9839. $as_echo "no" >&6; }
  9840. fi
  9841. if test "x$ac_ct_CC" = x; then
  9842. CC=""
  9843. else
  9844. case $cross_compiling:$ac_tool_warned in
  9845. yes:)
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9847. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9848. ac_tool_warned=yes ;;
  9849. esac
  9850. CC=$ac_ct_CC
  9851. fi
  9852. else
  9853. CC="$ac_cv_prog_CC"
  9854. fi
  9855. if test -z "$CC"; then
  9856. if test -n "$ac_tool_prefix"; then
  9857. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9858. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9860. $as_echo_n "checking for $ac_word... " >&6; }
  9861. if ${ac_cv_prog_CC+:} false; then :
  9862. $as_echo_n "(cached) " >&6
  9863. else
  9864. if test -n "$CC"; then
  9865. ac_cv_prog_CC="$CC" # Let the user override the test.
  9866. else
  9867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9868. for as_dir in $PATH
  9869. do
  9870. IFS=$as_save_IFS
  9871. test -z "$as_dir" && as_dir=.
  9872. for ac_exec_ext in '' $ac_executable_extensions; do
  9873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9874. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9876. break 2
  9877. fi
  9878. done
  9879. done
  9880. IFS=$as_save_IFS
  9881. fi
  9882. fi
  9883. CC=$ac_cv_prog_CC
  9884. if test -n "$CC"; then
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9886. $as_echo "$CC" >&6; }
  9887. else
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9889. $as_echo "no" >&6; }
  9890. fi
  9891. fi
  9892. fi
  9893. if test -z "$CC"; then
  9894. # Extract the first word of "cc", so it can be a program name with args.
  9895. set dummy cc; ac_word=$2
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9897. $as_echo_n "checking for $ac_word... " >&6; }
  9898. if ${ac_cv_prog_CC+:} false; then :
  9899. $as_echo_n "(cached) " >&6
  9900. else
  9901. if test -n "$CC"; then
  9902. ac_cv_prog_CC="$CC" # Let the user override the test.
  9903. else
  9904. ac_prog_rejected=no
  9905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9906. for as_dir in $PATH
  9907. do
  9908. IFS=$as_save_IFS
  9909. test -z "$as_dir" && as_dir=.
  9910. for ac_exec_ext in '' $ac_executable_extensions; do
  9911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9912. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9913. ac_prog_rejected=yes
  9914. continue
  9915. fi
  9916. ac_cv_prog_CC="cc"
  9917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9918. break 2
  9919. fi
  9920. done
  9921. done
  9922. IFS=$as_save_IFS
  9923. if test $ac_prog_rejected = yes; then
  9924. # We found a bogon in the path, so make sure we never use it.
  9925. set dummy $ac_cv_prog_CC
  9926. shift
  9927. if test $# != 0; then
  9928. # We chose a different compiler from the bogus one.
  9929. # However, it has the same basename, so the bogon will be chosen
  9930. # first if we set CC to just the basename; use the full file name.
  9931. shift
  9932. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9933. fi
  9934. fi
  9935. fi
  9936. fi
  9937. CC=$ac_cv_prog_CC
  9938. if test -n "$CC"; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9940. $as_echo "$CC" >&6; }
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9943. $as_echo "no" >&6; }
  9944. fi
  9945. fi
  9946. if test -z "$CC"; then
  9947. if test -n "$ac_tool_prefix"; then
  9948. for ac_prog in cl.exe
  9949. do
  9950. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9951. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9953. $as_echo_n "checking for $ac_word... " >&6; }
  9954. if ${ac_cv_prog_CC+:} false; then :
  9955. $as_echo_n "(cached) " >&6
  9956. else
  9957. if test -n "$CC"; then
  9958. ac_cv_prog_CC="$CC" # Let the user override the test.
  9959. else
  9960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9961. for as_dir in $PATH
  9962. do
  9963. IFS=$as_save_IFS
  9964. test -z "$as_dir" && as_dir=.
  9965. for ac_exec_ext in '' $ac_executable_extensions; do
  9966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9967. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9969. break 2
  9970. fi
  9971. done
  9972. done
  9973. IFS=$as_save_IFS
  9974. fi
  9975. fi
  9976. CC=$ac_cv_prog_CC
  9977. if test -n "$CC"; then
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9979. $as_echo "$CC" >&6; }
  9980. else
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9982. $as_echo "no" >&6; }
  9983. fi
  9984. test -n "$CC" && break
  9985. done
  9986. fi
  9987. if test -z "$CC"; then
  9988. ac_ct_CC=$CC
  9989. for ac_prog in cl.exe
  9990. do
  9991. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9992. set dummy $ac_prog; ac_word=$2
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9994. $as_echo_n "checking for $ac_word... " >&6; }
  9995. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9996. $as_echo_n "(cached) " >&6
  9997. else
  9998. if test -n "$ac_ct_CC"; then
  9999. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10000. else
  10001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10002. for as_dir in $PATH
  10003. do
  10004. IFS=$as_save_IFS
  10005. test -z "$as_dir" && as_dir=.
  10006. for ac_exec_ext in '' $ac_executable_extensions; do
  10007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10008. ac_cv_prog_ac_ct_CC="$ac_prog"
  10009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10010. break 2
  10011. fi
  10012. done
  10013. done
  10014. IFS=$as_save_IFS
  10015. fi
  10016. fi
  10017. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10018. if test -n "$ac_ct_CC"; then
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10020. $as_echo "$ac_ct_CC" >&6; }
  10021. else
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10023. $as_echo "no" >&6; }
  10024. fi
  10025. test -n "$ac_ct_CC" && break
  10026. done
  10027. if test "x$ac_ct_CC" = x; then
  10028. CC=""
  10029. else
  10030. case $cross_compiling:$ac_tool_warned in
  10031. yes:)
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10033. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10034. ac_tool_warned=yes ;;
  10035. esac
  10036. CC=$ac_ct_CC
  10037. fi
  10038. fi
  10039. fi
  10040. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10042. as_fn_error $? "no acceptable C compiler found in \$PATH
  10043. See \`config.log' for more details" "$LINENO" 5; }
  10044. # Provide some information about the compiler.
  10045. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10046. set X $ac_compile
  10047. ac_compiler=$2
  10048. for ac_option in --version -v -V -qversion; do
  10049. { { ac_try="$ac_compiler $ac_option >&5"
  10050. case "(($ac_try" in
  10051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10052. *) ac_try_echo=$ac_try;;
  10053. esac
  10054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10055. $as_echo "$ac_try_echo"; } >&5
  10056. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10057. ac_status=$?
  10058. if test -s conftest.err; then
  10059. sed '10a\
  10060. ... rest of stderr output deleted ...
  10061. 10q' conftest.err >conftest.er1
  10062. cat conftest.er1 >&5
  10063. fi
  10064. rm -f conftest.er1 conftest.err
  10065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10066. test $ac_status = 0; }
  10067. done
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10069. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10070. if ${ac_cv_c_compiler_gnu+:} false; then :
  10071. $as_echo_n "(cached) " >&6
  10072. else
  10073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10074. /* end confdefs.h. */
  10075. int
  10076. main ()
  10077. {
  10078. #ifndef __GNUC__
  10079. choke me
  10080. #endif
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_c_try_compile "$LINENO"; then :
  10086. ac_compiler_gnu=yes
  10087. else
  10088. ac_compiler_gnu=no
  10089. fi
  10090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10091. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10092. fi
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10094. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10095. if test $ac_compiler_gnu = yes; then
  10096. GCC=yes
  10097. else
  10098. GCC=
  10099. fi
  10100. ac_test_CFLAGS=${CFLAGS+set}
  10101. ac_save_CFLAGS=$CFLAGS
  10102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10103. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10104. if ${ac_cv_prog_cc_g+:} false; then :
  10105. $as_echo_n "(cached) " >&6
  10106. else
  10107. ac_save_c_werror_flag=$ac_c_werror_flag
  10108. ac_c_werror_flag=yes
  10109. ac_cv_prog_cc_g=no
  10110. CFLAGS="-g"
  10111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10112. /* end confdefs.h. */
  10113. int
  10114. main ()
  10115. {
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. if ac_fn_c_try_compile "$LINENO"; then :
  10121. ac_cv_prog_cc_g=yes
  10122. else
  10123. CFLAGS=""
  10124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10125. /* end confdefs.h. */
  10126. int
  10127. main ()
  10128. {
  10129. ;
  10130. return 0;
  10131. }
  10132. _ACEOF
  10133. if ac_fn_c_try_compile "$LINENO"; then :
  10134. else
  10135. ac_c_werror_flag=$ac_save_c_werror_flag
  10136. CFLAGS="-g"
  10137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10138. /* end confdefs.h. */
  10139. int
  10140. main ()
  10141. {
  10142. ;
  10143. return 0;
  10144. }
  10145. _ACEOF
  10146. if ac_fn_c_try_compile "$LINENO"; then :
  10147. ac_cv_prog_cc_g=yes
  10148. fi
  10149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10150. fi
  10151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10152. fi
  10153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10154. ac_c_werror_flag=$ac_save_c_werror_flag
  10155. fi
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10157. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10158. if test "$ac_test_CFLAGS" = set; then
  10159. CFLAGS=$ac_save_CFLAGS
  10160. elif test $ac_cv_prog_cc_g = yes; then
  10161. if test "$GCC" = yes; then
  10162. CFLAGS="-g -O2"
  10163. else
  10164. CFLAGS="-g"
  10165. fi
  10166. else
  10167. if test "$GCC" = yes; then
  10168. CFLAGS="-O2"
  10169. else
  10170. CFLAGS=
  10171. fi
  10172. fi
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10174. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10175. if ${ac_cv_prog_cc_c89+:} false; then :
  10176. $as_echo_n "(cached) " >&6
  10177. else
  10178. ac_cv_prog_cc_c89=no
  10179. ac_save_CC=$CC
  10180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10181. /* end confdefs.h. */
  10182. #include <stdarg.h>
  10183. #include <stdio.h>
  10184. struct stat;
  10185. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10186. struct buf { int x; };
  10187. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10188. static char *e (p, i)
  10189. char **p;
  10190. int i;
  10191. {
  10192. return p[i];
  10193. }
  10194. static char *f (char * (*g) (char **, int), char **p, ...)
  10195. {
  10196. char *s;
  10197. va_list v;
  10198. va_start (v,p);
  10199. s = g (p, va_arg (v,int));
  10200. va_end (v);
  10201. return s;
  10202. }
  10203. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10204. function prototypes and stuff, but not '\xHH' hex character constants.
  10205. These don't provoke an error unfortunately, instead are silently treated
  10206. as 'x'. The following induces an error, until -std is added to get
  10207. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10208. array size at least. It's necessary to write '\x00'==0 to get something
  10209. that's true only with -std. */
  10210. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10211. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10212. inside strings and character constants. */
  10213. #define FOO(x) 'x'
  10214. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10215. int test (int i, double x);
  10216. struct s1 {int (*f) (int a);};
  10217. struct s2 {int (*f) (double a);};
  10218. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10219. int argc;
  10220. char **argv;
  10221. int
  10222. main ()
  10223. {
  10224. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10225. ;
  10226. return 0;
  10227. }
  10228. _ACEOF
  10229. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10230. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10231. do
  10232. CC="$ac_save_CC $ac_arg"
  10233. if ac_fn_c_try_compile "$LINENO"; then :
  10234. ac_cv_prog_cc_c89=$ac_arg
  10235. fi
  10236. rm -f core conftest.err conftest.$ac_objext
  10237. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10238. done
  10239. rm -f conftest.$ac_ext
  10240. CC=$ac_save_CC
  10241. fi
  10242. # AC_CACHE_VAL
  10243. case "x$ac_cv_prog_cc_c89" in
  10244. x)
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10246. $as_echo "none needed" >&6; } ;;
  10247. xno)
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10249. $as_echo "unsupported" >&6; } ;;
  10250. *)
  10251. CC="$CC $ac_cv_prog_cc_c89"
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10253. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10254. esac
  10255. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10256. fi
  10257. ac_ext=c
  10258. ac_cpp='$CPP $CPPFLAGS'
  10259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10262. ac_ext=cpp
  10263. ac_cpp='$CXXCPP $CPPFLAGS'
  10264. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10265. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10266. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10267. if test -z "$CXX"; then
  10268. if test -n "$CCC"; then
  10269. CXX=$CCC
  10270. else
  10271. if test -n "$ac_tool_prefix"; then
  10272. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10273. do
  10274. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10275. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10277. $as_echo_n "checking for $ac_word... " >&6; }
  10278. if ${ac_cv_prog_CXX+:} false; then :
  10279. $as_echo_n "(cached) " >&6
  10280. else
  10281. if test -n "$CXX"; then
  10282. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10283. else
  10284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10285. for as_dir in $PATH
  10286. do
  10287. IFS=$as_save_IFS
  10288. test -z "$as_dir" && as_dir=.
  10289. for ac_exec_ext in '' $ac_executable_extensions; do
  10290. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10291. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10293. break 2
  10294. fi
  10295. done
  10296. done
  10297. IFS=$as_save_IFS
  10298. fi
  10299. fi
  10300. CXX=$ac_cv_prog_CXX
  10301. if test -n "$CXX"; then
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10303. $as_echo "$CXX" >&6; }
  10304. else
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10306. $as_echo "no" >&6; }
  10307. fi
  10308. test -n "$CXX" && break
  10309. done
  10310. fi
  10311. if test -z "$CXX"; then
  10312. ac_ct_CXX=$CXX
  10313. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10314. do
  10315. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10316. set dummy $ac_prog; ac_word=$2
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10318. $as_echo_n "checking for $ac_word... " >&6; }
  10319. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10320. $as_echo_n "(cached) " >&6
  10321. else
  10322. if test -n "$ac_ct_CXX"; then
  10323. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10324. else
  10325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10326. for as_dir in $PATH
  10327. do
  10328. IFS=$as_save_IFS
  10329. test -z "$as_dir" && as_dir=.
  10330. for ac_exec_ext in '' $ac_executable_extensions; do
  10331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10332. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10334. break 2
  10335. fi
  10336. done
  10337. done
  10338. IFS=$as_save_IFS
  10339. fi
  10340. fi
  10341. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10342. if test -n "$ac_ct_CXX"; then
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10344. $as_echo "$ac_ct_CXX" >&6; }
  10345. else
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10347. $as_echo "no" >&6; }
  10348. fi
  10349. test -n "$ac_ct_CXX" && break
  10350. done
  10351. if test "x$ac_ct_CXX" = x; then
  10352. CXX="g++"
  10353. else
  10354. case $cross_compiling:$ac_tool_warned in
  10355. yes:)
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10358. ac_tool_warned=yes ;;
  10359. esac
  10360. CXX=$ac_ct_CXX
  10361. fi
  10362. fi
  10363. fi
  10364. fi
  10365. # Provide some information about the compiler.
  10366. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10367. set X $ac_compile
  10368. ac_compiler=$2
  10369. for ac_option in --version -v -V -qversion; do
  10370. { { ac_try="$ac_compiler $ac_option >&5"
  10371. case "(($ac_try" in
  10372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10373. *) ac_try_echo=$ac_try;;
  10374. esac
  10375. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10376. $as_echo "$ac_try_echo"; } >&5
  10377. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10378. ac_status=$?
  10379. if test -s conftest.err; then
  10380. sed '10a\
  10381. ... rest of stderr output deleted ...
  10382. 10q' conftest.err >conftest.er1
  10383. cat conftest.er1 >&5
  10384. fi
  10385. rm -f conftest.er1 conftest.err
  10386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10387. test $ac_status = 0; }
  10388. done
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10390. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10391. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10392. $as_echo_n "(cached) " >&6
  10393. else
  10394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10395. /* end confdefs.h. */
  10396. int
  10397. main ()
  10398. {
  10399. #ifndef __GNUC__
  10400. choke me
  10401. #endif
  10402. ;
  10403. return 0;
  10404. }
  10405. _ACEOF
  10406. if ac_fn_cxx_try_compile "$LINENO"; then :
  10407. ac_compiler_gnu=yes
  10408. else
  10409. ac_compiler_gnu=no
  10410. fi
  10411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10412. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10413. fi
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10415. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10416. if test $ac_compiler_gnu = yes; then
  10417. GXX=yes
  10418. else
  10419. GXX=
  10420. fi
  10421. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10422. ac_save_CXXFLAGS=$CXXFLAGS
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10424. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10425. if ${ac_cv_prog_cxx_g+:} false; then :
  10426. $as_echo_n "(cached) " >&6
  10427. else
  10428. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10429. ac_cxx_werror_flag=yes
  10430. ac_cv_prog_cxx_g=no
  10431. CXXFLAGS="-g"
  10432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10433. /* end confdefs.h. */
  10434. int
  10435. main ()
  10436. {
  10437. ;
  10438. return 0;
  10439. }
  10440. _ACEOF
  10441. if ac_fn_cxx_try_compile "$LINENO"; then :
  10442. ac_cv_prog_cxx_g=yes
  10443. else
  10444. CXXFLAGS=""
  10445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10446. /* end confdefs.h. */
  10447. int
  10448. main ()
  10449. {
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. if ac_fn_cxx_try_compile "$LINENO"; then :
  10455. else
  10456. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10457. CXXFLAGS="-g"
  10458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10459. /* end confdefs.h. */
  10460. int
  10461. main ()
  10462. {
  10463. ;
  10464. return 0;
  10465. }
  10466. _ACEOF
  10467. if ac_fn_cxx_try_compile "$LINENO"; then :
  10468. ac_cv_prog_cxx_g=yes
  10469. fi
  10470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10473. fi
  10474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10475. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10476. fi
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10478. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10479. if test "$ac_test_CXXFLAGS" = set; then
  10480. CXXFLAGS=$ac_save_CXXFLAGS
  10481. elif test $ac_cv_prog_cxx_g = yes; then
  10482. if test "$GXX" = yes; then
  10483. CXXFLAGS="-g -O2"
  10484. else
  10485. CXXFLAGS="-g"
  10486. fi
  10487. else
  10488. if test "$GXX" = yes; then
  10489. CXXFLAGS="-O2"
  10490. else
  10491. CXXFLAGS=
  10492. fi
  10493. fi
  10494. ac_ext=c
  10495. ac_cpp='$CPP $CPPFLAGS'
  10496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10499. func_stripname_cnf ()
  10500. {
  10501. case ${2} in
  10502. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10503. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10504. esac
  10505. } # func_stripname_cnf
  10506. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10507. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10508. (test "X$CXX" != "Xg++"))) ; then
  10509. ac_ext=cpp
  10510. ac_cpp='$CXXCPP $CPPFLAGS'
  10511. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10512. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10513. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10515. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10516. if test -z "$CXXCPP"; then
  10517. if ${ac_cv_prog_CXXCPP+:} false; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. # Double quotes because CXXCPP needs to be expanded
  10521. for CXXCPP in "$CXX -E" "/lib/cpp"
  10522. do
  10523. ac_preproc_ok=false
  10524. for ac_cxx_preproc_warn_flag in '' yes
  10525. do
  10526. # Use a header file that comes with gcc, so configuring glibc
  10527. # with a fresh cross-compiler works.
  10528. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10529. # <limits.h> exists even on freestanding compilers.
  10530. # On the NeXT, cc -E runs the code through the compiler's parser,
  10531. # not just through cpp. "Syntax error" is here to catch this case.
  10532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10533. /* end confdefs.h. */
  10534. #ifdef __STDC__
  10535. # include <limits.h>
  10536. #else
  10537. # include <assert.h>
  10538. #endif
  10539. Syntax error
  10540. _ACEOF
  10541. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10542. else
  10543. # Broken: fails on valid input.
  10544. continue
  10545. fi
  10546. rm -f conftest.err conftest.i conftest.$ac_ext
  10547. # OK, works on sane cases. Now check whether nonexistent headers
  10548. # can be detected and how.
  10549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10550. /* end confdefs.h. */
  10551. #include <ac_nonexistent.h>
  10552. _ACEOF
  10553. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10554. # Broken: success on invalid input.
  10555. continue
  10556. else
  10557. # Passes both tests.
  10558. ac_preproc_ok=:
  10559. break
  10560. fi
  10561. rm -f conftest.err conftest.i conftest.$ac_ext
  10562. done
  10563. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10564. rm -f conftest.i conftest.err conftest.$ac_ext
  10565. if $ac_preproc_ok; then :
  10566. break
  10567. fi
  10568. done
  10569. ac_cv_prog_CXXCPP=$CXXCPP
  10570. fi
  10571. CXXCPP=$ac_cv_prog_CXXCPP
  10572. else
  10573. ac_cv_prog_CXXCPP=$CXXCPP
  10574. fi
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10576. $as_echo "$CXXCPP" >&6; }
  10577. ac_preproc_ok=false
  10578. for ac_cxx_preproc_warn_flag in '' yes
  10579. do
  10580. # Use a header file that comes with gcc, so configuring glibc
  10581. # with a fresh cross-compiler works.
  10582. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10583. # <limits.h> exists even on freestanding compilers.
  10584. # On the NeXT, cc -E runs the code through the compiler's parser,
  10585. # not just through cpp. "Syntax error" is here to catch this case.
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. #ifdef __STDC__
  10589. # include <limits.h>
  10590. #else
  10591. # include <assert.h>
  10592. #endif
  10593. Syntax error
  10594. _ACEOF
  10595. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10596. else
  10597. # Broken: fails on valid input.
  10598. continue
  10599. fi
  10600. rm -f conftest.err conftest.i conftest.$ac_ext
  10601. # OK, works on sane cases. Now check whether nonexistent headers
  10602. # can be detected and how.
  10603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10604. /* end confdefs.h. */
  10605. #include <ac_nonexistent.h>
  10606. _ACEOF
  10607. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10608. # Broken: success on invalid input.
  10609. continue
  10610. else
  10611. # Passes both tests.
  10612. ac_preproc_ok=:
  10613. break
  10614. fi
  10615. rm -f conftest.err conftest.i conftest.$ac_ext
  10616. done
  10617. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10618. rm -f conftest.i conftest.err conftest.$ac_ext
  10619. if $ac_preproc_ok; then :
  10620. else
  10621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10623. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10624. See \`config.log' for more details" "$LINENO" 5; }
  10625. fi
  10626. ac_ext=c
  10627. ac_cpp='$CPP $CPPFLAGS'
  10628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10631. else
  10632. _lt_caught_CXX_error=yes
  10633. fi
  10634. ac_ext=cpp
  10635. ac_cpp='$CXXCPP $CPPFLAGS'
  10636. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10637. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10638. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10639. archive_cmds_need_lc_CXX=no
  10640. allow_undefined_flag_CXX=
  10641. always_export_symbols_CXX=no
  10642. archive_expsym_cmds_CXX=
  10643. compiler_needs_object_CXX=no
  10644. export_dynamic_flag_spec_CXX=
  10645. hardcode_direct_CXX=no
  10646. hardcode_direct_absolute_CXX=no
  10647. hardcode_libdir_flag_spec_CXX=
  10648. hardcode_libdir_separator_CXX=
  10649. hardcode_minus_L_CXX=no
  10650. hardcode_shlibpath_var_CXX=unsupported
  10651. hardcode_automatic_CXX=no
  10652. inherit_rpath_CXX=no
  10653. module_cmds_CXX=
  10654. module_expsym_cmds_CXX=
  10655. link_all_deplibs_CXX=unknown
  10656. old_archive_cmds_CXX=$old_archive_cmds
  10657. reload_flag_CXX=$reload_flag
  10658. reload_cmds_CXX=$reload_cmds
  10659. no_undefined_flag_CXX=
  10660. whole_archive_flag_spec_CXX=
  10661. enable_shared_with_static_runtimes_CXX=no
  10662. # Source file extension for C++ test sources.
  10663. ac_ext=cpp
  10664. # Object file extension for compiled C++ test sources.
  10665. objext=o
  10666. objext_CXX=$objext
  10667. # No sense in running all these tests if we already determined that
  10668. # the CXX compiler isn't working. Some variables (like enable_shared)
  10669. # are currently assumed to apply to all compilers on this platform,
  10670. # and will be corrupted by setting them based on a non-working compiler.
  10671. if test "$_lt_caught_CXX_error" != yes; then
  10672. # Code to be used in simple compile tests
  10673. lt_simple_compile_test_code="int some_variable = 0;"
  10674. # Code to be used in simple link tests
  10675. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10676. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10677. # If no C compiler was specified, use CC.
  10678. LTCC=${LTCC-"$CC"}
  10679. # If no C compiler flags were specified, use CFLAGS.
  10680. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10681. # Allow CC to be a program name with arguments.
  10682. compiler=$CC
  10683. # save warnings/boilerplate of simple test code
  10684. ac_outfile=conftest.$ac_objext
  10685. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10686. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10687. _lt_compiler_boilerplate=`cat conftest.err`
  10688. $RM conftest*
  10689. ac_outfile=conftest.$ac_objext
  10690. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10691. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10692. _lt_linker_boilerplate=`cat conftest.err`
  10693. $RM -r conftest*
  10694. # Allow CC to be a program name with arguments.
  10695. lt_save_CC=$CC
  10696. lt_save_CFLAGS=$CFLAGS
  10697. lt_save_LD=$LD
  10698. lt_save_GCC=$GCC
  10699. GCC=$GXX
  10700. lt_save_with_gnu_ld=$with_gnu_ld
  10701. lt_save_path_LD=$lt_cv_path_LD
  10702. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10703. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10704. else
  10705. $as_unset lt_cv_prog_gnu_ld
  10706. fi
  10707. if test -n "${lt_cv_path_LDCXX+set}"; then
  10708. lt_cv_path_LD=$lt_cv_path_LDCXX
  10709. else
  10710. $as_unset lt_cv_path_LD
  10711. fi
  10712. test -z "${LDCXX+set}" || LD=$LDCXX
  10713. CC=${CXX-"c++"}
  10714. CFLAGS=$CXXFLAGS
  10715. compiler=$CC
  10716. compiler_CXX=$CC
  10717. for cc_temp in $compiler""; do
  10718. case $cc_temp in
  10719. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10720. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10721. \-*) ;;
  10722. *) break;;
  10723. esac
  10724. done
  10725. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10726. if test -n "$compiler"; then
  10727. # We don't want -fno-exception when compiling C++ code, so set the
  10728. # no_builtin_flag separately
  10729. if test "$GXX" = yes; then
  10730. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10731. else
  10732. lt_prog_compiler_no_builtin_flag_CXX=
  10733. fi
  10734. if test "$GXX" = yes; then
  10735. # Set up default GNU C++ configuration
  10736. # Check whether --with-gnu-ld was given.
  10737. if test "${with_gnu_ld+set}" = set; then :
  10738. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10739. else
  10740. with_gnu_ld=no
  10741. fi
  10742. ac_prog=ld
  10743. if test "$GCC" = yes; then
  10744. # Check if gcc -print-prog-name=ld gives a path.
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10746. $as_echo_n "checking for ld used by $CC... " >&6; }
  10747. case $host in
  10748. *-*-mingw*)
  10749. # gcc leaves a trailing carriage return which upsets mingw
  10750. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10751. *)
  10752. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10753. esac
  10754. case $ac_prog in
  10755. # Accept absolute paths.
  10756. [\\/]* | ?:[\\/]*)
  10757. re_direlt='/[^/][^/]*/\.\./'
  10758. # Canonicalize the pathname of ld
  10759. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10760. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10761. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10762. done
  10763. test -z "$LD" && LD="$ac_prog"
  10764. ;;
  10765. "")
  10766. # If it fails, then pretend we aren't using GCC.
  10767. ac_prog=ld
  10768. ;;
  10769. *)
  10770. # If it is relative, then search for the first ld in PATH.
  10771. with_gnu_ld=unknown
  10772. ;;
  10773. esac
  10774. elif test "$with_gnu_ld" = yes; then
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10776. $as_echo_n "checking for GNU ld... " >&6; }
  10777. else
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10779. $as_echo_n "checking for non-GNU ld... " >&6; }
  10780. fi
  10781. if ${lt_cv_path_LD+:} false; then :
  10782. $as_echo_n "(cached) " >&6
  10783. else
  10784. if test -z "$LD"; then
  10785. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10786. for ac_dir in $PATH; do
  10787. IFS="$lt_save_ifs"
  10788. test -z "$ac_dir" && ac_dir=.
  10789. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10790. lt_cv_path_LD="$ac_dir/$ac_prog"
  10791. # Check to see if the program is GNU ld. I'd rather use --version,
  10792. # but apparently some variants of GNU ld only accept -v.
  10793. # Break only if it was the GNU/non-GNU ld that we prefer.
  10794. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10795. *GNU* | *'with BFD'*)
  10796. test "$with_gnu_ld" != no && break
  10797. ;;
  10798. *)
  10799. test "$with_gnu_ld" != yes && break
  10800. ;;
  10801. esac
  10802. fi
  10803. done
  10804. IFS="$lt_save_ifs"
  10805. else
  10806. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10807. fi
  10808. fi
  10809. LD="$lt_cv_path_LD"
  10810. if test -n "$LD"; then
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10812. $as_echo "$LD" >&6; }
  10813. else
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10815. $as_echo "no" >&6; }
  10816. fi
  10817. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10819. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10820. if ${lt_cv_prog_gnu_ld+:} false; then :
  10821. $as_echo_n "(cached) " >&6
  10822. else
  10823. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10824. case `$LD -v 2>&1 </dev/null` in
  10825. *GNU* | *'with BFD'*)
  10826. lt_cv_prog_gnu_ld=yes
  10827. ;;
  10828. *)
  10829. lt_cv_prog_gnu_ld=no
  10830. ;;
  10831. esac
  10832. fi
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10834. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10835. with_gnu_ld=$lt_cv_prog_gnu_ld
  10836. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10837. # archiving commands below assume that GNU ld is being used.
  10838. if test "$with_gnu_ld" = yes; then
  10839. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10840. 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'
  10841. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10842. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10843. # If archive_cmds runs LD, not CC, wlarc should be empty
  10844. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10845. # investigate it a little bit more. (MM)
  10846. wlarc='${wl}'
  10847. # ancient GNU ld didn't support --whole-archive et. al.
  10848. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10849. $GREP 'no-whole-archive' > /dev/null; then
  10850. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10851. else
  10852. whole_archive_flag_spec_CXX=
  10853. fi
  10854. else
  10855. with_gnu_ld=no
  10856. wlarc=
  10857. # A generic and very simple default shared library creation
  10858. # command for GNU C++ for the case where it uses the native
  10859. # linker, instead of GNU ld. If possible, this setting should
  10860. # overridden to take advantage of the native linker features on
  10861. # the platform it is being used on.
  10862. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10863. fi
  10864. # Commands to make compiler produce verbose output that lists
  10865. # what "hidden" libraries, object files and flags are used when
  10866. # linking a shared library.
  10867. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10868. else
  10869. GXX=no
  10870. with_gnu_ld=no
  10871. wlarc=
  10872. fi
  10873. # PORTME: fill in a description of your system's C++ link characteristics
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10875. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10876. ld_shlibs_CXX=yes
  10877. case $host_os in
  10878. aix3*)
  10879. # FIXME: insert proper C++ library support
  10880. ld_shlibs_CXX=no
  10881. ;;
  10882. aix[4-9]*)
  10883. if test "$host_cpu" = ia64; then
  10884. # On IA64, the linker does run time linking by default, so we don't
  10885. # have to do anything special.
  10886. aix_use_runtimelinking=no
  10887. exp_sym_flag='-Bexport'
  10888. no_entry_flag=""
  10889. else
  10890. aix_use_runtimelinking=no
  10891. # Test if we are trying to use run time linking or normal
  10892. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10893. # need to do runtime linking.
  10894. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10895. for ld_flag in $LDFLAGS; do
  10896. case $ld_flag in
  10897. *-brtl*)
  10898. aix_use_runtimelinking=yes
  10899. break
  10900. ;;
  10901. esac
  10902. done
  10903. ;;
  10904. esac
  10905. exp_sym_flag='-bexport'
  10906. no_entry_flag='-bnoentry'
  10907. fi
  10908. # When large executables or shared objects are built, AIX ld can
  10909. # have problems creating the table of contents. If linking a library
  10910. # or program results in "error TOC overflow" add -mminimal-toc to
  10911. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10912. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10913. archive_cmds_CXX=''
  10914. hardcode_direct_CXX=yes
  10915. hardcode_direct_absolute_CXX=yes
  10916. hardcode_libdir_separator_CXX=':'
  10917. link_all_deplibs_CXX=yes
  10918. file_list_spec_CXX='${wl}-f,'
  10919. if test "$GXX" = yes; then
  10920. case $host_os in aix4.[012]|aix4.[012].*)
  10921. # We only want to do this on AIX 4.2 and lower, the check
  10922. # below for broken collect2 doesn't work under 4.3+
  10923. collect2name=`${CC} -print-prog-name=collect2`
  10924. if test -f "$collect2name" &&
  10925. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10926. then
  10927. # We have reworked collect2
  10928. :
  10929. else
  10930. # We have old collect2
  10931. hardcode_direct_CXX=unsupported
  10932. # It fails to find uninstalled libraries when the uninstalled
  10933. # path is not listed in the libpath. Setting hardcode_minus_L
  10934. # to unsupported forces relinking
  10935. hardcode_minus_L_CXX=yes
  10936. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10937. hardcode_libdir_separator_CXX=
  10938. fi
  10939. esac
  10940. shared_flag='-shared'
  10941. if test "$aix_use_runtimelinking" = yes; then
  10942. shared_flag="$shared_flag "'${wl}-G'
  10943. fi
  10944. else
  10945. # not using gcc
  10946. if test "$host_cpu" = ia64; then
  10947. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10948. # chokes on -Wl,-G. The following line is correct:
  10949. shared_flag='-G'
  10950. else
  10951. if test "$aix_use_runtimelinking" = yes; then
  10952. shared_flag='${wl}-G'
  10953. else
  10954. shared_flag='${wl}-bM:SRE'
  10955. fi
  10956. fi
  10957. fi
  10958. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10959. # It seems that -bexpall does not export symbols beginning with
  10960. # underscore (_), so it is better to generate a list of symbols to
  10961. # export.
  10962. always_export_symbols_CXX=yes
  10963. if test "$aix_use_runtimelinking" = yes; then
  10964. # Warning - without using the other runtime loading flags (-brtl),
  10965. # -berok will link without error, but may produce a broken library.
  10966. allow_undefined_flag_CXX='-berok'
  10967. # Determine the default libpath from the value encoded in an empty
  10968. # executable.
  10969. if test "${lt_cv_aix_libpath+set}" = set; then
  10970. aix_libpath=$lt_cv_aix_libpath
  10971. else
  10972. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10973. $as_echo_n "(cached) " >&6
  10974. else
  10975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10976. /* end confdefs.h. */
  10977. int
  10978. main ()
  10979. {
  10980. ;
  10981. return 0;
  10982. }
  10983. _ACEOF
  10984. if ac_fn_cxx_try_link "$LINENO"; then :
  10985. lt_aix_libpath_sed='
  10986. /Import File Strings/,/^$/ {
  10987. /^0/ {
  10988. s/^0 *\([^ ]*\) *$/\1/
  10989. p
  10990. }
  10991. }'
  10992. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10993. # Check for a 64-bit object if we didn't find anything.
  10994. if test -z "$lt_cv_aix_libpath__CXX"; then
  10995. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10996. fi
  10997. fi
  10998. rm -f core conftest.err conftest.$ac_objext \
  10999. conftest$ac_exeext conftest.$ac_ext
  11000. if test -z "$lt_cv_aix_libpath__CXX"; then
  11001. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11002. fi
  11003. fi
  11004. aix_libpath=$lt_cv_aix_libpath__CXX
  11005. fi
  11006. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11007. 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"
  11008. else
  11009. if test "$host_cpu" = ia64; then
  11010. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11011. allow_undefined_flag_CXX="-z nodefs"
  11012. 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"
  11013. else
  11014. # Determine the default libpath from the value encoded in an
  11015. # empty executable.
  11016. if test "${lt_cv_aix_libpath+set}" = set; then
  11017. aix_libpath=$lt_cv_aix_libpath
  11018. else
  11019. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11020. $as_echo_n "(cached) " >&6
  11021. else
  11022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11023. /* end confdefs.h. */
  11024. int
  11025. main ()
  11026. {
  11027. ;
  11028. return 0;
  11029. }
  11030. _ACEOF
  11031. if ac_fn_cxx_try_link "$LINENO"; then :
  11032. lt_aix_libpath_sed='
  11033. /Import File Strings/,/^$/ {
  11034. /^0/ {
  11035. s/^0 *\([^ ]*\) *$/\1/
  11036. p
  11037. }
  11038. }'
  11039. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11040. # Check for a 64-bit object if we didn't find anything.
  11041. if test -z "$lt_cv_aix_libpath__CXX"; then
  11042. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11043. fi
  11044. fi
  11045. rm -f core conftest.err conftest.$ac_objext \
  11046. conftest$ac_exeext conftest.$ac_ext
  11047. if test -z "$lt_cv_aix_libpath__CXX"; then
  11048. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11049. fi
  11050. fi
  11051. aix_libpath=$lt_cv_aix_libpath__CXX
  11052. fi
  11053. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11054. # Warning - without using the other run time loading flags,
  11055. # -berok will link without error, but may produce a broken library.
  11056. no_undefined_flag_CXX=' ${wl}-bernotok'
  11057. allow_undefined_flag_CXX=' ${wl}-berok'
  11058. if test "$with_gnu_ld" = yes; then
  11059. # We only use this code for GNU lds that support --whole-archive.
  11060. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11061. else
  11062. # Exported symbols can be pulled into shared objects from archives
  11063. whole_archive_flag_spec_CXX='$convenience'
  11064. fi
  11065. archive_cmds_need_lc_CXX=yes
  11066. # This is similar to how AIX traditionally builds its shared
  11067. # libraries.
  11068. 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'
  11069. fi
  11070. fi
  11071. ;;
  11072. beos*)
  11073. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11074. allow_undefined_flag_CXX=unsupported
  11075. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11076. # support --undefined. This deserves some investigation. FIXME
  11077. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11078. else
  11079. ld_shlibs_CXX=no
  11080. fi
  11081. ;;
  11082. chorus*)
  11083. case $cc_basename in
  11084. *)
  11085. # FIXME: insert proper C++ library support
  11086. ld_shlibs_CXX=no
  11087. ;;
  11088. esac
  11089. ;;
  11090. cygwin* | mingw* | pw32* | cegcc*)
  11091. case $GXX,$cc_basename in
  11092. ,cl* | no,cl*)
  11093. # Native MSVC
  11094. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11095. # no search path for DLLs.
  11096. hardcode_libdir_flag_spec_CXX=' '
  11097. allow_undefined_flag_CXX=unsupported
  11098. always_export_symbols_CXX=yes
  11099. file_list_spec_CXX='@'
  11100. # Tell ltmain to make .lib files, not .a files.
  11101. libext=lib
  11102. # Tell ltmain to make .dll files, not .so files.
  11103. shrext_cmds=".dll"
  11104. # FIXME: Setting linknames here is a bad hack.
  11105. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11106. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11107. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11108. else
  11109. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11110. fi~
  11111. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11112. linknames='
  11113. # The linker will not automatically build a static lib if we build a DLL.
  11114. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11115. enable_shared_with_static_runtimes_CXX=yes
  11116. # Don't use ranlib
  11117. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11118. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11119. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11120. case $lt_outputfile in
  11121. *.exe|*.EXE) ;;
  11122. *)
  11123. lt_outputfile="$lt_outputfile.exe"
  11124. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11125. ;;
  11126. esac~
  11127. func_to_tool_file "$lt_outputfile"~
  11128. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11129. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11130. $RM "$lt_outputfile.manifest";
  11131. fi'
  11132. ;;
  11133. *)
  11134. # g++
  11135. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11136. # as there is no search path for DLLs.
  11137. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11138. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11139. allow_undefined_flag_CXX=unsupported
  11140. always_export_symbols_CXX=no
  11141. enable_shared_with_static_runtimes_CXX=yes
  11142. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11143. 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'
  11144. # If the export-symbols file already is a .def file (1st line
  11145. # is EXPORTS), use it as is; otherwise, prepend...
  11146. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11147. cp $export_symbols $output_objdir/$soname.def;
  11148. else
  11149. echo EXPORTS > $output_objdir/$soname.def;
  11150. cat $export_symbols >> $output_objdir/$soname.def;
  11151. fi~
  11152. $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'
  11153. else
  11154. ld_shlibs_CXX=no
  11155. fi
  11156. ;;
  11157. esac
  11158. ;;
  11159. darwin* | rhapsody*)
  11160. archive_cmds_need_lc_CXX=no
  11161. hardcode_direct_CXX=no
  11162. hardcode_automatic_CXX=yes
  11163. hardcode_shlibpath_var_CXX=unsupported
  11164. if test "$lt_cv_ld_force_load" = "yes"; then
  11165. 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\"`'
  11166. else
  11167. whole_archive_flag_spec_CXX=''
  11168. fi
  11169. link_all_deplibs_CXX=yes
  11170. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11171. case $cc_basename in
  11172. ifort*) _lt_dar_can_shared=yes ;;
  11173. *) _lt_dar_can_shared=$GCC ;;
  11174. esac
  11175. if test "$_lt_dar_can_shared" = "yes"; then
  11176. output_verbose_link_cmd=func_echo_all
  11177. 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}"
  11178. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11179. 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}"
  11180. 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}"
  11181. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11182. 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}"
  11183. 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}"
  11184. fi
  11185. else
  11186. ld_shlibs_CXX=no
  11187. fi
  11188. ;;
  11189. dgux*)
  11190. case $cc_basename in
  11191. ec++*)
  11192. # FIXME: insert proper C++ library support
  11193. ld_shlibs_CXX=no
  11194. ;;
  11195. ghcx*)
  11196. # Green Hills C++ Compiler
  11197. # FIXME: insert proper C++ library support
  11198. ld_shlibs_CXX=no
  11199. ;;
  11200. *)
  11201. # FIXME: insert proper C++ library support
  11202. ld_shlibs_CXX=no
  11203. ;;
  11204. esac
  11205. ;;
  11206. freebsd2.*)
  11207. # C++ shared libraries reported to be fairly broken before
  11208. # switch to ELF
  11209. ld_shlibs_CXX=no
  11210. ;;
  11211. freebsd-elf*)
  11212. archive_cmds_need_lc_CXX=no
  11213. ;;
  11214. freebsd* | dragonfly*)
  11215. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11216. # conventions
  11217. ld_shlibs_CXX=yes
  11218. ;;
  11219. gnu*)
  11220. ;;
  11221. haiku*)
  11222. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11223. link_all_deplibs_CXX=yes
  11224. ;;
  11225. hpux9*)
  11226. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11227. hardcode_libdir_separator_CXX=:
  11228. export_dynamic_flag_spec_CXX='${wl}-E'
  11229. hardcode_direct_CXX=yes
  11230. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11231. # but as the default
  11232. # location of the library.
  11233. case $cc_basename in
  11234. CC*)
  11235. # FIXME: insert proper C++ library support
  11236. ld_shlibs_CXX=no
  11237. ;;
  11238. aCC*)
  11239. 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'
  11240. # Commands to make compiler produce verbose output that lists
  11241. # what "hidden" libraries, object files and flags are used when
  11242. # linking a shared library.
  11243. #
  11244. # There doesn't appear to be a way to prevent this compiler from
  11245. # explicitly linking system object files so we need to strip them
  11246. # from the output so that they don't get included in the library
  11247. # dependencies.
  11248. 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"'
  11249. ;;
  11250. *)
  11251. if test "$GXX" = yes; then
  11252. 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'
  11253. else
  11254. # FIXME: insert proper C++ library support
  11255. ld_shlibs_CXX=no
  11256. fi
  11257. ;;
  11258. esac
  11259. ;;
  11260. hpux10*|hpux11*)
  11261. if test $with_gnu_ld = no; then
  11262. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11263. hardcode_libdir_separator_CXX=:
  11264. case $host_cpu in
  11265. hppa*64*|ia64*)
  11266. ;;
  11267. *)
  11268. export_dynamic_flag_spec_CXX='${wl}-E'
  11269. ;;
  11270. esac
  11271. fi
  11272. case $host_cpu in
  11273. hppa*64*|ia64*)
  11274. hardcode_direct_CXX=no
  11275. hardcode_shlibpath_var_CXX=no
  11276. ;;
  11277. *)
  11278. hardcode_direct_CXX=yes
  11279. hardcode_direct_absolute_CXX=yes
  11280. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11281. # but as the default
  11282. # location of the library.
  11283. ;;
  11284. esac
  11285. case $cc_basename in
  11286. CC*)
  11287. # FIXME: insert proper C++ library support
  11288. ld_shlibs_CXX=no
  11289. ;;
  11290. aCC*)
  11291. case $host_cpu in
  11292. hppa*64*)
  11293. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11294. ;;
  11295. ia64*)
  11296. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11297. ;;
  11298. *)
  11299. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11300. ;;
  11301. esac
  11302. # Commands to make compiler produce verbose output that lists
  11303. # what "hidden" libraries, object files and flags are used when
  11304. # linking a shared library.
  11305. #
  11306. # There doesn't appear to be a way to prevent this compiler from
  11307. # explicitly linking system object files so we need to strip them
  11308. # from the output so that they don't get included in the library
  11309. # dependencies.
  11310. 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"'
  11311. ;;
  11312. *)
  11313. if test "$GXX" = yes; then
  11314. if test $with_gnu_ld = no; then
  11315. case $host_cpu in
  11316. hppa*64*)
  11317. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11318. ;;
  11319. ia64*)
  11320. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11321. ;;
  11322. *)
  11323. 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'
  11324. ;;
  11325. esac
  11326. fi
  11327. else
  11328. # FIXME: insert proper C++ library support
  11329. ld_shlibs_CXX=no
  11330. fi
  11331. ;;
  11332. esac
  11333. ;;
  11334. interix[3-9]*)
  11335. hardcode_direct_CXX=no
  11336. hardcode_shlibpath_var_CXX=no
  11337. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11338. export_dynamic_flag_spec_CXX='${wl}-E'
  11339. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11340. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11341. # default) and relocated if they conflict, which is a slow very memory
  11342. # consuming and fragmenting process. To avoid this, we pick a random,
  11343. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11344. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11345. 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'
  11346. 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'
  11347. ;;
  11348. irix5* | irix6*)
  11349. case $cc_basename in
  11350. CC*)
  11351. # SGI C++
  11352. 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'
  11353. # Archives containing C++ object files must be created using
  11354. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11355. # necessary to make sure instantiated templates are included
  11356. # in the archive.
  11357. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11358. ;;
  11359. *)
  11360. if test "$GXX" = yes; then
  11361. if test "$with_gnu_ld" = no; then
  11362. 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'
  11363. else
  11364. 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'
  11365. fi
  11366. fi
  11367. link_all_deplibs_CXX=yes
  11368. ;;
  11369. esac
  11370. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11371. hardcode_libdir_separator_CXX=:
  11372. inherit_rpath_CXX=yes
  11373. ;;
  11374. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11375. case $cc_basename in
  11376. KCC*)
  11377. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11378. # KCC will only create a shared library if the output file
  11379. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11380. # to its proper name (with version) after linking.
  11381. 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'
  11382. 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'
  11383. # Commands to make compiler produce verbose output that lists
  11384. # what "hidden" libraries, object files and flags are used when
  11385. # linking a shared library.
  11386. #
  11387. # There doesn't appear to be a way to prevent this compiler from
  11388. # explicitly linking system object files so we need to strip them
  11389. # from the output so that they don't get included in the library
  11390. # dependencies.
  11391. 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"'
  11392. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11393. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11394. # Archives containing C++ object files must be created using
  11395. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11396. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11397. ;;
  11398. icpc* | ecpc* )
  11399. # Intel C++
  11400. with_gnu_ld=yes
  11401. # version 8.0 and above of icpc choke on multiply defined symbols
  11402. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11403. # earlier do not add the objects themselves.
  11404. case `$CC -V 2>&1` in
  11405. *"Version 7."*)
  11406. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11407. 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'
  11408. ;;
  11409. *) # Version 8.0 or newer
  11410. tmp_idyn=
  11411. case $host_cpu in
  11412. ia64*) tmp_idyn=' -i_dynamic';;
  11413. esac
  11414. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11415. 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'
  11416. ;;
  11417. esac
  11418. archive_cmds_need_lc_CXX=no
  11419. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11420. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11421. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11422. ;;
  11423. pgCC* | pgcpp*)
  11424. # Portland Group C++ compiler
  11425. case `$CC -V` in
  11426. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11427. prelink_cmds_CXX='tpldir=Template.dir~
  11428. rm -rf $tpldir~
  11429. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11430. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11431. old_archive_cmds_CXX='tpldir=Template.dir~
  11432. rm -rf $tpldir~
  11433. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11434. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11435. $RANLIB $oldlib'
  11436. archive_cmds_CXX='tpldir=Template.dir~
  11437. rm -rf $tpldir~
  11438. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11439. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11440. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11441. rm -rf $tpldir~
  11442. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11443. $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'
  11444. ;;
  11445. *) # Version 6 and above use weak symbols
  11446. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11447. 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'
  11448. ;;
  11449. esac
  11450. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11451. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11452. 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'
  11453. ;;
  11454. cxx*)
  11455. # Compaq C++
  11456. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11457. 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'
  11458. runpath_var=LD_RUN_PATH
  11459. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11460. hardcode_libdir_separator_CXX=:
  11461. # Commands to make compiler produce verbose output that lists
  11462. # what "hidden" libraries, object files and flags are used when
  11463. # linking a shared library.
  11464. #
  11465. # There doesn't appear to be a way to prevent this compiler from
  11466. # explicitly linking system object files so we need to strip them
  11467. # from the output so that they don't get included in the library
  11468. # dependencies.
  11469. 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'
  11470. ;;
  11471. xl* | mpixl* | bgxl*)
  11472. # IBM XL 8.0 on PPC, with GNU ld
  11473. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11474. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11475. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11476. if test "x$supports_anon_versioning" = xyes; then
  11477. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11478. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11479. echo "local: *; };" >> $output_objdir/$libname.ver~
  11480. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11481. fi
  11482. ;;
  11483. *)
  11484. case `$CC -V 2>&1 | sed 5q` in
  11485. *Sun\ C*)
  11486. # Sun C++ 5.9
  11487. no_undefined_flag_CXX=' -zdefs'
  11488. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11489. 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'
  11490. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11491. 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'
  11492. compiler_needs_object_CXX=yes
  11493. # Not sure whether something based on
  11494. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11495. # would be better.
  11496. output_verbose_link_cmd='func_echo_all'
  11497. # Archives containing C++ object files must be created using
  11498. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11499. # necessary to make sure instantiated templates are included
  11500. # in the archive.
  11501. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11502. ;;
  11503. esac
  11504. ;;
  11505. esac
  11506. ;;
  11507. lynxos*)
  11508. # FIXME: insert proper C++ library support
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. m88k*)
  11512. # FIXME: insert proper C++ library support
  11513. ld_shlibs_CXX=no
  11514. ;;
  11515. mvs*)
  11516. case $cc_basename in
  11517. cxx*)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. *)
  11522. # FIXME: insert proper C++ library support
  11523. ld_shlibs_CXX=no
  11524. ;;
  11525. esac
  11526. ;;
  11527. netbsd*)
  11528. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11529. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11530. wlarc=
  11531. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11532. hardcode_direct_CXX=yes
  11533. hardcode_shlibpath_var_CXX=no
  11534. fi
  11535. # Workaround some broken pre-1.5 toolchains
  11536. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11537. ;;
  11538. *nto* | *qnx*)
  11539. ld_shlibs_CXX=yes
  11540. ;;
  11541. openbsd2*)
  11542. # C++ shared libraries are fairly broken
  11543. ld_shlibs_CXX=no
  11544. ;;
  11545. openbsd*)
  11546. if test -f /usr/libexec/ld.so; then
  11547. hardcode_direct_CXX=yes
  11548. hardcode_shlibpath_var_CXX=no
  11549. hardcode_direct_absolute_CXX=yes
  11550. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11551. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11552. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11553. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11554. export_dynamic_flag_spec_CXX='${wl}-E'
  11555. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11556. fi
  11557. output_verbose_link_cmd=func_echo_all
  11558. else
  11559. ld_shlibs_CXX=no
  11560. fi
  11561. ;;
  11562. osf3* | osf4* | osf5*)
  11563. case $cc_basename in
  11564. KCC*)
  11565. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11566. # KCC will only create a shared library if the output file
  11567. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11568. # to its proper name (with version) after linking.
  11569. 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'
  11570. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11571. hardcode_libdir_separator_CXX=:
  11572. # Archives containing C++ object files must be created using
  11573. # the KAI C++ compiler.
  11574. case $host in
  11575. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11576. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11577. esac
  11578. ;;
  11579. RCC*)
  11580. # Rational C++ 2.4.1
  11581. # FIXME: insert proper C++ library support
  11582. ld_shlibs_CXX=no
  11583. ;;
  11584. cxx*)
  11585. case $host in
  11586. osf3*)
  11587. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11588. 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'
  11589. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11590. ;;
  11591. *)
  11592. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11593. 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'
  11594. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11595. echo "-hidden">> $lib.exp~
  11596. $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~
  11597. $RM $lib.exp'
  11598. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11599. ;;
  11600. esac
  11601. hardcode_libdir_separator_CXX=:
  11602. # Commands to make compiler produce verbose output that lists
  11603. # what "hidden" libraries, object files and flags are used when
  11604. # linking a shared library.
  11605. #
  11606. # There doesn't appear to be a way to prevent this compiler from
  11607. # explicitly linking system object files so we need to strip them
  11608. # from the output so that they don't get included in the library
  11609. # dependencies.
  11610. 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"'
  11611. ;;
  11612. *)
  11613. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11614. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11615. case $host in
  11616. osf3*)
  11617. 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'
  11618. ;;
  11619. *)
  11620. 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'
  11621. ;;
  11622. esac
  11623. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11624. hardcode_libdir_separator_CXX=:
  11625. # Commands to make compiler produce verbose output that lists
  11626. # what "hidden" libraries, object files and flags are used when
  11627. # linking a shared library.
  11628. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11629. else
  11630. # FIXME: insert proper C++ library support
  11631. ld_shlibs_CXX=no
  11632. fi
  11633. ;;
  11634. esac
  11635. ;;
  11636. psos*)
  11637. # FIXME: insert proper C++ library support
  11638. ld_shlibs_CXX=no
  11639. ;;
  11640. sunos4*)
  11641. case $cc_basename in
  11642. CC*)
  11643. # Sun C++ 4.x
  11644. # FIXME: insert proper C++ library support
  11645. ld_shlibs_CXX=no
  11646. ;;
  11647. lcc*)
  11648. # Lucid
  11649. # FIXME: insert proper C++ library support
  11650. ld_shlibs_CXX=no
  11651. ;;
  11652. *)
  11653. # FIXME: insert proper C++ library support
  11654. ld_shlibs_CXX=no
  11655. ;;
  11656. esac
  11657. ;;
  11658. solaris*)
  11659. case $cc_basename in
  11660. CC* | sunCC*)
  11661. # Sun C++ 4.2, 5.x and Centerline C++
  11662. archive_cmds_need_lc_CXX=yes
  11663. no_undefined_flag_CXX=' -zdefs'
  11664. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11665. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11666. $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'
  11667. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11668. hardcode_shlibpath_var_CXX=no
  11669. case $host_os in
  11670. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11671. *)
  11672. # The compiler driver will combine and reorder linker options,
  11673. # but understands `-z linker_flag'.
  11674. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11675. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11676. ;;
  11677. esac
  11678. link_all_deplibs_CXX=yes
  11679. output_verbose_link_cmd='func_echo_all'
  11680. # Archives containing C++ object files must be created using
  11681. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11682. # necessary to make sure instantiated templates are included
  11683. # in the archive.
  11684. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11685. ;;
  11686. gcx*)
  11687. # Green Hills C++ Compiler
  11688. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11689. # The C++ compiler must be used to create the archive.
  11690. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11691. ;;
  11692. *)
  11693. # GNU C++ compiler with Solaris linker
  11694. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11695. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11696. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11697. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11698. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11699. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11700. # Commands to make compiler produce verbose output that lists
  11701. # what "hidden" libraries, object files and flags are used when
  11702. # linking a shared library.
  11703. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11704. else
  11705. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11706. # platform.
  11707. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11708. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11709. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11710. # Commands to make compiler produce verbose output that lists
  11711. # what "hidden" libraries, object files and flags are used when
  11712. # linking a shared library.
  11713. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11714. fi
  11715. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11716. case $host_os in
  11717. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11718. *)
  11719. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11720. ;;
  11721. esac
  11722. fi
  11723. ;;
  11724. esac
  11725. ;;
  11726. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11727. no_undefined_flag_CXX='${wl}-z,text'
  11728. archive_cmds_need_lc_CXX=no
  11729. hardcode_shlibpath_var_CXX=no
  11730. runpath_var='LD_RUN_PATH'
  11731. case $cc_basename in
  11732. CC*)
  11733. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11734. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11735. ;;
  11736. *)
  11737. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11738. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11739. ;;
  11740. esac
  11741. ;;
  11742. sysv5* | sco3.2v5* | sco5v6*)
  11743. # Note: We can NOT use -z defs as we might desire, because we do not
  11744. # link with -lc, and that would cause any symbols used from libc to
  11745. # always be unresolved, which means just about no library would
  11746. # ever link correctly. If we're not using GNU ld we use -z text
  11747. # though, which does catch some bad symbols but isn't as heavy-handed
  11748. # as -z defs.
  11749. no_undefined_flag_CXX='${wl}-z,text'
  11750. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11751. archive_cmds_need_lc_CXX=no
  11752. hardcode_shlibpath_var_CXX=no
  11753. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11754. hardcode_libdir_separator_CXX=':'
  11755. link_all_deplibs_CXX=yes
  11756. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11757. runpath_var='LD_RUN_PATH'
  11758. case $cc_basename in
  11759. CC*)
  11760. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11761. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11762. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11763. '"$old_archive_cmds_CXX"
  11764. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11765. '"$reload_cmds_CXX"
  11766. ;;
  11767. *)
  11768. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11769. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11770. ;;
  11771. esac
  11772. ;;
  11773. tandem*)
  11774. case $cc_basename in
  11775. NCC*)
  11776. # NonStop-UX NCC 3.20
  11777. # FIXME: insert proper C++ library support
  11778. ld_shlibs_CXX=no
  11779. ;;
  11780. *)
  11781. # FIXME: insert proper C++ library support
  11782. ld_shlibs_CXX=no
  11783. ;;
  11784. esac
  11785. ;;
  11786. vxworks*)
  11787. # FIXME: insert proper C++ library support
  11788. ld_shlibs_CXX=no
  11789. ;;
  11790. *)
  11791. # FIXME: insert proper C++ library support
  11792. ld_shlibs_CXX=no
  11793. ;;
  11794. esac
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11796. $as_echo "$ld_shlibs_CXX" >&6; }
  11797. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11798. GCC_CXX="$GXX"
  11799. LD_CXX="$LD"
  11800. ## CAVEAT EMPTOR:
  11801. ## There is no encapsulation within the following macros, do not change
  11802. ## the running order or otherwise move them around unless you know exactly
  11803. ## what you are doing...
  11804. # Dependencies to place before and after the object being linked:
  11805. predep_objects_CXX=
  11806. postdep_objects_CXX=
  11807. predeps_CXX=
  11808. postdeps_CXX=
  11809. compiler_lib_search_path_CXX=
  11810. cat > conftest.$ac_ext <<_LT_EOF
  11811. class Foo
  11812. {
  11813. public:
  11814. Foo (void) { a = 0; }
  11815. private:
  11816. int a;
  11817. };
  11818. _LT_EOF
  11819. _lt_libdeps_save_CFLAGS=$CFLAGS
  11820. case "$CC $CFLAGS " in #(
  11821. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11822. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11823. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11824. esac
  11825. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11826. (eval $ac_compile) 2>&5
  11827. ac_status=$?
  11828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11829. test $ac_status = 0; }; then
  11830. # Parse the compiler output and extract the necessary
  11831. # objects, libraries and library flags.
  11832. # Sentinel used to keep track of whether or not we are before
  11833. # the conftest object file.
  11834. pre_test_object_deps_done=no
  11835. for p in `eval "$output_verbose_link_cmd"`; do
  11836. case ${prev}${p} in
  11837. -L* | -R* | -l*)
  11838. # Some compilers place space between "-{L,R}" and the path.
  11839. # Remove the space.
  11840. if test $p = "-L" ||
  11841. test $p = "-R"; then
  11842. prev=$p
  11843. continue
  11844. fi
  11845. # Expand the sysroot to ease extracting the directories later.
  11846. if test -z "$prev"; then
  11847. case $p in
  11848. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11849. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11850. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11851. esac
  11852. fi
  11853. case $p in
  11854. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11855. esac
  11856. if test "$pre_test_object_deps_done" = no; then
  11857. case ${prev} in
  11858. -L | -R)
  11859. # Internal compiler library paths should come after those
  11860. # provided the user. The postdeps already come after the
  11861. # user supplied libs so there is no need to process them.
  11862. if test -z "$compiler_lib_search_path_CXX"; then
  11863. compiler_lib_search_path_CXX="${prev}${p}"
  11864. else
  11865. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11866. fi
  11867. ;;
  11868. # The "-l" case would never come before the object being
  11869. # linked, so don't bother handling this case.
  11870. esac
  11871. else
  11872. if test -z "$postdeps_CXX"; then
  11873. postdeps_CXX="${prev}${p}"
  11874. else
  11875. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11876. fi
  11877. fi
  11878. prev=
  11879. ;;
  11880. *.lto.$objext) ;; # Ignore GCC LTO objects
  11881. *.$objext)
  11882. # This assumes that the test object file only shows up
  11883. # once in the compiler output.
  11884. if test "$p" = "conftest.$objext"; then
  11885. pre_test_object_deps_done=yes
  11886. continue
  11887. fi
  11888. if test "$pre_test_object_deps_done" = no; then
  11889. if test -z "$predep_objects_CXX"; then
  11890. predep_objects_CXX="$p"
  11891. else
  11892. predep_objects_CXX="$predep_objects_CXX $p"
  11893. fi
  11894. else
  11895. if test -z "$postdep_objects_CXX"; then
  11896. postdep_objects_CXX="$p"
  11897. else
  11898. postdep_objects_CXX="$postdep_objects_CXX $p"
  11899. fi
  11900. fi
  11901. ;;
  11902. *) ;; # Ignore the rest.
  11903. esac
  11904. done
  11905. # Clean up.
  11906. rm -f a.out a.exe
  11907. else
  11908. echo "libtool.m4: error: problem compiling CXX test program"
  11909. fi
  11910. $RM -f confest.$objext
  11911. CFLAGS=$_lt_libdeps_save_CFLAGS
  11912. # PORTME: override above test on systems where it is broken
  11913. case $host_os in
  11914. interix[3-9]*)
  11915. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11916. # hack all around it, let's just trust "g++" to DTRT.
  11917. predep_objects_CXX=
  11918. postdep_objects_CXX=
  11919. postdeps_CXX=
  11920. ;;
  11921. linux*)
  11922. case `$CC -V 2>&1 | sed 5q` in
  11923. *Sun\ C*)
  11924. # Sun C++ 5.9
  11925. # The more standards-conforming stlport4 library is
  11926. # incompatible with the Cstd library. Avoid specifying
  11927. # it if it's in CXXFLAGS. Ignore libCrun as
  11928. # -library=stlport4 depends on it.
  11929. case " $CXX $CXXFLAGS " in
  11930. *" -library=stlport4 "*)
  11931. solaris_use_stlport4=yes
  11932. ;;
  11933. esac
  11934. if test "$solaris_use_stlport4" != yes; then
  11935. postdeps_CXX='-library=Cstd -library=Crun'
  11936. fi
  11937. ;;
  11938. esac
  11939. ;;
  11940. solaris*)
  11941. case $cc_basename in
  11942. CC* | sunCC*)
  11943. # The more standards-conforming stlport4 library is
  11944. # incompatible with the Cstd library. Avoid specifying
  11945. # it if it's in CXXFLAGS. Ignore libCrun as
  11946. # -library=stlport4 depends on it.
  11947. case " $CXX $CXXFLAGS " in
  11948. *" -library=stlport4 "*)
  11949. solaris_use_stlport4=yes
  11950. ;;
  11951. esac
  11952. # Adding this requires a known-good setup of shared libraries for
  11953. # Sun compiler versions before 5.6, else PIC objects from an old
  11954. # archive will be linked into the output, leading to subtle bugs.
  11955. if test "$solaris_use_stlport4" != yes; then
  11956. postdeps_CXX='-library=Cstd -library=Crun'
  11957. fi
  11958. ;;
  11959. esac
  11960. ;;
  11961. esac
  11962. case " $postdeps_CXX " in
  11963. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11964. esac
  11965. compiler_lib_search_dirs_CXX=
  11966. if test -n "${compiler_lib_search_path_CXX}"; then
  11967. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11968. fi
  11969. lt_prog_compiler_wl_CXX=
  11970. lt_prog_compiler_pic_CXX=
  11971. lt_prog_compiler_static_CXX=
  11972. # C++ specific cases for pic, static, wl, etc.
  11973. if test "$GXX" = yes; then
  11974. lt_prog_compiler_wl_CXX='-Wl,'
  11975. lt_prog_compiler_static_CXX='-static'
  11976. case $host_os in
  11977. aix*)
  11978. # All AIX code is PIC.
  11979. if test "$host_cpu" = ia64; then
  11980. # AIX 5 now supports IA64 processor
  11981. lt_prog_compiler_static_CXX='-Bstatic'
  11982. fi
  11983. ;;
  11984. amigaos*)
  11985. case $host_cpu in
  11986. powerpc)
  11987. # see comment about AmigaOS4 .so support
  11988. lt_prog_compiler_pic_CXX='-fPIC'
  11989. ;;
  11990. m68k)
  11991. # FIXME: we need at least 68020 code to build shared libraries, but
  11992. # adding the `-m68020' flag to GCC prevents building anything better,
  11993. # like `-m68040'.
  11994. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11995. ;;
  11996. esac
  11997. ;;
  11998. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11999. # PIC is the default for these OSes.
  12000. ;;
  12001. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12002. # This hack is so that the source file can tell whether it is being
  12003. # built for inclusion in a dll (and should export symbols for example).
  12004. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12005. # (--disable-auto-import) libraries
  12006. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12007. ;;
  12008. darwin* | rhapsody*)
  12009. # PIC is the default on this platform
  12010. # Common symbols not allowed in MH_DYLIB files
  12011. lt_prog_compiler_pic_CXX='-fno-common'
  12012. ;;
  12013. *djgpp*)
  12014. # DJGPP does not support shared libraries at all
  12015. lt_prog_compiler_pic_CXX=
  12016. ;;
  12017. haiku*)
  12018. # PIC is the default for Haiku.
  12019. # The "-static" flag exists, but is broken.
  12020. lt_prog_compiler_static_CXX=
  12021. ;;
  12022. interix[3-9]*)
  12023. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12024. # Instead, we relocate shared libraries at runtime.
  12025. ;;
  12026. sysv4*MP*)
  12027. if test -d /usr/nec; then
  12028. lt_prog_compiler_pic_CXX=-Kconform_pic
  12029. fi
  12030. ;;
  12031. hpux*)
  12032. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12033. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12034. # sets the default TLS model and affects inlining.
  12035. case $host_cpu in
  12036. hppa*64*)
  12037. ;;
  12038. *)
  12039. lt_prog_compiler_pic_CXX='-fPIC'
  12040. ;;
  12041. esac
  12042. ;;
  12043. *qnx* | *nto*)
  12044. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12045. # it will coredump.
  12046. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12047. ;;
  12048. *)
  12049. lt_prog_compiler_pic_CXX='-fPIC'
  12050. ;;
  12051. esac
  12052. else
  12053. case $host_os in
  12054. aix[4-9]*)
  12055. # All AIX code is PIC.
  12056. if test "$host_cpu" = ia64; then
  12057. # AIX 5 now supports IA64 processor
  12058. lt_prog_compiler_static_CXX='-Bstatic'
  12059. else
  12060. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12061. fi
  12062. ;;
  12063. chorus*)
  12064. case $cc_basename in
  12065. cxch68*)
  12066. # Green Hills C++ Compiler
  12067. # _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"
  12068. ;;
  12069. esac
  12070. ;;
  12071. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12072. # This hack is so that the source file can tell whether it is being
  12073. # built for inclusion in a dll (and should export symbols for example).
  12074. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12075. ;;
  12076. dgux*)
  12077. case $cc_basename in
  12078. ec++*)
  12079. lt_prog_compiler_pic_CXX='-KPIC'
  12080. ;;
  12081. ghcx*)
  12082. # Green Hills C++ Compiler
  12083. lt_prog_compiler_pic_CXX='-pic'
  12084. ;;
  12085. *)
  12086. ;;
  12087. esac
  12088. ;;
  12089. freebsd* | dragonfly*)
  12090. # FreeBSD uses GNU C++
  12091. ;;
  12092. hpux9* | hpux10* | hpux11*)
  12093. case $cc_basename in
  12094. CC*)
  12095. lt_prog_compiler_wl_CXX='-Wl,'
  12096. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12097. if test "$host_cpu" != ia64; then
  12098. lt_prog_compiler_pic_CXX='+Z'
  12099. fi
  12100. ;;
  12101. aCC*)
  12102. lt_prog_compiler_wl_CXX='-Wl,'
  12103. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12104. case $host_cpu in
  12105. hppa*64*|ia64*)
  12106. # +Z the default
  12107. ;;
  12108. *)
  12109. lt_prog_compiler_pic_CXX='+Z'
  12110. ;;
  12111. esac
  12112. ;;
  12113. *)
  12114. ;;
  12115. esac
  12116. ;;
  12117. interix*)
  12118. # This is c89, which is MS Visual C++ (no shared libs)
  12119. # Anyone wants to do a port?
  12120. ;;
  12121. irix5* | irix6* | nonstopux*)
  12122. case $cc_basename in
  12123. CC*)
  12124. lt_prog_compiler_wl_CXX='-Wl,'
  12125. lt_prog_compiler_static_CXX='-non_shared'
  12126. # CC pic flag -KPIC is the default.
  12127. ;;
  12128. *)
  12129. ;;
  12130. esac
  12131. ;;
  12132. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12133. case $cc_basename in
  12134. KCC*)
  12135. # KAI C++ Compiler
  12136. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12137. lt_prog_compiler_pic_CXX='-fPIC'
  12138. ;;
  12139. ecpc* )
  12140. # old Intel C++ for x86_64 which still supported -KPIC.
  12141. lt_prog_compiler_wl_CXX='-Wl,'
  12142. lt_prog_compiler_pic_CXX='-KPIC'
  12143. lt_prog_compiler_static_CXX='-static'
  12144. ;;
  12145. icpc* )
  12146. # Intel C++, used to be incompatible with GCC.
  12147. # ICC 10 doesn't accept -KPIC any more.
  12148. lt_prog_compiler_wl_CXX='-Wl,'
  12149. lt_prog_compiler_pic_CXX='-fPIC'
  12150. lt_prog_compiler_static_CXX='-static'
  12151. ;;
  12152. pgCC* | pgcpp*)
  12153. # Portland Group C++ compiler
  12154. lt_prog_compiler_wl_CXX='-Wl,'
  12155. lt_prog_compiler_pic_CXX='-fpic'
  12156. lt_prog_compiler_static_CXX='-Bstatic'
  12157. ;;
  12158. cxx*)
  12159. # Compaq C++
  12160. # Make sure the PIC flag is empty. It appears that all Alpha
  12161. # Linux and Compaq Tru64 Unix objects are PIC.
  12162. lt_prog_compiler_pic_CXX=
  12163. lt_prog_compiler_static_CXX='-non_shared'
  12164. ;;
  12165. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12166. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12167. lt_prog_compiler_wl_CXX='-Wl,'
  12168. lt_prog_compiler_pic_CXX='-qpic'
  12169. lt_prog_compiler_static_CXX='-qstaticlink'
  12170. ;;
  12171. *)
  12172. case `$CC -V 2>&1 | sed 5q` in
  12173. *Sun\ C*)
  12174. # Sun C++ 5.9
  12175. lt_prog_compiler_pic_CXX='-KPIC'
  12176. lt_prog_compiler_static_CXX='-Bstatic'
  12177. lt_prog_compiler_wl_CXX='-Qoption ld '
  12178. ;;
  12179. esac
  12180. ;;
  12181. esac
  12182. ;;
  12183. lynxos*)
  12184. ;;
  12185. m88k*)
  12186. ;;
  12187. mvs*)
  12188. case $cc_basename in
  12189. cxx*)
  12190. lt_prog_compiler_pic_CXX='-W c,exportall'
  12191. ;;
  12192. *)
  12193. ;;
  12194. esac
  12195. ;;
  12196. netbsd*)
  12197. ;;
  12198. *qnx* | *nto*)
  12199. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12200. # it will coredump.
  12201. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12202. ;;
  12203. osf3* | osf4* | osf5*)
  12204. case $cc_basename in
  12205. KCC*)
  12206. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12207. ;;
  12208. RCC*)
  12209. # Rational C++ 2.4.1
  12210. lt_prog_compiler_pic_CXX='-pic'
  12211. ;;
  12212. cxx*)
  12213. # Digital/Compaq C++
  12214. lt_prog_compiler_wl_CXX='-Wl,'
  12215. # Make sure the PIC flag is empty. It appears that all Alpha
  12216. # Linux and Compaq Tru64 Unix objects are PIC.
  12217. lt_prog_compiler_pic_CXX=
  12218. lt_prog_compiler_static_CXX='-non_shared'
  12219. ;;
  12220. *)
  12221. ;;
  12222. esac
  12223. ;;
  12224. psos*)
  12225. ;;
  12226. solaris*)
  12227. case $cc_basename in
  12228. CC* | sunCC*)
  12229. # Sun C++ 4.2, 5.x and Centerline C++
  12230. lt_prog_compiler_pic_CXX='-KPIC'
  12231. lt_prog_compiler_static_CXX='-Bstatic'
  12232. lt_prog_compiler_wl_CXX='-Qoption ld '
  12233. ;;
  12234. gcx*)
  12235. # Green Hills C++ Compiler
  12236. lt_prog_compiler_pic_CXX='-PIC'
  12237. ;;
  12238. *)
  12239. ;;
  12240. esac
  12241. ;;
  12242. sunos4*)
  12243. case $cc_basename in
  12244. CC*)
  12245. # Sun C++ 4.x
  12246. lt_prog_compiler_pic_CXX='-pic'
  12247. lt_prog_compiler_static_CXX='-Bstatic'
  12248. ;;
  12249. lcc*)
  12250. # Lucid
  12251. lt_prog_compiler_pic_CXX='-pic'
  12252. ;;
  12253. *)
  12254. ;;
  12255. esac
  12256. ;;
  12257. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12258. case $cc_basename in
  12259. CC*)
  12260. lt_prog_compiler_wl_CXX='-Wl,'
  12261. lt_prog_compiler_pic_CXX='-KPIC'
  12262. lt_prog_compiler_static_CXX='-Bstatic'
  12263. ;;
  12264. esac
  12265. ;;
  12266. tandem*)
  12267. case $cc_basename in
  12268. NCC*)
  12269. # NonStop-UX NCC 3.20
  12270. lt_prog_compiler_pic_CXX='-KPIC'
  12271. ;;
  12272. *)
  12273. ;;
  12274. esac
  12275. ;;
  12276. vxworks*)
  12277. ;;
  12278. *)
  12279. lt_prog_compiler_can_build_shared_CXX=no
  12280. ;;
  12281. esac
  12282. fi
  12283. case $host_os in
  12284. # For platforms which do not support PIC, -DPIC is meaningless:
  12285. *djgpp*)
  12286. lt_prog_compiler_pic_CXX=
  12287. ;;
  12288. *)
  12289. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12290. ;;
  12291. esac
  12292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12293. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12294. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12295. $as_echo_n "(cached) " >&6
  12296. else
  12297. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12298. fi
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12300. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12301. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12302. #
  12303. # Check to make sure the PIC flag actually works.
  12304. #
  12305. if test -n "$lt_prog_compiler_pic_CXX"; then
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12307. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12308. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12309. $as_echo_n "(cached) " >&6
  12310. else
  12311. lt_cv_prog_compiler_pic_works_CXX=no
  12312. ac_outfile=conftest.$ac_objext
  12313. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12314. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12315. # Insert the option either (1) after the last *FLAGS variable, or
  12316. # (2) before a word containing "conftest.", or (3) at the end.
  12317. # Note that $ac_compile itself does not contain backslashes and begins
  12318. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12319. # The option is referenced via a variable to avoid confusing sed.
  12320. lt_compile=`echo "$ac_compile" | $SED \
  12321. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12322. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12323. -e 's:$: $lt_compiler_flag:'`
  12324. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12325. (eval "$lt_compile" 2>conftest.err)
  12326. ac_status=$?
  12327. cat conftest.err >&5
  12328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12329. if (exit $ac_status) && test -s "$ac_outfile"; then
  12330. # The compiler can only warn and ignore the option if not recognized
  12331. # So say no if there are warnings other than the usual output.
  12332. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12333. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12334. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12335. lt_cv_prog_compiler_pic_works_CXX=yes
  12336. fi
  12337. fi
  12338. $RM conftest*
  12339. fi
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12341. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12342. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12343. case $lt_prog_compiler_pic_CXX in
  12344. "" | " "*) ;;
  12345. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12346. esac
  12347. else
  12348. lt_prog_compiler_pic_CXX=
  12349. lt_prog_compiler_can_build_shared_CXX=no
  12350. fi
  12351. fi
  12352. #
  12353. # Check to make sure the static flag actually works.
  12354. #
  12355. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12357. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12358. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12359. $as_echo_n "(cached) " >&6
  12360. else
  12361. lt_cv_prog_compiler_static_works_CXX=no
  12362. save_LDFLAGS="$LDFLAGS"
  12363. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12364. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12365. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12366. # The linker can only warn and ignore the option if not recognized
  12367. # So say no if there are warnings
  12368. if test -s conftest.err; then
  12369. # Append any errors to the config.log.
  12370. cat conftest.err 1>&5
  12371. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12372. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12373. if diff conftest.exp conftest.er2 >/dev/null; then
  12374. lt_cv_prog_compiler_static_works_CXX=yes
  12375. fi
  12376. else
  12377. lt_cv_prog_compiler_static_works_CXX=yes
  12378. fi
  12379. fi
  12380. $RM -r conftest*
  12381. LDFLAGS="$save_LDFLAGS"
  12382. fi
  12383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12384. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12385. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12386. :
  12387. else
  12388. lt_prog_compiler_static_CXX=
  12389. fi
  12390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12391. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12392. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12393. $as_echo_n "(cached) " >&6
  12394. else
  12395. lt_cv_prog_compiler_c_o_CXX=no
  12396. $RM -r conftest 2>/dev/null
  12397. mkdir conftest
  12398. cd conftest
  12399. mkdir out
  12400. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12401. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12402. # Insert the option either (1) after the last *FLAGS variable, or
  12403. # (2) before a word containing "conftest.", or (3) at the end.
  12404. # Note that $ac_compile itself does not contain backslashes and begins
  12405. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12406. lt_compile=`echo "$ac_compile" | $SED \
  12407. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12408. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12409. -e 's:$: $lt_compiler_flag:'`
  12410. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12411. (eval "$lt_compile" 2>out/conftest.err)
  12412. ac_status=$?
  12413. cat out/conftest.err >&5
  12414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12415. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12416. then
  12417. # The compiler can only warn and ignore the option if not recognized
  12418. # So say no if there are warnings
  12419. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12420. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12421. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12422. lt_cv_prog_compiler_c_o_CXX=yes
  12423. fi
  12424. fi
  12425. chmod u+w . 2>&5
  12426. $RM conftest*
  12427. # SGI C++ compiler will create directory out/ii_files/ for
  12428. # template instantiation
  12429. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12430. $RM out/* && rmdir out
  12431. cd ..
  12432. $RM -r conftest
  12433. $RM conftest*
  12434. fi
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12436. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12438. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12439. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12440. $as_echo_n "(cached) " >&6
  12441. else
  12442. lt_cv_prog_compiler_c_o_CXX=no
  12443. $RM -r conftest 2>/dev/null
  12444. mkdir conftest
  12445. cd conftest
  12446. mkdir out
  12447. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12448. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12449. # Insert the option either (1) after the last *FLAGS variable, or
  12450. # (2) before a word containing "conftest.", or (3) at the end.
  12451. # Note that $ac_compile itself does not contain backslashes and begins
  12452. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12453. lt_compile=`echo "$ac_compile" | $SED \
  12454. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12455. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12456. -e 's:$: $lt_compiler_flag:'`
  12457. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12458. (eval "$lt_compile" 2>out/conftest.err)
  12459. ac_status=$?
  12460. cat out/conftest.err >&5
  12461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12462. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12463. then
  12464. # The compiler can only warn and ignore the option if not recognized
  12465. # So say no if there are warnings
  12466. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12467. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12468. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12469. lt_cv_prog_compiler_c_o_CXX=yes
  12470. fi
  12471. fi
  12472. chmod u+w . 2>&5
  12473. $RM conftest*
  12474. # SGI C++ compiler will create directory out/ii_files/ for
  12475. # template instantiation
  12476. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12477. $RM out/* && rmdir out
  12478. cd ..
  12479. $RM -r conftest
  12480. $RM conftest*
  12481. fi
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12483. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12484. hard_links="nottested"
  12485. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12486. # do not overwrite the value of need_locks provided by the user
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12488. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12489. hard_links=yes
  12490. $RM conftest*
  12491. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12492. touch conftest.a
  12493. ln conftest.a conftest.b 2>&5 || hard_links=no
  12494. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12496. $as_echo "$hard_links" >&6; }
  12497. if test "$hard_links" = no; then
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12499. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12500. need_locks=warn
  12501. fi
  12502. else
  12503. need_locks=no
  12504. fi
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12506. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12507. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12508. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12509. case $host_os in
  12510. aix[4-9]*)
  12511. # If we're using GNU nm, then we don't want the "-C" option.
  12512. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12513. # Also, AIX nm treats weak defined symbols like other global defined
  12514. # symbols, whereas GNU nm marks them as "W".
  12515. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12516. 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'
  12517. else
  12518. 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'
  12519. fi
  12520. ;;
  12521. pw32*)
  12522. export_symbols_cmds_CXX="$ltdll_cmds"
  12523. ;;
  12524. cygwin* | mingw* | cegcc*)
  12525. case $cc_basename in
  12526. cl*)
  12527. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12528. ;;
  12529. *)
  12530. 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'
  12531. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12532. ;;
  12533. esac
  12534. ;;
  12535. *)
  12536. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12537. ;;
  12538. esac
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12540. $as_echo "$ld_shlibs_CXX" >&6; }
  12541. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12542. with_gnu_ld_CXX=$with_gnu_ld
  12543. #
  12544. # Do we need to explicitly link libc?
  12545. #
  12546. case "x$archive_cmds_need_lc_CXX" in
  12547. x|xyes)
  12548. # Assume -lc should be added
  12549. archive_cmds_need_lc_CXX=yes
  12550. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12551. case $archive_cmds_CXX in
  12552. *'~'*)
  12553. # FIXME: we may have to deal with multi-command sequences.
  12554. ;;
  12555. '$CC '*)
  12556. # Test whether the compiler implicitly links with -lc since on some
  12557. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12558. # to ld, don't add -lc before -lgcc.
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12560. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12561. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12562. $as_echo_n "(cached) " >&6
  12563. else
  12564. $RM conftest*
  12565. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12566. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12567. (eval $ac_compile) 2>&5
  12568. ac_status=$?
  12569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12570. test $ac_status = 0; } 2>conftest.err; then
  12571. soname=conftest
  12572. lib=conftest
  12573. libobjs=conftest.$ac_objext
  12574. deplibs=
  12575. wl=$lt_prog_compiler_wl_CXX
  12576. pic_flag=$lt_prog_compiler_pic_CXX
  12577. compiler_flags=-v
  12578. linker_flags=-v
  12579. verstring=
  12580. output_objdir=.
  12581. libname=conftest
  12582. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12583. allow_undefined_flag_CXX=
  12584. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12585. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12586. ac_status=$?
  12587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12588. test $ac_status = 0; }
  12589. then
  12590. lt_cv_archive_cmds_need_lc_CXX=no
  12591. else
  12592. lt_cv_archive_cmds_need_lc_CXX=yes
  12593. fi
  12594. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12595. else
  12596. cat conftest.err 1>&5
  12597. fi
  12598. $RM conftest*
  12599. fi
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12601. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12602. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12603. ;;
  12604. esac
  12605. fi
  12606. ;;
  12607. esac
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12609. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12610. library_names_spec=
  12611. libname_spec='lib$name'
  12612. soname_spec=
  12613. shrext_cmds=".so"
  12614. postinstall_cmds=
  12615. postuninstall_cmds=
  12616. finish_cmds=
  12617. finish_eval=
  12618. shlibpath_var=
  12619. shlibpath_overrides_runpath=unknown
  12620. version_type=none
  12621. dynamic_linker="$host_os ld.so"
  12622. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12623. need_lib_prefix=unknown
  12624. hardcode_into_libs=no
  12625. # when you set need_version to no, make sure it does not cause -set_version
  12626. # flags to be left without arguments
  12627. need_version=unknown
  12628. case $host_os in
  12629. aix3*)
  12630. version_type=linux # correct to gnu/linux during the next big refactor
  12631. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12632. shlibpath_var=LIBPATH
  12633. # AIX 3 has no versioning support, so we append a major version to the name.
  12634. soname_spec='${libname}${release}${shared_ext}$major'
  12635. ;;
  12636. aix[4-9]*)
  12637. version_type=linux # correct to gnu/linux during the next big refactor
  12638. need_lib_prefix=no
  12639. need_version=no
  12640. hardcode_into_libs=yes
  12641. if test "$host_cpu" = ia64; then
  12642. # AIX 5 supports IA64
  12643. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12644. shlibpath_var=LD_LIBRARY_PATH
  12645. else
  12646. # With GCC up to 2.95.x, collect2 would create an import file
  12647. # for dependence libraries. The import file would start with
  12648. # the line `#! .'. This would cause the generated library to
  12649. # depend on `.', always an invalid library. This was fixed in
  12650. # development snapshots of GCC prior to 3.0.
  12651. case $host_os in
  12652. aix4 | aix4.[01] | aix4.[01].*)
  12653. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12654. echo ' yes '
  12655. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12656. :
  12657. else
  12658. can_build_shared=no
  12659. fi
  12660. ;;
  12661. esac
  12662. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12663. # soname into executable. Probably we can add versioning support to
  12664. # collect2, so additional links can be useful in future.
  12665. if test "$aix_use_runtimelinking" = yes; then
  12666. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12667. # instead of lib<name>.a to let people know that these are not
  12668. # typical AIX shared libraries.
  12669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12670. else
  12671. # We preserve .a as extension for shared libraries through AIX4.2
  12672. # and later when we are not doing run time linking.
  12673. library_names_spec='${libname}${release}.a $libname.a'
  12674. soname_spec='${libname}${release}${shared_ext}$major'
  12675. fi
  12676. shlibpath_var=LIBPATH
  12677. fi
  12678. ;;
  12679. amigaos*)
  12680. case $host_cpu in
  12681. powerpc)
  12682. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12683. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12685. ;;
  12686. m68k)
  12687. library_names_spec='$libname.ixlibrary $libname.a'
  12688. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12689. 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'
  12690. ;;
  12691. esac
  12692. ;;
  12693. beos*)
  12694. library_names_spec='${libname}${shared_ext}'
  12695. dynamic_linker="$host_os ld.so"
  12696. shlibpath_var=LIBRARY_PATH
  12697. ;;
  12698. bsdi[45]*)
  12699. version_type=linux # correct to gnu/linux during the next big refactor
  12700. need_version=no
  12701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12702. soname_spec='${libname}${release}${shared_ext}$major'
  12703. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12704. shlibpath_var=LD_LIBRARY_PATH
  12705. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12706. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12707. # the default ld.so.conf also contains /usr/contrib/lib and
  12708. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12709. # libtool to hard-code these into programs
  12710. ;;
  12711. cygwin* | mingw* | pw32* | cegcc*)
  12712. version_type=windows
  12713. shrext_cmds=".dll"
  12714. need_version=no
  12715. need_lib_prefix=no
  12716. case $GCC,$cc_basename in
  12717. yes,*)
  12718. # gcc
  12719. library_names_spec='$libname.dll.a'
  12720. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12721. postinstall_cmds='base_file=`basename \${file}`~
  12722. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12723. dldir=$destdir/`dirname \$dlpath`~
  12724. test -d \$dldir || mkdir -p \$dldir~
  12725. $install_prog $dir/$dlname \$dldir/$dlname~
  12726. chmod a+x \$dldir/$dlname~
  12727. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12728. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12729. fi'
  12730. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12731. dlpath=$dir/\$dldll~
  12732. $RM \$dlpath'
  12733. shlibpath_overrides_runpath=yes
  12734. case $host_os in
  12735. cygwin*)
  12736. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12737. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12738. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12739. ;;
  12740. mingw* | cegcc*)
  12741. # MinGW DLLs use traditional 'lib' prefix
  12742. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12743. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12744. ;;
  12745. pw32*)
  12746. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12747. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12748. ;;
  12749. esac
  12750. dynamic_linker='Win32 ld.exe'
  12751. ;;
  12752. *,cl*)
  12753. # Native MSVC
  12754. libname_spec='$name'
  12755. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12756. library_names_spec='${libname}.dll.lib'
  12757. case $build_os in
  12758. mingw*)
  12759. sys_lib_search_path_spec=
  12760. lt_save_ifs=$IFS
  12761. IFS=';'
  12762. for lt_path in $LIB
  12763. do
  12764. IFS=$lt_save_ifs
  12765. # Let DOS variable expansion print the short 8.3 style file name.
  12766. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12767. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12768. done
  12769. IFS=$lt_save_ifs
  12770. # Convert to MSYS style.
  12771. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12772. ;;
  12773. cygwin*)
  12774. # Convert to unix form, then to dos form, then back to unix form
  12775. # but this time dos style (no spaces!) so that the unix form looks
  12776. # like /cygdrive/c/PROGRA~1:/cygdr...
  12777. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12778. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12779. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12780. ;;
  12781. *)
  12782. sys_lib_search_path_spec="$LIB"
  12783. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12784. # It is most probably a Windows format PATH.
  12785. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12786. else
  12787. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12788. fi
  12789. # FIXME: find the short name or the path components, as spaces are
  12790. # common. (e.g. "Program Files" -> "PROGRA~1")
  12791. ;;
  12792. esac
  12793. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12794. postinstall_cmds='base_file=`basename \${file}`~
  12795. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12796. dldir=$destdir/`dirname \$dlpath`~
  12797. test -d \$dldir || mkdir -p \$dldir~
  12798. $install_prog $dir/$dlname \$dldir/$dlname'
  12799. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12800. dlpath=$dir/\$dldll~
  12801. $RM \$dlpath'
  12802. shlibpath_overrides_runpath=yes
  12803. dynamic_linker='Win32 link.exe'
  12804. ;;
  12805. *)
  12806. # Assume MSVC wrapper
  12807. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12808. dynamic_linker='Win32 ld.exe'
  12809. ;;
  12810. esac
  12811. # FIXME: first we should search . and the directory the executable is in
  12812. shlibpath_var=PATH
  12813. ;;
  12814. darwin* | rhapsody*)
  12815. dynamic_linker="$host_os dyld"
  12816. version_type=darwin
  12817. need_lib_prefix=no
  12818. need_version=no
  12819. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12820. soname_spec='${libname}${release}${major}$shared_ext'
  12821. shlibpath_overrides_runpath=yes
  12822. shlibpath_var=DYLD_LIBRARY_PATH
  12823. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12824. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12825. ;;
  12826. dgux*)
  12827. version_type=linux # correct to gnu/linux during the next big refactor
  12828. need_lib_prefix=no
  12829. need_version=no
  12830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12831. soname_spec='${libname}${release}${shared_ext}$major'
  12832. shlibpath_var=LD_LIBRARY_PATH
  12833. ;;
  12834. freebsd* | dragonfly*)
  12835. # DragonFly does not have aout. When/if they implement a new
  12836. # versioning mechanism, adjust this.
  12837. if test -x /usr/bin/objformat; then
  12838. objformat=`/usr/bin/objformat`
  12839. else
  12840. case $host_os in
  12841. freebsd[23].*) objformat=aout ;;
  12842. *) objformat=elf ;;
  12843. esac
  12844. fi
  12845. version_type=freebsd-$objformat
  12846. case $version_type in
  12847. freebsd-elf*)
  12848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12849. need_version=no
  12850. need_lib_prefix=no
  12851. ;;
  12852. freebsd-*)
  12853. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12854. need_version=yes
  12855. ;;
  12856. esac
  12857. shlibpath_var=LD_LIBRARY_PATH
  12858. case $host_os in
  12859. freebsd2.*)
  12860. shlibpath_overrides_runpath=yes
  12861. ;;
  12862. freebsd3.[01]* | freebsdelf3.[01]*)
  12863. shlibpath_overrides_runpath=yes
  12864. hardcode_into_libs=yes
  12865. ;;
  12866. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12867. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12868. shlibpath_overrides_runpath=no
  12869. hardcode_into_libs=yes
  12870. ;;
  12871. *) # from 4.6 on, and DragonFly
  12872. shlibpath_overrides_runpath=yes
  12873. hardcode_into_libs=yes
  12874. ;;
  12875. esac
  12876. ;;
  12877. gnu*)
  12878. version_type=linux # correct to gnu/linux during the next big refactor
  12879. need_lib_prefix=no
  12880. need_version=no
  12881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12882. soname_spec='${libname}${release}${shared_ext}$major'
  12883. shlibpath_var=LD_LIBRARY_PATH
  12884. shlibpath_overrides_runpath=no
  12885. hardcode_into_libs=yes
  12886. ;;
  12887. haiku*)
  12888. version_type=linux # correct to gnu/linux during the next big refactor
  12889. need_lib_prefix=no
  12890. need_version=no
  12891. dynamic_linker="$host_os runtime_loader"
  12892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12893. soname_spec='${libname}${release}${shared_ext}$major'
  12894. shlibpath_var=LIBRARY_PATH
  12895. shlibpath_overrides_runpath=yes
  12896. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12897. hardcode_into_libs=yes
  12898. ;;
  12899. hpux9* | hpux10* | hpux11*)
  12900. # Give a soname corresponding to the major version so that dld.sl refuses to
  12901. # link against other versions.
  12902. version_type=sunos
  12903. need_lib_prefix=no
  12904. need_version=no
  12905. case $host_cpu in
  12906. ia64*)
  12907. shrext_cmds='.so'
  12908. hardcode_into_libs=yes
  12909. dynamic_linker="$host_os dld.so"
  12910. shlibpath_var=LD_LIBRARY_PATH
  12911. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12913. soname_spec='${libname}${release}${shared_ext}$major'
  12914. if test "X$HPUX_IA64_MODE" = X32; then
  12915. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12916. else
  12917. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12918. fi
  12919. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12920. ;;
  12921. hppa*64*)
  12922. shrext_cmds='.sl'
  12923. hardcode_into_libs=yes
  12924. dynamic_linker="$host_os dld.sl"
  12925. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12926. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12928. soname_spec='${libname}${release}${shared_ext}$major'
  12929. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12930. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12931. ;;
  12932. *)
  12933. shrext_cmds='.sl'
  12934. dynamic_linker="$host_os dld.sl"
  12935. shlibpath_var=SHLIB_PATH
  12936. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. ;;
  12940. esac
  12941. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12942. postinstall_cmds='chmod 555 $lib'
  12943. # or fails outright, so override atomically:
  12944. install_override_mode=555
  12945. ;;
  12946. interix[3-9]*)
  12947. version_type=linux # correct to gnu/linux during the next big refactor
  12948. need_lib_prefix=no
  12949. need_version=no
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12953. shlibpath_var=LD_LIBRARY_PATH
  12954. shlibpath_overrides_runpath=no
  12955. hardcode_into_libs=yes
  12956. ;;
  12957. irix5* | irix6* | nonstopux*)
  12958. case $host_os in
  12959. nonstopux*) version_type=nonstopux ;;
  12960. *)
  12961. if test "$lt_cv_prog_gnu_ld" = yes; then
  12962. version_type=linux # correct to gnu/linux during the next big refactor
  12963. else
  12964. version_type=irix
  12965. fi ;;
  12966. esac
  12967. need_lib_prefix=no
  12968. need_version=no
  12969. soname_spec='${libname}${release}${shared_ext}$major'
  12970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12971. case $host_os in
  12972. irix5* | nonstopux*)
  12973. libsuff= shlibsuff=
  12974. ;;
  12975. *)
  12976. case $LD in # libtool.m4 will add one of these switches to LD
  12977. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12978. libsuff= shlibsuff= libmagic=32-bit;;
  12979. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12980. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12981. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12982. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12983. *) libsuff= shlibsuff= libmagic=never-match;;
  12984. esac
  12985. ;;
  12986. esac
  12987. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12988. shlibpath_overrides_runpath=no
  12989. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12990. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12991. hardcode_into_libs=yes
  12992. ;;
  12993. # No shared lib support for Linux oldld, aout, or coff.
  12994. linux*oldld* | linux*aout* | linux*coff*)
  12995. dynamic_linker=no
  12996. ;;
  12997. # This must be glibc/ELF.
  12998. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12999. version_type=linux # correct to gnu/linux during the next big refactor
  13000. need_lib_prefix=no
  13001. need_version=no
  13002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13003. soname_spec='${libname}${release}${shared_ext}$major'
  13004. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13005. shlibpath_var=LD_LIBRARY_PATH
  13006. shlibpath_overrides_runpath=no
  13007. # Some binutils ld are patched to set DT_RUNPATH
  13008. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13009. $as_echo_n "(cached) " >&6
  13010. else
  13011. lt_cv_shlibpath_overrides_runpath=no
  13012. save_LDFLAGS=$LDFLAGS
  13013. save_libdir=$libdir
  13014. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13015. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13017. /* end confdefs.h. */
  13018. int
  13019. main ()
  13020. {
  13021. ;
  13022. return 0;
  13023. }
  13024. _ACEOF
  13025. if ac_fn_cxx_try_link "$LINENO"; then :
  13026. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13027. lt_cv_shlibpath_overrides_runpath=yes
  13028. fi
  13029. fi
  13030. rm -f core conftest.err conftest.$ac_objext \
  13031. conftest$ac_exeext conftest.$ac_ext
  13032. LDFLAGS=$save_LDFLAGS
  13033. libdir=$save_libdir
  13034. fi
  13035. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13036. # This implies no fast_install, which is unacceptable.
  13037. # Some rework will be needed to allow for fast_install
  13038. # before this can be enabled.
  13039. hardcode_into_libs=yes
  13040. # Append ld.so.conf contents to the search path
  13041. if test -f /etc/ld.so.conf; then
  13042. 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' ' '`
  13043. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13044. fi
  13045. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13046. # powerpc, because MkLinux only supported shared libraries with the
  13047. # GNU dynamic linker. Since this was broken with cross compilers,
  13048. # most powerpc-linux boxes support dynamic linking these days and
  13049. # people can always --disable-shared, the test was removed, and we
  13050. # assume the GNU/Linux dynamic linker is in use.
  13051. dynamic_linker='GNU/Linux ld.so'
  13052. ;;
  13053. netbsd*)
  13054. version_type=sunos
  13055. need_lib_prefix=no
  13056. need_version=no
  13057. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13059. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13060. dynamic_linker='NetBSD (a.out) ld.so'
  13061. else
  13062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13063. soname_spec='${libname}${release}${shared_ext}$major'
  13064. dynamic_linker='NetBSD ld.elf_so'
  13065. fi
  13066. shlibpath_var=LD_LIBRARY_PATH
  13067. shlibpath_overrides_runpath=yes
  13068. hardcode_into_libs=yes
  13069. ;;
  13070. newsos6)
  13071. version_type=linux # correct to gnu/linux during the next big refactor
  13072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13073. shlibpath_var=LD_LIBRARY_PATH
  13074. shlibpath_overrides_runpath=yes
  13075. ;;
  13076. *nto* | *qnx*)
  13077. version_type=qnx
  13078. need_lib_prefix=no
  13079. need_version=no
  13080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13081. soname_spec='${libname}${release}${shared_ext}$major'
  13082. shlibpath_var=LD_LIBRARY_PATH
  13083. shlibpath_overrides_runpath=no
  13084. hardcode_into_libs=yes
  13085. dynamic_linker='ldqnx.so'
  13086. ;;
  13087. openbsd*)
  13088. version_type=sunos
  13089. sys_lib_dlsearch_path_spec="/usr/lib"
  13090. need_lib_prefix=no
  13091. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13092. case $host_os in
  13093. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13094. *) need_version=no ;;
  13095. esac
  13096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13097. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13098. shlibpath_var=LD_LIBRARY_PATH
  13099. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13100. case $host_os in
  13101. openbsd2.[89] | openbsd2.[89].*)
  13102. shlibpath_overrides_runpath=no
  13103. ;;
  13104. *)
  13105. shlibpath_overrides_runpath=yes
  13106. ;;
  13107. esac
  13108. else
  13109. shlibpath_overrides_runpath=yes
  13110. fi
  13111. ;;
  13112. os2*)
  13113. libname_spec='$name'
  13114. shrext_cmds=".dll"
  13115. need_lib_prefix=no
  13116. library_names_spec='$libname${shared_ext} $libname.a'
  13117. dynamic_linker='OS/2 ld.exe'
  13118. shlibpath_var=LIBPATH
  13119. ;;
  13120. osf3* | osf4* | osf5*)
  13121. version_type=osf
  13122. need_lib_prefix=no
  13123. need_version=no
  13124. soname_spec='${libname}${release}${shared_ext}$major'
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13126. shlibpath_var=LD_LIBRARY_PATH
  13127. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13128. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13129. ;;
  13130. rdos*)
  13131. dynamic_linker=no
  13132. ;;
  13133. solaris*)
  13134. version_type=linux # correct to gnu/linux during the next big refactor
  13135. need_lib_prefix=no
  13136. need_version=no
  13137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13138. soname_spec='${libname}${release}${shared_ext}$major'
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. shlibpath_overrides_runpath=yes
  13141. hardcode_into_libs=yes
  13142. # ldd complains unless libraries are executable
  13143. postinstall_cmds='chmod +x $lib'
  13144. ;;
  13145. sunos4*)
  13146. version_type=sunos
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13148. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. shlibpath_overrides_runpath=yes
  13151. if test "$with_gnu_ld" = yes; then
  13152. need_lib_prefix=no
  13153. fi
  13154. need_version=yes
  13155. ;;
  13156. sysv4 | sysv4.3*)
  13157. version_type=linux # correct to gnu/linux during the next big refactor
  13158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13159. soname_spec='${libname}${release}${shared_ext}$major'
  13160. shlibpath_var=LD_LIBRARY_PATH
  13161. case $host_vendor in
  13162. sni)
  13163. shlibpath_overrides_runpath=no
  13164. need_lib_prefix=no
  13165. runpath_var=LD_RUN_PATH
  13166. ;;
  13167. siemens)
  13168. need_lib_prefix=no
  13169. ;;
  13170. motorola)
  13171. need_lib_prefix=no
  13172. need_version=no
  13173. shlibpath_overrides_runpath=no
  13174. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13175. ;;
  13176. esac
  13177. ;;
  13178. sysv4*MP*)
  13179. if test -d /usr/nec ;then
  13180. version_type=linux # correct to gnu/linux during the next big refactor
  13181. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13182. soname_spec='$libname${shared_ext}.$major'
  13183. shlibpath_var=LD_LIBRARY_PATH
  13184. fi
  13185. ;;
  13186. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13187. version_type=freebsd-elf
  13188. need_lib_prefix=no
  13189. need_version=no
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. shlibpath_var=LD_LIBRARY_PATH
  13193. shlibpath_overrides_runpath=yes
  13194. hardcode_into_libs=yes
  13195. if test "$with_gnu_ld" = yes; then
  13196. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13197. else
  13198. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13199. case $host_os in
  13200. sco3.2v5*)
  13201. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13202. ;;
  13203. esac
  13204. fi
  13205. sys_lib_dlsearch_path_spec='/usr/lib'
  13206. ;;
  13207. tpf*)
  13208. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13209. version_type=linux # correct to gnu/linux during the next big refactor
  13210. need_lib_prefix=no
  13211. need_version=no
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13213. shlibpath_var=LD_LIBRARY_PATH
  13214. shlibpath_overrides_runpath=no
  13215. hardcode_into_libs=yes
  13216. ;;
  13217. uts4*)
  13218. version_type=linux # correct to gnu/linux during the next big refactor
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. shlibpath_var=LD_LIBRARY_PATH
  13222. ;;
  13223. *)
  13224. dynamic_linker=no
  13225. ;;
  13226. esac
  13227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13228. $as_echo "$dynamic_linker" >&6; }
  13229. test "$dynamic_linker" = no && can_build_shared=no
  13230. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13231. if test "$GCC" = yes; then
  13232. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13233. fi
  13234. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13235. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13236. fi
  13237. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13238. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13239. fi
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13241. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13242. hardcode_action_CXX=
  13243. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13244. test -n "$runpath_var_CXX" ||
  13245. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13246. # We can hardcode non-existent directories.
  13247. if test "$hardcode_direct_CXX" != no &&
  13248. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13249. # have to relink, otherwise we might link with an installed library
  13250. # when we should be linking with a yet-to-be-installed one
  13251. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13252. test "$hardcode_minus_L_CXX" != no; then
  13253. # Linking always hardcodes the temporary library directory.
  13254. hardcode_action_CXX=relink
  13255. else
  13256. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13257. hardcode_action_CXX=immediate
  13258. fi
  13259. else
  13260. # We cannot hardcode anything, or else we can only hardcode existing
  13261. # directories.
  13262. hardcode_action_CXX=unsupported
  13263. fi
  13264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13265. $as_echo "$hardcode_action_CXX" >&6; }
  13266. if test "$hardcode_action_CXX" = relink ||
  13267. test "$inherit_rpath_CXX" = yes; then
  13268. # Fast installation is not supported
  13269. enable_fast_install=no
  13270. elif test "$shlibpath_overrides_runpath" = yes ||
  13271. test "$enable_shared" = no; then
  13272. # Fast installation is not necessary
  13273. enable_fast_install=needless
  13274. fi
  13275. fi # test -n "$compiler"
  13276. CC=$lt_save_CC
  13277. CFLAGS=$lt_save_CFLAGS
  13278. LDCXX=$LD
  13279. LD=$lt_save_LD
  13280. GCC=$lt_save_GCC
  13281. with_gnu_ld=$lt_save_with_gnu_ld
  13282. lt_cv_path_LDCXX=$lt_cv_path_LD
  13283. lt_cv_path_LD=$lt_save_path_LD
  13284. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13285. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13286. fi # test "$_lt_caught_CXX_error" != yes
  13287. ac_ext=c
  13288. ac_cpp='$CPP $CPPFLAGS'
  13289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13292. # Find a good install program. We prefer a C program (faster),
  13293. # so one script is as good as another. But avoid the broken or
  13294. # incompatible versions:
  13295. # SysV /etc/install, /usr/sbin/install
  13296. # SunOS /usr/etc/install
  13297. # IRIX /sbin/install
  13298. # AIX /bin/install
  13299. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13300. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13301. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13302. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13303. # OS/2's system install, which has a completely different semantic
  13304. # ./install, which can be erroneously created by make from ./install.sh.
  13305. # Reject install programs that cannot install multiple files.
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13307. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13308. if test -z "$INSTALL"; then
  13309. if ${ac_cv_path_install+:} false; then :
  13310. $as_echo_n "(cached) " >&6
  13311. else
  13312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13313. for as_dir in $PATH
  13314. do
  13315. IFS=$as_save_IFS
  13316. test -z "$as_dir" && as_dir=.
  13317. # Account for people who put trailing slashes in PATH elements.
  13318. case $as_dir/ in #((
  13319. ./ | .// | /[cC]/* | \
  13320. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13321. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13322. /usr/ucb/* ) ;;
  13323. *)
  13324. # OSF1 and SCO ODT 3.0 have their own names for install.
  13325. # Don't use installbsd from OSF since it installs stuff as root
  13326. # by default.
  13327. for ac_prog in ginstall scoinst install; do
  13328. for ac_exec_ext in '' $ac_executable_extensions; do
  13329. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13330. if test $ac_prog = install &&
  13331. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13332. # AIX install. It has an incompatible calling convention.
  13333. :
  13334. elif test $ac_prog = install &&
  13335. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13336. # program-specific install script used by HP pwplus--don't use.
  13337. :
  13338. else
  13339. rm -rf conftest.one conftest.two conftest.dir
  13340. echo one > conftest.one
  13341. echo two > conftest.two
  13342. mkdir conftest.dir
  13343. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13344. test -s conftest.one && test -s conftest.two &&
  13345. test -s conftest.dir/conftest.one &&
  13346. test -s conftest.dir/conftest.two
  13347. then
  13348. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13349. break 3
  13350. fi
  13351. fi
  13352. fi
  13353. done
  13354. done
  13355. ;;
  13356. esac
  13357. done
  13358. IFS=$as_save_IFS
  13359. rm -rf conftest.one conftest.two conftest.dir
  13360. fi
  13361. if test "${ac_cv_path_install+set}" = set; then
  13362. INSTALL=$ac_cv_path_install
  13363. else
  13364. # As a last resort, use the slow shell script. Don't cache a
  13365. # value for INSTALL within a source directory, because that will
  13366. # break other packages using the cache if that directory is
  13367. # removed, or if the value is a relative name.
  13368. INSTALL=$ac_install_sh
  13369. fi
  13370. fi
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13372. $as_echo "$INSTALL" >&6; }
  13373. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13374. # It thinks the first close brace ends the variable substitution.
  13375. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13376. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13377. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13379. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13380. set x ${MAKE-make}
  13381. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13382. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13383. $as_echo_n "(cached) " >&6
  13384. else
  13385. cat >conftest.make <<\_ACEOF
  13386. SHELL = /bin/sh
  13387. all:
  13388. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13389. _ACEOF
  13390. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13391. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13392. *@@@%%%=?*=@@@%%%*)
  13393. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13394. *)
  13395. eval ac_cv_prog_make_${ac_make}_set=no;;
  13396. esac
  13397. rm -f conftest.make
  13398. fi
  13399. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13401. $as_echo "yes" >&6; }
  13402. SET_MAKE=
  13403. else
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13405. $as_echo "no" >&6; }
  13406. SET_MAKE="MAKE=${MAKE-make}"
  13407. fi
  13408. if test -n "$ac_tool_prefix"; then
  13409. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13410. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13412. $as_echo_n "checking for $ac_word... " >&6; }
  13413. if ${ac_cv_prog_WINDRES+:} false; then :
  13414. $as_echo_n "(cached) " >&6
  13415. else
  13416. if test -n "$WINDRES"; then
  13417. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13418. else
  13419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13420. for as_dir in $PATH
  13421. do
  13422. IFS=$as_save_IFS
  13423. test -z "$as_dir" && as_dir=.
  13424. for ac_exec_ext in '' $ac_executable_extensions; do
  13425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13426. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13428. break 2
  13429. fi
  13430. done
  13431. done
  13432. IFS=$as_save_IFS
  13433. fi
  13434. fi
  13435. WINDRES=$ac_cv_prog_WINDRES
  13436. if test -n "$WINDRES"; then
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13438. $as_echo "$WINDRES" >&6; }
  13439. else
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13441. $as_echo "no" >&6; }
  13442. fi
  13443. fi
  13444. if test -z "$ac_cv_prog_WINDRES"; then
  13445. ac_ct_WINDRES=$WINDRES
  13446. # Extract the first word of "windres", so it can be a program name with args.
  13447. set dummy windres; ac_word=$2
  13448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13449. $as_echo_n "checking for $ac_word... " >&6; }
  13450. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13451. $as_echo_n "(cached) " >&6
  13452. else
  13453. if test -n "$ac_ct_WINDRES"; then
  13454. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13455. else
  13456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13457. for as_dir in $PATH
  13458. do
  13459. IFS=$as_save_IFS
  13460. test -z "$as_dir" && as_dir=.
  13461. for ac_exec_ext in '' $ac_executable_extensions; do
  13462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13463. ac_cv_prog_ac_ct_WINDRES="windres"
  13464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13465. break 2
  13466. fi
  13467. done
  13468. done
  13469. IFS=$as_save_IFS
  13470. fi
  13471. fi
  13472. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13473. if test -n "$ac_ct_WINDRES"; then
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13475. $as_echo "$ac_ct_WINDRES" >&6; }
  13476. else
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13478. $as_echo "no" >&6; }
  13479. fi
  13480. if test "x$ac_ct_WINDRES" = x; then
  13481. WINDRES=":"
  13482. else
  13483. case $cross_compiling:$ac_tool_warned in
  13484. yes:)
  13485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13487. ac_tool_warned=yes ;;
  13488. esac
  13489. WINDRES=$ac_ct_WINDRES
  13490. fi
  13491. else
  13492. WINDRES="$ac_cv_prog_WINDRES"
  13493. fi
  13494. case "$host" in
  13495. *-*-mingw32*)
  13496. # Except on msys, where make can't handle full pathnames (bug 1972)
  13497. ;;
  13498. *)
  13499. srcdir=`cd $srcdir && pwd`
  13500. ;;
  13501. esac
  13502. INCLUDE="-I$srcdir/include"
  13503. if test x$srcdir != x.; then
  13504. INCLUDE="-Iinclude $INCLUDE"
  13505. elif test -d .hg; then
  13506. as_fn_error $? "
  13507. *** When building from Mercurial you should configure and build in a
  13508. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13509. " "$LINENO" 5
  13510. fi
  13511. BASE_CFLAGS=""
  13512. BASE_LDFLAGS=""
  13513. case "$host" in
  13514. *-*-cygwin*)
  13515. # We build SDL on cygwin without the UNIX emulation layer
  13516. save_CFLAGS="$CFLAGS"
  13517. have_no_cygwin=no
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13519. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13520. CFLAGS="$save_CFLAGS -mno-cygwin"
  13521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13522. /* end confdefs.h. */
  13523. int
  13524. main ()
  13525. {
  13526. ;
  13527. return 0;
  13528. }
  13529. _ACEOF
  13530. if ac_fn_c_try_compile "$LINENO"; then :
  13531. have_no_cygwin=yes
  13532. fi
  13533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13535. $as_echo "$have_no_cygwin" >&6; }
  13536. CFLAGS="$save_CFLAGS"
  13537. if test x$have_no_cygwin = xyes; then
  13538. BASE_CFLAGS="-mno-cygwin"
  13539. BASE_LDFLAGS="-mno-cygwin"
  13540. fi
  13541. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13542. ;;
  13543. esac
  13544. # Uncomment the following line if you want to force SDL and applications
  13545. # built with it to be compiled for a particular architecture.
  13546. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13547. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13548. # The default optimization for SDL is -O3 (Bug #31)
  13549. if test "x$orig_CFLAGS" = x; then
  13550. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13551. fi
  13552. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13553. BUILD_LDFLAGS="$LDFLAGS"
  13554. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13555. ## These are common directories to find software packages
  13556. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13557. # if test -d $path/include; then
  13558. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13559. # fi
  13560. # if test -d $path/lib; then
  13561. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13562. # fi
  13563. #done
  13564. SDL_CFLAGS="$BASE_CFLAGS"
  13565. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13566. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13567. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13568. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13569. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13570. find_lib()
  13571. {
  13572. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13573. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13574. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13575. if test "$cross_compiling" = yes; then
  13576. host_lib_path=""
  13577. else
  13578. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13579. fi
  13580. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13581. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13582. if test x$lib != x; then
  13583. echo $lib
  13584. return
  13585. fi
  13586. done
  13587. }
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13589. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13590. if ${ac_cv_c_const+:} false; then :
  13591. $as_echo_n "(cached) " >&6
  13592. else
  13593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13594. /* end confdefs.h. */
  13595. int
  13596. main ()
  13597. {
  13598. #ifndef __cplusplus
  13599. /* Ultrix mips cc rejects this sort of thing. */
  13600. typedef int charset[2];
  13601. const charset cs = { 0, 0 };
  13602. /* SunOS 4.1.1 cc rejects this. */
  13603. char const *const *pcpcc;
  13604. char **ppc;
  13605. /* NEC SVR4.0.2 mips cc rejects this. */
  13606. struct point {int x, y;};
  13607. static struct point const zero = {0,0};
  13608. /* AIX XL C 1.02.0.0 rejects this.
  13609. It does not let you subtract one const X* pointer from another in
  13610. an arm of an if-expression whose if-part is not a constant
  13611. expression */
  13612. const char *g = "string";
  13613. pcpcc = &g + (g ? g-g : 0);
  13614. /* HPUX 7.0 cc rejects these. */
  13615. ++pcpcc;
  13616. ppc = (char**) pcpcc;
  13617. pcpcc = (char const *const *) ppc;
  13618. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13619. char tx;
  13620. char *t = &tx;
  13621. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13622. *t++ = 0;
  13623. if (s) return 0;
  13624. }
  13625. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13626. int x[] = {25, 17};
  13627. const int *foo = &x[0];
  13628. ++foo;
  13629. }
  13630. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13631. typedef const int *iptr;
  13632. iptr p = 0;
  13633. ++p;
  13634. }
  13635. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13636. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13637. struct s { int j; const int *ap[3]; } bx;
  13638. struct s *b = &bx; b->j = 5;
  13639. }
  13640. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13641. const int foo = 10;
  13642. if (!foo) return 0;
  13643. }
  13644. return !cs[0] && !zero.x;
  13645. #endif
  13646. ;
  13647. return 0;
  13648. }
  13649. _ACEOF
  13650. if ac_fn_c_try_compile "$LINENO"; then :
  13651. ac_cv_c_const=yes
  13652. else
  13653. ac_cv_c_const=no
  13654. fi
  13655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13656. fi
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13658. $as_echo "$ac_cv_c_const" >&6; }
  13659. if test $ac_cv_c_const = no; then
  13660. $as_echo "#define const /**/" >>confdefs.h
  13661. fi
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13663. $as_echo_n "checking for inline... " >&6; }
  13664. if ${ac_cv_c_inline+:} false; then :
  13665. $as_echo_n "(cached) " >&6
  13666. else
  13667. ac_cv_c_inline=no
  13668. for ac_kw in inline __inline__ __inline; do
  13669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13670. /* end confdefs.h. */
  13671. #ifndef __cplusplus
  13672. typedef int foo_t;
  13673. static $ac_kw foo_t static_foo () {return 0; }
  13674. $ac_kw foo_t foo () {return 0; }
  13675. #endif
  13676. _ACEOF
  13677. if ac_fn_c_try_compile "$LINENO"; then :
  13678. ac_cv_c_inline=$ac_kw
  13679. fi
  13680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13681. test "$ac_cv_c_inline" != no && break
  13682. done
  13683. fi
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13685. $as_echo "$ac_cv_c_inline" >&6; }
  13686. case $ac_cv_c_inline in
  13687. inline | yes) ;;
  13688. *)
  13689. case $ac_cv_c_inline in
  13690. no) ac_val=;;
  13691. *) ac_val=$ac_cv_c_inline;;
  13692. esac
  13693. cat >>confdefs.h <<_ACEOF
  13694. #ifndef __cplusplus
  13695. #define inline $ac_val
  13696. #endif
  13697. _ACEOF
  13698. ;;
  13699. esac
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13701. $as_echo_n "checking for working volatile... " >&6; }
  13702. if ${ac_cv_c_volatile+:} false; then :
  13703. $as_echo_n "(cached) " >&6
  13704. else
  13705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13706. /* end confdefs.h. */
  13707. int
  13708. main ()
  13709. {
  13710. volatile int x;
  13711. int * volatile y = (int *) 0;
  13712. return !x && !y;
  13713. ;
  13714. return 0;
  13715. }
  13716. _ACEOF
  13717. if ac_fn_c_try_compile "$LINENO"; then :
  13718. ac_cv_c_volatile=yes
  13719. else
  13720. ac_cv_c_volatile=no
  13721. fi
  13722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13723. fi
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13725. $as_echo "$ac_cv_c_volatile" >&6; }
  13726. if test $ac_cv_c_volatile = no; then
  13727. $as_echo "#define volatile /**/" >>confdefs.h
  13728. fi
  13729. # Check whether --enable-assertions was given.
  13730. if test "${enable_assertions+set}" = set; then :
  13731. enableval=$enable_assertions;
  13732. else
  13733. enable_assertions=auto
  13734. fi
  13735. case "$enable_assertions" in
  13736. auto) # Use optimization settings to determine assertion level
  13737. ;;
  13738. disabled)
  13739. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13740. ;;
  13741. release)
  13742. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13743. ;;
  13744. enabled)
  13745. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13746. ;;
  13747. paranoid)
  13748. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13749. ;;
  13750. *)
  13751. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13752. ;;
  13753. esac
  13754. # Check whether --enable-dependency-tracking was given.
  13755. if test "${enable_dependency_tracking+set}" = set; then :
  13756. enableval=$enable_dependency_tracking;
  13757. else
  13758. enable_dependency_tracking=yes
  13759. fi
  13760. if test x$enable_dependency_tracking = xyes; then
  13761. have_gcc_mmd_mt=no
  13762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13763. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13765. /* end confdefs.h. */
  13766. #if !defined(__GNUC__) || __GNUC__ < 3
  13767. #error Dependency tracking requires GCC 3.0 or newer
  13768. #endif
  13769. int
  13770. main ()
  13771. {
  13772. ;
  13773. return 0;
  13774. }
  13775. _ACEOF
  13776. if ac_fn_c_try_compile "$LINENO"; then :
  13777. have_gcc_mmd_mt=yes
  13778. fi
  13779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13781. $as_echo "$have_gcc_mmd_mt" >&6; }
  13782. if test x$have_gcc_mmd_mt = xyes; then
  13783. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13784. fi
  13785. fi
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13787. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13788. have_no_undefined=no
  13789. case "$host" in
  13790. *-*-openbsd*)
  13791. ;;
  13792. *)
  13793. save_LDFLAGS="$LDFLAGS"
  13794. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13796. /* end confdefs.h. */
  13797. int
  13798. main ()
  13799. {
  13800. ;
  13801. return 0;
  13802. }
  13803. _ACEOF
  13804. if ac_fn_c_try_link "$LINENO"; then :
  13805. have_no_undefined=yes
  13806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13807. fi
  13808. rm -f core conftest.err conftest.$ac_objext \
  13809. conftest$ac_exeext conftest.$ac_ext
  13810. LDFLAGS="$save_LDFLAGS"
  13811. ;;
  13812. esac
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13814. $as_echo "$have_no_undefined" >&6; }
  13815. # Check whether --enable-libc was given.
  13816. if test "${enable_libc+set}" = set; then :
  13817. enableval=$enable_libc;
  13818. else
  13819. enable_libc=yes
  13820. fi
  13821. if test x$enable_libc = xyes; then
  13822. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13824. $as_echo_n "checking for ANSI C header files... " >&6; }
  13825. if ${ac_cv_header_stdc+:} false; then :
  13826. $as_echo_n "(cached) " >&6
  13827. else
  13828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13829. /* end confdefs.h. */
  13830. #include <stdlib.h>
  13831. #include <stdarg.h>
  13832. #include <string.h>
  13833. #include <float.h>
  13834. int
  13835. main ()
  13836. {
  13837. ;
  13838. return 0;
  13839. }
  13840. _ACEOF
  13841. if ac_fn_c_try_compile "$LINENO"; then :
  13842. ac_cv_header_stdc=yes
  13843. else
  13844. ac_cv_header_stdc=no
  13845. fi
  13846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13847. if test $ac_cv_header_stdc = yes; then
  13848. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13850. /* end confdefs.h. */
  13851. #include <string.h>
  13852. _ACEOF
  13853. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13854. $EGREP "memchr" >/dev/null 2>&1; then :
  13855. else
  13856. ac_cv_header_stdc=no
  13857. fi
  13858. rm -f conftest*
  13859. fi
  13860. if test $ac_cv_header_stdc = yes; then
  13861. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13863. /* end confdefs.h. */
  13864. #include <stdlib.h>
  13865. _ACEOF
  13866. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13867. $EGREP "free" >/dev/null 2>&1; then :
  13868. else
  13869. ac_cv_header_stdc=no
  13870. fi
  13871. rm -f conftest*
  13872. fi
  13873. if test $ac_cv_header_stdc = yes; then
  13874. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13875. if test "$cross_compiling" = yes; then :
  13876. :
  13877. else
  13878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13879. /* end confdefs.h. */
  13880. #include <ctype.h>
  13881. #include <stdlib.h>
  13882. #if ((' ' & 0x0FF) == 0x020)
  13883. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13884. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13885. #else
  13886. # define ISLOWER(c) \
  13887. (('a' <= (c) && (c) <= 'i') \
  13888. || ('j' <= (c) && (c) <= 'r') \
  13889. || ('s' <= (c) && (c) <= 'z'))
  13890. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13891. #endif
  13892. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13893. int
  13894. main ()
  13895. {
  13896. int i;
  13897. for (i = 0; i < 256; i++)
  13898. if (XOR (islower (i), ISLOWER (i))
  13899. || toupper (i) != TOUPPER (i))
  13900. return 2;
  13901. return 0;
  13902. }
  13903. _ACEOF
  13904. if ac_fn_c_try_run "$LINENO"; then :
  13905. else
  13906. ac_cv_header_stdc=no
  13907. fi
  13908. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13909. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13910. fi
  13911. fi
  13912. fi
  13913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13914. $as_echo "$ac_cv_header_stdc" >&6; }
  13915. if test $ac_cv_header_stdc = yes; then
  13916. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13917. fi
  13918. 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
  13919. do :
  13920. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13921. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13922. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13923. cat >>confdefs.h <<_ACEOF
  13924. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13925. _ACEOF
  13926. fi
  13927. done
  13928. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13929. if test "x$ac_cv_type_size_t" = xyes; then :
  13930. else
  13931. cat >>confdefs.h <<_ACEOF
  13932. #define size_t unsigned int
  13933. _ACEOF
  13934. fi
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13936. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13937. if ${ac_cv_define_M_PI+:} false; then :
  13938. $as_echo_n "(cached) " >&6
  13939. else
  13940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13941. /* end confdefs.h. */
  13942. #include <math.h>
  13943. #ifdef M_PI
  13944. YES_IS_DEFINED
  13945. #endif
  13946. _ACEOF
  13947. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13948. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13949. ac_cv_define_M_PI=yes
  13950. else
  13951. ac_cv_define_M_PI=no
  13952. fi
  13953. rm -f conftest*
  13954. fi
  13955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13956. $as_echo "$ac_cv_define_M_PI" >&6; }
  13957. if test "$ac_cv_define_M_PI" = "yes" ; then
  13958. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13959. fi
  13960. case "$host" in
  13961. *-*-cygwin* | *-*-mingw32*)
  13962. ;;
  13963. *)
  13964. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13965. # for constant arguments. Useless!
  13966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13967. $as_echo_n "checking for working alloca.h... " >&6; }
  13968. if ${ac_cv_working_alloca_h+:} false; then :
  13969. $as_echo_n "(cached) " >&6
  13970. else
  13971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13972. /* end confdefs.h. */
  13973. #include <alloca.h>
  13974. int
  13975. main ()
  13976. {
  13977. char *p = (char *) alloca (2 * sizeof (int));
  13978. if (p) return 0;
  13979. ;
  13980. return 0;
  13981. }
  13982. _ACEOF
  13983. if ac_fn_c_try_link "$LINENO"; then :
  13984. ac_cv_working_alloca_h=yes
  13985. else
  13986. ac_cv_working_alloca_h=no
  13987. fi
  13988. rm -f core conftest.err conftest.$ac_objext \
  13989. conftest$ac_exeext conftest.$ac_ext
  13990. fi
  13991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13992. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13993. if test $ac_cv_working_alloca_h = yes; then
  13994. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13997. $as_echo_n "checking for alloca... " >&6; }
  13998. if ${ac_cv_func_alloca_works+:} false; then :
  13999. $as_echo_n "(cached) " >&6
  14000. else
  14001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14002. /* end confdefs.h. */
  14003. #ifdef __GNUC__
  14004. # define alloca __builtin_alloca
  14005. #else
  14006. # ifdef _MSC_VER
  14007. # include <malloc.h>
  14008. # define alloca _alloca
  14009. # else
  14010. # ifdef HAVE_ALLOCA_H
  14011. # include <alloca.h>
  14012. # else
  14013. # ifdef _AIX
  14014. #pragma alloca
  14015. # else
  14016. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14017. void *alloca (size_t);
  14018. # endif
  14019. # endif
  14020. # endif
  14021. # endif
  14022. #endif
  14023. int
  14024. main ()
  14025. {
  14026. char *p = (char *) alloca (1);
  14027. if (p) return 0;
  14028. ;
  14029. return 0;
  14030. }
  14031. _ACEOF
  14032. if ac_fn_c_try_link "$LINENO"; then :
  14033. ac_cv_func_alloca_works=yes
  14034. else
  14035. ac_cv_func_alloca_works=no
  14036. fi
  14037. rm -f core conftest.err conftest.$ac_objext \
  14038. conftest$ac_exeext conftest.$ac_ext
  14039. fi
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14041. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14042. if test $ac_cv_func_alloca_works = yes; then
  14043. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14044. else
  14045. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14046. # that cause trouble. Some versions do not even contain alloca or
  14047. # contain a buggy version. If you still want to use their alloca,
  14048. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14049. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14050. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14052. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14053. if ${ac_cv_os_cray+:} false; then :
  14054. $as_echo_n "(cached) " >&6
  14055. else
  14056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14057. /* end confdefs.h. */
  14058. #if defined CRAY && ! defined CRAY2
  14059. webecray
  14060. #else
  14061. wenotbecray
  14062. #endif
  14063. _ACEOF
  14064. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14065. $EGREP "webecray" >/dev/null 2>&1; then :
  14066. ac_cv_os_cray=yes
  14067. else
  14068. ac_cv_os_cray=no
  14069. fi
  14070. rm -f conftest*
  14071. fi
  14072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14073. $as_echo "$ac_cv_os_cray" >&6; }
  14074. if test $ac_cv_os_cray = yes; then
  14075. for ac_func in _getb67 GETB67 getb67; do
  14076. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14077. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14078. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14079. cat >>confdefs.h <<_ACEOF
  14080. #define CRAY_STACKSEG_END $ac_func
  14081. _ACEOF
  14082. break
  14083. fi
  14084. done
  14085. fi
  14086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14087. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14088. if ${ac_cv_c_stack_direction+:} false; then :
  14089. $as_echo_n "(cached) " >&6
  14090. else
  14091. if test "$cross_compiling" = yes; then :
  14092. ac_cv_c_stack_direction=0
  14093. else
  14094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14095. /* end confdefs.h. */
  14096. $ac_includes_default
  14097. int
  14098. find_stack_direction (int *addr, int depth)
  14099. {
  14100. int dir, dummy = 0;
  14101. if (! addr)
  14102. addr = &dummy;
  14103. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14104. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14105. return dir + dummy;
  14106. }
  14107. int
  14108. main (int argc, char **argv)
  14109. {
  14110. return find_stack_direction (0, argc + !argv + 20) < 0;
  14111. }
  14112. _ACEOF
  14113. if ac_fn_c_try_run "$LINENO"; then :
  14114. ac_cv_c_stack_direction=1
  14115. else
  14116. ac_cv_c_stack_direction=-1
  14117. fi
  14118. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14119. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14120. fi
  14121. fi
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14123. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14124. cat >>confdefs.h <<_ACEOF
  14125. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14126. _ACEOF
  14127. fi
  14128. ;;
  14129. esac
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14131. $as_echo_n "checking for working memcmp... " >&6; }
  14132. if ${ac_cv_func_memcmp_working+:} false; then :
  14133. $as_echo_n "(cached) " >&6
  14134. else
  14135. if test "$cross_compiling" = yes; then :
  14136. ac_cv_func_memcmp_working=no
  14137. else
  14138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14139. /* end confdefs.h. */
  14140. $ac_includes_default
  14141. int
  14142. main ()
  14143. {
  14144. /* Some versions of memcmp are not 8-bit clean. */
  14145. char c0 = '\100', c1 = '\200', c2 = '\201';
  14146. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14147. return 1;
  14148. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14149. or more and with at least one buffer not starting on a 4-byte boundary.
  14150. William Lewis provided this test program. */
  14151. {
  14152. char foo[21];
  14153. char bar[21];
  14154. int i;
  14155. for (i = 0; i < 4; i++)
  14156. {
  14157. char *a = foo + i;
  14158. char *b = bar + i;
  14159. strcpy (a, "--------01111111");
  14160. strcpy (b, "--------10000000");
  14161. if (memcmp (a, b, 16) >= 0)
  14162. return 1;
  14163. }
  14164. return 0;
  14165. }
  14166. ;
  14167. return 0;
  14168. }
  14169. _ACEOF
  14170. if ac_fn_c_try_run "$LINENO"; then :
  14171. ac_cv_func_memcmp_working=yes
  14172. else
  14173. ac_cv_func_memcmp_working=no
  14174. fi
  14175. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14176. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14177. fi
  14178. fi
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14180. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14181. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14182. *" memcmp.$ac_objext "* ) ;;
  14183. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14184. ;;
  14185. esac
  14186. if test x$ac_cv_func_memcmp_working = xyes; then
  14187. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14188. fi
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14190. $as_echo_n "checking for working strtod... " >&6; }
  14191. if ${ac_cv_func_strtod+:} false; then :
  14192. $as_echo_n "(cached) " >&6
  14193. else
  14194. if test "$cross_compiling" = yes; then :
  14195. ac_cv_func_strtod=no
  14196. else
  14197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14198. /* end confdefs.h. */
  14199. $ac_includes_default
  14200. #ifndef strtod
  14201. double strtod ();
  14202. #endif
  14203. int
  14204. main()
  14205. {
  14206. {
  14207. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14208. char *string = " +69";
  14209. char *term;
  14210. double value;
  14211. value = strtod (string, &term);
  14212. if (value != 69 || term != (string + 4))
  14213. return 1;
  14214. }
  14215. {
  14216. /* Under Solaris 2.4, strtod returns the wrong value for the
  14217. terminating character under some conditions. */
  14218. char *string = "NaN";
  14219. char *term;
  14220. strtod (string, &term);
  14221. if (term != string && *(term - 1) == 0)
  14222. return 1;
  14223. }
  14224. return 0;
  14225. }
  14226. _ACEOF
  14227. if ac_fn_c_try_run "$LINENO"; then :
  14228. ac_cv_func_strtod=yes
  14229. else
  14230. ac_cv_func_strtod=no
  14231. fi
  14232. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14233. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14234. fi
  14235. fi
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14237. $as_echo "$ac_cv_func_strtod" >&6; }
  14238. if test $ac_cv_func_strtod = no; then
  14239. case " $LIBOBJS " in
  14240. *" strtod.$ac_objext "* ) ;;
  14241. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14242. ;;
  14243. esac
  14244. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14245. if test "x$ac_cv_func_pow" = xyes; then :
  14246. fi
  14247. if test $ac_cv_func_pow = no; then
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14249. $as_echo_n "checking for pow in -lm... " >&6; }
  14250. if ${ac_cv_lib_m_pow+:} false; then :
  14251. $as_echo_n "(cached) " >&6
  14252. else
  14253. ac_check_lib_save_LIBS=$LIBS
  14254. LIBS="-lm $LIBS"
  14255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14256. /* end confdefs.h. */
  14257. /* Override any GCC internal prototype to avoid an error.
  14258. Use char because int might match the return type of a GCC
  14259. builtin and then its argument prototype would still apply. */
  14260. #ifdef __cplusplus
  14261. extern "C"
  14262. #endif
  14263. char pow ();
  14264. int
  14265. main ()
  14266. {
  14267. return pow ();
  14268. ;
  14269. return 0;
  14270. }
  14271. _ACEOF
  14272. if ac_fn_c_try_link "$LINENO"; then :
  14273. ac_cv_lib_m_pow=yes
  14274. else
  14275. ac_cv_lib_m_pow=no
  14276. fi
  14277. rm -f core conftest.err conftest.$ac_objext \
  14278. conftest$ac_exeext conftest.$ac_ext
  14279. LIBS=$ac_check_lib_save_LIBS
  14280. fi
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14282. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14283. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14284. POW_LIB=-lm
  14285. else
  14286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14287. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14288. fi
  14289. fi
  14290. fi
  14291. if test x$ac_cv_func_strtod = xyes; then
  14292. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14293. fi
  14294. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14295. if test "x$ac_cv_func_mprotect" = xyes; then :
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. #include <sys/types.h>
  14299. #include <sys/mman.h>
  14300. int
  14301. main ()
  14302. {
  14303. ;
  14304. return 0;
  14305. }
  14306. _ACEOF
  14307. if ac_fn_c_try_compile "$LINENO"; then :
  14308. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14309. fi
  14310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14311. fi
  14312. 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 vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
  14313. do :
  14314. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14315. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14316. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14317. cat >>confdefs.h <<_ACEOF
  14318. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14319. _ACEOF
  14320. fi
  14321. done
  14322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14323. $as_echo_n "checking for pow in -lm... " >&6; }
  14324. if ${ac_cv_lib_m_pow+:} false; then :
  14325. $as_echo_n "(cached) " >&6
  14326. else
  14327. ac_check_lib_save_LIBS=$LIBS
  14328. LIBS="-lm $LIBS"
  14329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14330. /* end confdefs.h. */
  14331. /* Override any GCC internal prototype to avoid an error.
  14332. Use char because int might match the return type of a GCC
  14333. builtin and then its argument prototype would still apply. */
  14334. #ifdef __cplusplus
  14335. extern "C"
  14336. #endif
  14337. char pow ();
  14338. int
  14339. main ()
  14340. {
  14341. return pow ();
  14342. ;
  14343. return 0;
  14344. }
  14345. _ACEOF
  14346. if ac_fn_c_try_link "$LINENO"; then :
  14347. ac_cv_lib_m_pow=yes
  14348. else
  14349. ac_cv_lib_m_pow=no
  14350. fi
  14351. rm -f core conftest.err conftest.$ac_objext \
  14352. conftest$ac_exeext conftest.$ac_ext
  14353. LIBS=$ac_check_lib_save_LIBS
  14354. fi
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14356. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14357. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14358. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14359. fi
  14360. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14361. do :
  14362. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14363. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14364. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14365. cat >>confdefs.h <<_ACEOF
  14366. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14367. _ACEOF
  14368. fi
  14369. done
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14371. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14372. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14373. $as_echo_n "(cached) " >&6
  14374. else
  14375. ac_check_lib_save_LIBS=$LIBS
  14376. LIBS="-liconv $LIBS"
  14377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14378. /* end confdefs.h. */
  14379. /* Override any GCC internal prototype to avoid an error.
  14380. Use char because int might match the return type of a GCC
  14381. builtin and then its argument prototype would still apply. */
  14382. #ifdef __cplusplus
  14383. extern "C"
  14384. #endif
  14385. char iconv_open ();
  14386. int
  14387. main ()
  14388. {
  14389. return iconv_open ();
  14390. ;
  14391. return 0;
  14392. }
  14393. _ACEOF
  14394. if ac_fn_c_try_link "$LINENO"; then :
  14395. ac_cv_lib_iconv_iconv_open=yes
  14396. else
  14397. ac_cv_lib_iconv_iconv_open=no
  14398. fi
  14399. rm -f core conftest.err conftest.$ac_objext \
  14400. conftest$ac_exeext conftest.$ac_ext
  14401. LIBS=$ac_check_lib_save_LIBS
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14404. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14405. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14406. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14407. fi
  14408. for ac_func in iconv
  14409. do :
  14410. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14411. if test "x$ac_cv_func_iconv" = xyes; then :
  14412. cat >>confdefs.h <<_ACEOF
  14413. #define HAVE_ICONV 1
  14414. _ACEOF
  14415. fi
  14416. done
  14417. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14418. "
  14419. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14420. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14421. fi
  14422. fi
  14423. # Check whether --enable-gcc-atomics was given.
  14424. if test "${enable_gcc_atomics+set}" = set; then :
  14425. enableval=$enable_gcc_atomics;
  14426. else
  14427. enable_gcc_atomics=yes
  14428. fi
  14429. if test x$enable_gcc_atomics = xyes; then
  14430. have_gcc_atomics=no
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14432. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14434. /* end confdefs.h. */
  14435. int
  14436. main ()
  14437. {
  14438. int a;
  14439. void *x, *y, *z;
  14440. __sync_lock_test_and_set(&a, 4);
  14441. __sync_lock_test_and_set(&x, y);
  14442. __sync_fetch_and_add(&a, 1);
  14443. __sync_bool_compare_and_swap(&a, 5, 10);
  14444. __sync_bool_compare_and_swap(&x, y, z);
  14445. ;
  14446. return 0;
  14447. }
  14448. _ACEOF
  14449. if ac_fn_c_try_link "$LINENO"; then :
  14450. have_gcc_atomics=yes
  14451. fi
  14452. rm -f core conftest.err conftest.$ac_objext \
  14453. conftest$ac_exeext conftest.$ac_ext
  14454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14455. $as_echo "$have_gcc_atomics" >&6; }
  14456. if test x$have_gcc_atomics = xyes; then
  14457. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14458. else
  14459. # See if we have the minimum operation needed for GCC atomics
  14460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14461. /* end confdefs.h. */
  14462. int
  14463. main ()
  14464. {
  14465. int a;
  14466. __sync_lock_test_and_set(&a, 1);
  14467. __sync_lock_release(&a);
  14468. ;
  14469. return 0;
  14470. }
  14471. _ACEOF
  14472. if ac_fn_c_try_link "$LINENO"; then :
  14473. have_gcc_sync_lock_test_and_set=yes
  14474. fi
  14475. rm -f core conftest.err conftest.$ac_objext \
  14476. conftest$ac_exeext conftest.$ac_ext
  14477. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14478. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14479. fi
  14480. fi
  14481. fi
  14482. # Standard C sources
  14483. SOURCES="$SOURCES $srcdir/src/*.c"
  14484. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14485. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14491. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14492. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14494. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14498. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14499. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14500. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14501. # Check whether --enable-atomic was given.
  14502. if test "${enable_atomic+set}" = set; then :
  14503. enableval=$enable_atomic;
  14504. else
  14505. enable_atomic=yes
  14506. fi
  14507. if test x$enable_atomic != xyes; then
  14508. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14509. else
  14510. SUMMARY_modules="${SUMMARY_modules} atomic"
  14511. fi
  14512. # Check whether --enable-audio was given.
  14513. if test "${enable_audio+set}" = set; then :
  14514. enableval=$enable_audio;
  14515. else
  14516. enable_audio=yes
  14517. fi
  14518. if test x$enable_audio != xyes; then
  14519. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14520. else
  14521. SUMMARY_modules="${SUMMARY_modules} audio"
  14522. fi
  14523. # Check whether --enable-video was given.
  14524. if test "${enable_video+set}" = set; then :
  14525. enableval=$enable_video;
  14526. else
  14527. enable_video=yes
  14528. fi
  14529. if test x$enable_video != xyes; then
  14530. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14531. else
  14532. SUMMARY_modules="${SUMMARY_modules} video"
  14533. fi
  14534. # Check whether --enable-render was given.
  14535. if test "${enable_render+set}" = set; then :
  14536. enableval=$enable_render;
  14537. else
  14538. enable_render=yes
  14539. fi
  14540. if test x$enable_render != xyes; then
  14541. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14542. else
  14543. SUMMARY_modules="${SUMMARY_modules} render"
  14544. fi
  14545. # Check whether --enable-events was given.
  14546. if test "${enable_events+set}" = set; then :
  14547. enableval=$enable_events;
  14548. else
  14549. enable_events=yes
  14550. fi
  14551. if test x$enable_events != xyes; then
  14552. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14553. else
  14554. SUMMARY_modules="${SUMMARY_modules} events"
  14555. fi
  14556. # Check whether --enable-joystick was given.
  14557. if test "${enable_joystick+set}" = set; then :
  14558. enableval=$enable_joystick;
  14559. else
  14560. enable_joystick=yes
  14561. fi
  14562. if test x$enable_joystick != xyes; then
  14563. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14564. else
  14565. SUMMARY_modules="${SUMMARY_modules} joystick"
  14566. fi
  14567. # Check whether --enable-haptic was given.
  14568. if test "${enable_haptic+set}" = set; then :
  14569. enableval=$enable_haptic;
  14570. else
  14571. enable_haptic=yes
  14572. fi
  14573. if test x$enable_haptic != xyes; then
  14574. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14575. else
  14576. SUMMARY_modules="${SUMMARY_modules} haptic"
  14577. fi
  14578. # Check whether --enable-power was given.
  14579. if test "${enable_power+set}" = set; then :
  14580. enableval=$enable_power;
  14581. else
  14582. enable_power=yes
  14583. fi
  14584. if test x$enable_power != xyes; then
  14585. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14586. else
  14587. SUMMARY_modules="${SUMMARY_modules} power"
  14588. fi
  14589. # Check whether --enable-filesystem was given.
  14590. if test "${enable_filesystem+set}" = set; then :
  14591. enableval=$enable_filesystem;
  14592. else
  14593. enable_filesystem=yes
  14594. fi
  14595. if test x$enable_filesystem != xyes; then
  14596. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14597. else
  14598. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14599. fi
  14600. # Check whether --enable-threads was given.
  14601. if test "${enable_threads+set}" = set; then :
  14602. enableval=$enable_threads;
  14603. else
  14604. enable_threads=yes
  14605. fi
  14606. if test x$enable_threads != xyes; then
  14607. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14608. else
  14609. SUMMARY_modules="${SUMMARY_modules} threads"
  14610. fi
  14611. # Check whether --enable-timers was given.
  14612. if test "${enable_timers+set}" = set; then :
  14613. enableval=$enable_timers;
  14614. else
  14615. enable_timers=yes
  14616. fi
  14617. if test x$enable_timers != xyes; then
  14618. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14619. else
  14620. SUMMARY_modules="${SUMMARY_modules} timers"
  14621. fi
  14622. # Check whether --enable-file was given.
  14623. if test "${enable_file+set}" = set; then :
  14624. enableval=$enable_file;
  14625. else
  14626. enable_file=yes
  14627. fi
  14628. if test x$enable_file != xyes; then
  14629. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14630. else
  14631. SUMMARY_modules="${SUMMARY_modules} file"
  14632. fi
  14633. # Check whether --enable-loadso was given.
  14634. if test "${enable_loadso+set}" = set; then :
  14635. enableval=$enable_loadso;
  14636. else
  14637. enable_loadso=yes
  14638. fi
  14639. if test x$enable_loadso != xyes; then
  14640. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14641. else
  14642. SUMMARY_modules="${SUMMARY_modules} loadso"
  14643. fi
  14644. # Check whether --enable-cpuinfo was given.
  14645. if test "${enable_cpuinfo+set}" = set; then :
  14646. enableval=$enable_cpuinfo;
  14647. else
  14648. enable_cpuinfo=yes
  14649. fi
  14650. if test x$enable_cpuinfo != xyes; then
  14651. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14652. else
  14653. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14654. fi
  14655. # Check whether --enable-assembly was given.
  14656. if test "${enable_assembly+set}" = set; then :
  14657. enableval=$enable_assembly;
  14658. else
  14659. enable_assembly=yes
  14660. fi
  14661. if test x$enable_assembly = xyes; then
  14662. SUMMARY_modules="${SUMMARY_modules} assembly"
  14663. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14664. # Make sure that we don't generate floating point code that would
  14665. # cause illegal instruction exceptions on older processors
  14666. case "$host" in
  14667. *-*-darwin*)
  14668. # Don't need to worry about Apple hardware, it's all SSE capable
  14669. default_ssemath=yes
  14670. ;;
  14671. *64-*-*)
  14672. # x86 64-bit architectures all have SSE instructions
  14673. default_ssemath=yes
  14674. ;;
  14675. *)
  14676. default_ssemath=no
  14677. ;;
  14678. esac
  14679. # Check whether --enable-ssemath was given.
  14680. if test "${enable_ssemath+set}" = set; then :
  14681. enableval=$enable_ssemath;
  14682. else
  14683. enable_ssemath=$default_ssemath
  14684. fi
  14685. if test x$enable_ssemath = xno; then
  14686. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14687. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14688. fi
  14689. fi
  14690. # Check whether --enable-mmx was given.
  14691. if test "${enable_mmx+set}" = set; then :
  14692. enableval=$enable_mmx;
  14693. else
  14694. enable_mmx=yes
  14695. fi
  14696. if test x$enable_mmx = xyes; then
  14697. save_CFLAGS="$CFLAGS"
  14698. have_gcc_mmx=no
  14699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14700. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14701. mmx_CFLAGS="-mmmx"
  14702. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14704. /* end confdefs.h. */
  14705. #ifdef __MINGW32__
  14706. #include <_mingw.h>
  14707. #ifdef __MINGW64_VERSION_MAJOR
  14708. #include <intrin.h>
  14709. #else
  14710. #include <mmintrin.h>
  14711. #endif
  14712. #else
  14713. #include <mmintrin.h>
  14714. #endif
  14715. #ifndef __MMX__
  14716. #error Assembler CPP flag not enabled
  14717. #endif
  14718. int
  14719. main ()
  14720. {
  14721. ;
  14722. return 0;
  14723. }
  14724. _ACEOF
  14725. if ac_fn_c_try_compile "$LINENO"; then :
  14726. have_gcc_mmx=yes
  14727. fi
  14728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14730. $as_echo "$have_gcc_mmx" >&6; }
  14731. CFLAGS="$save_CFLAGS"
  14732. if test x$have_gcc_mmx = xyes; then
  14733. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14734. SUMMARY_math="${SUMMARY_math} mmx"
  14735. fi
  14736. fi
  14737. # Check whether --enable-3dnow was given.
  14738. if test "${enable_3dnow+set}" = set; then :
  14739. enableval=$enable_3dnow;
  14740. else
  14741. enable_3dnow=yes
  14742. fi
  14743. if test x$enable_3dnow = xyes; then
  14744. save_CFLAGS="$CFLAGS"
  14745. have_gcc_3dnow=no
  14746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14747. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14748. amd3dnow_CFLAGS="-m3dnow"
  14749. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14751. /* end confdefs.h. */
  14752. #include <mm3dnow.h>
  14753. #ifndef __3dNOW__
  14754. #error Assembler CPP flag not enabled
  14755. #endif
  14756. int
  14757. main ()
  14758. {
  14759. void *p = 0;
  14760. _m_prefetch(p);
  14761. ;
  14762. return 0;
  14763. }
  14764. _ACEOF
  14765. if ac_fn_c_try_link "$LINENO"; then :
  14766. have_gcc_3dnow=yes
  14767. fi
  14768. rm -f core conftest.err conftest.$ac_objext \
  14769. conftest$ac_exeext conftest.$ac_ext
  14770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14771. $as_echo "$have_gcc_3dnow" >&6; }
  14772. CFLAGS="$save_CFLAGS"
  14773. if test x$have_gcc_3dnow = xyes; then
  14774. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14775. SUMMARY_math="${SUMMARY_math} 3dnow"
  14776. fi
  14777. fi
  14778. # Check whether --enable-sse was given.
  14779. if test "${enable_sse+set}" = set; then :
  14780. enableval=$enable_sse;
  14781. else
  14782. enable_sse=yes
  14783. fi
  14784. if test x$enable_sse = xyes; then
  14785. save_CFLAGS="$CFLAGS"
  14786. have_gcc_sse=no
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14788. $as_echo_n "checking for GCC -msse option... " >&6; }
  14789. sse_CFLAGS="-msse"
  14790. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14792. /* end confdefs.h. */
  14793. #ifdef __MINGW32__
  14794. #include <_mingw.h>
  14795. #ifdef __MINGW64_VERSION_MAJOR
  14796. #include <intrin.h>
  14797. #else
  14798. #include <xmmintrin.h>
  14799. #endif
  14800. #else
  14801. #include <xmmintrin.h>
  14802. #endif
  14803. #ifndef __SSE__
  14804. #error Assembler CPP flag not enabled
  14805. #endif
  14806. int
  14807. main ()
  14808. {
  14809. ;
  14810. return 0;
  14811. }
  14812. _ACEOF
  14813. if ac_fn_c_try_compile "$LINENO"; then :
  14814. have_gcc_sse=yes
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14818. $as_echo "$have_gcc_sse" >&6; }
  14819. CFLAGS="$save_CFLAGS"
  14820. if test x$have_gcc_sse = xyes; then
  14821. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14822. SUMMARY_math="${SUMMARY_math} sse"
  14823. fi
  14824. fi
  14825. # Check whether --enable-sse2 was given.
  14826. if test "${enable_sse2+set}" = set; then :
  14827. enableval=$enable_sse2;
  14828. else
  14829. enable_sse2=$default_ssemath
  14830. fi
  14831. if test x$enable_sse2 = xyes; then
  14832. save_CFLAGS="$CFLAGS"
  14833. have_gcc_sse2=no
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14835. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14836. sse2_CFLAGS="-msse2"
  14837. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14839. /* end confdefs.h. */
  14840. #ifdef __MINGW32__
  14841. #include <_mingw.h>
  14842. #ifdef __MINGW64_VERSION_MAJOR
  14843. #include <intrin.h>
  14844. #else
  14845. #include <emmintrin.h>
  14846. #endif
  14847. #else
  14848. #include <emmintrin.h>
  14849. #endif
  14850. #ifndef __SSE2__
  14851. #error Assembler CPP flag not enabled
  14852. #endif
  14853. int
  14854. main ()
  14855. {
  14856. ;
  14857. return 0;
  14858. }
  14859. _ACEOF
  14860. if ac_fn_c_try_compile "$LINENO"; then :
  14861. have_gcc_sse2=yes
  14862. fi
  14863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14865. $as_echo "$have_gcc_sse2" >&6; }
  14866. CFLAGS="$save_CFLAGS"
  14867. if test x$have_gcc_sse2 = xyes; then
  14868. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14869. SUMMARY_math="${SUMMARY_math} sse2"
  14870. fi
  14871. fi
  14872. # Check whether --enable-altivec was given.
  14873. if test "${enable_altivec+set}" = set; then :
  14874. enableval=$enable_altivec;
  14875. else
  14876. enable_altivec=yes
  14877. fi
  14878. if test x$enable_altivec = xyes; then
  14879. save_CFLAGS="$CFLAGS"
  14880. have_gcc_altivec=no
  14881. have_altivec_h_hdr=no
  14882. altivec_CFLAGS="-maltivec"
  14883. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14885. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14887. /* end confdefs.h. */
  14888. #include <altivec.h>
  14889. vector unsigned int vzero() {
  14890. return vec_splat_u32(0);
  14891. }
  14892. int
  14893. main ()
  14894. {
  14895. ;
  14896. return 0;
  14897. }
  14898. _ACEOF
  14899. if ac_fn_c_try_compile "$LINENO"; then :
  14900. have_gcc_altivec=yes
  14901. have_altivec_h_hdr=yes
  14902. fi
  14903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14905. $as_echo "$have_gcc_altivec" >&6; }
  14906. if test x$have_gcc_altivec = xno; then
  14907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14908. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14910. /* end confdefs.h. */
  14911. vector unsigned int vzero() {
  14912. return vec_splat_u32(0);
  14913. }
  14914. int
  14915. main ()
  14916. {
  14917. ;
  14918. return 0;
  14919. }
  14920. _ACEOF
  14921. if ac_fn_c_try_compile "$LINENO"; then :
  14922. have_gcc_altivec=yes
  14923. fi
  14924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14926. $as_echo "$have_gcc_altivec" >&6; }
  14927. fi
  14928. if test x$have_gcc_altivec = xno; then
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14930. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14931. altivec_CFLAGS="-faltivec"
  14932. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14934. /* end confdefs.h. */
  14935. #include <altivec.h>
  14936. vector unsigned int vzero() {
  14937. return vec_splat_u32(0);
  14938. }
  14939. int
  14940. main ()
  14941. {
  14942. ;
  14943. return 0;
  14944. }
  14945. _ACEOF
  14946. if ac_fn_c_try_compile "$LINENO"; then :
  14947. have_gcc_altivec=yes
  14948. have_altivec_h_hdr=yes
  14949. fi
  14950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14952. $as_echo "$have_gcc_altivec" >&6; }
  14953. fi
  14954. if test x$have_gcc_altivec = xno; then
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14956. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14958. /* end confdefs.h. */
  14959. vector unsigned int vzero() {
  14960. return vec_splat_u32(0);
  14961. }
  14962. int
  14963. main ()
  14964. {
  14965. ;
  14966. return 0;
  14967. }
  14968. _ACEOF
  14969. if ac_fn_c_try_compile "$LINENO"; then :
  14970. have_gcc_altivec=yes
  14971. fi
  14972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14974. $as_echo "$have_gcc_altivec" >&6; }
  14975. fi
  14976. CFLAGS="$save_CFLAGS"
  14977. if test x$have_gcc_altivec = xyes; then
  14978. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14979. if test x$have_altivec_h_hdr = xyes; then
  14980. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14981. fi
  14982. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14983. SUMMARY_math="${SUMMARY_math} altivec"
  14984. fi
  14985. fi
  14986. fi
  14987. CheckOSS()
  14988. {
  14989. # Check whether --enable-oss was given.
  14990. if test "${enable_oss+set}" = set; then :
  14991. enableval=$enable_oss;
  14992. else
  14993. enable_oss=maybe
  14994. fi
  14995. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14996. # use sndio instead. So on there, we default to disabled. You can force
  14997. # it on if you really want, though.
  14998. if test x$enable_oss = xmaybe; then
  14999. enable_oss=yes
  15000. case "$host" in
  15001. *-*-openbsd*)
  15002. enable_oss=no;;
  15003. esac
  15004. fi
  15005. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15007. $as_echo_n "checking for OSS audio support... " >&6; }
  15008. have_oss=no
  15009. if test x$have_oss != xyes; then
  15010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15011. /* end confdefs.h. */
  15012. #include <sys/soundcard.h>
  15013. int
  15014. main ()
  15015. {
  15016. int arg = SNDCTL_DSP_SETFRAGMENT;
  15017. ;
  15018. return 0;
  15019. }
  15020. _ACEOF
  15021. if ac_fn_c_try_compile "$LINENO"; then :
  15022. have_oss=yes
  15023. fi
  15024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15025. fi
  15026. if test x$have_oss != xyes; then
  15027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15028. /* end confdefs.h. */
  15029. #include <soundcard.h>
  15030. int
  15031. main ()
  15032. {
  15033. int arg = SNDCTL_DSP_SETFRAGMENT;
  15034. ;
  15035. return 0;
  15036. }
  15037. _ACEOF
  15038. if ac_fn_c_try_compile "$LINENO"; then :
  15039. have_oss=yes
  15040. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15041. fi
  15042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15043. fi
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15045. $as_echo "$have_oss" >&6; }
  15046. if test x$have_oss = xyes; then
  15047. SUMMARY_audio="${SUMMARY_audio} oss"
  15048. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15049. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15050. have_audio=yes
  15051. # We may need to link with ossaudio emulation library
  15052. case "$host" in
  15053. *-*-openbsd*|*-*-netbsd*)
  15054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15055. esac
  15056. fi
  15057. fi
  15058. }
  15059. CheckALSA()
  15060. {
  15061. # Check whether --enable-alsa was given.
  15062. if test "${enable_alsa+set}" = set; then :
  15063. enableval=$enable_alsa;
  15064. else
  15065. enable_alsa=yes
  15066. fi
  15067. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15068. alsa_save_CFLAGS="$CFLAGS"
  15069. alsa_save_LDFLAGS="$LDFLAGS"
  15070. alsa_save_LIBS="$LIBS"
  15071. alsa_found=yes
  15072. # Check whether --with-alsa-prefix was given.
  15073. if test "${with_alsa_prefix+set}" = set; then :
  15074. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15075. else
  15076. alsa_prefix=""
  15077. fi
  15078. # Check whether --with-alsa-inc-prefix was given.
  15079. if test "${with_alsa_inc_prefix+set}" = set; then :
  15080. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15081. else
  15082. alsa_inc_prefix=""
  15083. fi
  15084. # Check whether --enable-alsatest was given.
  15085. if test "${enable_alsatest+set}" = set; then :
  15086. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15087. else
  15088. enable_alsatest=yes
  15089. fi
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15091. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15092. if test "$alsa_inc_prefix" != "" ; then
  15093. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15094. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15095. fi
  15096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15097. $as_echo "$ALSA_CFLAGS" >&6; }
  15098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15099. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15100. if test "$alsa_prefix" != "" ; then
  15101. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15102. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15103. fi
  15104. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15105. LIBS=`echo $LIBS | sed 's/-lm//'`
  15106. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15107. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15108. LIBS=`echo $LIBS | sed 's/ //'`
  15109. LIBS="$ALSA_LIBS $LIBS"
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15111. $as_echo "$ALSA_LIBS" >&6; }
  15112. min_alsa_version=0.9.0
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15114. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15115. no_alsa=""
  15116. alsa_min_major_version=`echo $min_alsa_version | \
  15117. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15118. alsa_min_minor_version=`echo $min_alsa_version | \
  15119. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15120. alsa_min_micro_version=`echo $min_alsa_version | \
  15121. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15122. ac_ext=c
  15123. ac_cpp='$CPP $CPPFLAGS'
  15124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15128. /* end confdefs.h. */
  15129. #include <alsa/asoundlib.h>
  15130. int
  15131. main ()
  15132. {
  15133. /* ensure backward compatibility */
  15134. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15135. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15136. #endif
  15137. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15138. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15139. #endif
  15140. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15141. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15142. #endif
  15143. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15144. exit(0);
  15145. # else
  15146. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15147. # error not present
  15148. # endif
  15149. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15150. exit(0);
  15151. # else
  15152. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15153. # error not present
  15154. # endif
  15155. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15156. # error not present
  15157. # endif
  15158. # endif
  15159. # endif
  15160. exit(0);
  15161. ;
  15162. return 0;
  15163. }
  15164. _ACEOF
  15165. if ac_fn_c_try_compile "$LINENO"; then :
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15167. $as_echo "found." >&6; }
  15168. else
  15169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15170. $as_echo "not present." >&6; }
  15171. alsa_found=no
  15172. fi
  15173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15174. ac_ext=c
  15175. ac_cpp='$CPP $CPPFLAGS'
  15176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15179. if test "x$enable_alsatest" = "xyes"; then
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15181. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15182. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15183. $as_echo_n "(cached) " >&6
  15184. else
  15185. ac_check_lib_save_LIBS=$LIBS
  15186. LIBS="-lasound $LIBS"
  15187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15188. /* end confdefs.h. */
  15189. /* Override any GCC internal prototype to avoid an error.
  15190. Use char because int might match the return type of a GCC
  15191. builtin and then its argument prototype would still apply. */
  15192. #ifdef __cplusplus
  15193. extern "C"
  15194. #endif
  15195. char snd_ctl_open ();
  15196. int
  15197. main ()
  15198. {
  15199. return snd_ctl_open ();
  15200. ;
  15201. return 0;
  15202. }
  15203. _ACEOF
  15204. if ac_fn_c_try_link "$LINENO"; then :
  15205. ac_cv_lib_asound_snd_ctl_open=yes
  15206. else
  15207. ac_cv_lib_asound_snd_ctl_open=no
  15208. fi
  15209. rm -f core conftest.err conftest.$ac_objext \
  15210. conftest$ac_exeext conftest.$ac_ext
  15211. LIBS=$ac_check_lib_save_LIBS
  15212. fi
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15214. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15215. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15216. cat >>confdefs.h <<_ACEOF
  15217. #define HAVE_LIBASOUND 1
  15218. _ACEOF
  15219. LIBS="-lasound $LIBS"
  15220. else
  15221. alsa_found=no
  15222. fi
  15223. fi
  15224. if test "x$alsa_found" = "xyes" ; then
  15225. have_alsa=yes
  15226. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15227. LIBS=`echo $LIBS | sed 's/ //'`
  15228. LIBS="-lasound $LIBS"
  15229. fi
  15230. if test "x$alsa_found" = "xno" ; then
  15231. have_alsa=no
  15232. CFLAGS="$alsa_save_CFLAGS"
  15233. LDFLAGS="$alsa_save_LDFLAGS"
  15234. LIBS="$alsa_save_LIBS"
  15235. ALSA_CFLAGS=""
  15236. ALSA_LIBS=""
  15237. fi
  15238. # Restore all flags from before the ALSA detection runs
  15239. CFLAGS="$alsa_save_CFLAGS"
  15240. LDFLAGS="$alsa_save_LDFLAGS"
  15241. LIBS="$alsa_save_LIBS"
  15242. if test x$have_alsa = xyes; then
  15243. # Check whether --enable-alsa-shared was given.
  15244. if test "${enable_alsa_shared+set}" = set; then :
  15245. enableval=$enable_alsa_shared;
  15246. else
  15247. enable_alsa_shared=yes
  15248. fi
  15249. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15250. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15251. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15252. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15253. if test x$have_loadso != xyes && \
  15254. test x$enable_alsa_shared = xyes; then
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15256. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15257. fi
  15258. if test x$have_loadso = xyes && \
  15259. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15260. echo "-- dynamic libasound -> $alsa_lib"
  15261. cat >>confdefs.h <<_ACEOF
  15262. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15263. _ACEOF
  15264. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15265. else
  15266. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15267. SUMMARY_audio="${SUMMARY_audio} alsa"
  15268. fi
  15269. have_audio=yes
  15270. fi
  15271. fi
  15272. }
  15273. CheckESD()
  15274. {
  15275. # Check whether --enable-esd was given.
  15276. if test "${enable_esd+set}" = set; then :
  15277. enableval=$enable_esd;
  15278. else
  15279. enable_esd=yes
  15280. fi
  15281. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15282. # Check whether --with-esd-prefix was given.
  15283. if test "${with_esd_prefix+set}" = set; then :
  15284. withval=$with_esd_prefix; esd_prefix="$withval"
  15285. else
  15286. esd_prefix=""
  15287. fi
  15288. # Check whether --with-esd-exec-prefix was given.
  15289. if test "${with_esd_exec_prefix+set}" = set; then :
  15290. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15291. else
  15292. esd_exec_prefix=""
  15293. fi
  15294. # Check whether --enable-esdtest was given.
  15295. if test "${enable_esdtest+set}" = set; then :
  15296. enableval=$enable_esdtest;
  15297. else
  15298. enable_esdtest=yes
  15299. fi
  15300. if test x$esd_exec_prefix != x ; then
  15301. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15302. if test x${ESD_CONFIG+set} != xset ; then
  15303. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15304. fi
  15305. fi
  15306. if test x$esd_prefix != x ; then
  15307. esd_args="$esd_args --prefix=$esd_prefix"
  15308. if test x${ESD_CONFIG+set} != xset ; then
  15309. ESD_CONFIG=$esd_prefix/bin/esd-config
  15310. fi
  15311. fi
  15312. # Extract the first word of "esd-config", so it can be a program name with args.
  15313. set dummy esd-config; ac_word=$2
  15314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15315. $as_echo_n "checking for $ac_word... " >&6; }
  15316. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15317. $as_echo_n "(cached) " >&6
  15318. else
  15319. case $ESD_CONFIG in
  15320. [\\/]* | ?:[\\/]*)
  15321. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15322. ;;
  15323. *)
  15324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15325. for as_dir in $PATH
  15326. do
  15327. IFS=$as_save_IFS
  15328. test -z "$as_dir" && as_dir=.
  15329. for ac_exec_ext in '' $ac_executable_extensions; do
  15330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15331. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15333. break 2
  15334. fi
  15335. done
  15336. done
  15337. IFS=$as_save_IFS
  15338. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15339. ;;
  15340. esac
  15341. fi
  15342. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15343. if test -n "$ESD_CONFIG"; then
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15345. $as_echo "$ESD_CONFIG" >&6; }
  15346. else
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15348. $as_echo "no" >&6; }
  15349. fi
  15350. min_esd_version=0.2.8
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15352. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15353. no_esd=""
  15354. if test "$ESD_CONFIG" = "no" ; then
  15355. no_esd=yes
  15356. else
  15357. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15358. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15359. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15360. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15361. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15362. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15363. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15364. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15365. if test "x$enable_esdtest" = "xyes" ; then
  15366. ac_save_CFLAGS="$CFLAGS"
  15367. ac_save_LIBS="$LIBS"
  15368. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15369. LIBS="$LIBS $ESD_LIBS"
  15370. rm -f conf.esdtest
  15371. if test "$cross_compiling" = yes; then :
  15372. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15373. else
  15374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15375. /* end confdefs.h. */
  15376. #include <stdio.h>
  15377. #include <stdlib.h>
  15378. #include <string.h>
  15379. #include <esd.h>
  15380. char*
  15381. my_strdup (char *str)
  15382. {
  15383. char *new_str;
  15384. if (str)
  15385. {
  15386. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15387. strcpy (new_str, str);
  15388. }
  15389. else
  15390. new_str = NULL;
  15391. return new_str;
  15392. }
  15393. int main ()
  15394. {
  15395. int major, minor, micro;
  15396. char *tmp_version;
  15397. system ("touch conf.esdtest");
  15398. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15399. tmp_version = my_strdup("$min_esd_version");
  15400. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15401. printf("%s, bad version string\n", "$min_esd_version");
  15402. exit(1);
  15403. }
  15404. if (($esd_major_version > major) ||
  15405. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15406. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15407. {
  15408. return 0;
  15409. }
  15410. else
  15411. {
  15412. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15413. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15414. printf("*** best to upgrade to the required version.\n");
  15415. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15416. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15417. printf("*** config.cache before re-running configure\n");
  15418. return 1;
  15419. }
  15420. }
  15421. _ACEOF
  15422. if ac_fn_c_try_run "$LINENO"; then :
  15423. else
  15424. no_esd=yes
  15425. fi
  15426. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15427. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15428. fi
  15429. CFLAGS="$ac_save_CFLAGS"
  15430. LIBS="$ac_save_LIBS"
  15431. fi
  15432. fi
  15433. if test "x$no_esd" = x ; then
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15435. $as_echo "yes" >&6; }
  15436. have_esd=yes
  15437. else
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15439. $as_echo "no" >&6; }
  15440. if test "$ESD_CONFIG" = "no" ; then
  15441. echo "*** The esd-config script installed by ESD could not be found"
  15442. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15443. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15444. echo "*** full path to esd-config."
  15445. else
  15446. if test -f conf.esdtest ; then
  15447. :
  15448. else
  15449. echo "*** Could not run ESD test program, checking why..."
  15450. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15451. LIBS="$LIBS $ESD_LIBS"
  15452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15453. /* end confdefs.h. */
  15454. #include <stdio.h>
  15455. #include <esd.h>
  15456. int
  15457. main ()
  15458. {
  15459. return 0;
  15460. ;
  15461. return 0;
  15462. }
  15463. _ACEOF
  15464. if ac_fn_c_try_link "$LINENO"; then :
  15465. echo "*** The test program compiled, but did not run. This usually means"
  15466. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15467. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15468. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15469. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15470. echo "*** is required on your system"
  15471. echo "***"
  15472. echo "*** If you have an old version installed, it is best to remove it, although"
  15473. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15474. else
  15475. echo "*** The test program failed to compile or link. See the file config.log for the"
  15476. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15477. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15478. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15479. fi
  15480. rm -f core conftest.err conftest.$ac_objext \
  15481. conftest$ac_exeext conftest.$ac_ext
  15482. CFLAGS="$ac_save_CFLAGS"
  15483. LIBS="$ac_save_LIBS"
  15484. fi
  15485. fi
  15486. ESD_CFLAGS=""
  15487. ESD_LIBS=""
  15488. have_esd=no
  15489. fi
  15490. rm -f conf.esdtest
  15491. if test x$have_esd = xyes; then
  15492. # Check whether --enable-esd-shared was given.
  15493. if test "${enable_esd_shared+set}" = set; then :
  15494. enableval=$enable_esd_shared;
  15495. else
  15496. enable_esd_shared=yes
  15497. fi
  15498. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15499. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15500. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15501. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15502. if test x$have_loadso != xyes && \
  15503. test x$enable_esd_shared = xyes; then
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15505. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15506. fi
  15507. if test x$have_loadso = xyes && \
  15508. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15509. echo "-- dynamic libesd -> $esd_lib"
  15510. cat >>confdefs.h <<_ACEOF
  15511. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15512. _ACEOF
  15513. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15514. else
  15515. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15516. SUMMARY_audio="${SUMMARY_audio} esd"
  15517. fi
  15518. have_audio=yes
  15519. fi
  15520. fi
  15521. }
  15522. CheckPulseAudio()
  15523. {
  15524. # Check whether --enable-pulseaudio was given.
  15525. if test "${enable_pulseaudio+set}" = set; then :
  15526. enableval=$enable_pulseaudio;
  15527. else
  15528. enable_pulseaudio=yes
  15529. fi
  15530. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15531. audio_pulseaudio=no
  15532. PULSEAUDIO_REQUIRED_VERSION=0.9
  15533. # Extract the first word of "pkg-config", so it can be a program name with args.
  15534. set dummy pkg-config; ac_word=$2
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15536. $as_echo_n "checking for $ac_word... " >&6; }
  15537. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15538. $as_echo_n "(cached) " >&6
  15539. else
  15540. case $PKG_CONFIG in
  15541. [\\/]* | ?:[\\/]*)
  15542. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15543. ;;
  15544. *)
  15545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15546. for as_dir in $PATH
  15547. do
  15548. IFS=$as_save_IFS
  15549. test -z "$as_dir" && as_dir=.
  15550. for ac_exec_ext in '' $ac_executable_extensions; do
  15551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15552. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15554. break 2
  15555. fi
  15556. done
  15557. done
  15558. IFS=$as_save_IFS
  15559. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15560. ;;
  15561. esac
  15562. fi
  15563. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15564. if test -n "$PKG_CONFIG"; then
  15565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15566. $as_echo "$PKG_CONFIG" >&6; }
  15567. else
  15568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15569. $as_echo "no" >&6; }
  15570. fi
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15572. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15573. if test x$PKG_CONFIG != xno; then
  15574. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15575. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15576. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15577. audio_pulseaudio=yes
  15578. fi
  15579. fi
  15580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15581. $as_echo "$audio_pulseaudio" >&6; }
  15582. if test x$audio_pulseaudio = xyes; then
  15583. # Check whether --enable-pulseaudio-shared was given.
  15584. if test "${enable_pulseaudio_shared+set}" = set; then :
  15585. enableval=$enable_pulseaudio_shared;
  15586. else
  15587. enable_pulseaudio_shared=yes
  15588. fi
  15589. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15590. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15591. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15592. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15593. if test x$have_loadso != xyes && \
  15594. test x$enable_pulseaudio_shared = xyes; then
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15596. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15597. fi
  15598. if test x$have_loadso = xyes && \
  15599. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15600. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15601. cat >>confdefs.h <<_ACEOF
  15602. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15603. _ACEOF
  15604. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15605. case "$host" in
  15606. # On Solaris, pulseaudio must be linked deferred explicitly
  15607. # to prevent undefined symbol failures.
  15608. *-*-solaris*)
  15609. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15610. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15611. esac
  15612. else
  15613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15614. SUMMARY_audio="${SUMMARY_audio} pulse"
  15615. fi
  15616. have_audio=yes
  15617. fi
  15618. fi
  15619. }
  15620. CheckARTSC()
  15621. {
  15622. # Check whether --enable-arts was given.
  15623. if test "${enable_arts+set}" = set; then :
  15624. enableval=$enable_arts;
  15625. else
  15626. enable_arts=yes
  15627. fi
  15628. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15629. # Extract the first word of "artsc-config", so it can be a program name with args.
  15630. set dummy artsc-config; ac_word=$2
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15632. $as_echo_n "checking for $ac_word... " >&6; }
  15633. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15634. $as_echo_n "(cached) " >&6
  15635. else
  15636. case $ARTSCONFIG in
  15637. [\\/]* | ?:[\\/]*)
  15638. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15639. ;;
  15640. *)
  15641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15642. for as_dir in $PATH
  15643. do
  15644. IFS=$as_save_IFS
  15645. test -z "$as_dir" && as_dir=.
  15646. for ac_exec_ext in '' $ac_executable_extensions; do
  15647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15648. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15650. break 2
  15651. fi
  15652. done
  15653. done
  15654. IFS=$as_save_IFS
  15655. ;;
  15656. esac
  15657. fi
  15658. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15659. if test -n "$ARTSCONFIG"; then
  15660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15661. $as_echo "$ARTSCONFIG" >&6; }
  15662. else
  15663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15664. $as_echo "no" >&6; }
  15665. fi
  15666. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15667. : # arts isn't installed
  15668. else
  15669. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15670. ARTS_LIBS=`$ARTSCONFIG --libs`
  15671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15672. $as_echo_n "checking for aRts development environment... " >&6; }
  15673. audio_arts=no
  15674. save_CFLAGS="$CFLAGS"
  15675. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15677. /* end confdefs.h. */
  15678. #include <artsc.h>
  15679. int
  15680. main ()
  15681. {
  15682. arts_stream_t stream;
  15683. ;
  15684. return 0;
  15685. }
  15686. _ACEOF
  15687. if ac_fn_c_try_compile "$LINENO"; then :
  15688. audio_arts=yes
  15689. fi
  15690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15691. CFLAGS="$save_CFLAGS"
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15693. $as_echo "$audio_arts" >&6; }
  15694. if test x$audio_arts = xyes; then
  15695. # Check whether --enable-arts-shared was given.
  15696. if test "${enable_arts_shared+set}" = set; then :
  15697. enableval=$enable_arts_shared;
  15698. else
  15699. enable_arts_shared=yes
  15700. fi
  15701. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15702. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15703. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15704. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15705. if test x$have_loadso != xyes && \
  15706. test x$enable_arts_shared = xyes; then
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15708. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15709. fi
  15710. if test x$have_loadso = xyes && \
  15711. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15712. echo "-- dynamic libartsc -> $arts_lib"
  15713. cat >>confdefs.h <<_ACEOF
  15714. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15715. _ACEOF
  15716. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15717. else
  15718. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15719. SUMMARY_audio="${SUMMARY_audio} arts"
  15720. fi
  15721. have_audio=yes
  15722. fi
  15723. fi
  15724. fi
  15725. }
  15726. CheckNAS()
  15727. {
  15728. # Check whether --enable-nas was given.
  15729. if test "${enable_nas+set}" = set; then :
  15730. enableval=$enable_nas;
  15731. else
  15732. enable_nas=yes
  15733. fi
  15734. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15735. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15736. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15737. have_nas_hdr=yes
  15738. fi
  15739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15740. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15741. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15742. $as_echo_n "(cached) " >&6
  15743. else
  15744. ac_check_lib_save_LIBS=$LIBS
  15745. LIBS="-laudio $LIBS"
  15746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15747. /* end confdefs.h. */
  15748. /* Override any GCC internal prototype to avoid an error.
  15749. Use char because int might match the return type of a GCC
  15750. builtin and then its argument prototype would still apply. */
  15751. #ifdef __cplusplus
  15752. extern "C"
  15753. #endif
  15754. char AuOpenServer ();
  15755. int
  15756. main ()
  15757. {
  15758. return AuOpenServer ();
  15759. ;
  15760. return 0;
  15761. }
  15762. _ACEOF
  15763. if ac_fn_c_try_link "$LINENO"; then :
  15764. ac_cv_lib_audio_AuOpenServer=yes
  15765. else
  15766. ac_cv_lib_audio_AuOpenServer=no
  15767. fi
  15768. rm -f core conftest.err conftest.$ac_objext \
  15769. conftest$ac_exeext conftest.$ac_ext
  15770. LIBS=$ac_check_lib_save_LIBS
  15771. fi
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15773. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15774. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15775. have_nas_lib=yes
  15776. fi
  15777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15778. $as_echo_n "checking for NAS audio support... " >&6; }
  15779. have_nas=no
  15780. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15781. have_nas=yes
  15782. NAS_LIBS="-laudio"
  15783. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15784. have_nas=yes
  15785. NAS_CFLAGS="-I/usr/X11R6/include/"
  15786. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15787. fi
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15789. $as_echo "$have_nas" >&6; }
  15790. if test x$have_nas = xyes; then
  15791. # Check whether --enable-nas-shared was given.
  15792. if test "${enable_nas_shared+set}" = set; then :
  15793. enableval=$enable_nas_shared;
  15794. else
  15795. enable_nas_shared=yes
  15796. fi
  15797. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15798. if test x$have_loadso != xyes && \
  15799. test x$enable_nas_shared = xyes; then
  15800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15801. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15802. fi
  15803. if test x$have_loadso = xyes && \
  15804. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15805. echo "-- dynamic libaudio -> $nas_lib"
  15806. cat >>confdefs.h <<_ACEOF
  15807. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15808. _ACEOF
  15809. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15810. else
  15811. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15812. SUMMARY_audio="${SUMMARY_audio} nas"
  15813. fi
  15814. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15815. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15816. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15817. have_audio=yes
  15818. fi
  15819. fi
  15820. }
  15821. CheckSNDIO()
  15822. {
  15823. # Check whether --enable-sndio was given.
  15824. if test "${enable_sndio+set}" = set; then :
  15825. enableval=$enable_sndio;
  15826. else
  15827. enable_sndio=yes
  15828. fi
  15829. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15830. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15831. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15832. have_sndio_hdr=yes
  15833. fi
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15835. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15836. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15837. $as_echo_n "(cached) " >&6
  15838. else
  15839. ac_check_lib_save_LIBS=$LIBS
  15840. LIBS="-lsndio $LIBS"
  15841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15842. /* end confdefs.h. */
  15843. /* Override any GCC internal prototype to avoid an error.
  15844. Use char because int might match the return type of a GCC
  15845. builtin and then its argument prototype would still apply. */
  15846. #ifdef __cplusplus
  15847. extern "C"
  15848. #endif
  15849. char sio_open ();
  15850. int
  15851. main ()
  15852. {
  15853. return sio_open ();
  15854. ;
  15855. return 0;
  15856. }
  15857. _ACEOF
  15858. if ac_fn_c_try_link "$LINENO"; then :
  15859. ac_cv_lib_sndio_sio_open=yes
  15860. else
  15861. ac_cv_lib_sndio_sio_open=no
  15862. fi
  15863. rm -f core conftest.err conftest.$ac_objext \
  15864. conftest$ac_exeext conftest.$ac_ext
  15865. LIBS=$ac_check_lib_save_LIBS
  15866. fi
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15868. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15869. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15870. have_sndio_lib=yes
  15871. fi
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15873. $as_echo_n "checking for sndio audio support... " >&6; }
  15874. have_sndio=no
  15875. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15876. have_sndio=yes
  15877. SNDIO_LIBS="-lsndio"
  15878. fi
  15879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15880. $as_echo "$have_sndio" >&6; }
  15881. if test x$have_sndio = xyes; then
  15882. # Check whether --enable-sndio-shared was given.
  15883. if test "${enable_sndio_shared+set}" = set; then :
  15884. enableval=$enable_sndio_shared;
  15885. else
  15886. enable_sndio_shared=yes
  15887. fi
  15888. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15889. if test x$have_loadso != xyes && \
  15890. test x$enable_sndio_shared = xyes; then
  15891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15892. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15893. fi
  15894. if test x$have_loadso = xyes && \
  15895. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15896. echo "-- dynamic libsndio -> $sndio_lib"
  15897. cat >>confdefs.h <<_ACEOF
  15898. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15899. _ACEOF
  15900. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15901. else
  15902. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15903. SUMMARY_audio="${SUMMARY_audio} sndio"
  15904. fi
  15905. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15906. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15907. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15908. have_audio=yes
  15909. fi
  15910. fi
  15911. }
  15912. CheckDiskAudio()
  15913. {
  15914. # Check whether --enable-diskaudio was given.
  15915. if test "${enable_diskaudio+set}" = set; then :
  15916. enableval=$enable_diskaudio;
  15917. else
  15918. enable_diskaudio=yes
  15919. fi
  15920. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15921. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15922. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15923. SUMMARY_audio="${SUMMARY_audio} disk"
  15924. fi
  15925. }
  15926. CheckDummyAudio()
  15927. {
  15928. # Check whether --enable-dummyaudio was given.
  15929. if test "${enable_dummyaudio+set}" = set; then :
  15930. enableval=$enable_dummyaudio;
  15931. else
  15932. enable_dummyaudio=yes
  15933. fi
  15934. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15935. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15936. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15937. SUMMARY_audio="${SUMMARY_audio} dummy"
  15938. fi
  15939. }
  15940. CheckVisibilityHidden()
  15941. {
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15943. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15944. have_gcc_fvisibility=no
  15945. visibility_CFLAGS="-fvisibility=hidden"
  15946. save_CFLAGS="$CFLAGS"
  15947. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15949. /* end confdefs.h. */
  15950. #if !defined(__GNUC__) || __GNUC__ < 4
  15951. #error SDL only uses visibility attributes in GCC 4 or newer
  15952. #endif
  15953. int
  15954. main ()
  15955. {
  15956. ;
  15957. return 0;
  15958. }
  15959. _ACEOF
  15960. if ac_fn_c_try_compile "$LINENO"; then :
  15961. have_gcc_fvisibility=yes
  15962. fi
  15963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15965. $as_echo "$have_gcc_fvisibility" >&6; }
  15966. CFLAGS="$save_CFLAGS"
  15967. if test x$have_gcc_fvisibility = xyes; then
  15968. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15969. fi
  15970. }
  15971. CheckStackBoundary()
  15972. {
  15973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15974. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15975. have_gcc_preferred_stack_boundary=no
  15976. save_CFLAGS="$CFLAGS"
  15977. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15979. /* end confdefs.h. */
  15980. int x = 0;
  15981. int
  15982. main ()
  15983. {
  15984. ;
  15985. return 0;
  15986. }
  15987. _ACEOF
  15988. if ac_fn_c_try_compile "$LINENO"; then :
  15989. have_gcc_preferred_stack_boundary=yes
  15990. fi
  15991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15993. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15994. CFLAGS="$save_CFLAGS"
  15995. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15996. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15997. fi
  15998. }
  15999. CheckWarnAll()
  16000. {
  16001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16002. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16003. have_gcc_Wall=no
  16004. save_CFLAGS="$CFLAGS"
  16005. CFLAGS="$save_CFLAGS -Wall"
  16006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16007. /* end confdefs.h. */
  16008. int x = 0;
  16009. int
  16010. main ()
  16011. {
  16012. ;
  16013. return 0;
  16014. }
  16015. _ACEOF
  16016. if ac_fn_c_try_compile "$LINENO"; then :
  16017. have_gcc_Wall=yes
  16018. fi
  16019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16021. $as_echo "$have_gcc_Wall" >&6; }
  16022. CFLAGS="$save_CFLAGS"
  16023. if test x$have_gcc_Wall = xyes; then
  16024. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16026. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16027. need_gcc_Wno_multichar=no
  16028. case "$host" in
  16029. *-*-haiku*)
  16030. need_gcc_Wno_multichar=yes
  16031. ;;
  16032. esac
  16033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16034. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16035. if test x$need_gcc_Wno_multichar = xyes; then
  16036. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16037. fi
  16038. fi
  16039. }
  16040. CheckWayland()
  16041. {
  16042. # Check whether --enable-video-wayland was given.
  16043. if test "${enable_video_wayland+set}" = set; then :
  16044. enableval=$enable_video_wayland;
  16045. else
  16046. enable_video_wayland=no
  16047. fi
  16048. #yes)
  16049. # Check whether --enable-video-wayland-qt-touch was given.
  16050. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16051. enableval=$enable_video_wayland_qt_touch;
  16052. else
  16053. enable_video_wayland_qt_touch=yes
  16054. fi
  16055. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16056. # Extract the first word of "pkg-config", so it can be a program name with args.
  16057. set dummy pkg-config; ac_word=$2
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16059. $as_echo_n "checking for $ac_word... " >&6; }
  16060. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16061. $as_echo_n "(cached) " >&6
  16062. else
  16063. case $PKG_CONFIG in
  16064. [\\/]* | ?:[\\/]*)
  16065. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16066. ;;
  16067. *)
  16068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16069. for as_dir in $PATH
  16070. do
  16071. IFS=$as_save_IFS
  16072. test -z "$as_dir" && as_dir=.
  16073. for ac_exec_ext in '' $ac_executable_extensions; do
  16074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16075. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16077. break 2
  16078. fi
  16079. done
  16080. done
  16081. IFS=$as_save_IFS
  16082. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16083. ;;
  16084. esac
  16085. fi
  16086. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16087. if test -n "$PKG_CONFIG"; then
  16088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16089. $as_echo "$PKG_CONFIG" >&6; }
  16090. else
  16091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16092. $as_echo "no" >&6; }
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16095. $as_echo_n "checking for Wayland support... " >&6; }
  16096. video_wayland=no
  16097. if test x$PKG_CONFIG != xno; then
  16098. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16099. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16100. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16101. video_wayland=yes
  16102. fi
  16103. fi
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16105. $as_echo "$video_wayland" >&6; }
  16106. if test x$video_wayland = xyes; then
  16107. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16108. if test x$enable_video_wayland_qt_touch = xyes; then
  16109. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16110. fi
  16111. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16112. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16113. # Check whether --enable-wayland-shared was given.
  16114. if test "${enable_wayland_shared+set}" = set; then :
  16115. enableval=$enable_wayland_shared;
  16116. else
  16117. enable_wayland_shared=maybe
  16118. fi
  16119. case "$host" in
  16120. *)
  16121. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16122. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16123. if test x$wayland_egl_lib = x; then
  16124. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16125. fi
  16126. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16127. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16128. ;;
  16129. esac
  16130. if test x$enable_wayland_shared = xmaybe; then
  16131. enable_wayland_shared=yes
  16132. fi
  16133. if test x$have_loadso != xyes && \
  16134. test x$enable_wayland_shared = xyes; then
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16136. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16137. enable_wayland_shared=no
  16138. fi
  16139. if test x$have_loadso = xyes && \
  16140. test x$enable_wayland_shared = xyes && \
  16141. test x$wayland_client_lib != x && \
  16142. test x$wayland_egl_lib != x && \
  16143. test x$wayland_cursor_lib != x && \
  16144. test x$xkbcommon_lib != x; then
  16145. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16146. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16147. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16148. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16149. cat >>confdefs.h <<_ACEOF
  16150. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16151. _ACEOF
  16152. cat >>confdefs.h <<_ACEOF
  16153. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16154. _ACEOF
  16155. cat >>confdefs.h <<_ACEOF
  16156. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16157. _ACEOF
  16158. cat >>confdefs.h <<_ACEOF
  16159. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16160. _ACEOF
  16161. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16162. else
  16163. enable_wayland_shared=no
  16164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16165. SUMMARY_video="${SUMMARY_video} wayland"
  16166. fi
  16167. have_video=yes
  16168. fi
  16169. fi
  16170. }
  16171. CheckMir()
  16172. {
  16173. # Check whether --enable-video-mir was given.
  16174. if test "${enable_video_mir+set}" = set; then :
  16175. enableval=$enable_video_mir;
  16176. else
  16177. enable_video_mir=no
  16178. fi
  16179. #yes)
  16180. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16181. # Extract the first word of "pkg-config", so it can be a program name with args.
  16182. set dummy pkg-config; ac_word=$2
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16184. $as_echo_n "checking for $ac_word... " >&6; }
  16185. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16186. $as_echo_n "(cached) " >&6
  16187. else
  16188. case $PKG_CONFIG in
  16189. [\\/]* | ?:[\\/]*)
  16190. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16191. ;;
  16192. *)
  16193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16194. for as_dir in $PATH
  16195. do
  16196. IFS=$as_save_IFS
  16197. test -z "$as_dir" && as_dir=.
  16198. for ac_exec_ext in '' $ac_executable_extensions; do
  16199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16200. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16202. break 2
  16203. fi
  16204. done
  16205. done
  16206. IFS=$as_save_IFS
  16207. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16208. ;;
  16209. esac
  16210. fi
  16211. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16212. if test -n "$PKG_CONFIG"; then
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16214. $as_echo "$PKG_CONFIG" >&6; }
  16215. else
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16217. $as_echo "no" >&6; }
  16218. fi
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16220. $as_echo_n "checking for Mir support... " >&6; }
  16221. video_mir=no
  16222. if test x$PKG_CONFIG != xno; then
  16223. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16224. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16225. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16226. video_mir=yes
  16227. fi
  16228. fi
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16230. $as_echo "$video_mir" >&6; }
  16231. if test x$video_mir = xyes; then
  16232. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16233. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16234. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16235. # Check whether --enable-mir-shared was given.
  16236. if test "${enable_mir_shared+set}" = set; then :
  16237. enableval=$enable_mir_shared;
  16238. else
  16239. enable_mir_shared=maybe
  16240. fi
  16241. case "$host" in
  16242. *)
  16243. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16244. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16245. ;;
  16246. esac
  16247. if test x$enable_mir_shared = xmaybe; then
  16248. enable_mir_shared=yes
  16249. fi
  16250. if test x$have_loadso != xyes && \
  16251. test x$enable_mir_shared = xyes; then
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16253. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16254. enable_mir_shared=no
  16255. fi
  16256. if test x$have_loadso = xyes && \
  16257. test x$enable_mir_shared = xyes && \
  16258. test x$mirclient_lib != x && \
  16259. test x$xkbcommon_lib != x; then
  16260. echo "-- dynamic libmirclient -> $mirclient_lib"
  16261. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16262. cat >>confdefs.h <<_ACEOF
  16263. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16264. _ACEOF
  16265. cat >>confdefs.h <<_ACEOF
  16266. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16267. _ACEOF
  16268. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16269. else
  16270. enable_mir_shared=no
  16271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16272. SUMMARY_video="${SUMMARY_video} mir"
  16273. fi
  16274. have_video=yes
  16275. fi
  16276. fi
  16277. }
  16278. CheckX11()
  16279. {
  16280. # Check whether --enable-video-x11 was given.
  16281. if test "${enable_video_x11+set}" = set; then :
  16282. enableval=$enable_video_x11;
  16283. else
  16284. enable_video_x11=yes
  16285. fi
  16286. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16287. case "$host" in
  16288. *-*-darwin*)
  16289. # This isn't necessary for X11, but fixes GLX detection
  16290. if test "x$x_includes" = xNONE && \
  16291. test "x$x_libraries" = xNONE && \
  16292. test -d /usr/X11R6/include && \
  16293. test -d /usr/X11R6/lib; then
  16294. x_includes="/usr/X11R6/include"
  16295. x_libraries="/usr/X11R6/lib"
  16296. fi
  16297. ;;
  16298. esac
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16300. $as_echo_n "checking for X... " >&6; }
  16301. # Check whether --with-x was given.
  16302. if test "${with_x+set}" = set; then :
  16303. withval=$with_x;
  16304. fi
  16305. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16306. if test "x$with_x" = xno; then
  16307. # The user explicitly disabled X.
  16308. have_x=disabled
  16309. else
  16310. case $x_includes,$x_libraries in #(
  16311. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16312. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16313. $as_echo_n "(cached) " >&6
  16314. else
  16315. # One or both of the vars are not set, and there is no cached value.
  16316. ac_x_includes=no ac_x_libraries=no
  16317. rm -f -r conftest.dir
  16318. if mkdir conftest.dir; then
  16319. cd conftest.dir
  16320. cat >Imakefile <<'_ACEOF'
  16321. incroot:
  16322. @echo incroot='${INCROOT}'
  16323. usrlibdir:
  16324. @echo usrlibdir='${USRLIBDIR}'
  16325. libdir:
  16326. @echo libdir='${LIBDIR}'
  16327. _ACEOF
  16328. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16329. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16330. for ac_var in incroot usrlibdir libdir; do
  16331. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16332. done
  16333. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16334. for ac_extension in a so sl dylib la dll; do
  16335. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16336. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16337. ac_im_usrlibdir=$ac_im_libdir; break
  16338. fi
  16339. done
  16340. # Screen out bogus values from the imake configuration. They are
  16341. # bogus both because they are the default anyway, and because
  16342. # using them would break gcc on systems where it needs fixed includes.
  16343. case $ac_im_incroot in
  16344. /usr/include) ac_x_includes= ;;
  16345. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16346. esac
  16347. case $ac_im_usrlibdir in
  16348. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16349. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16350. esac
  16351. fi
  16352. cd ..
  16353. rm -f -r conftest.dir
  16354. fi
  16355. # Standard set of common directories for X headers.
  16356. # Check X11 before X11Rn because it is often a symlink to the current release.
  16357. ac_x_header_dirs='
  16358. /usr/X11/include
  16359. /usr/X11R7/include
  16360. /usr/X11R6/include
  16361. /usr/X11R5/include
  16362. /usr/X11R4/include
  16363. /usr/include/X11
  16364. /usr/include/X11R7
  16365. /usr/include/X11R6
  16366. /usr/include/X11R5
  16367. /usr/include/X11R4
  16368. /usr/local/X11/include
  16369. /usr/local/X11R7/include
  16370. /usr/local/X11R6/include
  16371. /usr/local/X11R5/include
  16372. /usr/local/X11R4/include
  16373. /usr/local/include/X11
  16374. /usr/local/include/X11R7
  16375. /usr/local/include/X11R6
  16376. /usr/local/include/X11R5
  16377. /usr/local/include/X11R4
  16378. /usr/X386/include
  16379. /usr/x386/include
  16380. /usr/XFree86/include/X11
  16381. /usr/include
  16382. /usr/local/include
  16383. /usr/unsupported/include
  16384. /usr/athena/include
  16385. /usr/local/x11r5/include
  16386. /usr/lpp/Xamples/include
  16387. /usr/openwin/include
  16388. /usr/openwin/share/include'
  16389. if test "$ac_x_includes" = no; then
  16390. # Guess where to find include files, by looking for Xlib.h.
  16391. # First, try using that file with no special directory specified.
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. #include <X11/Xlib.h>
  16395. _ACEOF
  16396. if ac_fn_c_try_cpp "$LINENO"; then :
  16397. # We can compile using X headers with no special include directory.
  16398. ac_x_includes=
  16399. else
  16400. for ac_dir in $ac_x_header_dirs; do
  16401. if test -r "$ac_dir/X11/Xlib.h"; then
  16402. ac_x_includes=$ac_dir
  16403. break
  16404. fi
  16405. done
  16406. fi
  16407. rm -f conftest.err conftest.i conftest.$ac_ext
  16408. fi # $ac_x_includes = no
  16409. if test "$ac_x_libraries" = no; then
  16410. # Check for the libraries.
  16411. # See if we find them without any special options.
  16412. # Don't add to $LIBS permanently.
  16413. ac_save_LIBS=$LIBS
  16414. LIBS="-lX11 $LIBS"
  16415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16416. /* end confdefs.h. */
  16417. #include <X11/Xlib.h>
  16418. int
  16419. main ()
  16420. {
  16421. XrmInitialize ()
  16422. ;
  16423. return 0;
  16424. }
  16425. _ACEOF
  16426. if ac_fn_c_try_link "$LINENO"; then :
  16427. LIBS=$ac_save_LIBS
  16428. # We can link X programs with no special library path.
  16429. ac_x_libraries=
  16430. else
  16431. LIBS=$ac_save_LIBS
  16432. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16433. do
  16434. # Don't even attempt the hair of trying to link an X program!
  16435. for ac_extension in a so sl dylib la dll; do
  16436. if test -r "$ac_dir/libX11.$ac_extension"; then
  16437. ac_x_libraries=$ac_dir
  16438. break 2
  16439. fi
  16440. done
  16441. done
  16442. fi
  16443. rm -f core conftest.err conftest.$ac_objext \
  16444. conftest$ac_exeext conftest.$ac_ext
  16445. fi # $ac_x_libraries = no
  16446. case $ac_x_includes,$ac_x_libraries in #(
  16447. no,* | *,no | *\'*)
  16448. # Didn't find X, or a directory has "'" in its name.
  16449. ac_cv_have_x="have_x=no";; #(
  16450. *)
  16451. # Record where we found X for the cache.
  16452. ac_cv_have_x="have_x=yes\
  16453. ac_x_includes='$ac_x_includes'\
  16454. ac_x_libraries='$ac_x_libraries'"
  16455. esac
  16456. fi
  16457. ;; #(
  16458. *) have_x=yes;;
  16459. esac
  16460. eval "$ac_cv_have_x"
  16461. fi # $with_x != no
  16462. if test "$have_x" != yes; then
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16464. $as_echo "$have_x" >&6; }
  16465. no_x=yes
  16466. else
  16467. # If each of the values was on the command line, it overrides each guess.
  16468. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16469. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16470. # Update the cache value to reflect the command line values.
  16471. ac_cv_have_x="have_x=yes\
  16472. ac_x_includes='$x_includes'\
  16473. ac_x_libraries='$x_libraries'"
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16475. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16476. fi
  16477. if test "$no_x" = yes; then
  16478. # Not all programs may use this symbol, but it does not hurt to define it.
  16479. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16480. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16481. else
  16482. if test -n "$x_includes"; then
  16483. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16484. fi
  16485. # It would also be nice to do this for all -L options, not just this one.
  16486. if test -n "$x_libraries"; then
  16487. X_LIBS="$X_LIBS -L$x_libraries"
  16488. # For Solaris; some versions of Sun CC require a space after -R and
  16489. # others require no space. Words are not sufficient . . . .
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16491. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16492. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16493. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16494. ac_c_werror_flag=yes
  16495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16496. /* end confdefs.h. */
  16497. int
  16498. main ()
  16499. {
  16500. ;
  16501. return 0;
  16502. }
  16503. _ACEOF
  16504. if ac_fn_c_try_link "$LINENO"; then :
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16506. $as_echo "no" >&6; }
  16507. X_LIBS="$X_LIBS -R$x_libraries"
  16508. else
  16509. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16511. /* end confdefs.h. */
  16512. int
  16513. main ()
  16514. {
  16515. ;
  16516. return 0;
  16517. }
  16518. _ACEOF
  16519. if ac_fn_c_try_link "$LINENO"; then :
  16520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16521. $as_echo "yes" >&6; }
  16522. X_LIBS="$X_LIBS -R $x_libraries"
  16523. else
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16525. $as_echo "neither works" >&6; }
  16526. fi
  16527. rm -f core conftest.err conftest.$ac_objext \
  16528. conftest$ac_exeext conftest.$ac_ext
  16529. fi
  16530. rm -f core conftest.err conftest.$ac_objext \
  16531. conftest$ac_exeext conftest.$ac_ext
  16532. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16533. LIBS=$ac_xsave_LIBS
  16534. fi
  16535. # Check for system-dependent libraries X programs must link with.
  16536. # Do this before checking for the system-independent R6 libraries
  16537. # (-lICE), since we may need -lsocket or whatever for X linking.
  16538. if test "$ISC" = yes; then
  16539. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16540. else
  16541. # Martyn Johnson says this is needed for Ultrix, if the X
  16542. # libraries were built with DECnet support. And Karl Berry says
  16543. # the Alpha needs dnet_stub (dnet does not exist).
  16544. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. /* end confdefs.h. */
  16547. /* Override any GCC internal prototype to avoid an error.
  16548. Use char because int might match the return type of a GCC
  16549. builtin and then its argument prototype would still apply. */
  16550. #ifdef __cplusplus
  16551. extern "C"
  16552. #endif
  16553. char XOpenDisplay ();
  16554. int
  16555. main ()
  16556. {
  16557. return XOpenDisplay ();
  16558. ;
  16559. return 0;
  16560. }
  16561. _ACEOF
  16562. if ac_fn_c_try_link "$LINENO"; then :
  16563. else
  16564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16565. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16566. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16567. $as_echo_n "(cached) " >&6
  16568. else
  16569. ac_check_lib_save_LIBS=$LIBS
  16570. LIBS="-ldnet $LIBS"
  16571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16572. /* end confdefs.h. */
  16573. /* Override any GCC internal prototype to avoid an error.
  16574. Use char because int might match the return type of a GCC
  16575. builtin and then its argument prototype would still apply. */
  16576. #ifdef __cplusplus
  16577. extern "C"
  16578. #endif
  16579. char dnet_ntoa ();
  16580. int
  16581. main ()
  16582. {
  16583. return dnet_ntoa ();
  16584. ;
  16585. return 0;
  16586. }
  16587. _ACEOF
  16588. if ac_fn_c_try_link "$LINENO"; then :
  16589. ac_cv_lib_dnet_dnet_ntoa=yes
  16590. else
  16591. ac_cv_lib_dnet_dnet_ntoa=no
  16592. fi
  16593. rm -f core conftest.err conftest.$ac_objext \
  16594. conftest$ac_exeext conftest.$ac_ext
  16595. LIBS=$ac_check_lib_save_LIBS
  16596. fi
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16598. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16599. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16600. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16601. fi
  16602. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16604. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16605. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16606. $as_echo_n "(cached) " >&6
  16607. else
  16608. ac_check_lib_save_LIBS=$LIBS
  16609. LIBS="-ldnet_stub $LIBS"
  16610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16611. /* end confdefs.h. */
  16612. /* Override any GCC internal prototype to avoid an error.
  16613. Use char because int might match the return type of a GCC
  16614. builtin and then its argument prototype would still apply. */
  16615. #ifdef __cplusplus
  16616. extern "C"
  16617. #endif
  16618. char dnet_ntoa ();
  16619. int
  16620. main ()
  16621. {
  16622. return dnet_ntoa ();
  16623. ;
  16624. return 0;
  16625. }
  16626. _ACEOF
  16627. if ac_fn_c_try_link "$LINENO"; then :
  16628. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16629. else
  16630. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16631. fi
  16632. rm -f core conftest.err conftest.$ac_objext \
  16633. conftest$ac_exeext conftest.$ac_ext
  16634. LIBS=$ac_check_lib_save_LIBS
  16635. fi
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16637. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16638. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16639. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16640. fi
  16641. fi
  16642. fi
  16643. rm -f core conftest.err conftest.$ac_objext \
  16644. conftest$ac_exeext conftest.$ac_ext
  16645. LIBS="$ac_xsave_LIBS"
  16646. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16647. # to get the SysV transport functions.
  16648. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16649. # needs -lnsl.
  16650. # The nsl library prevents programs from opening the X display
  16651. # on Irix 5.2, according to T.E. Dickey.
  16652. # The functions gethostbyname, getservbyname, and inet_addr are
  16653. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16654. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16655. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16656. fi
  16657. if test $ac_cv_func_gethostbyname = no; then
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16659. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16660. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16661. $as_echo_n "(cached) " >&6
  16662. else
  16663. ac_check_lib_save_LIBS=$LIBS
  16664. LIBS="-lnsl $LIBS"
  16665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16666. /* end confdefs.h. */
  16667. /* Override any GCC internal prototype to avoid an error.
  16668. Use char because int might match the return type of a GCC
  16669. builtin and then its argument prototype would still apply. */
  16670. #ifdef __cplusplus
  16671. extern "C"
  16672. #endif
  16673. char gethostbyname ();
  16674. int
  16675. main ()
  16676. {
  16677. return gethostbyname ();
  16678. ;
  16679. return 0;
  16680. }
  16681. _ACEOF
  16682. if ac_fn_c_try_link "$LINENO"; then :
  16683. ac_cv_lib_nsl_gethostbyname=yes
  16684. else
  16685. ac_cv_lib_nsl_gethostbyname=no
  16686. fi
  16687. rm -f core conftest.err conftest.$ac_objext \
  16688. conftest$ac_exeext conftest.$ac_ext
  16689. LIBS=$ac_check_lib_save_LIBS
  16690. fi
  16691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16692. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16693. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16694. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16695. fi
  16696. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16698. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16699. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16700. $as_echo_n "(cached) " >&6
  16701. else
  16702. ac_check_lib_save_LIBS=$LIBS
  16703. LIBS="-lbsd $LIBS"
  16704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16705. /* end confdefs.h. */
  16706. /* Override any GCC internal prototype to avoid an error.
  16707. Use char because int might match the return type of a GCC
  16708. builtin and then its argument prototype would still apply. */
  16709. #ifdef __cplusplus
  16710. extern "C"
  16711. #endif
  16712. char gethostbyname ();
  16713. int
  16714. main ()
  16715. {
  16716. return gethostbyname ();
  16717. ;
  16718. return 0;
  16719. }
  16720. _ACEOF
  16721. if ac_fn_c_try_link "$LINENO"; then :
  16722. ac_cv_lib_bsd_gethostbyname=yes
  16723. else
  16724. ac_cv_lib_bsd_gethostbyname=no
  16725. fi
  16726. rm -f core conftest.err conftest.$ac_objext \
  16727. conftest$ac_exeext conftest.$ac_ext
  16728. LIBS=$ac_check_lib_save_LIBS
  16729. fi
  16730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16731. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16732. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16733. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16734. fi
  16735. fi
  16736. fi
  16737. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16738. # socket/setsockopt and other routines are undefined under SCO ODT
  16739. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16740. # on later versions), says Simon Leinen: it contains gethostby*
  16741. # variants that don't use the name server (or something). -lsocket
  16742. # must be given before -lnsl if both are needed. We assume that
  16743. # if connect needs -lnsl, so does gethostbyname.
  16744. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16745. if test "x$ac_cv_func_connect" = xyes; then :
  16746. fi
  16747. if test $ac_cv_func_connect = no; then
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16749. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16750. if ${ac_cv_lib_socket_connect+:} false; then :
  16751. $as_echo_n "(cached) " >&6
  16752. else
  16753. ac_check_lib_save_LIBS=$LIBS
  16754. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16756. /* end confdefs.h. */
  16757. /* Override any GCC internal prototype to avoid an error.
  16758. Use char because int might match the return type of a GCC
  16759. builtin and then its argument prototype would still apply. */
  16760. #ifdef __cplusplus
  16761. extern "C"
  16762. #endif
  16763. char connect ();
  16764. int
  16765. main ()
  16766. {
  16767. return connect ();
  16768. ;
  16769. return 0;
  16770. }
  16771. _ACEOF
  16772. if ac_fn_c_try_link "$LINENO"; then :
  16773. ac_cv_lib_socket_connect=yes
  16774. else
  16775. ac_cv_lib_socket_connect=no
  16776. fi
  16777. rm -f core conftest.err conftest.$ac_objext \
  16778. conftest$ac_exeext conftest.$ac_ext
  16779. LIBS=$ac_check_lib_save_LIBS
  16780. fi
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16782. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16783. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16784. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16785. fi
  16786. fi
  16787. # Guillermo Gomez says -lposix is necessary on A/UX.
  16788. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16789. if test "x$ac_cv_func_remove" = xyes; then :
  16790. fi
  16791. if test $ac_cv_func_remove = no; then
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16793. $as_echo_n "checking for remove in -lposix... " >&6; }
  16794. if ${ac_cv_lib_posix_remove+:} false; then :
  16795. $as_echo_n "(cached) " >&6
  16796. else
  16797. ac_check_lib_save_LIBS=$LIBS
  16798. LIBS="-lposix $LIBS"
  16799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16800. /* end confdefs.h. */
  16801. /* Override any GCC internal prototype to avoid an error.
  16802. Use char because int might match the return type of a GCC
  16803. builtin and then its argument prototype would still apply. */
  16804. #ifdef __cplusplus
  16805. extern "C"
  16806. #endif
  16807. char remove ();
  16808. int
  16809. main ()
  16810. {
  16811. return remove ();
  16812. ;
  16813. return 0;
  16814. }
  16815. _ACEOF
  16816. if ac_fn_c_try_link "$LINENO"; then :
  16817. ac_cv_lib_posix_remove=yes
  16818. else
  16819. ac_cv_lib_posix_remove=no
  16820. fi
  16821. rm -f core conftest.err conftest.$ac_objext \
  16822. conftest$ac_exeext conftest.$ac_ext
  16823. LIBS=$ac_check_lib_save_LIBS
  16824. fi
  16825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16826. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16827. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16828. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16829. fi
  16830. fi
  16831. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16832. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16833. if test "x$ac_cv_func_shmat" = xyes; then :
  16834. fi
  16835. if test $ac_cv_func_shmat = no; then
  16836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16837. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16838. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16839. $as_echo_n "(cached) " >&6
  16840. else
  16841. ac_check_lib_save_LIBS=$LIBS
  16842. LIBS="-lipc $LIBS"
  16843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16844. /* end confdefs.h. */
  16845. /* Override any GCC internal prototype to avoid an error.
  16846. Use char because int might match the return type of a GCC
  16847. builtin and then its argument prototype would still apply. */
  16848. #ifdef __cplusplus
  16849. extern "C"
  16850. #endif
  16851. char shmat ();
  16852. int
  16853. main ()
  16854. {
  16855. return shmat ();
  16856. ;
  16857. return 0;
  16858. }
  16859. _ACEOF
  16860. if ac_fn_c_try_link "$LINENO"; then :
  16861. ac_cv_lib_ipc_shmat=yes
  16862. else
  16863. ac_cv_lib_ipc_shmat=no
  16864. fi
  16865. rm -f core conftest.err conftest.$ac_objext \
  16866. conftest$ac_exeext conftest.$ac_ext
  16867. LIBS=$ac_check_lib_save_LIBS
  16868. fi
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16870. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16871. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16872. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16873. fi
  16874. fi
  16875. fi
  16876. # Check for libraries that X11R6 Xt/Xaw programs need.
  16877. ac_save_LDFLAGS=$LDFLAGS
  16878. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16879. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16880. # check for ICE first), but we must link in the order -lSM -lICE or
  16881. # we get undefined symbols. So assume we have SM if we have ICE.
  16882. # These have to be linked with before -lX11, unlike the other
  16883. # libraries we check for below, so use a different variable.
  16884. # John Interrante, Karl Berry
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16886. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16887. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16888. $as_echo_n "(cached) " >&6
  16889. else
  16890. ac_check_lib_save_LIBS=$LIBS
  16891. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16893. /* end confdefs.h. */
  16894. /* Override any GCC internal prototype to avoid an error.
  16895. Use char because int might match the return type of a GCC
  16896. builtin and then its argument prototype would still apply. */
  16897. #ifdef __cplusplus
  16898. extern "C"
  16899. #endif
  16900. char IceConnectionNumber ();
  16901. int
  16902. main ()
  16903. {
  16904. return IceConnectionNumber ();
  16905. ;
  16906. return 0;
  16907. }
  16908. _ACEOF
  16909. if ac_fn_c_try_link "$LINENO"; then :
  16910. ac_cv_lib_ICE_IceConnectionNumber=yes
  16911. else
  16912. ac_cv_lib_ICE_IceConnectionNumber=no
  16913. fi
  16914. rm -f core conftest.err conftest.$ac_objext \
  16915. conftest$ac_exeext conftest.$ac_ext
  16916. LIBS=$ac_check_lib_save_LIBS
  16917. fi
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16919. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16920. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16921. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16922. fi
  16923. LDFLAGS=$ac_save_LDFLAGS
  16924. fi
  16925. if test x$have_x = xyes; then
  16926. # Check whether --enable-x11-shared was given.
  16927. if test "${enable_x11_shared+set}" = set; then :
  16928. enableval=$enable_x11_shared;
  16929. else
  16930. enable_x11_shared=maybe
  16931. fi
  16932. case "$host" in
  16933. *-*-darwin*)
  16934. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16935. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16936. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16937. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16938. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16939. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16940. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16941. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16942. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16943. ;;
  16944. *-*-openbsd*)
  16945. x11_lib='libX11.so'
  16946. x11ext_lib='libXext.so'
  16947. xcursor_lib='libXcursor.so'
  16948. xinerama_lib='libXinerama.so'
  16949. xinput_lib='libXi.so'
  16950. xrandr_lib='libXrandr.so'
  16951. xrender_lib='libXrender.so'
  16952. xss_lib='libXss.so'
  16953. xvidmode_lib='libXxf86vm.so'
  16954. ;;
  16955. *)
  16956. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16957. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16958. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16959. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16960. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16961. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16962. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16963. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16964. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16965. ;;
  16966. esac
  16967. if test x$ac_cv_func_shmat != xyes; then
  16968. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16969. fi
  16970. CFLAGS="$CFLAGS $X_CFLAGS"
  16971. LDFLAGS="$LDFLAGS $X_LIBS"
  16972. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16973. #include <X11/Xproto.h>
  16974. "
  16975. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16976. have_xext_h_hdr=yes
  16977. else
  16978. have_xext_h_hdr=no
  16979. fi
  16980. if test x$have_xext_h_hdr != xyes; then
  16981. as_fn_error $? "
  16982. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16983. " "$LINENO" 5
  16984. fi
  16985. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16986. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16987. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16988. # Needed so SDL applications can include SDL_syswm.h
  16989. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16990. if test x$enable_x11_shared = xmaybe; then
  16991. enable_x11_shared=yes
  16992. fi
  16993. if test x$have_loadso != xyes && \
  16994. test x$enable_x11_shared = xyes; then
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16996. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16997. enable_x11_shared=no
  16998. fi
  16999. if test x$have_loadso = xyes && \
  17000. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17001. echo "-- dynamic libX11 -> $x11_lib"
  17002. echo "-- dynamic libX11ext -> $x11ext_lib"
  17003. cat >>confdefs.h <<_ACEOF
  17004. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17005. _ACEOF
  17006. cat >>confdefs.h <<_ACEOF
  17007. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17008. _ACEOF
  17009. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17010. else
  17011. enable_x11_shared=no
  17012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17013. SUMMARY_video="${SUMMARY_video} x11"
  17014. fi
  17015. have_video=yes
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17017. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17018. have_const_param_XextAddDisplay=no
  17019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17020. /* end confdefs.h. */
  17021. #include <X11/Xlib.h>
  17022. #include <X11/Xproto.h>
  17023. #include <X11/extensions/Xext.h>
  17024. #include <X11/extensions/extutil.h>
  17025. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17026. int
  17027. main ()
  17028. {
  17029. ;
  17030. return 0;
  17031. }
  17032. _ACEOF
  17033. if ac_fn_c_try_compile "$LINENO"; then :
  17034. have_const_param_XextAddDisplay=yes
  17035. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17036. fi
  17037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17039. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17041. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17042. have_const_param_xdata32=no
  17043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17044. /* end confdefs.h. */
  17045. #include <X11/Xlibint.h>
  17046. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17047. int
  17048. main ()
  17049. {
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_compile "$LINENO"; then :
  17055. have_const_param_xdata32=yes
  17056. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17057. fi
  17058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17060. $as_echo "$have_const_param_xdata32" >&6; }
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17062. $as_echo_n "checking for XGenericEvent... " >&6; }
  17063. have_XGenericEvent=no
  17064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17065. /* end confdefs.h. */
  17066. #include <X11/Xlib.h>
  17067. int
  17068. main ()
  17069. {
  17070. Display *display;
  17071. XEvent event;
  17072. XGenericEventCookie *cookie = &event.xcookie;
  17073. XNextEvent(display, &event);
  17074. XGetEventData(display, cookie);
  17075. XFreeEventData(display, cookie);
  17076. ;
  17077. return 0;
  17078. }
  17079. _ACEOF
  17080. if ac_fn_c_try_compile "$LINENO"; then :
  17081. have_XGenericEvent=yes
  17082. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17083. fi
  17084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17086. $as_echo "$have_XGenericEvent" >&6; }
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17088. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17089. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17090. $as_echo_n "(cached) " >&6
  17091. else
  17092. ac_check_lib_save_LIBS=$LIBS
  17093. LIBS="-lX11 $LIBS"
  17094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17095. /* end confdefs.h. */
  17096. /* Override any GCC internal prototype to avoid an error.
  17097. Use char because int might match the return type of a GCC
  17098. builtin and then its argument prototype would still apply. */
  17099. #ifdef __cplusplus
  17100. extern "C"
  17101. #endif
  17102. char XkbKeycodeToKeysym ();
  17103. int
  17104. main ()
  17105. {
  17106. return XkbKeycodeToKeysym ();
  17107. ;
  17108. return 0;
  17109. }
  17110. _ACEOF
  17111. if ac_fn_c_try_link "$LINENO"; then :
  17112. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17113. else
  17114. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17115. fi
  17116. rm -f core conftest.err conftest.$ac_objext \
  17117. conftest$ac_exeext conftest.$ac_ext
  17118. LIBS=$ac_check_lib_save_LIBS
  17119. fi
  17120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17121. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17122. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17123. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17124. fi
  17125. # Check whether --enable-video-x11-xcursor was given.
  17126. if test "${enable_video_x11_xcursor+set}" = set; then :
  17127. enableval=$enable_video_x11_xcursor;
  17128. else
  17129. enable_video_x11_xcursor=yes
  17130. fi
  17131. if test x$enable_video_x11_xcursor = xyes; then
  17132. definitely_enable_video_x11_xcursor=no
  17133. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17134. "
  17135. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17136. have_xcursor_h_hdr=yes
  17137. else
  17138. have_xcursor_h_hdr=no
  17139. fi
  17140. if test x$have_xcursor_h_hdr = xyes; then
  17141. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17142. echo "-- dynamic libXcursor -> $xcursor_lib"
  17143. cat >>confdefs.h <<_ACEOF
  17144. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17145. _ACEOF
  17146. definitely_enable_video_x11_xcursor=yes
  17147. else
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17149. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17150. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17151. $as_echo_n "(cached) " >&6
  17152. else
  17153. ac_check_lib_save_LIBS=$LIBS
  17154. LIBS="-lXcursor $LIBS"
  17155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17156. /* end confdefs.h. */
  17157. /* Override any GCC internal prototype to avoid an error.
  17158. Use char because int might match the return type of a GCC
  17159. builtin and then its argument prototype would still apply. */
  17160. #ifdef __cplusplus
  17161. extern "C"
  17162. #endif
  17163. char XcursorImageCreate ();
  17164. int
  17165. main ()
  17166. {
  17167. return XcursorImageCreate ();
  17168. ;
  17169. return 0;
  17170. }
  17171. _ACEOF
  17172. if ac_fn_c_try_link "$LINENO"; then :
  17173. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17174. else
  17175. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17176. fi
  17177. rm -f core conftest.err conftest.$ac_objext \
  17178. conftest$ac_exeext conftest.$ac_ext
  17179. LIBS=$ac_check_lib_save_LIBS
  17180. fi
  17181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17182. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17183. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17184. have_xcursor_lib=yes
  17185. fi
  17186. if test x$have_xcursor_lib = xyes ; then
  17187. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17188. definitely_enable_video_x11_xcursor=yes
  17189. fi
  17190. fi
  17191. fi
  17192. fi
  17193. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17194. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17195. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17196. fi
  17197. # Check whether --enable-video-x11-xinerama was given.
  17198. if test "${enable_video_x11_xinerama+set}" = set; then :
  17199. enableval=$enable_video_x11_xinerama;
  17200. else
  17201. enable_video_x11_xinerama=yes
  17202. fi
  17203. if test x$enable_video_x11_xinerama = xyes; then
  17204. definitely_enable_video_x11_xinerama=no
  17205. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17206. "
  17207. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17208. have_xinerama_h_hdr=yes
  17209. else
  17210. have_xinerama_h_hdr=no
  17211. fi
  17212. if test x$have_xinerama_h_hdr = xyes; then
  17213. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17214. echo "-- dynamic libXinerama -> $xinerama_lib"
  17215. cat >>confdefs.h <<_ACEOF
  17216. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17217. _ACEOF
  17218. definitely_enable_video_x11_xinerama=yes
  17219. else
  17220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17221. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17222. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17223. $as_echo_n "(cached) " >&6
  17224. else
  17225. ac_check_lib_save_LIBS=$LIBS
  17226. LIBS="-lXinerama $LIBS"
  17227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17228. /* end confdefs.h. */
  17229. /* Override any GCC internal prototype to avoid an error.
  17230. Use char because int might match the return type of a GCC
  17231. builtin and then its argument prototype would still apply. */
  17232. #ifdef __cplusplus
  17233. extern "C"
  17234. #endif
  17235. char XineramaQueryExtension ();
  17236. int
  17237. main ()
  17238. {
  17239. return XineramaQueryExtension ();
  17240. ;
  17241. return 0;
  17242. }
  17243. _ACEOF
  17244. if ac_fn_c_try_link "$LINENO"; then :
  17245. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17246. else
  17247. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17248. fi
  17249. rm -f core conftest.err conftest.$ac_objext \
  17250. conftest$ac_exeext conftest.$ac_ext
  17251. LIBS=$ac_check_lib_save_LIBS
  17252. fi
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17254. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17255. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17256. have_xinerama_lib=yes
  17257. fi
  17258. if test x$have_xinerama_lib = xyes ; then
  17259. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17260. definitely_enable_video_x11_xinerama=yes
  17261. fi
  17262. fi
  17263. fi
  17264. fi
  17265. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17266. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17267. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17268. fi
  17269. # Check whether --enable-video-x11-xinput was given.
  17270. if test "${enable_video_x11_xinput+set}" = set; then :
  17271. enableval=$enable_video_x11_xinput;
  17272. else
  17273. enable_video_x11_xinput=yes
  17274. fi
  17275. if test x$enable_video_x11_xinput = xyes; then
  17276. definitely_enable_video_x11_xinput=no
  17277. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17278. "
  17279. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17280. have_xinput_h_hdr=yes
  17281. else
  17282. have_xinput_h_hdr=no
  17283. fi
  17284. if test x$have_xinput_h_hdr = xyes; then
  17285. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17286. echo "-- dynamic libXi -> $xinput_lib"
  17287. cat >>confdefs.h <<_ACEOF
  17288. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17289. _ACEOF
  17290. definitely_enable_video_x11_xinput=yes
  17291. else
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17293. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17294. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17295. $as_echo_n "(cached) " >&6
  17296. else
  17297. ac_check_lib_save_LIBS=$LIBS
  17298. LIBS="-lXi $LIBS"
  17299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17300. /* end confdefs.h. */
  17301. /* Override any GCC internal prototype to avoid an error.
  17302. Use char because int might match the return type of a GCC
  17303. builtin and then its argument prototype would still apply. */
  17304. #ifdef __cplusplus
  17305. extern "C"
  17306. #endif
  17307. char XOpenDevice ();
  17308. int
  17309. main ()
  17310. {
  17311. return XOpenDevice ();
  17312. ;
  17313. return 0;
  17314. }
  17315. _ACEOF
  17316. if ac_fn_c_try_link "$LINENO"; then :
  17317. ac_cv_lib_Xi_XOpenDevice=yes
  17318. else
  17319. ac_cv_lib_Xi_XOpenDevice=no
  17320. fi
  17321. rm -f core conftest.err conftest.$ac_objext \
  17322. conftest$ac_exeext conftest.$ac_ext
  17323. LIBS=$ac_check_lib_save_LIBS
  17324. fi
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17326. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17327. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17328. have_xinput_lib=yes
  17329. fi
  17330. if test x$have_xinput_lib = xyes ; then
  17331. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17332. definitely_enable_video_x11_xinput=yes
  17333. fi
  17334. fi
  17335. fi
  17336. fi
  17337. if test x$definitely_enable_video_x11_xinput = xyes; then
  17338. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17339. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17341. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17342. have_xinput2_multitouch=no
  17343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17344. /* end confdefs.h. */
  17345. #include <X11/Xlib.h>
  17346. #include <X11/Xproto.h>
  17347. #include <X11/extensions/XInput2.h>
  17348. int
  17349. main ()
  17350. {
  17351. int event_type = XI_TouchBegin;
  17352. XITouchClassInfo *t;
  17353. ;
  17354. return 0;
  17355. }
  17356. _ACEOF
  17357. if ac_fn_c_try_compile "$LINENO"; then :
  17358. have_xinput2_multitouch=yes
  17359. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17360. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17361. fi
  17362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17364. $as_echo "$have_xinput2_multitouch" >&6; }
  17365. fi
  17366. # Check whether --enable-video-x11-xrandr was given.
  17367. if test "${enable_video_x11_xrandr+set}" = set; then :
  17368. enableval=$enable_video_x11_xrandr;
  17369. else
  17370. enable_video_x11_xrandr=yes
  17371. fi
  17372. if test x$enable_video_x11_xrandr = xyes; then
  17373. definitely_enable_video_x11_xrandr=no
  17374. have_xrandr_h_hdr=no
  17375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17376. /* end confdefs.h. */
  17377. #include <X11/Xlib.h>
  17378. #include <X11/extensions/Xrandr.h>
  17379. int
  17380. main ()
  17381. {
  17382. XRRScreenResources *res = NULL;
  17383. ;
  17384. return 0;
  17385. }
  17386. _ACEOF
  17387. if ac_fn_c_try_compile "$LINENO"; then :
  17388. have_xrandr_h_hdr=yes
  17389. fi
  17390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17391. if test x$have_xrandr_h_hdr = xyes; then
  17392. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17393. echo "-- dynamic libXrandr -> $xrandr_lib"
  17394. cat >>confdefs.h <<_ACEOF
  17395. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17396. _ACEOF
  17397. definitely_enable_video_x11_xrandr=yes
  17398. else
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17400. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17401. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17402. $as_echo_n "(cached) " >&6
  17403. else
  17404. ac_check_lib_save_LIBS=$LIBS
  17405. LIBS="-lXrandr $LIBS"
  17406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17407. /* end confdefs.h. */
  17408. /* Override any GCC internal prototype to avoid an error.
  17409. Use char because int might match the return type of a GCC
  17410. builtin and then its argument prototype would still apply. */
  17411. #ifdef __cplusplus
  17412. extern "C"
  17413. #endif
  17414. char XRRQueryExtension ();
  17415. int
  17416. main ()
  17417. {
  17418. return XRRQueryExtension ();
  17419. ;
  17420. return 0;
  17421. }
  17422. _ACEOF
  17423. if ac_fn_c_try_link "$LINENO"; then :
  17424. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17425. else
  17426. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17427. fi
  17428. rm -f core conftest.err conftest.$ac_objext \
  17429. conftest$ac_exeext conftest.$ac_ext
  17430. LIBS=$ac_check_lib_save_LIBS
  17431. fi
  17432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17433. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17434. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17435. have_xrandr_lib=yes
  17436. fi
  17437. if test x$have_xrandr_lib = xyes ; then
  17438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17439. definitely_enable_video_x11_xrandr=yes
  17440. fi
  17441. fi
  17442. fi
  17443. fi
  17444. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17445. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17446. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17447. fi
  17448. # Check whether --enable-video-x11-scrnsaver was given.
  17449. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17450. enableval=$enable_video_x11_scrnsaver;
  17451. else
  17452. enable_video_x11_scrnsaver=yes
  17453. fi
  17454. if test x$enable_video_x11_scrnsaver = xyes; then
  17455. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17456. "
  17457. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17458. have_scrnsaver_h_hdr=yes
  17459. else
  17460. have_scrnsaver_h_hdr=no
  17461. fi
  17462. if test x$have_scrnsaver_h_hdr = xyes; then
  17463. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17464. echo "-- dynamic libXss -> $xss_lib"
  17465. cat >>confdefs.h <<_ACEOF
  17466. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17467. _ACEOF
  17468. definitely_enable_video_x11_scrnsaver=yes
  17469. else
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17471. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17472. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17473. $as_echo_n "(cached) " >&6
  17474. else
  17475. ac_check_lib_save_LIBS=$LIBS
  17476. LIBS="-lXss $LIBS"
  17477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17478. /* end confdefs.h. */
  17479. /* Override any GCC internal prototype to avoid an error.
  17480. Use char because int might match the return type of a GCC
  17481. builtin and then its argument prototype would still apply. */
  17482. #ifdef __cplusplus
  17483. extern "C"
  17484. #endif
  17485. char XScreenSaverSuspend ();
  17486. int
  17487. main ()
  17488. {
  17489. return XScreenSaverSuspend ();
  17490. ;
  17491. return 0;
  17492. }
  17493. _ACEOF
  17494. if ac_fn_c_try_link "$LINENO"; then :
  17495. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17496. else
  17497. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17498. fi
  17499. rm -f core conftest.err conftest.$ac_objext \
  17500. conftest$ac_exeext conftest.$ac_ext
  17501. LIBS=$ac_check_lib_save_LIBS
  17502. fi
  17503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17504. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17505. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17506. have_xss_lib=yes
  17507. fi
  17508. if test x$have_xss_lib = xyes ; then
  17509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17510. definitely_enable_video_x11_scrnsaver=yes
  17511. fi
  17512. fi
  17513. fi
  17514. fi
  17515. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17516. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17517. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17518. fi
  17519. # Check whether --enable-video-x11-xshape was given.
  17520. if test "${enable_video_x11_xshape+set}" = set; then :
  17521. enableval=$enable_video_x11_xshape;
  17522. else
  17523. enable_video_x11_xshape=yes
  17524. fi
  17525. if test x$enable_video_x11_xshape = xyes; then
  17526. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17527. "
  17528. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17529. have_shape_h_hdr=yes
  17530. else
  17531. have_shape_h_hdr=no
  17532. fi
  17533. if test x$have_shape_h_hdr = xyes; then
  17534. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17535. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17536. fi
  17537. fi
  17538. # Check whether --enable-video-x11-vm was given.
  17539. if test "${enable_video_x11_vm+set}" = set; then :
  17540. enableval=$enable_video_x11_vm;
  17541. else
  17542. enable_video_x11_vm=yes
  17543. fi
  17544. if test x$enable_video_x11_vm = xyes; then
  17545. definitely_enable_video_x11_vm=no
  17546. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17547. "
  17548. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17549. have_vm_h_hdr=yes
  17550. else
  17551. have_vm_h_hdr=no
  17552. fi
  17553. if test x$have_vm_h_hdr = xyes; then
  17554. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17555. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17556. cat >>confdefs.h <<_ACEOF
  17557. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17558. _ACEOF
  17559. definitely_enable_video_x11_vm=yes
  17560. else
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17562. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17563. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17564. $as_echo_n "(cached) " >&6
  17565. else
  17566. ac_check_lib_save_LIBS=$LIBS
  17567. LIBS="-lXxf86vm $LIBS"
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. /* Override any GCC internal prototype to avoid an error.
  17571. Use char because int might match the return type of a GCC
  17572. builtin and then its argument prototype would still apply. */
  17573. #ifdef __cplusplus
  17574. extern "C"
  17575. #endif
  17576. char XF86VidModeQueryVersion ();
  17577. int
  17578. main ()
  17579. {
  17580. return XF86VidModeQueryVersion ();
  17581. ;
  17582. return 0;
  17583. }
  17584. _ACEOF
  17585. if ac_fn_c_try_link "$LINENO"; then :
  17586. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17587. else
  17588. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17589. fi
  17590. rm -f core conftest.err conftest.$ac_objext \
  17591. conftest$ac_exeext conftest.$ac_ext
  17592. LIBS=$ac_check_lib_save_LIBS
  17593. fi
  17594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17595. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17596. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17597. have_vm_lib=yes
  17598. fi
  17599. if test x$have_vm_lib = xyes ; then
  17600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17601. definitely_enable_video_x11_vm=yes
  17602. fi
  17603. fi
  17604. fi
  17605. fi
  17606. if test x$definitely_enable_video_x11_vm = xyes; then
  17607. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17608. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17609. fi
  17610. fi
  17611. fi
  17612. }
  17613. CheckHaikuVideo()
  17614. {
  17615. if test x$enable_video = xyes; then
  17616. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17617. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17618. have_video=yes
  17619. SUMMARY_video="${SUMMARY_video} haiku"
  17620. fi
  17621. }
  17622. CheckCOCOA()
  17623. {
  17624. # Check whether --enable-video-cocoa was given.
  17625. if test "${enable_video_cocoa+set}" = set; then :
  17626. enableval=$enable_video_cocoa;
  17627. else
  17628. enable_video_cocoa=yes
  17629. fi
  17630. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17631. save_CFLAGS="$CFLAGS"
  17632. CFLAGS="$CFLAGS -x objective-c"
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17634. $as_echo_n "checking for Cocoa framework... " >&6; }
  17635. have_cocoa=no
  17636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17637. /* end confdefs.h. */
  17638. #import <Cocoa/Cocoa.h>
  17639. int
  17640. main ()
  17641. {
  17642. ;
  17643. return 0;
  17644. }
  17645. _ACEOF
  17646. if ac_fn_c_try_compile "$LINENO"; then :
  17647. have_cocoa=yes
  17648. fi
  17649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17651. $as_echo "$have_cocoa" >&6; }
  17652. CFLAGS="$save_CFLAGS"
  17653. if test x$have_cocoa = xyes; then
  17654. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17655. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17656. SUMMARY_video="${SUMMARY_video} cocoa"
  17657. have_video=yes
  17658. fi
  17659. fi
  17660. }
  17661. CheckDirectFB()
  17662. {
  17663. # Check whether --enable-video-directfb was given.
  17664. if test "${enable_video_directfb+set}" = set; then :
  17665. enableval=$enable_video_directfb;
  17666. else
  17667. enable_video_directfb=no
  17668. fi
  17669. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17670. video_directfb=no
  17671. DIRECTFB_REQUIRED_VERSION=1.0.0
  17672. for ac_prog in directfb-config
  17673. do
  17674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17675. set dummy $ac_prog; ac_word=$2
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17677. $as_echo_n "checking for $ac_word... " >&6; }
  17678. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17679. $as_echo_n "(cached) " >&6
  17680. else
  17681. case $DIRECTFBCONFIG in
  17682. [\\/]* | ?:[\\/]*)
  17683. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17684. ;;
  17685. *)
  17686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17687. as_dummy="$prefix/bin:$PATH"
  17688. for as_dir in $as_dummy
  17689. do
  17690. IFS=$as_save_IFS
  17691. test -z "$as_dir" && as_dir=.
  17692. for ac_exec_ext in '' $ac_executable_extensions; do
  17693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17694. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17696. break 2
  17697. fi
  17698. done
  17699. done
  17700. IFS=$as_save_IFS
  17701. ;;
  17702. esac
  17703. fi
  17704. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17705. if test -n "$DIRECTFBCONFIG"; then
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17707. $as_echo "$DIRECTFBCONFIG" >&6; }
  17708. else
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17710. $as_echo "no" >&6; }
  17711. fi
  17712. test -n "$DIRECTFBCONFIG" && break
  17713. done
  17714. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17715. if test x$DIRECTFBCONFIG = xno; then
  17716. # Extract the first word of "pkg-config", so it can be a program name with args.
  17717. set dummy pkg-config; ac_word=$2
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17719. $as_echo_n "checking for $ac_word... " >&6; }
  17720. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17721. $as_echo_n "(cached) " >&6
  17722. else
  17723. case $PKG_CONFIG in
  17724. [\\/]* | ?:[\\/]*)
  17725. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17726. ;;
  17727. *)
  17728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17729. for as_dir in $PATH
  17730. do
  17731. IFS=$as_save_IFS
  17732. test -z "$as_dir" && as_dir=.
  17733. for ac_exec_ext in '' $ac_executable_extensions; do
  17734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17735. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17737. break 2
  17738. fi
  17739. done
  17740. done
  17741. IFS=$as_save_IFS
  17742. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17743. ;;
  17744. esac
  17745. fi
  17746. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17747. if test -n "$PKG_CONFIG"; then
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17749. $as_echo "$PKG_CONFIG" >&6; }
  17750. else
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17752. $as_echo "no" >&6; }
  17753. fi
  17754. if test x$PKG_CONFIG != xno; then
  17755. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17756. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17757. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17758. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17759. video_directfb=yes
  17760. fi
  17761. fi
  17762. else
  17763. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17764. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17765. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17766. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17767. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17768. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17769. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17770. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17771. video_directfb=yes
  17772. fi
  17773. fi
  17774. if test x$video_directfb = xyes; then
  17775. # SuSE 11.1 installs directfb-config without directfb-devel
  17776. save_CPPFLAGS="$CPPFLAGS"
  17777. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17778. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17779. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17780. have_directfb_hdr=yes
  17781. else
  17782. have_directfb_hdr=no
  17783. fi
  17784. CPPFLAGS="$save_CPPFLAGS"
  17785. video_directfb=$have_directfb_hdr
  17786. fi
  17787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17788. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17790. $as_echo "$video_directfb" >&6; }
  17791. if test x$video_directfb = xyes; then
  17792. # Check whether --enable-directfb-shared was given.
  17793. if test "${enable_directfb_shared+set}" = set; then :
  17794. enableval=$enable_directfb_shared;
  17795. else
  17796. enable_directfb_shared=yes
  17797. fi
  17798. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17799. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17800. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17801. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17803. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17804. directfb_shared=no
  17805. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17806. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17808. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17809. if test x$have_loadso != xyes && \
  17810. test x$enable_directfb_shared = xyes; then
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17812. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17813. fi
  17814. if test x$have_loadso = xyes && \
  17815. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17816. directfb_shared=yes
  17817. echo "-- $directfb_lib_spec -> $directfb_lib"
  17818. cat >>confdefs.h <<_ACEOF
  17819. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17820. _ACEOF
  17821. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17822. else
  17823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17824. SUMMARY_video="${SUMMARY_video} directfb"
  17825. fi
  17826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17827. $as_echo "$directfb_shared" >&6; }
  17828. have_video=yes
  17829. fi
  17830. fi
  17831. }
  17832. CheckFusionSound()
  17833. {
  17834. # Check whether --enable-fusionsound was given.
  17835. if test "${enable_fusionsound+set}" = set; then :
  17836. enableval=$enable_fusionsound;
  17837. else
  17838. enable_fusionsound=no
  17839. fi
  17840. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17841. fusionsound=no
  17842. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17843. # Extract the first word of "pkg-config", so it can be a program name with args.
  17844. set dummy pkg-config; ac_word=$2
  17845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17846. $as_echo_n "checking for $ac_word... " >&6; }
  17847. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17848. $as_echo_n "(cached) " >&6
  17849. else
  17850. case $PKG_CONFIG in
  17851. [\\/]* | ?:[\\/]*)
  17852. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17853. ;;
  17854. *)
  17855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17856. for as_dir in $PATH
  17857. do
  17858. IFS=$as_save_IFS
  17859. test -z "$as_dir" && as_dir=.
  17860. for ac_exec_ext in '' $ac_executable_extensions; do
  17861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17862. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17864. break 2
  17865. fi
  17866. done
  17867. done
  17868. IFS=$as_save_IFS
  17869. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17870. ;;
  17871. esac
  17872. fi
  17873. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17874. if test -n "$PKG_CONFIG"; then
  17875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17876. $as_echo "$PKG_CONFIG" >&6; }
  17877. else
  17878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17879. $as_echo "no" >&6; }
  17880. fi
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17882. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17883. if test x$PKG_CONFIG != xno; then
  17884. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17885. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17886. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17887. fusionsound=yes
  17888. fi
  17889. fi
  17890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17891. $as_echo "$fusionsound" >&6; }
  17892. if test x$fusionsound = xyes; then
  17893. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17894. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17895. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17896. # Check whether --enable-fusionsound-shared was given.
  17897. if test "${enable_fusionsound_shared+set}" = set; then :
  17898. enableval=$enable_fusionsound_shared;
  17899. else
  17900. enable_fusionsound_shared=yes
  17901. fi
  17902. fusionsound_shared=no
  17903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17904. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17905. if test x$have_loadso != xyes && \
  17906. test x$enable_fusionsound_shared = xyes; then
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17908. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17909. fi
  17910. if test x$have_loadso = xyes && \
  17911. test x$enable_fusionsound_shared = xyes; then
  17912. cat >>confdefs.h <<_ACEOF
  17913. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17914. _ACEOF
  17915. fusionsound_shared=yes
  17916. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17917. else
  17918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17919. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17920. fi
  17921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17922. $as_echo "$fusionsound_shared" >&6; }
  17923. have_audio=yes
  17924. fi
  17925. fi
  17926. }
  17927. CheckDummyVideo()
  17928. {
  17929. # Check whether --enable-video-dummy was given.
  17930. if test "${enable_video_dummy+set}" = set; then :
  17931. enableval=$enable_video_dummy;
  17932. else
  17933. enable_video_dummy=yes
  17934. fi
  17935. if test x$enable_video_dummy = xyes; then
  17936. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17937. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17938. have_video=yes
  17939. SUMMARY_video="${SUMMARY_video} dummy"
  17940. fi
  17941. }
  17942. # Check whether --enable-video-opengl was given.
  17943. if test "${enable_video_opengl+set}" = set; then :
  17944. enableval=$enable_video_opengl;
  17945. else
  17946. enable_video_opengl=yes
  17947. fi
  17948. CheckOpenGLX11()
  17949. {
  17950. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17952. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17953. video_opengl=no
  17954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17955. /* end confdefs.h. */
  17956. #include <GL/gl.h>
  17957. #include <GL/glx.h>
  17958. int
  17959. main ()
  17960. {
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_compile "$LINENO"; then :
  17966. video_opengl=yes
  17967. fi
  17968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17970. $as_echo "$video_opengl" >&6; }
  17971. if test x$video_opengl = xyes; then
  17972. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17973. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17974. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17975. SUMMARY_video="${SUMMARY_video} opengl"
  17976. fi
  17977. fi
  17978. }
  17979. # Check whether --enable-video-opengles was given.
  17980. if test "${enable_video_opengles+set}" = set; then :
  17981. enableval=$enable_video_opengles;
  17982. else
  17983. enable_video_opengles=yes
  17984. fi
  17985. CheckOpenGLESX11()
  17986. {
  17987. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17989. $as_echo_n "checking for EGL support... " >&6; }
  17990. video_opengl_egl=no
  17991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17992. /* end confdefs.h. */
  17993. #include <EGL/egl.h>
  17994. int
  17995. main ()
  17996. {
  17997. ;
  17998. return 0;
  17999. }
  18000. _ACEOF
  18001. if ac_fn_c_try_compile "$LINENO"; then :
  18002. video_opengl_egl=yes
  18003. fi
  18004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18006. $as_echo "$video_opengl_egl" >&6; }
  18007. if test x$video_opengl_egl = xyes; then
  18008. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18011. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18012. video_opengles_v1=no
  18013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18014. /* end confdefs.h. */
  18015. #include <GLES/gl.h>
  18016. #include <GLES/glext.h>
  18017. int
  18018. main ()
  18019. {
  18020. ;
  18021. return 0;
  18022. }
  18023. _ACEOF
  18024. if ac_fn_c_try_compile "$LINENO"; then :
  18025. video_opengles_v1=yes
  18026. fi
  18027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18029. $as_echo "$video_opengles_v1" >&6; }
  18030. if test x$video_opengles_v1 = xyes; then
  18031. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18032. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18033. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18034. fi
  18035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18036. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18037. video_opengles_v2=no
  18038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18039. /* end confdefs.h. */
  18040. #include <GLES2/gl2.h>
  18041. #include <GLES2/gl2ext.h>
  18042. int
  18043. main ()
  18044. {
  18045. ;
  18046. return 0;
  18047. }
  18048. _ACEOF
  18049. if ac_fn_c_try_compile "$LINENO"; then :
  18050. video_opengles_v2=yes
  18051. fi
  18052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18054. $as_echo "$video_opengles_v2" >&6; }
  18055. if test x$video_opengles_v2 = xyes; then
  18056. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18057. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18058. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18059. fi
  18060. fi
  18061. }
  18062. CheckWINDOWSGL()
  18063. {
  18064. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18065. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18066. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18067. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18068. SUMMARY_video="${SUMMARY_video} opengl"
  18069. fi
  18070. }
  18071. CheckWINDOWSGLES()
  18072. {
  18073. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18075. $as_echo_n "checking for EGL support... " >&6; }
  18076. video_opengl_egl=no
  18077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18078. /* end confdefs.h. */
  18079. #include <EGL/egl.h>
  18080. int
  18081. main ()
  18082. {
  18083. ;
  18084. return 0;
  18085. }
  18086. _ACEOF
  18087. if ac_fn_c_try_compile "$LINENO"; then :
  18088. video_opengl_egl=yes
  18089. fi
  18090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18092. $as_echo "$video_opengl_egl" >&6; }
  18093. if test x$video_opengl_egl = xyes; then
  18094. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18095. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18096. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18097. fi
  18098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18099. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18100. video_opengles_v2=no
  18101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18102. /* end confdefs.h. */
  18103. #include <GLES2/gl2.h>
  18104. #include <GLES2/gl2ext.h>
  18105. int
  18106. main ()
  18107. {
  18108. ;
  18109. return 0;
  18110. }
  18111. _ACEOF
  18112. if ac_fn_c_try_compile "$LINENO"; then :
  18113. video_opengles_v2=yes
  18114. fi
  18115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18117. $as_echo "$video_opengles_v2" >&6; }
  18118. if test x$video_opengles_v2 = xyes; then
  18119. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18120. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18121. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18122. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18123. fi
  18124. fi
  18125. }
  18126. CheckHaikuGL()
  18127. {
  18128. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18129. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18130. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18131. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18132. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18133. SUMMARY_video="${SUMMARY_video} opengl"
  18134. fi
  18135. }
  18136. CheckMacGL()
  18137. {
  18138. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18139. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18140. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18141. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18142. SUMMARY_video="${SUMMARY_video} opengl"
  18143. case "$host" in
  18144. *-*-darwin*)
  18145. if test x$enable_video_cocoa = xyes; then
  18146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  18147. fi
  18148. esac
  18149. fi
  18150. }
  18151. CheckInputEvents()
  18152. {
  18153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18154. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18155. use_input_events=no
  18156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18157. /* end confdefs.h. */
  18158. #include <linux/input.h>
  18159. int
  18160. main ()
  18161. {
  18162. #ifndef EVIOCGNAME
  18163. #error EVIOCGNAME() ioctl not available
  18164. #endif
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. if ac_fn_c_try_compile "$LINENO"; then :
  18170. use_input_events=yes
  18171. fi
  18172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18174. $as_echo "$use_input_events" >&6; }
  18175. if test x$use_input_events = xyes; then
  18176. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18177. SUMMARY_input="${SUMMARY_input} linuxev"
  18178. fi
  18179. }
  18180. CheckInputKD()
  18181. {
  18182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18183. $as_echo_n "checking for Linux kd.h... " >&6; }
  18184. use_input_kd=no
  18185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18186. /* end confdefs.h. */
  18187. #include <linux/kd.h>
  18188. #include <linux/keyboard.h>
  18189. int
  18190. main ()
  18191. {
  18192. struct kbentry kbe;
  18193. kbe.kb_table = KG_CTRL;
  18194. ioctl(0, KDGKBENT, &kbe);
  18195. ;
  18196. return 0;
  18197. }
  18198. _ACEOF
  18199. if ac_fn_c_try_compile "$LINENO"; then :
  18200. use_input_kd=yes
  18201. fi
  18202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18204. $as_echo "$use_input_kd" >&6; }
  18205. if test x$use_input_kd = xyes; then
  18206. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18207. SUMMARY_input="${SUMMARY_input} linuxkd"
  18208. fi
  18209. }
  18210. CheckLibUDev()
  18211. {
  18212. # Check whether --enable-libudev was given.
  18213. if test "${enable_libudev+set}" = set; then :
  18214. enableval=$enable_libudev;
  18215. else
  18216. enable_libudev=yes
  18217. fi
  18218. if test x$enable_libudev = xyes; then
  18219. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18220. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18221. have_libudev_h_hdr=yes
  18222. else
  18223. have_libudev_h_hdr=no
  18224. fi
  18225. if test x$have_libudev_h_hdr = xyes; then
  18226. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18227. fi
  18228. fi
  18229. }
  18230. CheckDBus()
  18231. {
  18232. # Check whether --enable-dbus was given.
  18233. if test "${enable_dbus+set}" = set; then :
  18234. enableval=$enable_dbus;
  18235. else
  18236. enable_dbus=yes
  18237. fi
  18238. if test x$enable_dbus = xyes; then
  18239. # Extract the first word of "pkg-config", so it can be a program name with args.
  18240. set dummy pkg-config; ac_word=$2
  18241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18242. $as_echo_n "checking for $ac_word... " >&6; }
  18243. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18244. $as_echo_n "(cached) " >&6
  18245. else
  18246. case $PKG_CONFIG in
  18247. [\\/]* | ?:[\\/]*)
  18248. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18249. ;;
  18250. *)
  18251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18252. for as_dir in $PATH
  18253. do
  18254. IFS=$as_save_IFS
  18255. test -z "$as_dir" && as_dir=.
  18256. for ac_exec_ext in '' $ac_executable_extensions; do
  18257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18258. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18260. break 2
  18261. fi
  18262. done
  18263. done
  18264. IFS=$as_save_IFS
  18265. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18266. ;;
  18267. esac
  18268. fi
  18269. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18270. if test -n "$PKG_CONFIG"; then
  18271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18272. $as_echo "$PKG_CONFIG" >&6; }
  18273. else
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18275. $as_echo "no" >&6; }
  18276. fi
  18277. if test x$PKG_CONFIG != xno; then
  18278. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18279. save_CFLAGS="$CFLAGS"
  18280. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18281. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18282. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18283. have_dbus_dbus_h_hdr=yes
  18284. else
  18285. have_dbus_dbus_h_hdr=no
  18286. fi
  18287. CFLAGS="$save_CFLAGS"
  18288. if test x$have_dbus_dbus_h_hdr = xyes; then
  18289. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18290. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18291. fi
  18292. fi
  18293. fi
  18294. }
  18295. CheckTslib()
  18296. {
  18297. # Check whether --enable-input-tslib was given.
  18298. if test "${enable_input_tslib+set}" = set; then :
  18299. enableval=$enable_input_tslib;
  18300. else
  18301. enable_input_tslib=yes
  18302. fi
  18303. if test x$enable_input_tslib = xyes; then
  18304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18305. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18306. enable_input_tslib=no
  18307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18308. /* end confdefs.h. */
  18309. #include "tslib.h"
  18310. int
  18311. main ()
  18312. {
  18313. ;
  18314. return 0;
  18315. }
  18316. _ACEOF
  18317. if ac_fn_c_try_compile "$LINENO"; then :
  18318. enable_input_tslib=yes
  18319. fi
  18320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18322. $as_echo "$enable_input_tslib" >&6; }
  18323. if test x$enable_input_tslib = xyes; then
  18324. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18325. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18326. SUMMARY_input="${SUMMARY_input} ts"
  18327. fi
  18328. fi
  18329. }
  18330. CheckPTHREAD()
  18331. {
  18332. # Check whether --enable-pthreads was given.
  18333. if test "${enable_pthreads+set}" = set; then :
  18334. enableval=$enable_pthreads;
  18335. else
  18336. enable_pthreads=yes
  18337. fi
  18338. # Check whether --enable-pthread-sem was given.
  18339. if test "${enable_pthread_sem+set}" = set; then :
  18340. enableval=$enable_pthread_sem;
  18341. else
  18342. enable_pthread_sem=yes
  18343. fi
  18344. case "$host" in
  18345. *-*-linux*|*-*-uclinux*)
  18346. pthread_cflags="-D_REENTRANT"
  18347. pthread_lib="-lpthread"
  18348. ;;
  18349. *-*-bsdi*)
  18350. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18351. pthread_lib=""
  18352. ;;
  18353. *-*-darwin*)
  18354. pthread_cflags="-D_THREAD_SAFE"
  18355. # causes Carbon.p complaints?
  18356. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18357. ;;
  18358. *-*-freebsd*|*-*-dragonfly*)
  18359. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18360. pthread_lib="-pthread"
  18361. ;;
  18362. *-*-netbsd*)
  18363. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18364. pthread_lib="-lpthread"
  18365. ;;
  18366. *-*-openbsd*)
  18367. pthread_cflags="-D_REENTRANT"
  18368. pthread_lib="-pthread"
  18369. ;;
  18370. *-*-solaris2.9)
  18371. # From Solaris 9+, posix4's preferred name is rt.
  18372. pthread_cflags="-D_REENTRANT"
  18373. pthread_lib="-lpthread -lrt"
  18374. ;;
  18375. *-*-solaris2.10)
  18376. # Solaris 10+ merged pthread into libc.
  18377. pthread_cflags="-D_REENTRANT"
  18378. pthread_lib="-lrt"
  18379. ;;
  18380. *-*-solaris*)
  18381. # Solaris 11+ merged rt into libc.
  18382. pthread_cflags="-D_REENTRANT"
  18383. pthread_lib=""
  18384. ;;
  18385. *-*-sysv5*)
  18386. pthread_cflags="-D_REENTRANT -Kthread"
  18387. pthread_lib=""
  18388. ;;
  18389. *-*-aix*)
  18390. pthread_cflags="-D_REENTRANT -mthreads"
  18391. pthread_lib="-lpthread"
  18392. ;;
  18393. *-*-hpux11*)
  18394. pthread_cflags="-D_REENTRANT"
  18395. pthread_lib="-L/usr/lib -lpthread"
  18396. ;;
  18397. *-*-haiku*)
  18398. pthread_cflags="-D_REENTRANT"
  18399. pthread_lib=""
  18400. ;;
  18401. *)
  18402. pthread_cflags="-D_REENTRANT"
  18403. pthread_lib="-lpthread"
  18404. ;;
  18405. esac
  18406. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18407. # Save the original compiler flags and libraries
  18408. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18409. # Add the pthread compiler flags and libraries
  18410. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18411. # Check to see if we have pthread support on this system
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18413. $as_echo_n "checking for pthreads... " >&6; }
  18414. use_pthreads=no
  18415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18416. /* end confdefs.h. */
  18417. #include <pthread.h>
  18418. int
  18419. main ()
  18420. {
  18421. pthread_attr_t type;
  18422. pthread_attr_init(&type);
  18423. ;
  18424. return 0;
  18425. }
  18426. _ACEOF
  18427. if ac_fn_c_try_link "$LINENO"; then :
  18428. use_pthreads=yes
  18429. fi
  18430. rm -f core conftest.err conftest.$ac_objext \
  18431. conftest$ac_exeext conftest.$ac_ext
  18432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18433. $as_echo "$use_pthreads" >&6; }
  18434. # Restore the compiler flags and libraries
  18435. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18436. # Do futher testing if we have pthread support...
  18437. if test x$use_pthreads = xyes; then
  18438. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18439. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18440. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18441. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18442. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18443. # Save the original compiler flags and libraries
  18444. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18445. # Add the pthread compiler flags and libraries
  18446. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18447. # Check to see if recursive mutexes are available
  18448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18449. $as_echo_n "checking for recursive mutexes... " >&6; }
  18450. has_recursive_mutexes=no
  18451. if test x$has_recursive_mutexes = xno; then
  18452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18453. /* end confdefs.h. */
  18454. #include <pthread.h>
  18455. int
  18456. main ()
  18457. {
  18458. pthread_mutexattr_t attr;
  18459. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18460. ;
  18461. return 0;
  18462. }
  18463. _ACEOF
  18464. if ac_fn_c_try_compile "$LINENO"; then :
  18465. has_recursive_mutexes=yes
  18466. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18467. fi
  18468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18469. fi
  18470. if test x$has_recursive_mutexes = xno; then
  18471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18472. /* end confdefs.h. */
  18473. #include <pthread.h>
  18474. int
  18475. main ()
  18476. {
  18477. pthread_mutexattr_t attr;
  18478. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18479. ;
  18480. return 0;
  18481. }
  18482. _ACEOF
  18483. if ac_fn_c_try_compile "$LINENO"; then :
  18484. has_recursive_mutexes=yes
  18485. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18486. fi
  18487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18488. fi
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18490. $as_echo "$has_recursive_mutexes" >&6; }
  18491. # Check to see if pthread semaphore support is missing
  18492. if test x$enable_pthread_sem = xyes; then
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18494. $as_echo_n "checking for pthread semaphores... " >&6; }
  18495. have_pthread_sem=no
  18496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18497. /* end confdefs.h. */
  18498. #include <pthread.h>
  18499. #include <semaphore.h>
  18500. int
  18501. main ()
  18502. {
  18503. ;
  18504. return 0;
  18505. }
  18506. _ACEOF
  18507. if ac_fn_c_try_compile "$LINENO"; then :
  18508. have_pthread_sem=yes
  18509. fi
  18510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18512. $as_echo "$have_pthread_sem" >&6; }
  18513. fi
  18514. if test x$have_pthread_sem = xyes; then
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18516. $as_echo_n "checking for sem_timedwait... " >&6; }
  18517. have_sem_timedwait=no
  18518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18519. /* end confdefs.h. */
  18520. #include <pthread.h>
  18521. #include <semaphore.h>
  18522. int
  18523. main ()
  18524. {
  18525. sem_timedwait(NULL, NULL);
  18526. ;
  18527. return 0;
  18528. }
  18529. _ACEOF
  18530. if ac_fn_c_try_link "$LINENO"; then :
  18531. have_sem_timedwait=yes
  18532. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18533. fi
  18534. rm -f core conftest.err conftest.$ac_objext \
  18535. conftest$ac_exeext conftest.$ac_ext
  18536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18537. $as_echo "$have_sem_timedwait" >&6; }
  18538. fi
  18539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18540. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18542. /* end confdefs.h. */
  18543. /* Override any GCC internal prototype to avoid an error.
  18544. Use char because int might match the return type of a GCC
  18545. builtin and then its argument prototype would still apply. */
  18546. #ifdef __cplusplus
  18547. extern "C"
  18548. #endif
  18549. char pthread_spin_trylock ();
  18550. int
  18551. main ()
  18552. {
  18553. return pthread_spin_trylock ();
  18554. ;
  18555. return 0;
  18556. }
  18557. _ACEOF
  18558. if ac_fn_c_try_link "$LINENO"; then :
  18559. has_pthread_spin_trylock=yes
  18560. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18561. else
  18562. has_pthread_spin_trylock=no
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext \
  18565. conftest$ac_exeext conftest.$ac_ext
  18566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18567. $as_echo "$has_pthread_spin_trylock" >&6; }
  18568. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18569. "
  18570. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18571. have_pthread_np_h=yes
  18572. else
  18573. have_pthread_np_h=no
  18574. fi
  18575. if test x$have_pthread_np_h = xyes; then
  18576. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18577. fi
  18578. # Check to see if pthread naming is available
  18579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18580. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18582. /* end confdefs.h. */
  18583. /* Override any GCC internal prototype to avoid an error.
  18584. Use char because int might match the return type of a GCC
  18585. builtin and then its argument prototype would still apply. */
  18586. #ifdef __cplusplus
  18587. extern "C"
  18588. #endif
  18589. char pthread_setname_np ();
  18590. int
  18591. main ()
  18592. {
  18593. return pthread_setname_np ();
  18594. ;
  18595. return 0;
  18596. }
  18597. _ACEOF
  18598. if ac_fn_c_try_link "$LINENO"; then :
  18599. has_pthread_setname_np=yes
  18600. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18601. else
  18602. has_pthread_setname_np=no
  18603. fi
  18604. rm -f core conftest.err conftest.$ac_objext \
  18605. conftest$ac_exeext conftest.$ac_ext
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18607. $as_echo "$has_pthread_setname_np" >&6; }
  18608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18609. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18611. /* end confdefs.h. */
  18612. /* Override any GCC internal prototype to avoid an error.
  18613. Use char because int might match the return type of a GCC
  18614. builtin and then its argument prototype would still apply. */
  18615. #ifdef __cplusplus
  18616. extern "C"
  18617. #endif
  18618. char pthread_set_name_np ();
  18619. int
  18620. main ()
  18621. {
  18622. return pthread_set_name_np ();
  18623. ;
  18624. return 0;
  18625. }
  18626. _ACEOF
  18627. if ac_fn_c_try_link "$LINENO"; then :
  18628. has_pthread_set_name_np=yes
  18629. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18630. else
  18631. has_pthread_set_name_np=no
  18632. fi
  18633. rm -f core conftest.err conftest.$ac_objext \
  18634. conftest$ac_exeext conftest.$ac_ext
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18636. $as_echo "$has_pthread_set_name_np" >&6; }
  18637. # Restore the compiler flags and libraries
  18638. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18639. # Basic thread creation functions
  18640. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18641. # Semaphores
  18642. # We can fake these with mutexes and condition variables if necessary
  18643. if test x$have_pthread_sem = xyes; then
  18644. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18645. else
  18646. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18647. fi
  18648. # Mutexes
  18649. # We can fake these with semaphores if necessary
  18650. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18651. # Condition variables
  18652. # We can fake these with semaphores and mutexes if necessary
  18653. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18654. # Thread local storage
  18655. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18656. have_threads=yes
  18657. fi
  18658. fi
  18659. }
  18660. CheckWINDOWS()
  18661. {
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18663. $as_echo_n "checking Windows compiler... " >&6; }
  18664. have_win32_gcc=no
  18665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18666. /* end confdefs.h. */
  18667. #include <windows.h>
  18668. int
  18669. main ()
  18670. {
  18671. ;
  18672. return 0;
  18673. }
  18674. _ACEOF
  18675. if ac_fn_c_try_compile "$LINENO"; then :
  18676. have_win32_gcc=yes
  18677. fi
  18678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18680. $as_echo "$have_win32_gcc" >&6; }
  18681. if test x$have_win32_gcc != xyes; then
  18682. as_fn_error $? "
  18683. *** Your compiler ($CC) does not produce Windows executables!
  18684. " "$LINENO" 5
  18685. fi
  18686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18687. $as_echo_n "checking Windows CE... " >&6; }
  18688. have_wince=no
  18689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18690. /* end confdefs.h. */
  18691. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18692. #error This is not Windows CE
  18693. #endif
  18694. int
  18695. main ()
  18696. {
  18697. ;
  18698. return 0;
  18699. }
  18700. _ACEOF
  18701. if ac_fn_c_try_compile "$LINENO"; then :
  18702. have_wince=yes
  18703. as_fn_error $? "
  18704. *** Sorry, Windows CE is no longer supported.
  18705. " "$LINENO" 5
  18706. fi
  18707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18709. $as_echo "$have_wince" >&6; }
  18710. # This fixes Windows stack alignment with newer GCC
  18711. CheckStackBoundary
  18712. }
  18713. CheckDIRECTX()
  18714. {
  18715. # Check whether --enable-directx was given.
  18716. if test "${enable_directx+set}" = set; then :
  18717. enableval=$enable_directx;
  18718. else
  18719. enable_directx=yes
  18720. fi
  18721. if test x$enable_directx = xyes; then
  18722. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18723. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18724. have_d3d=yes
  18725. fi
  18726. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  18727. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  18728. have_d3d11=yes
  18729. fi
  18730. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18731. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18732. have_ddraw=yes
  18733. fi
  18734. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18735. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18736. have_dsound=yes
  18737. fi
  18738. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18739. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18740. have_dinput=yes
  18741. fi
  18742. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18743. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18744. have_xaudio2=yes
  18745. fi
  18746. SUMMARY_video="${SUMMARY_video} directx"
  18747. SUMMARY_audio="${SUMMARY_audio} directx"
  18748. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18749. # FIXME: ...so force it off for now.
  18750. case "$host" in
  18751. *-*-cygwin*)
  18752. have_dinput=false
  18753. ;;
  18754. esac
  18755. fi
  18756. }
  18757. CheckDLOPEN()
  18758. {
  18759. # Check whether --enable-sdl-dlopen was given.
  18760. if test "${enable_sdl_dlopen+set}" = set; then :
  18761. enableval=$enable_sdl_dlopen;
  18762. else
  18763. enable_sdl_dlopen=yes
  18764. fi
  18765. if test x$enable_sdl_dlopen = xyes; then
  18766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18767. $as_echo_n "checking for dlopen... " >&6; }
  18768. have_dlopen=no
  18769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18770. /* end confdefs.h. */
  18771. #include <dlfcn.h>
  18772. int
  18773. main ()
  18774. {
  18775. void *handle = dlopen("", RTLD_NOW);
  18776. const char *loaderror = (char *) dlerror();
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. if ac_fn_c_try_compile "$LINENO"; then :
  18782. have_dlopen=yes
  18783. fi
  18784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18786. $as_echo "$have_dlopen" >&6; }
  18787. if test x$have_dlopen = xyes; then
  18788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18789. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18790. if ${ac_cv_lib_c_dlopen+:} false; then :
  18791. $as_echo_n "(cached) " >&6
  18792. else
  18793. ac_check_lib_save_LIBS=$LIBS
  18794. LIBS="-lc $LIBS"
  18795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18796. /* end confdefs.h. */
  18797. /* Override any GCC internal prototype to avoid an error.
  18798. Use char because int might match the return type of a GCC
  18799. builtin and then its argument prototype would still apply. */
  18800. #ifdef __cplusplus
  18801. extern "C"
  18802. #endif
  18803. char dlopen ();
  18804. int
  18805. main ()
  18806. {
  18807. return dlopen ();
  18808. ;
  18809. return 0;
  18810. }
  18811. _ACEOF
  18812. if ac_fn_c_try_link "$LINENO"; then :
  18813. ac_cv_lib_c_dlopen=yes
  18814. else
  18815. ac_cv_lib_c_dlopen=no
  18816. fi
  18817. rm -f core conftest.err conftest.$ac_objext \
  18818. conftest$ac_exeext conftest.$ac_ext
  18819. LIBS=$ac_check_lib_save_LIBS
  18820. fi
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18822. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18823. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18824. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18825. else
  18826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18827. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18828. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18829. $as_echo_n "(cached) " >&6
  18830. else
  18831. ac_check_lib_save_LIBS=$LIBS
  18832. LIBS="-ldl $LIBS"
  18833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18834. /* end confdefs.h. */
  18835. /* Override any GCC internal prototype to avoid an error.
  18836. Use char because int might match the return type of a GCC
  18837. builtin and then its argument prototype would still apply. */
  18838. #ifdef __cplusplus
  18839. extern "C"
  18840. #endif
  18841. char dlopen ();
  18842. int
  18843. main ()
  18844. {
  18845. return dlopen ();
  18846. ;
  18847. return 0;
  18848. }
  18849. _ACEOF
  18850. if ac_fn_c_try_link "$LINENO"; then :
  18851. ac_cv_lib_dl_dlopen=yes
  18852. else
  18853. ac_cv_lib_dl_dlopen=no
  18854. fi
  18855. rm -f core conftest.err conftest.$ac_objext \
  18856. conftest$ac_exeext conftest.$ac_ext
  18857. LIBS=$ac_check_lib_save_LIBS
  18858. fi
  18859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18860. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18861. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18863. else
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18865. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18866. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18867. $as_echo_n "(cached) " >&6
  18868. else
  18869. ac_check_lib_save_LIBS=$LIBS
  18870. LIBS="-lltdl $LIBS"
  18871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18872. /* end confdefs.h. */
  18873. /* Override any GCC internal prototype to avoid an error.
  18874. Use char because int might match the return type of a GCC
  18875. builtin and then its argument prototype would still apply. */
  18876. #ifdef __cplusplus
  18877. extern "C"
  18878. #endif
  18879. char dlopen ();
  18880. int
  18881. main ()
  18882. {
  18883. return dlopen ();
  18884. ;
  18885. return 0;
  18886. }
  18887. _ACEOF
  18888. if ac_fn_c_try_link "$LINENO"; then :
  18889. ac_cv_lib_ltdl_dlopen=yes
  18890. else
  18891. ac_cv_lib_ltdl_dlopen=no
  18892. fi
  18893. rm -f core conftest.err conftest.$ac_objext \
  18894. conftest$ac_exeext conftest.$ac_ext
  18895. LIBS=$ac_check_lib_save_LIBS
  18896. fi
  18897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18898. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18899. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18901. fi
  18902. fi
  18903. fi
  18904. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18905. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18906. have_loadso=yes
  18907. fi
  18908. fi
  18909. }
  18910. CheckUSBHID()
  18911. {
  18912. case "$host" in
  18913. *-*-*bsd*)
  18914. if test x$enable_joystick = xyes; then
  18915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18916. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18917. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18918. $as_echo_n "(cached) " >&6
  18919. else
  18920. ac_check_lib_save_LIBS=$LIBS
  18921. LIBS="-lusbhid $LIBS"
  18922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18923. /* end confdefs.h. */
  18924. /* Override any GCC internal prototype to avoid an error.
  18925. Use char because int might match the return type of a GCC
  18926. builtin and then its argument prototype would still apply. */
  18927. #ifdef __cplusplus
  18928. extern "C"
  18929. #endif
  18930. char hid_init ();
  18931. int
  18932. main ()
  18933. {
  18934. return hid_init ();
  18935. ;
  18936. return 0;
  18937. }
  18938. _ACEOF
  18939. if ac_fn_c_try_link "$LINENO"; then :
  18940. ac_cv_lib_usbhid_hid_init=yes
  18941. else
  18942. ac_cv_lib_usbhid_hid_init=no
  18943. fi
  18944. rm -f core conftest.err conftest.$ac_objext \
  18945. conftest$ac_exeext conftest.$ac_ext
  18946. LIBS=$ac_check_lib_save_LIBS
  18947. fi
  18948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18949. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18950. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18951. have_libusbhid=yes
  18952. fi
  18953. if test x$have_libusbhid = xyes; then
  18954. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18955. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18956. USB_CFLAGS="-DHAVE_USBHID_H"
  18957. fi
  18958. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18959. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18960. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18961. fi
  18962. USB_LIBS="$USB_LIBS -lusbhid"
  18963. else
  18964. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18965. if test "x$ac_cv_header_usb_h" = xyes; then :
  18966. USB_CFLAGS="-DHAVE_USB_H"
  18967. fi
  18968. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18969. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18970. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18971. fi
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18973. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18974. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18975. $as_echo_n "(cached) " >&6
  18976. else
  18977. ac_check_lib_save_LIBS=$LIBS
  18978. LIBS="-lusb $LIBS"
  18979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18980. /* end confdefs.h. */
  18981. /* Override any GCC internal prototype to avoid an error.
  18982. Use char because int might match the return type of a GCC
  18983. builtin and then its argument prototype would still apply. */
  18984. #ifdef __cplusplus
  18985. extern "C"
  18986. #endif
  18987. char hid_init ();
  18988. int
  18989. main ()
  18990. {
  18991. return hid_init ();
  18992. ;
  18993. return 0;
  18994. }
  18995. _ACEOF
  18996. if ac_fn_c_try_link "$LINENO"; then :
  18997. ac_cv_lib_usb_hid_init=yes
  18998. else
  18999. ac_cv_lib_usb_hid_init=no
  19000. fi
  19001. rm -f core conftest.err conftest.$ac_objext \
  19002. conftest$ac_exeext conftest.$ac_ext
  19003. LIBS=$ac_check_lib_save_LIBS
  19004. fi
  19005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19006. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19007. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19008. USB_LIBS="$USB_LIBS -lusb"
  19009. fi
  19010. fi
  19011. save_CFLAGS="$CFLAGS"
  19012. CFLAGS="$CFLAGS $USB_CFLAGS"
  19013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19014. $as_echo_n "checking for usbhid... " >&6; }
  19015. have_usbhid=no
  19016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19017. /* end confdefs.h. */
  19018. #include <sys/types.h>
  19019. #if defined(HAVE_USB_H)
  19020. #include <usb.h>
  19021. #endif
  19022. #ifdef __DragonFly__
  19023. # include <bus/usb/usb.h>
  19024. # include <bus/usb/usbhid.h>
  19025. #else
  19026. # include <dev/usb/usb.h>
  19027. # include <dev/usb/usbhid.h>
  19028. #endif
  19029. #if defined(HAVE_USBHID_H)
  19030. #include <usbhid.h>
  19031. #elif defined(HAVE_LIBUSB_H)
  19032. #include <libusb.h>
  19033. #elif defined(HAVE_LIBUSBHID_H)
  19034. #include <libusbhid.h>
  19035. #endif
  19036. int
  19037. main ()
  19038. {
  19039. struct report_desc *repdesc;
  19040. struct usb_ctl_report *repbuf;
  19041. hid_kind_t hidkind;
  19042. ;
  19043. return 0;
  19044. }
  19045. _ACEOF
  19046. if ac_fn_c_try_compile "$LINENO"; then :
  19047. have_usbhid=yes
  19048. fi
  19049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19051. $as_echo "$have_usbhid" >&6; }
  19052. if test x$have_usbhid = xyes; then
  19053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19054. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19055. have_usbhid_ucr_data=no
  19056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19057. /* end confdefs.h. */
  19058. #include <sys/types.h>
  19059. #if defined(HAVE_USB_H)
  19060. #include <usb.h>
  19061. #endif
  19062. #ifdef __DragonFly__
  19063. # include <bus/usb/usb.h>
  19064. # include <bus/usb/usbhid.h>
  19065. #else
  19066. # include <dev/usb/usb.h>
  19067. # include <dev/usb/usbhid.h>
  19068. #endif
  19069. #if defined(HAVE_USBHID_H)
  19070. #include <usbhid.h>
  19071. #elif defined(HAVE_LIBUSB_H)
  19072. #include <libusb.h>
  19073. #elif defined(HAVE_LIBUSBHID_H)
  19074. #include <libusbhid.h>
  19075. #endif
  19076. int
  19077. main ()
  19078. {
  19079. struct usb_ctl_report buf;
  19080. if (buf.ucr_data) { }
  19081. ;
  19082. return 0;
  19083. }
  19084. _ACEOF
  19085. if ac_fn_c_try_compile "$LINENO"; then :
  19086. have_usbhid_ucr_data=yes
  19087. fi
  19088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19089. if test x$have_usbhid_ucr_data = xyes; then
  19090. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19091. fi
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19093. $as_echo "$have_usbhid_ucr_data" >&6; }
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19095. $as_echo_n "checking for new usbhid API... " >&6; }
  19096. have_usbhid_new=no
  19097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19098. /* end confdefs.h. */
  19099. #include <sys/types.h>
  19100. #if defined(HAVE_USB_H)
  19101. #include <usb.h>
  19102. #endif
  19103. #ifdef __DragonFly__
  19104. #include <bus/usb/usb.h>
  19105. #include <bus/usb/usbhid.h>
  19106. #else
  19107. #include <dev/usb/usb.h>
  19108. #include <dev/usb/usbhid.h>
  19109. #endif
  19110. #if defined(HAVE_USBHID_H)
  19111. #include <usbhid.h>
  19112. #elif defined(HAVE_LIBUSB_H)
  19113. #include <libusb.h>
  19114. #elif defined(HAVE_LIBUSBHID_H)
  19115. #include <libusbhid.h>
  19116. #endif
  19117. int
  19118. main ()
  19119. {
  19120. report_desc_t d;
  19121. hid_start_parse(d, 1, 1);
  19122. ;
  19123. return 0;
  19124. }
  19125. _ACEOF
  19126. if ac_fn_c_try_compile "$LINENO"; then :
  19127. have_usbhid_new=yes
  19128. fi
  19129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19130. if test x$have_usbhid_new = xyes; then
  19131. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19132. fi
  19133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19134. $as_echo "$have_usbhid_new" >&6; }
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19136. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19137. have_machine_joystick=no
  19138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19139. /* end confdefs.h. */
  19140. #include <machine/joystick.h>
  19141. int
  19142. main ()
  19143. {
  19144. struct joystick t;
  19145. ;
  19146. return 0;
  19147. }
  19148. _ACEOF
  19149. if ac_fn_c_try_compile "$LINENO"; then :
  19150. have_machine_joystick=yes
  19151. fi
  19152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19153. if test x$have_machine_joystick = xyes; then
  19154. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19155. fi
  19156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19157. $as_echo "$have_machine_joystick" >&6; }
  19158. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19159. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19160. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19162. have_joystick=yes
  19163. fi
  19164. CFLAGS="$save_CFLAGS"
  19165. fi
  19166. ;;
  19167. esac
  19168. }
  19169. CheckClockGettime()
  19170. {
  19171. # Check whether --enable-clock_gettime was given.
  19172. if test "${enable_clock_gettime+set}" = set; then :
  19173. enableval=$enable_clock_gettime;
  19174. else
  19175. enable_clock_gettime=yes
  19176. fi
  19177. if test x$enable_clock_gettime = xyes; then
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19179. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19180. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19181. $as_echo_n "(cached) " >&6
  19182. else
  19183. ac_check_lib_save_LIBS=$LIBS
  19184. LIBS="-lrt $LIBS"
  19185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19186. /* end confdefs.h. */
  19187. /* Override any GCC internal prototype to avoid an error.
  19188. Use char because int might match the return type of a GCC
  19189. builtin and then its argument prototype would still apply. */
  19190. #ifdef __cplusplus
  19191. extern "C"
  19192. #endif
  19193. char clock_gettime ();
  19194. int
  19195. main ()
  19196. {
  19197. return clock_gettime ();
  19198. ;
  19199. return 0;
  19200. }
  19201. _ACEOF
  19202. if ac_fn_c_try_link "$LINENO"; then :
  19203. ac_cv_lib_rt_clock_gettime=yes
  19204. else
  19205. ac_cv_lib_rt_clock_gettime=no
  19206. fi
  19207. rm -f core conftest.err conftest.$ac_objext \
  19208. conftest$ac_exeext conftest.$ac_ext
  19209. LIBS=$ac_check_lib_save_LIBS
  19210. fi
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19212. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19213. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19214. have_clock_gettime=yes
  19215. fi
  19216. if test x$have_clock_gettime = xyes; then
  19217. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19219. else
  19220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19221. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19222. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19223. $as_echo_n "(cached) " >&6
  19224. else
  19225. ac_check_lib_save_LIBS=$LIBS
  19226. LIBS="-lc $LIBS"
  19227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19228. /* end confdefs.h. */
  19229. /* Override any GCC internal prototype to avoid an error.
  19230. Use char because int might match the return type of a GCC
  19231. builtin and then its argument prototype would still apply. */
  19232. #ifdef __cplusplus
  19233. extern "C"
  19234. #endif
  19235. char clock_gettime ();
  19236. int
  19237. main ()
  19238. {
  19239. return clock_gettime ();
  19240. ;
  19241. return 0;
  19242. }
  19243. _ACEOF
  19244. if ac_fn_c_try_link "$LINENO"; then :
  19245. ac_cv_lib_c_clock_gettime=yes
  19246. else
  19247. ac_cv_lib_c_clock_gettime=no
  19248. fi
  19249. rm -f core conftest.err conftest.$ac_objext \
  19250. conftest$ac_exeext conftest.$ac_ext
  19251. LIBS=$ac_check_lib_save_LIBS
  19252. fi
  19253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19254. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19255. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19256. have_clock_gettime=yes
  19257. fi
  19258. if test x$have_clock_gettime = xyes; then
  19259. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19261. fi
  19262. fi
  19263. fi
  19264. }
  19265. CheckLinuxVersion()
  19266. {
  19267. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19268. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19269. have_linux_version_h=yes
  19270. fi
  19271. if test x$have_linux_version_h = xyes; then
  19272. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19273. fi
  19274. }
  19275. CheckRPATH()
  19276. {
  19277. # Check whether --enable-rpath was given.
  19278. if test "${enable_rpath+set}" = set; then :
  19279. enableval=$enable_rpath;
  19280. else
  19281. enable_rpath=yes
  19282. fi
  19283. }
  19284. case "$host" in
  19285. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19286. case "$host" in
  19287. *-raspberry-linux*)
  19288. # Raspberry Pi
  19289. ARCH=linux
  19290. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19291. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19292. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19293. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19295. if test x$enable_video = xyes; then
  19296. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19297. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19298. fi
  19299. ;;
  19300. *-*-linux*) ARCH=linux ;;
  19301. *-*-uclinux*) ARCH=linux ;;
  19302. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19303. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19304. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19305. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19306. *-*-bsdi*) ARCH=bsdi ;;
  19307. *-*-freebsd*) ARCH=freebsd ;;
  19308. *-*-dragonfly*) ARCH=freebsd ;;
  19309. *-*-netbsd*) ARCH=netbsd ;;
  19310. *-*-openbsd*) ARCH=openbsd ;;
  19311. *-*-sysv5*) ARCH=sysv5 ;;
  19312. *-*-solaris*) ARCH=solaris ;;
  19313. *-*-hpux*) ARCH=hpux ;;
  19314. *-*-aix*) ARCH=aix ;;
  19315. *-*-minix*) ARCH=minix ;;
  19316. esac
  19317. CheckVisibilityHidden
  19318. CheckDummyVideo
  19319. CheckDiskAudio
  19320. CheckDummyAudio
  19321. CheckDLOPEN
  19322. CheckOSS
  19323. CheckALSA
  19324. CheckPulseAudio
  19325. CheckARTSC
  19326. CheckESD
  19327. CheckNAS
  19328. CheckSNDIO
  19329. CheckX11
  19330. CheckWayland
  19331. CheckMir
  19332. CheckDirectFB
  19333. CheckFusionSound
  19334. CheckOpenGLX11
  19335. CheckOpenGLESX11
  19336. CheckLibUDev
  19337. CheckDBus
  19338. CheckInputEvents
  19339. CheckInputKD
  19340. CheckTslib
  19341. CheckUSBHID
  19342. CheckPTHREAD
  19343. CheckClockGettime
  19344. CheckLinuxVersion
  19345. CheckRPATH
  19346. # Set up files for the audio library
  19347. if test x$enable_audio = xyes; then
  19348. case $ARCH in
  19349. sysv5|solaris|hpux)
  19350. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19351. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19352. have_audio=yes
  19353. ;;
  19354. netbsd) # Don't use this on OpenBSD, it's busted.
  19355. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19356. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19357. have_audio=yes
  19358. ;;
  19359. aix)
  19360. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19361. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19362. have_audio=yes
  19363. ;;
  19364. esac
  19365. fi
  19366. # Set up files for the joystick library
  19367. if test x$enable_joystick = xyes; then
  19368. case $ARCH in
  19369. linux)
  19370. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19371. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19372. have_joystick=yes
  19373. ;;
  19374. esac
  19375. fi
  19376. # Set up files for the haptic library
  19377. if test x$enable_haptic = xyes; then
  19378. if test x$use_input_events = xyes; then
  19379. case $ARCH in
  19380. linux)
  19381. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19382. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19383. have_haptic=yes
  19384. ;;
  19385. esac
  19386. fi
  19387. fi
  19388. # Set up files for the power library
  19389. if test x$enable_power = xyes; then
  19390. case $ARCH in
  19391. linux)
  19392. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19393. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19394. have_power=yes
  19395. ;;
  19396. esac
  19397. fi
  19398. # Set up files for the filesystem library
  19399. if test x$enable_filesystem = xyes; then
  19400. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19401. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19402. have_filesystem=yes
  19403. fi
  19404. # Set up files for the timer library
  19405. if test x$enable_timers = xyes; then
  19406. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19407. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19408. have_timers=yes
  19409. fi
  19410. # Set up files for udev hotplugging support
  19411. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19412. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19413. fi
  19414. # Set up files for evdev input
  19415. if test x$use_input_events = xyes; then
  19416. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19417. fi
  19418. ;;
  19419. *-*-cygwin* | *-*-mingw32*)
  19420. ARCH=win32
  19421. if test "$build" != "$host"; then # cross-compiling
  19422. # Default cross-compile location
  19423. ac_default_prefix=/usr/local/cross-tools/$host
  19424. else
  19425. # Look for the location of the tools and install there
  19426. if test "$BUILD_PREFIX" != ""; then
  19427. ac_default_prefix=$BUILD_PREFIX
  19428. fi
  19429. fi
  19430. CheckDummyVideo
  19431. CheckDiskAudio
  19432. CheckDummyAudio
  19433. CheckWINDOWS
  19434. CheckWINDOWSGL
  19435. CheckWINDOWSGLES
  19436. CheckDIRECTX
  19437. # Set up the core platform files
  19438. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19439. # Set up files for the video library
  19440. if test x$enable_video = xyes; then
  19441. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19442. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19443. have_video=yes
  19444. # Check whether --enable-render-d3d was given.
  19445. if test "${enable_render_d3d+set}" = set; then :
  19446. enableval=$enable_render_d3d;
  19447. else
  19448. enable_render_d3d=yes
  19449. fi
  19450. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19451. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19452. fi
  19453. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19454. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19455. fi
  19456. fi
  19457. # Set up files for the audio library
  19458. if test x$enable_audio = xyes; then
  19459. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19460. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19461. if test x$have_dsound = xyes; then
  19462. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19463. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19464. fi
  19465. if test x$have_xaudio2 = xyes; then
  19466. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19467. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19468. fi
  19469. have_audio=yes
  19470. fi
  19471. # Set up files for the joystick library
  19472. if test x$enable_joystick = xyes; then
  19473. if test x$have_dinput = xyes; then
  19474. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19475. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19477. else
  19478. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19479. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19480. fi
  19481. have_joystick=yes
  19482. fi
  19483. if test x$enable_haptic = xyes; then
  19484. if test x$have_dinput = xyes; then
  19485. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19486. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19487. have_haptic=yes
  19488. fi
  19489. fi
  19490. if test x$enable_power = xyes; then
  19491. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19492. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19493. have_power=yes
  19494. fi
  19495. if test x$enable_filesystem = xyes; then
  19496. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19497. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19498. have_filesystem=yes
  19499. fi
  19500. # Set up files for the thread library
  19501. if test x$enable_threads = xyes; then
  19502. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19503. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19504. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19505. have_threads=yes
  19506. fi
  19507. # Set up files for the timer library
  19508. if test x$enable_timers = xyes; then
  19509. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19510. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19511. have_timers=yes
  19512. fi
  19513. # Set up files for the shared object loading library
  19514. if test x$enable_loadso = xyes; then
  19515. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19516. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19517. have_loadso=yes
  19518. fi
  19519. # Set up the system libraries we need
  19520. if test -f /lib/w32api/libuuid.a; then
  19521. LIBUUID=/lib/w32api/libuuid.a
  19522. else
  19523. LIBUUID=-luuid
  19524. fi
  19525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -XCClinker -static-libgcc"
  19526. # The Windows platform requires special setup
  19527. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19528. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19529. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19530. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19531. # Check to see if this is a mingw or cygwin build
  19532. have_mingw32=
  19533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19534. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19535. if ${ac_cv_lib_mingw32_main+:} false; then :
  19536. $as_echo_n "(cached) " >&6
  19537. else
  19538. ac_check_lib_save_LIBS=$LIBS
  19539. LIBS="-lmingw32 $LIBS"
  19540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19541. /* end confdefs.h. */
  19542. int
  19543. main ()
  19544. {
  19545. return main ();
  19546. ;
  19547. return 0;
  19548. }
  19549. _ACEOF
  19550. if ac_fn_c_try_link "$LINENO"; then :
  19551. ac_cv_lib_mingw32_main=yes
  19552. else
  19553. ac_cv_lib_mingw32_main=no
  19554. fi
  19555. rm -f core conftest.err conftest.$ac_objext \
  19556. conftest$ac_exeext conftest.$ac_ext
  19557. LIBS=$ac_check_lib_save_LIBS
  19558. fi
  19559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19560. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19561. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19562. have_mingw32=yes
  19563. fi
  19564. if test x$have_mingw32 = xyes; then
  19565. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19566. else
  19567. SDL_LIBS="-lcygwin $SDL_LIBS"
  19568. fi
  19569. ;;
  19570. *-*-beos*)
  19571. as_fn_error $? "
  19572. *** BeOS support has been removed as of SDL 2.0.2.
  19573. " "$LINENO" 5
  19574. ;;
  19575. *-*-haiku*)
  19576. ARCH=haiku
  19577. ac_default_prefix=/boot/system
  19578. CheckDummyVideo
  19579. CheckDiskAudio
  19580. CheckDummyAudio
  19581. CheckHaikuVideo
  19582. CheckHaikuGL
  19583. CheckPTHREAD
  19584. # Set up files for the audio library
  19585. if test x$enable_audio = xyes; then
  19586. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19587. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19588. have_audio=yes
  19589. fi
  19590. # Set up files for the joystick library
  19591. if test x$enable_joystick = xyes; then
  19592. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19593. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19594. have_joystick=yes
  19595. fi
  19596. # Set up files for the timer library
  19597. if test x$enable_timers = xyes; then
  19598. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19599. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19600. have_timers=yes
  19601. fi
  19602. # Set up files for the shared object loading library
  19603. if test x$enable_loadso = xyes; then
  19604. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19605. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19606. have_loadso=yes
  19607. fi
  19608. # Set up files for the system power library
  19609. if test x$enable_power = xyes; then
  19610. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19611. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19612. have_power=yes
  19613. fi
  19614. # Set up files for the system filesystem library
  19615. if test x$enable_filesystem = xyes; then
  19616. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19617. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19618. have_filesystem=yes
  19619. fi
  19620. # The Haiku platform requires special setup.
  19621. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19623. ;;
  19624. arm*-apple-darwin*)
  19625. # iOS - We are not writing anything to confdefs.h because you have to replace
  19626. # SDL_config.h for SDL_config_iphoneos.h anyway
  19627. ARCH=ios
  19628. CheckVisibilityHidden
  19629. CheckDummyVideo
  19630. CheckDiskAudio
  19631. CheckDummyAudio
  19632. CheckDLOPEN
  19633. CheckCOCOA
  19634. CheckPTHREAD
  19635. # Set up files for the audio library
  19636. if test x$enable_audio = xyes; then
  19637. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19638. have_audio=yes
  19639. fi
  19640. # Set up files for the joystick library
  19641. if test x$enable_joystick = xyes; then
  19642. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19643. have_joystick=yes
  19644. fi
  19645. # Set up files for the haptic library
  19646. #if test x$enable_haptic = xyes; then
  19647. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19648. # have_haptic=yes
  19649. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19650. #fi
  19651. # Set up files for the power library
  19652. if test x$enable_power = xyes; then
  19653. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19654. have_power=yes
  19655. fi
  19656. # Set up files for the filesystem library
  19657. if test x$enable_filesystem = xyes; then
  19658. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19659. have_filesystem=yes
  19660. fi
  19661. # Set up files for the timer library
  19662. if test x$enable_timers = xyes; then
  19663. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19664. have_timers=yes
  19665. fi
  19666. # Set up additional files for the file library
  19667. if test x$enable_file = xyes; then
  19668. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19669. fi
  19670. # The iOS platform requires special setup.
  19671. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19672. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19673. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19674. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19675. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19676. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19681. ;;
  19682. *-*-darwin* )
  19683. # This could be either full "Mac OS X", or plain "Darwin" which is
  19684. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19685. # Next line is broken, and a few files below require Mac OS X (full)
  19686. ARCH=macosx
  19687. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19688. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19689. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19690. CheckVisibilityHidden
  19691. CheckDummyVideo
  19692. CheckDiskAudio
  19693. CheckDummyAudio
  19694. CheckDLOPEN
  19695. CheckCOCOA
  19696. CheckX11
  19697. CheckMacGL
  19698. CheckOpenGLX11
  19699. CheckPTHREAD
  19700. # Set up files for the audio library
  19701. if test x$enable_audio = xyes; then
  19702. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19703. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19704. have_audio=yes
  19705. fi
  19706. # Set up files for the joystick library
  19707. if test x$enable_joystick = xyes; then
  19708. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19709. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19710. have_joystick=yes
  19711. fi
  19712. # Set up files for the haptic library
  19713. if test x$enable_haptic = xyes; then
  19714. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19715. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19716. have_haptic=yes
  19717. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19718. fi
  19719. # Set up files for the power library
  19720. if test x$enable_power = xyes; then
  19721. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19722. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19723. have_power=yes
  19724. fi
  19725. # Set up files for the filesystem library
  19726. if test x$enable_filesystem = xyes; then
  19727. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19728. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19729. have_filesystem=yes
  19730. fi
  19731. # Set up files for the timer library
  19732. if test x$enable_timers = xyes; then
  19733. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19734. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19735. have_timers=yes
  19736. fi
  19737. # Set up additional files for the file library
  19738. if test x$enable_file = xyes; then
  19739. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19740. fi
  19741. # The Mac OS X platform requires special setup.
  19742. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19743. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19744. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19747. # If audio is used, add the AudioUnit framework
  19748. if test x$enable_audio = xyes; then
  19749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19750. fi
  19751. ;;
  19752. *)
  19753. as_fn_error $? "
  19754. *** Unsupported host: Please add to configure.in
  19755. " "$LINENO" 5
  19756. ;;
  19757. esac
  19758. CheckWarnAll
  19759. # Verify that we have all the platform specific files we need
  19760. if test x$have_joystick != xyes; then
  19761. if test x$enable_joystick = xyes; then
  19762. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19763. fi
  19764. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19765. fi
  19766. if test x$have_haptic != xyes; then
  19767. if test x$enable_haptic = xyes; then
  19768. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19769. fi
  19770. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19771. fi
  19772. if test x$have_threads != xyes; then
  19773. if test x$enable_threads = xyes; then
  19774. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19775. fi
  19776. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19777. fi
  19778. if test x$have_timers != xyes; then
  19779. if test x$enable_timers = xyes; then
  19780. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19781. fi
  19782. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19783. fi
  19784. if test x$have_filesystem != xyes; then
  19785. if test x$enable_filesystem = xyes; then
  19786. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19787. fi
  19788. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19789. fi
  19790. if test x$have_loadso != xyes; then
  19791. if test x$enable_loadso = xyes; then
  19792. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19793. fi
  19794. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19795. fi
  19796. if test x$SDLMAIN_SOURCES = x; then
  19797. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19798. fi
  19799. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19800. OBJECTS=`echo $SOURCES`
  19801. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19802. for EXT in asm cc m c S; do
  19803. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19804. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19805. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19806. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19807. done
  19808. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19809. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19810. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19811. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19812. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19813. \\$(WINDRES) \\$< \\$@,g"`
  19814. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19815. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19816. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19817. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19818. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19819. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19820. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19821. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19822. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19823. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19824. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19825. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19826. # Set runtime shared library paths as needed
  19827. if test "x$enable_rpath" = "xyes"; then
  19828. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19829. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19830. fi
  19831. if test $ARCH = solaris; then
  19832. SDL_RLD_FLAGS="-R\${libdir}"
  19833. fi
  19834. else
  19835. SDL_RLD_FLAGS=""
  19836. fi
  19837. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19838. if test x$enable_shared = xyes; then
  19839. ENABLE_SHARED_TRUE=
  19840. ENABLE_SHARED_FALSE="#"
  19841. else
  19842. ENABLE_SHARED_TRUE="#"
  19843. ENABLE_SHARED_FALSE=
  19844. fi
  19845. if test x$enable_static = xyes; then
  19846. ENABLE_STATIC_TRUE=
  19847. ENABLE_STATIC_FALSE="#"
  19848. else
  19849. ENABLE_STATIC_TRUE="#"
  19850. ENABLE_STATIC_FALSE=
  19851. fi
  19852. cat >Makefile.rules <<__EOF__
  19853. # Build rules for objects
  19854. -include \$(OBJECTS:.lo=.d)
  19855. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19856. $srcdir/src/SDL.c: update-revision
  19857. $DEPENDS
  19858. $VERSION_DEPENDS
  19859. $SDLMAIN_DEPENDS
  19860. $SDLTEST_DEPENDS
  19861. __EOF__
  19862. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19863. ac_config_commands="$ac_config_commands sdl2_config"
  19864. SUMMARY="SDL2 Configure Summary:\n"
  19865. if test x$enable_shared = xyes; then
  19866. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  19867. fi
  19868. if test x$enable_static = xyes; then
  19869. SUMMARY="${SUMMARY}Building Static Libraries\n"
  19870. fi
  19871. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  19872. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  19873. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  19874. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  19875. if test x$have_x = xyes; then
  19876. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  19877. fi
  19878. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  19879. if test x$enable_libudev = xyes; then
  19880. SUMMARY="${SUMMARY}Using libudev : YES\n"
  19881. else
  19882. SUMMARY="${SUMMARY}Using libudev : NO\n"
  19883. fi
  19884. if test x$have_dbus_dbus_h_hdr = xyes; then
  19885. SUMMARY="${SUMMARY}Using dbus : YES\n"
  19886. else
  19887. SUMMARY="${SUMMARY}Using dbus : NO\n"
  19888. fi
  19889. ac_config_commands="$ac_config_commands summary"
  19890. cat >confcache <<\_ACEOF
  19891. # This file is a shell script that caches the results of configure
  19892. # tests run on this system so they can be shared between configure
  19893. # scripts and configure runs, see configure's option --config-cache.
  19894. # It is not useful on other systems. If it contains results you don't
  19895. # want to keep, you may remove or edit it.
  19896. #
  19897. # config.status only pays attention to the cache file if you give it
  19898. # the --recheck option to rerun configure.
  19899. #
  19900. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19901. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19902. # following values.
  19903. _ACEOF
  19904. # The following way of writing the cache mishandles newlines in values,
  19905. # but we know of no workaround that is simple, portable, and efficient.
  19906. # So, we kill variables containing newlines.
  19907. # Ultrix sh set writes to stderr and can't be redirected directly,
  19908. # and sets the high bit in the cache file unless we assign to the vars.
  19909. (
  19910. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19911. eval ac_val=\$$ac_var
  19912. case $ac_val in #(
  19913. *${as_nl}*)
  19914. case $ac_var in #(
  19915. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19916. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19917. esac
  19918. case $ac_var in #(
  19919. _ | IFS | as_nl) ;; #(
  19920. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19921. *) { eval $ac_var=; unset $ac_var;} ;;
  19922. esac ;;
  19923. esac
  19924. done
  19925. (set) 2>&1 |
  19926. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19927. *${as_nl}ac_space=\ *)
  19928. # `set' does not quote correctly, so add quotes: double-quote
  19929. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19930. sed -n \
  19931. "s/'/'\\\\''/g;
  19932. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19933. ;; #(
  19934. *)
  19935. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19936. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19937. ;;
  19938. esac |
  19939. sort
  19940. ) |
  19941. sed '
  19942. /^ac_cv_env_/b end
  19943. t clear
  19944. :clear
  19945. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19946. t end
  19947. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19948. :end' >>confcache
  19949. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19950. if test -w "$cache_file"; then
  19951. if test "x$cache_file" != "x/dev/null"; then
  19952. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19953. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19954. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19955. cat confcache >"$cache_file"
  19956. else
  19957. case $cache_file in #(
  19958. */* | ?:*)
  19959. mv -f confcache "$cache_file"$$ &&
  19960. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19961. *)
  19962. mv -f confcache "$cache_file" ;;
  19963. esac
  19964. fi
  19965. fi
  19966. else
  19967. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19968. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19969. fi
  19970. fi
  19971. rm -f confcache
  19972. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19973. # Let make expand exec_prefix.
  19974. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19975. DEFS=-DHAVE_CONFIG_H
  19976. ac_libobjs=
  19977. ac_ltlibobjs=
  19978. U=
  19979. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19980. # 1. Remove the extension, and $U if already installed.
  19981. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19982. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19983. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19984. # will be set to the directory where LIBOBJS objects are built.
  19985. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19986. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19987. done
  19988. LIBOBJS=$ac_libobjs
  19989. LTLIBOBJS=$ac_ltlibobjs
  19990. : "${CONFIG_STATUS=./config.status}"
  19991. ac_write_fail=0
  19992. ac_clean_files_save=$ac_clean_files
  19993. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19995. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19996. as_write_fail=0
  19997. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19998. #! $SHELL
  19999. # Generated by $as_me.
  20000. # Run this file to recreate the current configuration.
  20001. # Compiler output produced by configure, useful for debugging
  20002. # configure, is in config.log if it exists.
  20003. debug=false
  20004. ac_cs_recheck=false
  20005. ac_cs_silent=false
  20006. SHELL=\${CONFIG_SHELL-$SHELL}
  20007. export SHELL
  20008. _ASEOF
  20009. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20010. ## -------------------- ##
  20011. ## M4sh Initialization. ##
  20012. ## -------------------- ##
  20013. # Be more Bourne compatible
  20014. DUALCASE=1; export DUALCASE # for MKS sh
  20015. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20016. emulate sh
  20017. NULLCMD=:
  20018. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20019. # is contrary to our usage. Disable this feature.
  20020. alias -g '${1+"$@"}'='"$@"'
  20021. setopt NO_GLOB_SUBST
  20022. else
  20023. case `(set -o) 2>/dev/null` in #(
  20024. *posix*) :
  20025. set -o posix ;; #(
  20026. *) :
  20027. ;;
  20028. esac
  20029. fi
  20030. as_nl='
  20031. '
  20032. export as_nl
  20033. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20034. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20035. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20036. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20037. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20038. # but without wasting forks for bash or zsh.
  20039. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20040. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20041. as_echo='print -r --'
  20042. as_echo_n='print -rn --'
  20043. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20044. as_echo='printf %s\n'
  20045. as_echo_n='printf %s'
  20046. else
  20047. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20048. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20049. as_echo_n='/usr/ucb/echo -n'
  20050. else
  20051. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20052. as_echo_n_body='eval
  20053. arg=$1;
  20054. case $arg in #(
  20055. *"$as_nl"*)
  20056. expr "X$arg" : "X\\(.*\\)$as_nl";
  20057. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20058. esac;
  20059. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20060. '
  20061. export as_echo_n_body
  20062. as_echo_n='sh -c $as_echo_n_body as_echo'
  20063. fi
  20064. export as_echo_body
  20065. as_echo='sh -c $as_echo_body as_echo'
  20066. fi
  20067. # The user is always right.
  20068. if test "${PATH_SEPARATOR+set}" != set; then
  20069. PATH_SEPARATOR=:
  20070. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20071. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20072. PATH_SEPARATOR=';'
  20073. }
  20074. fi
  20075. # IFS
  20076. # We need space, tab and new line, in precisely that order. Quoting is
  20077. # there to prevent editors from complaining about space-tab.
  20078. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20079. # splitting by setting IFS to empty value.)
  20080. IFS=" "" $as_nl"
  20081. # Find who we are. Look in the path if we contain no directory separator.
  20082. as_myself=
  20083. case $0 in #((
  20084. *[\\/]* ) as_myself=$0 ;;
  20085. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20086. for as_dir in $PATH
  20087. do
  20088. IFS=$as_save_IFS
  20089. test -z "$as_dir" && as_dir=.
  20090. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20091. done
  20092. IFS=$as_save_IFS
  20093. ;;
  20094. esac
  20095. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20096. # in which case we are not to be found in the path.
  20097. if test "x$as_myself" = x; then
  20098. as_myself=$0
  20099. fi
  20100. if test ! -f "$as_myself"; then
  20101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20102. exit 1
  20103. fi
  20104. # Unset variables that we do not need and which cause bugs (e.g. in
  20105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20106. # suppresses any "Segmentation fault" message there. '((' could
  20107. # trigger a bug in pdksh 5.2.14.
  20108. for as_var in BASH_ENV ENV MAIL MAILPATH
  20109. do eval test x\${$as_var+set} = xset \
  20110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20111. done
  20112. PS1='$ '
  20113. PS2='> '
  20114. PS4='+ '
  20115. # NLS nuisances.
  20116. LC_ALL=C
  20117. export LC_ALL
  20118. LANGUAGE=C
  20119. export LANGUAGE
  20120. # CDPATH.
  20121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20122. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20123. # ----------------------------------------
  20124. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20125. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20126. # script with STATUS, using 1 if that was 0.
  20127. as_fn_error ()
  20128. {
  20129. as_status=$1; test $as_status -eq 0 && as_status=1
  20130. if test "$4"; then
  20131. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20132. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20133. fi
  20134. $as_echo "$as_me: error: $2" >&2
  20135. as_fn_exit $as_status
  20136. } # as_fn_error
  20137. # as_fn_set_status STATUS
  20138. # -----------------------
  20139. # Set $? to STATUS, without forking.
  20140. as_fn_set_status ()
  20141. {
  20142. return $1
  20143. } # as_fn_set_status
  20144. # as_fn_exit STATUS
  20145. # -----------------
  20146. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20147. as_fn_exit ()
  20148. {
  20149. set +e
  20150. as_fn_set_status $1
  20151. exit $1
  20152. } # as_fn_exit
  20153. # as_fn_unset VAR
  20154. # ---------------
  20155. # Portably unset VAR.
  20156. as_fn_unset ()
  20157. {
  20158. { eval $1=; unset $1;}
  20159. }
  20160. as_unset=as_fn_unset
  20161. # as_fn_append VAR VALUE
  20162. # ----------------------
  20163. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20164. # advantage of any shell optimizations that allow amortized linear growth over
  20165. # repeated appends, instead of the typical quadratic growth present in naive
  20166. # implementations.
  20167. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20168. eval 'as_fn_append ()
  20169. {
  20170. eval $1+=\$2
  20171. }'
  20172. else
  20173. as_fn_append ()
  20174. {
  20175. eval $1=\$$1\$2
  20176. }
  20177. fi # as_fn_append
  20178. # as_fn_arith ARG...
  20179. # ------------------
  20180. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20181. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20182. # must be portable across $(()) and expr.
  20183. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20184. eval 'as_fn_arith ()
  20185. {
  20186. as_val=$(( $* ))
  20187. }'
  20188. else
  20189. as_fn_arith ()
  20190. {
  20191. as_val=`expr "$@" || test $? -eq 1`
  20192. }
  20193. fi # as_fn_arith
  20194. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20195. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20196. as_expr=expr
  20197. else
  20198. as_expr=false
  20199. fi
  20200. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20201. as_basename=basename
  20202. else
  20203. as_basename=false
  20204. fi
  20205. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20206. as_dirname=dirname
  20207. else
  20208. as_dirname=false
  20209. fi
  20210. as_me=`$as_basename -- "$0" ||
  20211. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20212. X"$0" : 'X\(//\)$' \| \
  20213. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20214. $as_echo X/"$0" |
  20215. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20216. s//\1/
  20217. q
  20218. }
  20219. /^X\/\(\/\/\)$/{
  20220. s//\1/
  20221. q
  20222. }
  20223. /^X\/\(\/\).*/{
  20224. s//\1/
  20225. q
  20226. }
  20227. s/.*/./; q'`
  20228. # Avoid depending upon Character Ranges.
  20229. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20230. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20231. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20232. as_cr_digits='0123456789'
  20233. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20234. ECHO_C= ECHO_N= ECHO_T=
  20235. case `echo -n x` in #(((((
  20236. -n*)
  20237. case `echo 'xy\c'` in
  20238. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20239. xy) ECHO_C='\c';;
  20240. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20241. ECHO_T=' ';;
  20242. esac;;
  20243. *)
  20244. ECHO_N='-n';;
  20245. esac
  20246. rm -f conf$$ conf$$.exe conf$$.file
  20247. if test -d conf$$.dir; then
  20248. rm -f conf$$.dir/conf$$.file
  20249. else
  20250. rm -f conf$$.dir
  20251. mkdir conf$$.dir 2>/dev/null
  20252. fi
  20253. if (echo >conf$$.file) 2>/dev/null; then
  20254. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20255. as_ln_s='ln -s'
  20256. # ... but there are two gotchas:
  20257. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20258. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20259. # In both cases, we have to default to `cp -pR'.
  20260. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20261. as_ln_s='cp -pR'
  20262. elif ln conf$$.file conf$$ 2>/dev/null; then
  20263. as_ln_s=ln
  20264. else
  20265. as_ln_s='cp -pR'
  20266. fi
  20267. else
  20268. as_ln_s='cp -pR'
  20269. fi
  20270. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20271. rmdir conf$$.dir 2>/dev/null
  20272. # as_fn_mkdir_p
  20273. # -------------
  20274. # Create "$as_dir" as a directory, including parents if necessary.
  20275. as_fn_mkdir_p ()
  20276. {
  20277. case $as_dir in #(
  20278. -*) as_dir=./$as_dir;;
  20279. esac
  20280. test -d "$as_dir" || eval $as_mkdir_p || {
  20281. as_dirs=
  20282. while :; do
  20283. case $as_dir in #(
  20284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20285. *) as_qdir=$as_dir;;
  20286. esac
  20287. as_dirs="'$as_qdir' $as_dirs"
  20288. as_dir=`$as_dirname -- "$as_dir" ||
  20289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20290. X"$as_dir" : 'X\(//\)[^/]' \| \
  20291. X"$as_dir" : 'X\(//\)$' \| \
  20292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20293. $as_echo X"$as_dir" |
  20294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20295. s//\1/
  20296. q
  20297. }
  20298. /^X\(\/\/\)[^/].*/{
  20299. s//\1/
  20300. q
  20301. }
  20302. /^X\(\/\/\)$/{
  20303. s//\1/
  20304. q
  20305. }
  20306. /^X\(\/\).*/{
  20307. s//\1/
  20308. q
  20309. }
  20310. s/.*/./; q'`
  20311. test -d "$as_dir" && break
  20312. done
  20313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20315. } # as_fn_mkdir_p
  20316. if mkdir -p . 2>/dev/null; then
  20317. as_mkdir_p='mkdir -p "$as_dir"'
  20318. else
  20319. test -d ./-p && rmdir ./-p
  20320. as_mkdir_p=false
  20321. fi
  20322. # as_fn_executable_p FILE
  20323. # -----------------------
  20324. # Test if FILE is an executable regular file.
  20325. as_fn_executable_p ()
  20326. {
  20327. test -f "$1" && test -x "$1"
  20328. } # as_fn_executable_p
  20329. as_test_x='test -x'
  20330. as_executable_p=as_fn_executable_p
  20331. # Sed expression to map a string onto a valid CPP name.
  20332. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20333. # Sed expression to map a string onto a valid variable name.
  20334. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20335. exec 6>&1
  20336. ## ----------------------------------- ##
  20337. ## Main body of $CONFIG_STATUS script. ##
  20338. ## ----------------------------------- ##
  20339. _ASEOF
  20340. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20341. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20342. # Save the log message, to keep $0 and so on meaningful, and to
  20343. # report actual input values of CONFIG_FILES etc. instead of their
  20344. # values after options handling.
  20345. ac_log="
  20346. This file was extended by $as_me, which was
  20347. generated by GNU Autoconf 2.69. Invocation command line was
  20348. CONFIG_FILES = $CONFIG_FILES
  20349. CONFIG_HEADERS = $CONFIG_HEADERS
  20350. CONFIG_LINKS = $CONFIG_LINKS
  20351. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20352. $ $0 $@
  20353. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20354. "
  20355. _ACEOF
  20356. case $ac_config_files in *"
  20357. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20358. esac
  20359. case $ac_config_headers in *"
  20360. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20361. esac
  20362. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20363. # Files that config.status was made for.
  20364. config_files="$ac_config_files"
  20365. config_headers="$ac_config_headers"
  20366. config_commands="$ac_config_commands"
  20367. _ACEOF
  20368. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20369. ac_cs_usage="\
  20370. \`$as_me' instantiates files and other configuration actions
  20371. from templates according to the current configuration. Unless the files
  20372. and actions are specified as TAGs, all are instantiated by default.
  20373. Usage: $0 [OPTION]... [TAG]...
  20374. -h, --help print this help, then exit
  20375. -V, --version print version number and configuration settings, then exit
  20376. --config print configuration, then exit
  20377. -q, --quiet, --silent
  20378. do not print progress messages
  20379. -d, --debug don't remove temporary files
  20380. --recheck update $as_me by reconfiguring in the same conditions
  20381. --file=FILE[:TEMPLATE]
  20382. instantiate the configuration file FILE
  20383. --header=FILE[:TEMPLATE]
  20384. instantiate the configuration header FILE
  20385. Configuration files:
  20386. $config_files
  20387. Configuration headers:
  20388. $config_headers
  20389. Configuration commands:
  20390. $config_commands
  20391. Report bugs to the package provider."
  20392. _ACEOF
  20393. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20394. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20395. ac_cs_version="\\
  20396. config.status
  20397. configured by $0, generated by GNU Autoconf 2.69,
  20398. with options \\"\$ac_cs_config\\"
  20399. Copyright (C) 2012 Free Software Foundation, Inc.
  20400. This config.status script is free software; the Free Software Foundation
  20401. gives unlimited permission to copy, distribute and modify it."
  20402. ac_pwd='$ac_pwd'
  20403. srcdir='$srcdir'
  20404. INSTALL='$INSTALL'
  20405. AWK='$AWK'
  20406. test -n "\$AWK" || AWK=awk
  20407. _ACEOF
  20408. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20409. # The default lists apply if the user does not specify any file.
  20410. ac_need_defaults=:
  20411. while test $# != 0
  20412. do
  20413. case $1 in
  20414. --*=?*)
  20415. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20416. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20417. ac_shift=:
  20418. ;;
  20419. --*=)
  20420. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20421. ac_optarg=
  20422. ac_shift=:
  20423. ;;
  20424. *)
  20425. ac_option=$1
  20426. ac_optarg=$2
  20427. ac_shift=shift
  20428. ;;
  20429. esac
  20430. case $ac_option in
  20431. # Handling of the options.
  20432. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20433. ac_cs_recheck=: ;;
  20434. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20435. $as_echo "$ac_cs_version"; exit ;;
  20436. --config | --confi | --conf | --con | --co | --c )
  20437. $as_echo "$ac_cs_config"; exit ;;
  20438. --debug | --debu | --deb | --de | --d | -d )
  20439. debug=: ;;
  20440. --file | --fil | --fi | --f )
  20441. $ac_shift
  20442. case $ac_optarg in
  20443. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20444. '') as_fn_error $? "missing file argument" ;;
  20445. esac
  20446. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20447. ac_need_defaults=false;;
  20448. --header | --heade | --head | --hea )
  20449. $ac_shift
  20450. case $ac_optarg in
  20451. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20452. esac
  20453. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20454. ac_need_defaults=false;;
  20455. --he | --h)
  20456. # Conflict between --help and --header
  20457. as_fn_error $? "ambiguous option: \`$1'
  20458. Try \`$0 --help' for more information.";;
  20459. --help | --hel | -h )
  20460. $as_echo "$ac_cs_usage"; exit ;;
  20461. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20462. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20463. ac_cs_silent=: ;;
  20464. # This is an error.
  20465. -*) as_fn_error $? "unrecognized option: \`$1'
  20466. Try \`$0 --help' for more information." ;;
  20467. *) as_fn_append ac_config_targets " $1"
  20468. ac_need_defaults=false ;;
  20469. esac
  20470. shift
  20471. done
  20472. ac_configure_extra_args=
  20473. if $ac_cs_silent; then
  20474. exec 6>/dev/null
  20475. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20476. fi
  20477. _ACEOF
  20478. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20479. if \$ac_cs_recheck; then
  20480. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20481. shift
  20482. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20483. CONFIG_SHELL='$SHELL'
  20484. export CONFIG_SHELL
  20485. exec "\$@"
  20486. fi
  20487. _ACEOF
  20488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20489. exec 5>>config.log
  20490. {
  20491. echo
  20492. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20493. ## Running $as_me. ##
  20494. _ASBOX
  20495. $as_echo "$ac_log"
  20496. } >&5
  20497. _ACEOF
  20498. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20499. #
  20500. # INIT-COMMANDS
  20501. #
  20502. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20503. # if CDPATH is set.
  20504. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20505. sed_quote_subst='$sed_quote_subst'
  20506. double_quote_subst='$double_quote_subst'
  20507. delay_variable_subst='$delay_variable_subst'
  20508. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20509. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20510. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20511. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20512. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20513. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20514. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20515. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20516. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20517. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20518. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20519. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20520. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20521. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20522. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20523. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20524. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20525. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20526. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20527. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20528. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20529. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20530. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20531. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20532. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20533. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20534. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20535. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20536. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20537. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20538. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20539. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20540. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20541. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20542. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20543. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20544. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20545. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20546. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20547. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20548. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20549. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20550. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20551. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20552. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20553. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20554. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20555. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20556. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20557. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20558. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20559. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20560. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20561. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20562. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20563. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20564. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20565. 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"`'
  20566. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20567. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20568. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20569. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20570. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20571. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20572. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20573. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20574. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20575. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20576. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20577. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20578. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20579. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20580. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20581. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20582. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20583. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20584. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20585. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20586. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20587. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20588. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20589. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20590. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20591. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20592. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20593. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20594. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20595. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20596. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20597. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20598. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20599. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20600. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20601. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20602. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20603. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20604. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20605. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20606. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20607. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20608. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20609. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20610. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20611. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20612. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20613. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20614. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20615. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20616. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20617. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20618. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20619. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20620. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20621. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20622. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20623. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20624. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20625. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20626. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20627. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20628. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20629. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20630. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20631. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20632. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20633. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20634. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20635. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20636. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20637. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20638. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20639. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20640. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20641. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20642. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20643. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20644. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20645. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20646. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20647. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20648. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20649. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20650. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20651. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20652. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20653. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20654. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20655. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20656. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20657. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20658. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20659. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20660. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20661. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20662. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20663. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20664. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20665. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20666. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20667. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20668. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20669. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20670. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20671. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20672. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20673. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20674. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20675. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20676. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20677. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20678. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20679. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20680. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20681. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20682. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20683. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20684. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20685. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20686. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20687. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20688. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20689. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20690. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20691. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20692. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20693. LTCC='$LTCC'
  20694. LTCFLAGS='$LTCFLAGS'
  20695. compiler='$compiler_DEFAULT'
  20696. # A function that is used when there is no print builtin or printf.
  20697. func_fallback_echo ()
  20698. {
  20699. eval 'cat <<_LTECHO_EOF
  20700. \$1
  20701. _LTECHO_EOF'
  20702. }
  20703. # Quote evaled strings.
  20704. for var in AS \
  20705. DLLTOOL \
  20706. OBJDUMP \
  20707. SHELL \
  20708. ECHO \
  20709. PATH_SEPARATOR \
  20710. SED \
  20711. GREP \
  20712. EGREP \
  20713. FGREP \
  20714. LD \
  20715. NM \
  20716. LN_S \
  20717. lt_SP2NL \
  20718. lt_NL2SP \
  20719. reload_flag \
  20720. deplibs_check_method \
  20721. file_magic_cmd \
  20722. file_magic_glob \
  20723. want_nocaseglob \
  20724. sharedlib_from_linklib_cmd \
  20725. AR \
  20726. AR_FLAGS \
  20727. archiver_list_spec \
  20728. STRIP \
  20729. RANLIB \
  20730. CC \
  20731. CFLAGS \
  20732. compiler \
  20733. lt_cv_sys_global_symbol_pipe \
  20734. lt_cv_sys_global_symbol_to_cdecl \
  20735. lt_cv_sys_global_symbol_to_c_name_address \
  20736. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20737. nm_file_list_spec \
  20738. lt_prog_compiler_no_builtin_flag \
  20739. lt_prog_compiler_pic \
  20740. lt_prog_compiler_wl \
  20741. lt_prog_compiler_static \
  20742. lt_cv_prog_compiler_c_o \
  20743. need_locks \
  20744. MANIFEST_TOOL \
  20745. DSYMUTIL \
  20746. NMEDIT \
  20747. LIPO \
  20748. OTOOL \
  20749. OTOOL64 \
  20750. shrext_cmds \
  20751. export_dynamic_flag_spec \
  20752. whole_archive_flag_spec \
  20753. compiler_needs_object \
  20754. with_gnu_ld \
  20755. allow_undefined_flag \
  20756. no_undefined_flag \
  20757. hardcode_libdir_flag_spec \
  20758. hardcode_libdir_separator \
  20759. exclude_expsyms \
  20760. include_expsyms \
  20761. file_list_spec \
  20762. variables_saved_for_relink \
  20763. libname_spec \
  20764. library_names_spec \
  20765. soname_spec \
  20766. install_override_mode \
  20767. finish_eval \
  20768. old_striplib \
  20769. striplib \
  20770. compiler_lib_search_dirs \
  20771. predep_objects \
  20772. postdep_objects \
  20773. predeps \
  20774. postdeps \
  20775. compiler_lib_search_path \
  20776. LD_CXX \
  20777. reload_flag_CXX \
  20778. compiler_CXX \
  20779. lt_prog_compiler_no_builtin_flag_CXX \
  20780. lt_prog_compiler_pic_CXX \
  20781. lt_prog_compiler_wl_CXX \
  20782. lt_prog_compiler_static_CXX \
  20783. lt_cv_prog_compiler_c_o_CXX \
  20784. export_dynamic_flag_spec_CXX \
  20785. whole_archive_flag_spec_CXX \
  20786. compiler_needs_object_CXX \
  20787. with_gnu_ld_CXX \
  20788. allow_undefined_flag_CXX \
  20789. no_undefined_flag_CXX \
  20790. hardcode_libdir_flag_spec_CXX \
  20791. hardcode_libdir_separator_CXX \
  20792. exclude_expsyms_CXX \
  20793. include_expsyms_CXX \
  20794. file_list_spec_CXX \
  20795. compiler_lib_search_dirs_CXX \
  20796. predep_objects_CXX \
  20797. postdep_objects_CXX \
  20798. predeps_CXX \
  20799. postdeps_CXX \
  20800. compiler_lib_search_path_CXX; do
  20801. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20802. *[\\\\\\\`\\"\\\$]*)
  20803. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20804. ;;
  20805. *)
  20806. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20807. ;;
  20808. esac
  20809. done
  20810. # Double-quote double-evaled strings.
  20811. for var in reload_cmds \
  20812. old_postinstall_cmds \
  20813. old_postuninstall_cmds \
  20814. old_archive_cmds \
  20815. extract_expsyms_cmds \
  20816. old_archive_from_new_cmds \
  20817. old_archive_from_expsyms_cmds \
  20818. archive_cmds \
  20819. archive_expsym_cmds \
  20820. module_cmds \
  20821. module_expsym_cmds \
  20822. export_symbols_cmds \
  20823. prelink_cmds \
  20824. postlink_cmds \
  20825. postinstall_cmds \
  20826. postuninstall_cmds \
  20827. finish_cmds \
  20828. sys_lib_search_path_spec \
  20829. sys_lib_dlsearch_path_spec \
  20830. reload_cmds_CXX \
  20831. old_archive_cmds_CXX \
  20832. old_archive_from_new_cmds_CXX \
  20833. old_archive_from_expsyms_cmds_CXX \
  20834. archive_cmds_CXX \
  20835. archive_expsym_cmds_CXX \
  20836. module_cmds_CXX \
  20837. module_expsym_cmds_CXX \
  20838. export_symbols_cmds_CXX \
  20839. prelink_cmds_CXX \
  20840. postlink_cmds_CXX; do
  20841. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20842. *[\\\\\\\`\\"\\\$]*)
  20843. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20844. ;;
  20845. *)
  20846. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20847. ;;
  20848. esac
  20849. done
  20850. ac_aux_dir='$ac_aux_dir'
  20851. xsi_shell='$xsi_shell'
  20852. lt_shell_append='$lt_shell_append'
  20853. # See if we are running on zsh, and set the options which allow our
  20854. # commands through without removal of \ escapes INIT.
  20855. if test -n "\${ZSH_VERSION+set}" ; then
  20856. setopt NO_GLOB_SUBST
  20857. fi
  20858. PACKAGE='$PACKAGE'
  20859. VERSION='$VERSION'
  20860. TIMESTAMP='$TIMESTAMP'
  20861. RM='$RM'
  20862. ofile='$ofile'
  20863. SUMMARY="$SUMMARY"
  20864. _ACEOF
  20865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20866. # Handling of arguments.
  20867. for ac_config_target in $ac_config_targets
  20868. do
  20869. case $ac_config_target in
  20870. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20871. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20872. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20873. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20874. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20875. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20876. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  20877. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  20878. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20879. esac
  20880. done
  20881. # If the user did not use the arguments to specify the items to instantiate,
  20882. # then the envvar interface is used. Set only those that are not.
  20883. # We use the long form for the default assignment because of an extremely
  20884. # bizarre bug on SunOS 4.1.3.
  20885. if $ac_need_defaults; then
  20886. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20887. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20888. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20889. fi
  20890. # Have a temporary directory for convenience. Make it in the build tree
  20891. # simply because there is no reason against having it here, and in addition,
  20892. # creating and moving files from /tmp can sometimes cause problems.
  20893. # Hook for its removal unless debugging.
  20894. # Note that there is a small window in which the directory will not be cleaned:
  20895. # after its creation but before its name has been assigned to `$tmp'.
  20896. $debug ||
  20897. {
  20898. tmp= ac_tmp=
  20899. trap 'exit_status=$?
  20900. : "${ac_tmp:=$tmp}"
  20901. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20902. ' 0
  20903. trap 'as_fn_exit 1' 1 2 13 15
  20904. }
  20905. # Create a (secure) tmp directory for tmp files.
  20906. {
  20907. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20908. test -d "$tmp"
  20909. } ||
  20910. {
  20911. tmp=./conf$$-$RANDOM
  20912. (umask 077 && mkdir "$tmp")
  20913. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20914. ac_tmp=$tmp
  20915. # Set up the scripts for CONFIG_FILES section.
  20916. # No need to generate them if there are no CONFIG_FILES.
  20917. # This happens for instance with `./config.status config.h'.
  20918. if test -n "$CONFIG_FILES"; then
  20919. ac_cr=`echo X | tr X '\015'`
  20920. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20921. # But we know of no other shell where ac_cr would be empty at this
  20922. # point, so we can use a bashism as a fallback.
  20923. if test "x$ac_cr" = x; then
  20924. eval ac_cr=\$\'\\r\'
  20925. fi
  20926. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20927. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20928. ac_cs_awk_cr='\\r'
  20929. else
  20930. ac_cs_awk_cr=$ac_cr
  20931. fi
  20932. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20933. _ACEOF
  20934. {
  20935. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20936. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20937. echo "_ACEOF"
  20938. } >conf$$subs.sh ||
  20939. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20940. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20941. ac_delim='%!_!# '
  20942. for ac_last_try in false false false false false :; do
  20943. . ./conf$$subs.sh ||
  20944. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20945. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20946. if test $ac_delim_n = $ac_delim_num; then
  20947. break
  20948. elif $ac_last_try; then
  20949. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20950. else
  20951. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20952. fi
  20953. done
  20954. rm -f conf$$subs.sh
  20955. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20956. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20957. _ACEOF
  20958. sed -n '
  20959. h
  20960. s/^/S["/; s/!.*/"]=/
  20961. p
  20962. g
  20963. s/^[^!]*!//
  20964. :repl
  20965. t repl
  20966. s/'"$ac_delim"'$//
  20967. t delim
  20968. :nl
  20969. h
  20970. s/\(.\{148\}\)..*/\1/
  20971. t more1
  20972. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20973. p
  20974. n
  20975. b repl
  20976. :more1
  20977. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20978. p
  20979. g
  20980. s/.\{148\}//
  20981. t nl
  20982. :delim
  20983. h
  20984. s/\(.\{148\}\)..*/\1/
  20985. t more2
  20986. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20987. p
  20988. b
  20989. :more2
  20990. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20991. p
  20992. g
  20993. s/.\{148\}//
  20994. t delim
  20995. ' <conf$$subs.awk | sed '
  20996. /^[^""]/{
  20997. N
  20998. s/\n//
  20999. }
  21000. ' >>$CONFIG_STATUS || ac_write_fail=1
  21001. rm -f conf$$subs.awk
  21002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21003. _ACAWK
  21004. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21005. for (key in S) S_is_set[key] = 1
  21006. FS = ""
  21007. }
  21008. {
  21009. line = $ 0
  21010. nfields = split(line, field, "@")
  21011. substed = 0
  21012. len = length(field[1])
  21013. for (i = 2; i < nfields; i++) {
  21014. key = field[i]
  21015. keylen = length(key)
  21016. if (S_is_set[key]) {
  21017. value = S[key]
  21018. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21019. len += length(value) + length(field[++i])
  21020. substed = 1
  21021. } else
  21022. len += 1 + keylen
  21023. }
  21024. print line
  21025. }
  21026. _ACAWK
  21027. _ACEOF
  21028. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21029. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21030. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21031. else
  21032. cat
  21033. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21034. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21035. _ACEOF
  21036. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21037. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21038. # trailing colons and then remove the whole line if VPATH becomes empty
  21039. # (actually we leave an empty line to preserve line numbers).
  21040. if test "x$srcdir" = x.; then
  21041. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21042. h
  21043. s///
  21044. s/^/:/
  21045. s/[ ]*$/:/
  21046. s/:\$(srcdir):/:/g
  21047. s/:\${srcdir}:/:/g
  21048. s/:@srcdir@:/:/g
  21049. s/^:*//
  21050. s/:*$//
  21051. x
  21052. s/\(=[ ]*\).*/\1/
  21053. G
  21054. s/\n//
  21055. s/^[^=]*=[ ]*$//
  21056. }'
  21057. fi
  21058. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21059. fi # test -n "$CONFIG_FILES"
  21060. # Set up the scripts for CONFIG_HEADERS section.
  21061. # No need to generate them if there are no CONFIG_HEADERS.
  21062. # This happens for instance with `./config.status Makefile'.
  21063. if test -n "$CONFIG_HEADERS"; then
  21064. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21065. BEGIN {
  21066. _ACEOF
  21067. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21068. # here-document in config.status, that substitutes the proper values into
  21069. # config.h.in to produce config.h.
  21070. # Create a delimiter string that does not exist in confdefs.h, to ease
  21071. # handling of long lines.
  21072. ac_delim='%!_!# '
  21073. for ac_last_try in false false :; do
  21074. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21075. if test -z "$ac_tt"; then
  21076. break
  21077. elif $ac_last_try; then
  21078. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21079. else
  21080. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21081. fi
  21082. done
  21083. # For the awk script, D is an array of macro values keyed by name,
  21084. # likewise P contains macro parameters if any. Preserve backslash
  21085. # newline sequences.
  21086. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21087. sed -n '
  21088. s/.\{148\}/&'"$ac_delim"'/g
  21089. t rset
  21090. :rset
  21091. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21092. t def
  21093. d
  21094. :def
  21095. s/\\$//
  21096. t bsnl
  21097. s/["\\]/\\&/g
  21098. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21099. D["\1"]=" \3"/p
  21100. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21101. d
  21102. :bsnl
  21103. s/["\\]/\\&/g
  21104. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21105. D["\1"]=" \3\\\\\\n"\\/p
  21106. t cont
  21107. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21108. t cont
  21109. d
  21110. :cont
  21111. n
  21112. s/.\{148\}/&'"$ac_delim"'/g
  21113. t clear
  21114. :clear
  21115. s/\\$//
  21116. t bsnlc
  21117. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21118. d
  21119. :bsnlc
  21120. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21121. b cont
  21122. ' <confdefs.h | sed '
  21123. s/'"$ac_delim"'/"\\\
  21124. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21125. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21126. for (key in D) D_is_set[key] = 1
  21127. FS = ""
  21128. }
  21129. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21130. line = \$ 0
  21131. split(line, arg, " ")
  21132. if (arg[1] == "#") {
  21133. defundef = arg[2]
  21134. mac1 = arg[3]
  21135. } else {
  21136. defundef = substr(arg[1], 2)
  21137. mac1 = arg[2]
  21138. }
  21139. split(mac1, mac2, "(") #)
  21140. macro = mac2[1]
  21141. prefix = substr(line, 1, index(line, defundef) - 1)
  21142. if (D_is_set[macro]) {
  21143. # Preserve the white space surrounding the "#".
  21144. print prefix "define", macro P[macro] D[macro]
  21145. next
  21146. } else {
  21147. # Replace #undef with comments. This is necessary, for example,
  21148. # in the case of _POSIX_SOURCE, which is predefined and required
  21149. # on some systems where configure will not decide to define it.
  21150. if (defundef == "undef") {
  21151. print "/*", prefix defundef, macro, "*/"
  21152. next
  21153. }
  21154. }
  21155. }
  21156. { print }
  21157. _ACAWK
  21158. _ACEOF
  21159. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21160. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21161. fi # test -n "$CONFIG_HEADERS"
  21162. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21163. shift
  21164. for ac_tag
  21165. do
  21166. case $ac_tag in
  21167. :[FHLC]) ac_mode=$ac_tag; continue;;
  21168. esac
  21169. case $ac_mode$ac_tag in
  21170. :[FHL]*:*);;
  21171. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21172. :[FH]-) ac_tag=-:-;;
  21173. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21174. esac
  21175. ac_save_IFS=$IFS
  21176. IFS=:
  21177. set x $ac_tag
  21178. IFS=$ac_save_IFS
  21179. shift
  21180. ac_file=$1
  21181. shift
  21182. case $ac_mode in
  21183. :L) ac_source=$1;;
  21184. :[FH])
  21185. ac_file_inputs=
  21186. for ac_f
  21187. do
  21188. case $ac_f in
  21189. -) ac_f="$ac_tmp/stdin";;
  21190. *) # Look for the file first in the build tree, then in the source tree
  21191. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21192. # because $ac_f cannot contain `:'.
  21193. test -f "$ac_f" ||
  21194. case $ac_f in
  21195. [\\/$]*) false;;
  21196. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21197. esac ||
  21198. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21199. esac
  21200. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21201. as_fn_append ac_file_inputs " '$ac_f'"
  21202. done
  21203. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21204. # use $as_me), people would be surprised to read:
  21205. # /* config.h. Generated by config.status. */
  21206. configure_input='Generated from '`
  21207. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21208. `' by configure.'
  21209. if test x"$ac_file" != x-; then
  21210. configure_input="$ac_file. $configure_input"
  21211. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21212. $as_echo "$as_me: creating $ac_file" >&6;}
  21213. fi
  21214. # Neutralize special characters interpreted by sed in replacement strings.
  21215. case $configure_input in #(
  21216. *\&* | *\|* | *\\* )
  21217. ac_sed_conf_input=`$as_echo "$configure_input" |
  21218. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21219. *) ac_sed_conf_input=$configure_input;;
  21220. esac
  21221. case $ac_tag in
  21222. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21223. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21224. esac
  21225. ;;
  21226. esac
  21227. ac_dir=`$as_dirname -- "$ac_file" ||
  21228. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21229. X"$ac_file" : 'X\(//\)[^/]' \| \
  21230. X"$ac_file" : 'X\(//\)$' \| \
  21231. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21232. $as_echo X"$ac_file" |
  21233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21234. s//\1/
  21235. q
  21236. }
  21237. /^X\(\/\/\)[^/].*/{
  21238. s//\1/
  21239. q
  21240. }
  21241. /^X\(\/\/\)$/{
  21242. s//\1/
  21243. q
  21244. }
  21245. /^X\(\/\).*/{
  21246. s//\1/
  21247. q
  21248. }
  21249. s/.*/./; q'`
  21250. as_dir="$ac_dir"; as_fn_mkdir_p
  21251. ac_builddir=.
  21252. case "$ac_dir" in
  21253. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21254. *)
  21255. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21256. # A ".." for each directory in $ac_dir_suffix.
  21257. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21258. case $ac_top_builddir_sub in
  21259. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21260. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21261. esac ;;
  21262. esac
  21263. ac_abs_top_builddir=$ac_pwd
  21264. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21265. # for backward compatibility:
  21266. ac_top_builddir=$ac_top_build_prefix
  21267. case $srcdir in
  21268. .) # We are building in place.
  21269. ac_srcdir=.
  21270. ac_top_srcdir=$ac_top_builddir_sub
  21271. ac_abs_top_srcdir=$ac_pwd ;;
  21272. [\\/]* | ?:[\\/]* ) # Absolute name.
  21273. ac_srcdir=$srcdir$ac_dir_suffix;
  21274. ac_top_srcdir=$srcdir
  21275. ac_abs_top_srcdir=$srcdir ;;
  21276. *) # Relative name.
  21277. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21278. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21279. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21280. esac
  21281. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21282. case $ac_mode in
  21283. :F)
  21284. #
  21285. # CONFIG_FILE
  21286. #
  21287. case $INSTALL in
  21288. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21289. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21290. esac
  21291. _ACEOF
  21292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21293. # If the template does not know about datarootdir, expand it.
  21294. # FIXME: This hack should be removed a few years after 2.60.
  21295. ac_datarootdir_hack=; ac_datarootdir_seen=
  21296. ac_sed_dataroot='
  21297. /datarootdir/ {
  21298. p
  21299. q
  21300. }
  21301. /@datadir@/p
  21302. /@docdir@/p
  21303. /@infodir@/p
  21304. /@localedir@/p
  21305. /@mandir@/p'
  21306. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21307. *datarootdir*) ac_datarootdir_seen=yes;;
  21308. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21310. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21311. _ACEOF
  21312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21313. ac_datarootdir_hack='
  21314. s&@datadir@&$datadir&g
  21315. s&@docdir@&$docdir&g
  21316. s&@infodir@&$infodir&g
  21317. s&@localedir@&$localedir&g
  21318. s&@mandir@&$mandir&g
  21319. s&\\\${datarootdir}&$datarootdir&g' ;;
  21320. esac
  21321. _ACEOF
  21322. # Neutralize VPATH when `$srcdir' = `.'.
  21323. # Shell code in configure.ac might set extrasub.
  21324. # FIXME: do we really want to maintain this feature?
  21325. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21326. ac_sed_extra="$ac_vpsub
  21327. $extrasub
  21328. _ACEOF
  21329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21330. :t
  21331. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21332. s|@configure_input@|$ac_sed_conf_input|;t t
  21333. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21334. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21335. s&@srcdir@&$ac_srcdir&;t t
  21336. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21337. s&@top_srcdir@&$ac_top_srcdir&;t t
  21338. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21339. s&@builddir@&$ac_builddir&;t t
  21340. s&@abs_builddir@&$ac_abs_builddir&;t t
  21341. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21342. s&@INSTALL@&$ac_INSTALL&;t t
  21343. $ac_datarootdir_hack
  21344. "
  21345. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21346. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21347. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21348. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21349. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21350. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21352. which seems to be undefined. Please make sure it is defined" >&5
  21353. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21354. which seems to be undefined. Please make sure it is defined" >&2;}
  21355. rm -f "$ac_tmp/stdin"
  21356. case $ac_file in
  21357. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21358. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21359. esac \
  21360. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21361. ;;
  21362. :H)
  21363. #
  21364. # CONFIG_HEADER
  21365. #
  21366. if test x"$ac_file" != x-; then
  21367. {
  21368. $as_echo "/* $configure_input */" \
  21369. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21370. } >"$ac_tmp/config.h" \
  21371. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21372. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21373. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21374. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21375. else
  21376. rm -f "$ac_file"
  21377. mv "$ac_tmp/config.h" "$ac_file" \
  21378. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21379. fi
  21380. else
  21381. $as_echo "/* $configure_input */" \
  21382. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21383. || as_fn_error $? "could not create -" "$LINENO" 5
  21384. fi
  21385. ;;
  21386. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21387. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21388. ;;
  21389. esac
  21390. case $ac_file$ac_mode in
  21391. "libtool":C)
  21392. # See if we are running on zsh, and set the options which allow our
  21393. # commands through without removal of \ escapes.
  21394. if test -n "${ZSH_VERSION+set}" ; then
  21395. setopt NO_GLOB_SUBST
  21396. fi
  21397. cfgfile="${ofile}T"
  21398. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21399. $RM "$cfgfile"
  21400. cat <<_LT_EOF >> "$cfgfile"
  21401. #! $SHELL
  21402. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21403. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21404. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21405. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21406. #
  21407. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21408. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21409. # Foundation, Inc.
  21410. # Written by Gordon Matzigkeit, 1996
  21411. #
  21412. # This file is part of GNU Libtool.
  21413. #
  21414. # GNU Libtool is free software; you can redistribute it and/or
  21415. # modify it under the terms of the GNU General Public License as
  21416. # published by the Free Software Foundation; either version 2 of
  21417. # the License, or (at your option) any later version.
  21418. #
  21419. # As a special exception to the GNU General Public License,
  21420. # if you distribute this file as part of a program or library that
  21421. # is built using GNU Libtool, you may include this file under the
  21422. # same distribution terms that you use for the rest of that program.
  21423. #
  21424. # GNU Libtool is distributed in the hope that it will be useful,
  21425. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21426. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21427. # GNU General Public License for more details.
  21428. #
  21429. # You should have received a copy of the GNU General Public License
  21430. # along with GNU Libtool; see the file COPYING. If not, a copy
  21431. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21432. # obtained by writing to the Free Software Foundation, Inc.,
  21433. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21434. # The names of the tagged configurations supported by this script.
  21435. available_tags="CXX "
  21436. # ### BEGIN LIBTOOL CONFIG
  21437. # Which release of libtool.m4 was used?
  21438. macro_version=$macro_version
  21439. macro_revision=$macro_revision
  21440. # Assembler program.
  21441. AS=$lt_AS
  21442. # DLL creation program.
  21443. DLLTOOL=$lt_DLLTOOL
  21444. # Object dumper program.
  21445. OBJDUMP=$lt_OBJDUMP
  21446. # Whether or not to build shared libraries.
  21447. build_libtool_libs=$enable_shared
  21448. # Whether or not to build static libraries.
  21449. build_old_libs=$enable_static
  21450. # What type of objects to build.
  21451. pic_mode=$pic_mode
  21452. # Whether or not to optimize for fast installation.
  21453. fast_install=$enable_fast_install
  21454. # Shell to use when invoking shell scripts.
  21455. SHELL=$lt_SHELL
  21456. # An echo program that protects backslashes.
  21457. ECHO=$lt_ECHO
  21458. # The PATH separator for the build system.
  21459. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21460. # The host system.
  21461. host_alias=$host_alias
  21462. host=$host
  21463. host_os=$host_os
  21464. # The build system.
  21465. build_alias=$build_alias
  21466. build=$build
  21467. build_os=$build_os
  21468. # A sed program that does not truncate output.
  21469. SED=$lt_SED
  21470. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21471. Xsed="\$SED -e 1s/^X//"
  21472. # A grep program that handles long lines.
  21473. GREP=$lt_GREP
  21474. # An ERE matcher.
  21475. EGREP=$lt_EGREP
  21476. # A literal string matcher.
  21477. FGREP=$lt_FGREP
  21478. # A BSD- or MS-compatible name lister.
  21479. NM=$lt_NM
  21480. # Whether we need soft or hard links.
  21481. LN_S=$lt_LN_S
  21482. # What is the maximum length of a command?
  21483. max_cmd_len=$max_cmd_len
  21484. # Object file suffix (normally "o").
  21485. objext=$ac_objext
  21486. # Executable file suffix (normally "").
  21487. exeext=$exeext
  21488. # whether the shell understands "unset".
  21489. lt_unset=$lt_unset
  21490. # turn spaces into newlines.
  21491. SP2NL=$lt_lt_SP2NL
  21492. # turn newlines into spaces.
  21493. NL2SP=$lt_lt_NL2SP
  21494. # convert \$build file names to \$host format.
  21495. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21496. # convert \$build files to toolchain format.
  21497. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21498. # Method to check whether dependent libraries are shared objects.
  21499. deplibs_check_method=$lt_deplibs_check_method
  21500. # Command to use when deplibs_check_method = "file_magic".
  21501. file_magic_cmd=$lt_file_magic_cmd
  21502. # How to find potential files when deplibs_check_method = "file_magic".
  21503. file_magic_glob=$lt_file_magic_glob
  21504. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21505. want_nocaseglob=$lt_want_nocaseglob
  21506. # Command to associate shared and link libraries.
  21507. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21508. # The archiver.
  21509. AR=$lt_AR
  21510. # Flags to create an archive.
  21511. AR_FLAGS=$lt_AR_FLAGS
  21512. # How to feed a file listing to the archiver.
  21513. archiver_list_spec=$lt_archiver_list_spec
  21514. # A symbol stripping program.
  21515. STRIP=$lt_STRIP
  21516. # Commands used to install an old-style archive.
  21517. RANLIB=$lt_RANLIB
  21518. old_postinstall_cmds=$lt_old_postinstall_cmds
  21519. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21520. # Whether to use a lock for old archive extraction.
  21521. lock_old_archive_extraction=$lock_old_archive_extraction
  21522. # A C compiler.
  21523. LTCC=$lt_CC
  21524. # LTCC compiler flags.
  21525. LTCFLAGS=$lt_CFLAGS
  21526. # Take the output of nm and produce a listing of raw symbols and C names.
  21527. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21528. # Transform the output of nm in a proper C declaration.
  21529. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21530. # Transform the output of nm in a C name address pair.
  21531. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21532. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21533. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21534. # Specify filename containing input files for \$NM.
  21535. nm_file_list_spec=$lt_nm_file_list_spec
  21536. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21537. lt_sysroot=$lt_sysroot
  21538. # The name of the directory that contains temporary libtool files.
  21539. objdir=$objdir
  21540. # Used to examine libraries when file_magic_cmd begins with "file".
  21541. MAGIC_CMD=$MAGIC_CMD
  21542. # Must we lock files when doing compilation?
  21543. need_locks=$lt_need_locks
  21544. # Manifest tool.
  21545. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21546. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21547. DSYMUTIL=$lt_DSYMUTIL
  21548. # Tool to change global to local symbols on Mac OS X.
  21549. NMEDIT=$lt_NMEDIT
  21550. # Tool to manipulate fat objects and archives on Mac OS X.
  21551. LIPO=$lt_LIPO
  21552. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21553. OTOOL=$lt_OTOOL
  21554. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21555. OTOOL64=$lt_OTOOL64
  21556. # Old archive suffix (normally "a").
  21557. libext=$libext
  21558. # Shared library suffix (normally ".so").
  21559. shrext_cmds=$lt_shrext_cmds
  21560. # The commands to extract the exported symbol list from a shared archive.
  21561. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21562. # Variables whose values should be saved in libtool wrapper scripts and
  21563. # restored at link time.
  21564. variables_saved_for_relink=$lt_variables_saved_for_relink
  21565. # Do we need the "lib" prefix for modules?
  21566. need_lib_prefix=$need_lib_prefix
  21567. # Do we need a version for libraries?
  21568. need_version=$need_version
  21569. # Library versioning type.
  21570. version_type=$version_type
  21571. # Shared library runtime path variable.
  21572. runpath_var=$runpath_var
  21573. # Shared library path variable.
  21574. shlibpath_var=$shlibpath_var
  21575. # Is shlibpath searched before the hard-coded library search path?
  21576. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21577. # Format of library name prefix.
  21578. libname_spec=$lt_libname_spec
  21579. # List of archive names. First name is the real one, the rest are links.
  21580. # The last name is the one that the linker finds with -lNAME
  21581. library_names_spec=$lt_library_names_spec
  21582. # The coded name of the library, if different from the real name.
  21583. soname_spec=$lt_soname_spec
  21584. # Permission mode override for installation of shared libraries.
  21585. install_override_mode=$lt_install_override_mode
  21586. # Command to use after installation of a shared archive.
  21587. postinstall_cmds=$lt_postinstall_cmds
  21588. # Command to use after uninstallation of a shared archive.
  21589. postuninstall_cmds=$lt_postuninstall_cmds
  21590. # Commands used to finish a libtool library installation in a directory.
  21591. finish_cmds=$lt_finish_cmds
  21592. # As "finish_cmds", except a single script fragment to be evaled but
  21593. # not shown.
  21594. finish_eval=$lt_finish_eval
  21595. # Whether we should hardcode library paths into libraries.
  21596. hardcode_into_libs=$hardcode_into_libs
  21597. # Compile-time system search path for libraries.
  21598. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21599. # Run-time system search path for libraries.
  21600. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21601. # Whether dlopen is supported.
  21602. dlopen_support=$enable_dlopen
  21603. # Whether dlopen of programs is supported.
  21604. dlopen_self=$enable_dlopen_self
  21605. # Whether dlopen of statically linked programs is supported.
  21606. dlopen_self_static=$enable_dlopen_self_static
  21607. # Commands to strip libraries.
  21608. old_striplib=$lt_old_striplib
  21609. striplib=$lt_striplib
  21610. # The linker used to build libraries.
  21611. LD=$lt_LD
  21612. # How to create reloadable object files.
  21613. reload_flag=$lt_reload_flag
  21614. reload_cmds=$lt_reload_cmds
  21615. # Commands used to build an old-style archive.
  21616. old_archive_cmds=$lt_old_archive_cmds
  21617. # A language specific compiler.
  21618. CC=$lt_compiler
  21619. # Is the compiler the GNU compiler?
  21620. with_gcc=$GCC
  21621. # Compiler flag to turn off builtin functions.
  21622. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21623. # Additional compiler flags for building library objects.
  21624. pic_flag=$lt_lt_prog_compiler_pic
  21625. # How to pass a linker flag through the compiler.
  21626. wl=$lt_lt_prog_compiler_wl
  21627. # Compiler flag to prevent dynamic linking.
  21628. link_static_flag=$lt_lt_prog_compiler_static
  21629. # Does compiler simultaneously support -c and -o options?
  21630. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21631. # Whether or not to add -lc for building shared libraries.
  21632. build_libtool_need_lc=$archive_cmds_need_lc
  21633. # Whether or not to disallow shared libs when runtime libs are static.
  21634. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21635. # Compiler flag to allow reflexive dlopens.
  21636. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21637. # Compiler flag to generate shared objects directly from archives.
  21638. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21639. # Whether the compiler copes with passing no objects directly.
  21640. compiler_needs_object=$lt_compiler_needs_object
  21641. # Create an old-style archive from a shared archive.
  21642. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21643. # Create a temporary old-style archive to link instead of a shared archive.
  21644. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21645. # Commands used to build a shared archive.
  21646. archive_cmds=$lt_archive_cmds
  21647. archive_expsym_cmds=$lt_archive_expsym_cmds
  21648. # Commands used to build a loadable module if different from building
  21649. # a shared archive.
  21650. module_cmds=$lt_module_cmds
  21651. module_expsym_cmds=$lt_module_expsym_cmds
  21652. # Whether we are building with GNU ld or not.
  21653. with_gnu_ld=$lt_with_gnu_ld
  21654. # Flag that allows shared libraries with undefined symbols to be built.
  21655. allow_undefined_flag=$lt_allow_undefined_flag
  21656. # Flag that enforces no undefined symbols.
  21657. no_undefined_flag=$lt_no_undefined_flag
  21658. # Flag to hardcode \$libdir into a binary during linking.
  21659. # This must work even if \$libdir does not exist
  21660. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21661. # Whether we need a single "-rpath" flag with a separated argument.
  21662. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21663. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21664. # DIR into the resulting binary.
  21665. hardcode_direct=$hardcode_direct
  21666. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21667. # DIR into the resulting binary and the resulting library dependency is
  21668. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21669. # library is relocated.
  21670. hardcode_direct_absolute=$hardcode_direct_absolute
  21671. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21672. # into the resulting binary.
  21673. hardcode_minus_L=$hardcode_minus_L
  21674. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21675. # into the resulting binary.
  21676. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21677. # Set to "yes" if building a shared library automatically hardcodes DIR
  21678. # into the library and all subsequent libraries and executables linked
  21679. # against it.
  21680. hardcode_automatic=$hardcode_automatic
  21681. # Set to yes if linker adds runtime paths of dependent libraries
  21682. # to runtime path list.
  21683. inherit_rpath=$inherit_rpath
  21684. # Whether libtool must link a program against all its dependency libraries.
  21685. link_all_deplibs=$link_all_deplibs
  21686. # Set to "yes" if exported symbols are required.
  21687. always_export_symbols=$always_export_symbols
  21688. # The commands to list exported symbols.
  21689. export_symbols_cmds=$lt_export_symbols_cmds
  21690. # Symbols that should not be listed in the preloaded symbols.
  21691. exclude_expsyms=$lt_exclude_expsyms
  21692. # Symbols that must always be exported.
  21693. include_expsyms=$lt_include_expsyms
  21694. # Commands necessary for linking programs (against libraries) with templates.
  21695. prelink_cmds=$lt_prelink_cmds
  21696. # Commands necessary for finishing linking programs.
  21697. postlink_cmds=$lt_postlink_cmds
  21698. # Specify filename containing input files.
  21699. file_list_spec=$lt_file_list_spec
  21700. # How to hardcode a shared library path into an executable.
  21701. hardcode_action=$hardcode_action
  21702. # The directories searched by this compiler when creating a shared library.
  21703. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21704. # Dependencies to place before and after the objects being linked to
  21705. # create a shared library.
  21706. predep_objects=$lt_predep_objects
  21707. postdep_objects=$lt_postdep_objects
  21708. predeps=$lt_predeps
  21709. postdeps=$lt_postdeps
  21710. # The library search path used internally by the compiler when linking
  21711. # a shared library.
  21712. compiler_lib_search_path=$lt_compiler_lib_search_path
  21713. # ### END LIBTOOL CONFIG
  21714. _LT_EOF
  21715. case $host_os in
  21716. aix3*)
  21717. cat <<\_LT_EOF >> "$cfgfile"
  21718. # AIX sometimes has problems with the GCC collect2 program. For some
  21719. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21720. # vanish in a puff of smoke.
  21721. if test "X${COLLECT_NAMES+set}" != Xset; then
  21722. COLLECT_NAMES=
  21723. export COLLECT_NAMES
  21724. fi
  21725. _LT_EOF
  21726. ;;
  21727. esac
  21728. ltmain="$ac_aux_dir/ltmain.sh"
  21729. # We use sed instead of cat because bash on DJGPP gets confused if
  21730. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21731. # text mode, it properly converts lines to CR/LF. This bash problem
  21732. # is reportedly fixed, but why not run on old versions too?
  21733. sed '$q' "$ltmain" >> "$cfgfile" \
  21734. || (rm -f "$cfgfile"; exit 1)
  21735. if test x"$xsi_shell" = xyes; then
  21736. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21737. func_dirname ()\
  21738. {\
  21739. \ case ${1} in\
  21740. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21741. \ * ) func_dirname_result="${3}" ;;\
  21742. \ esac\
  21743. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21744. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21745. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21746. test 0 -eq $? || _lt_function_replace_fail=:
  21747. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21748. func_basename ()\
  21749. {\
  21750. \ func_basename_result="${1##*/}"\
  21751. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21752. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21753. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21754. test 0 -eq $? || _lt_function_replace_fail=:
  21755. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21756. func_dirname_and_basename ()\
  21757. {\
  21758. \ case ${1} in\
  21759. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21760. \ * ) func_dirname_result="${3}" ;;\
  21761. \ esac\
  21762. \ func_basename_result="${1##*/}"\
  21763. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21764. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21765. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21766. test 0 -eq $? || _lt_function_replace_fail=:
  21767. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21768. func_stripname ()\
  21769. {\
  21770. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21771. \ # positional parameters, so assign one to ordinary parameter first.\
  21772. \ func_stripname_result=${3}\
  21773. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21774. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21775. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21776. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21777. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21778. test 0 -eq $? || _lt_function_replace_fail=:
  21779. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21780. func_split_long_opt ()\
  21781. {\
  21782. \ func_split_long_opt_name=${1%%=*}\
  21783. \ func_split_long_opt_arg=${1#*=}\
  21784. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21785. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21786. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21787. test 0 -eq $? || _lt_function_replace_fail=:
  21788. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21789. func_split_short_opt ()\
  21790. {\
  21791. \ func_split_short_opt_arg=${1#??}\
  21792. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21793. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21794. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21795. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21796. test 0 -eq $? || _lt_function_replace_fail=:
  21797. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21798. func_lo2o ()\
  21799. {\
  21800. \ case ${1} in\
  21801. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21802. \ *) func_lo2o_result=${1} ;;\
  21803. \ esac\
  21804. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21805. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21806. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21807. test 0 -eq $? || _lt_function_replace_fail=:
  21808. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21809. func_xform ()\
  21810. {\
  21811. func_xform_result=${1%.*}.lo\
  21812. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21813. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21814. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21815. test 0 -eq $? || _lt_function_replace_fail=:
  21816. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21817. func_arith ()\
  21818. {\
  21819. func_arith_result=$(( $* ))\
  21820. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21821. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21822. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21823. test 0 -eq $? || _lt_function_replace_fail=:
  21824. sed -e '/^func_len ()$/,/^} # func_len /c\
  21825. func_len ()\
  21826. {\
  21827. func_len_result=${#1}\
  21828. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21829. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21830. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21831. test 0 -eq $? || _lt_function_replace_fail=:
  21832. fi
  21833. if test x"$lt_shell_append" = xyes; then
  21834. sed -e '/^func_append ()$/,/^} # func_append /c\
  21835. func_append ()\
  21836. {\
  21837. eval "${1}+=\\${2}"\
  21838. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21839. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21840. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21841. test 0 -eq $? || _lt_function_replace_fail=:
  21842. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21843. func_append_quoted ()\
  21844. {\
  21845. \ func_quote_for_eval "${2}"\
  21846. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21847. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21848. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21849. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21850. test 0 -eq $? || _lt_function_replace_fail=:
  21851. # Save a `func_append' function call where possible by direct use of '+='
  21852. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21853. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21854. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21855. test 0 -eq $? || _lt_function_replace_fail=:
  21856. else
  21857. # Save a `func_append' function call even when '+=' is not available
  21858. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21859. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21860. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21861. test 0 -eq $? || _lt_function_replace_fail=:
  21862. fi
  21863. if test x"$_lt_function_replace_fail" = x":"; then
  21864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21865. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21866. fi
  21867. mv -f "$cfgfile" "$ofile" ||
  21868. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21869. chmod +x "$ofile"
  21870. cat <<_LT_EOF >> "$ofile"
  21871. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21872. # The linker used to build libraries.
  21873. LD=$lt_LD_CXX
  21874. # How to create reloadable object files.
  21875. reload_flag=$lt_reload_flag_CXX
  21876. reload_cmds=$lt_reload_cmds_CXX
  21877. # Commands used to build an old-style archive.
  21878. old_archive_cmds=$lt_old_archive_cmds_CXX
  21879. # A language specific compiler.
  21880. CC=$lt_compiler_CXX
  21881. # Is the compiler the GNU compiler?
  21882. with_gcc=$GCC_CXX
  21883. # Compiler flag to turn off builtin functions.
  21884. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21885. # Additional compiler flags for building library objects.
  21886. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21887. # How to pass a linker flag through the compiler.
  21888. wl=$lt_lt_prog_compiler_wl_CXX
  21889. # Compiler flag to prevent dynamic linking.
  21890. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21891. # Does compiler simultaneously support -c and -o options?
  21892. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21893. # Whether or not to add -lc for building shared libraries.
  21894. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21895. # Whether or not to disallow shared libs when runtime libs are static.
  21896. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21897. # Compiler flag to allow reflexive dlopens.
  21898. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21899. # Compiler flag to generate shared objects directly from archives.
  21900. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21901. # Whether the compiler copes with passing no objects directly.
  21902. compiler_needs_object=$lt_compiler_needs_object_CXX
  21903. # Create an old-style archive from a shared archive.
  21904. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21905. # Create a temporary old-style archive to link instead of a shared archive.
  21906. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21907. # Commands used to build a shared archive.
  21908. archive_cmds=$lt_archive_cmds_CXX
  21909. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21910. # Commands used to build a loadable module if different from building
  21911. # a shared archive.
  21912. module_cmds=$lt_module_cmds_CXX
  21913. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21914. # Whether we are building with GNU ld or not.
  21915. with_gnu_ld=$lt_with_gnu_ld_CXX
  21916. # Flag that allows shared libraries with undefined symbols to be built.
  21917. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21918. # Flag that enforces no undefined symbols.
  21919. no_undefined_flag=$lt_no_undefined_flag_CXX
  21920. # Flag to hardcode \$libdir into a binary during linking.
  21921. # This must work even if \$libdir does not exist
  21922. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21923. # Whether we need a single "-rpath" flag with a separated argument.
  21924. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21925. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21926. # DIR into the resulting binary.
  21927. hardcode_direct=$hardcode_direct_CXX
  21928. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21929. # DIR into the resulting binary and the resulting library dependency is
  21930. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21931. # library is relocated.
  21932. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21933. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21934. # into the resulting binary.
  21935. hardcode_minus_L=$hardcode_minus_L_CXX
  21936. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21937. # into the resulting binary.
  21938. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21939. # Set to "yes" if building a shared library automatically hardcodes DIR
  21940. # into the library and all subsequent libraries and executables linked
  21941. # against it.
  21942. hardcode_automatic=$hardcode_automatic_CXX
  21943. # Set to yes if linker adds runtime paths of dependent libraries
  21944. # to runtime path list.
  21945. inherit_rpath=$inherit_rpath_CXX
  21946. # Whether libtool must link a program against all its dependency libraries.
  21947. link_all_deplibs=$link_all_deplibs_CXX
  21948. # Set to "yes" if exported symbols are required.
  21949. always_export_symbols=$always_export_symbols_CXX
  21950. # The commands to list exported symbols.
  21951. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21952. # Symbols that should not be listed in the preloaded symbols.
  21953. exclude_expsyms=$lt_exclude_expsyms_CXX
  21954. # Symbols that must always be exported.
  21955. include_expsyms=$lt_include_expsyms_CXX
  21956. # Commands necessary for linking programs (against libraries) with templates.
  21957. prelink_cmds=$lt_prelink_cmds_CXX
  21958. # Commands necessary for finishing linking programs.
  21959. postlink_cmds=$lt_postlink_cmds_CXX
  21960. # Specify filename containing input files.
  21961. file_list_spec=$lt_file_list_spec_CXX
  21962. # How to hardcode a shared library path into an executable.
  21963. hardcode_action=$hardcode_action_CXX
  21964. # The directories searched by this compiler when creating a shared library.
  21965. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21966. # Dependencies to place before and after the objects being linked to
  21967. # create a shared library.
  21968. predep_objects=$lt_predep_objects_CXX
  21969. postdep_objects=$lt_postdep_objects_CXX
  21970. predeps=$lt_predeps_CXX
  21971. postdeps=$lt_postdeps_CXX
  21972. # The library search path used internally by the compiler when linking
  21973. # a shared library.
  21974. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21975. # ### END LIBTOOL TAG CONFIG: CXX
  21976. _LT_EOF
  21977. ;;
  21978. "sdl2_config":C) chmod a+x sdl2-config ;;
  21979. "summary":C) echo -en "$SUMMARY" ;;
  21980. esac
  21981. done # for ac_tag
  21982. as_fn_exit 0
  21983. _ACEOF
  21984. ac_clean_files=$ac_clean_files_save
  21985. test $ac_write_fail = 0 ||
  21986. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21987. # configure is writing to config.log, and then calls config.status.
  21988. # config.status does its own redirection, appending to config.log.
  21989. # Unfortunately, on DOS this fails, as config.log is still kept open
  21990. # by configure, so config.status won't be able to write to it; its
  21991. # output is simply discarded. So we exec the FD to /dev/null,
  21992. # effectively closing config.log, so it can be properly (re)opened and
  21993. # appended to by config.status. When coming back to configure, we
  21994. # need to make the FD available again.
  21995. if test "$no_create" != yes; then
  21996. ac_cs_success=:
  21997. ac_config_status_args=
  21998. test "$silent" = yes &&
  21999. ac_config_status_args="$ac_config_status_args --quiet"
  22000. exec 5>/dev/null
  22001. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22002. exec 5>>config.log
  22003. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22004. # would make configure fail if this is the last instruction.
  22005. $ac_cs_success || as_fn_exit 1
  22006. fi
  22007. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22009. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22010. fi