configure 763 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101
  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_mx6
  784. enable_video_cocoa
  785. enable_video_directfb
  786. enable_directfb_shared
  787. enable_fusionsound
  788. enable_fusionsound_shared
  789. enable_video_dummy
  790. enable_video_opengl
  791. enable_video_opengles
  792. enable_libudev
  793. enable_dbus
  794. enable_ibus
  795. enable_input_tslib
  796. enable_pthreads
  797. enable_pthread_sem
  798. enable_directx
  799. enable_sdl_dlopen
  800. enable_clock_gettime
  801. enable_rpath
  802. enable_render_d3d
  803. '
  804. ac_precious_vars='build_alias
  805. host_alias
  806. target_alias
  807. CC
  808. CFLAGS
  809. LDFLAGS
  810. LIBS
  811. CPPFLAGS
  812. CPP
  813. CXX
  814. CXXFLAGS
  815. CCC
  816. CXXCPP
  817. XMKMF'
  818. # Initialize some variables set by options.
  819. ac_init_help=
  820. ac_init_version=false
  821. ac_unrecognized_opts=
  822. ac_unrecognized_sep=
  823. # The variables have the same names as the options, with
  824. # dashes changed to underlines.
  825. cache_file=/dev/null
  826. exec_prefix=NONE
  827. no_create=
  828. no_recursion=
  829. prefix=NONE
  830. program_prefix=NONE
  831. program_suffix=NONE
  832. program_transform_name=s,x,x,
  833. silent=
  834. site=
  835. srcdir=
  836. verbose=
  837. x_includes=NONE
  838. x_libraries=NONE
  839. # Installation directory options.
  840. # These are left unexpanded so users can "make install exec_prefix=/foo"
  841. # and all the variables that are supposed to be based on exec_prefix
  842. # by default will actually change.
  843. # Use braces instead of parens because sh, perl, etc. also accept them.
  844. # (The list follows the same order as the GNU Coding Standards.)
  845. bindir='${exec_prefix}/bin'
  846. sbindir='${exec_prefix}/sbin'
  847. libexecdir='${exec_prefix}/libexec'
  848. datarootdir='${prefix}/share'
  849. datadir='${datarootdir}'
  850. sysconfdir='${prefix}/etc'
  851. sharedstatedir='${prefix}/com'
  852. localstatedir='${prefix}/var'
  853. includedir='${prefix}/include'
  854. oldincludedir='/usr/include'
  855. docdir='${datarootdir}/doc/${PACKAGE}'
  856. infodir='${datarootdir}/info'
  857. htmldir='${docdir}'
  858. dvidir='${docdir}'
  859. pdfdir='${docdir}'
  860. psdir='${docdir}'
  861. libdir='${exec_prefix}/lib'
  862. localedir='${datarootdir}/locale'
  863. mandir='${datarootdir}/man'
  864. ac_prev=
  865. ac_dashdash=
  866. for ac_option
  867. do
  868. # If the previous option needs an argument, assign it.
  869. if test -n "$ac_prev"; then
  870. eval $ac_prev=\$ac_option
  871. ac_prev=
  872. continue
  873. fi
  874. case $ac_option in
  875. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  876. *=) ac_optarg= ;;
  877. *) ac_optarg=yes ;;
  878. esac
  879. # Accept the important Cygnus configure options, so we can diagnose typos.
  880. case $ac_dashdash$ac_option in
  881. --)
  882. ac_dashdash=yes ;;
  883. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  884. ac_prev=bindir ;;
  885. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  886. bindir=$ac_optarg ;;
  887. -build | --build | --buil | --bui | --bu)
  888. ac_prev=build_alias ;;
  889. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  890. build_alias=$ac_optarg ;;
  891. -cache-file | --cache-file | --cache-fil | --cache-fi \
  892. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  893. ac_prev=cache_file ;;
  894. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  895. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  896. cache_file=$ac_optarg ;;
  897. --config-cache | -C)
  898. cache_file=config.cache ;;
  899. -datadir | --datadir | --datadi | --datad)
  900. ac_prev=datadir ;;
  901. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  902. datadir=$ac_optarg ;;
  903. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  904. | --dataroo | --dataro | --datar)
  905. ac_prev=datarootdir ;;
  906. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  907. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  908. datarootdir=$ac_optarg ;;
  909. -disable-* | --disable-*)
  910. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  911. # Reject names that are not valid shell variable names.
  912. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  913. as_fn_error $? "invalid feature name: $ac_useropt"
  914. ac_useropt_orig=$ac_useropt
  915. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  916. case $ac_user_opts in
  917. *"
  918. "enable_$ac_useropt"
  919. "*) ;;
  920. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  921. ac_unrecognized_sep=', ';;
  922. esac
  923. eval enable_$ac_useropt=no ;;
  924. -docdir | --docdir | --docdi | --doc | --do)
  925. ac_prev=docdir ;;
  926. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  927. docdir=$ac_optarg ;;
  928. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  929. ac_prev=dvidir ;;
  930. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  931. dvidir=$ac_optarg ;;
  932. -enable-* | --enable-*)
  933. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  934. # Reject names that are not valid shell variable names.
  935. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  936. as_fn_error $? "invalid feature name: $ac_useropt"
  937. ac_useropt_orig=$ac_useropt
  938. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  939. case $ac_user_opts in
  940. *"
  941. "enable_$ac_useropt"
  942. "*) ;;
  943. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  944. ac_unrecognized_sep=', ';;
  945. esac
  946. eval enable_$ac_useropt=\$ac_optarg ;;
  947. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  948. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  949. | --exec | --exe | --ex)
  950. ac_prev=exec_prefix ;;
  951. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  952. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  953. | --exec=* | --exe=* | --ex=*)
  954. exec_prefix=$ac_optarg ;;
  955. -gas | --gas | --ga | --g)
  956. # Obsolete; use --with-gas.
  957. with_gas=yes ;;
  958. -help | --help | --hel | --he | -h)
  959. ac_init_help=long ;;
  960. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  961. ac_init_help=recursive ;;
  962. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  963. ac_init_help=short ;;
  964. -host | --host | --hos | --ho)
  965. ac_prev=host_alias ;;
  966. -host=* | --host=* | --hos=* | --ho=*)
  967. host_alias=$ac_optarg ;;
  968. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  969. ac_prev=htmldir ;;
  970. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  971. | --ht=*)
  972. htmldir=$ac_optarg ;;
  973. -includedir | --includedir | --includedi | --included | --include \
  974. | --includ | --inclu | --incl | --inc)
  975. ac_prev=includedir ;;
  976. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  977. | --includ=* | --inclu=* | --incl=* | --inc=*)
  978. includedir=$ac_optarg ;;
  979. -infodir | --infodir | --infodi | --infod | --info | --inf)
  980. ac_prev=infodir ;;
  981. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  982. infodir=$ac_optarg ;;
  983. -libdir | --libdir | --libdi | --libd)
  984. ac_prev=libdir ;;
  985. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  986. libdir=$ac_optarg ;;
  987. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  988. | --libexe | --libex | --libe)
  989. ac_prev=libexecdir ;;
  990. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  991. | --libexe=* | --libex=* | --libe=*)
  992. libexecdir=$ac_optarg ;;
  993. -localedir | --localedir | --localedi | --localed | --locale)
  994. ac_prev=localedir ;;
  995. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  996. localedir=$ac_optarg ;;
  997. -localstatedir | --localstatedir | --localstatedi | --localstated \
  998. | --localstate | --localstat | --localsta | --localst | --locals)
  999. ac_prev=localstatedir ;;
  1000. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1001. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1002. localstatedir=$ac_optarg ;;
  1003. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1004. ac_prev=mandir ;;
  1005. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1006. mandir=$ac_optarg ;;
  1007. -nfp | --nfp | --nf)
  1008. # Obsolete; use --without-fp.
  1009. with_fp=no ;;
  1010. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1011. | --no-cr | --no-c | -n)
  1012. no_create=yes ;;
  1013. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1014. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1015. no_recursion=yes ;;
  1016. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1017. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1018. | --oldin | --oldi | --old | --ol | --o)
  1019. ac_prev=oldincludedir ;;
  1020. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1021. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1022. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1023. oldincludedir=$ac_optarg ;;
  1024. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1025. ac_prev=prefix ;;
  1026. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1027. prefix=$ac_optarg ;;
  1028. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1029. | --program-pre | --program-pr | --program-p)
  1030. ac_prev=program_prefix ;;
  1031. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1032. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1033. program_prefix=$ac_optarg ;;
  1034. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1035. | --program-suf | --program-su | --program-s)
  1036. ac_prev=program_suffix ;;
  1037. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1038. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1039. program_suffix=$ac_optarg ;;
  1040. -program-transform-name | --program-transform-name \
  1041. | --program-transform-nam | --program-transform-na \
  1042. | --program-transform-n | --program-transform- \
  1043. | --program-transform | --program-transfor \
  1044. | --program-transfo | --program-transf \
  1045. | --program-trans | --program-tran \
  1046. | --progr-tra | --program-tr | --program-t)
  1047. ac_prev=program_transform_name ;;
  1048. -program-transform-name=* | --program-transform-name=* \
  1049. | --program-transform-nam=* | --program-transform-na=* \
  1050. | --program-transform-n=* | --program-transform-=* \
  1051. | --program-transform=* | --program-transfor=* \
  1052. | --program-transfo=* | --program-transf=* \
  1053. | --program-trans=* | --program-tran=* \
  1054. | --progr-tra=* | --program-tr=* | --program-t=*)
  1055. program_transform_name=$ac_optarg ;;
  1056. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1057. ac_prev=pdfdir ;;
  1058. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1059. pdfdir=$ac_optarg ;;
  1060. -psdir | --psdir | --psdi | --psd | --ps)
  1061. ac_prev=psdir ;;
  1062. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1063. psdir=$ac_optarg ;;
  1064. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1065. | -silent | --silent | --silen | --sile | --sil)
  1066. silent=yes ;;
  1067. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1068. ac_prev=sbindir ;;
  1069. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1070. | --sbi=* | --sb=*)
  1071. sbindir=$ac_optarg ;;
  1072. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1073. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1074. | --sharedst | --shareds | --shared | --share | --shar \
  1075. | --sha | --sh)
  1076. ac_prev=sharedstatedir ;;
  1077. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1078. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1079. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1080. | --sha=* | --sh=*)
  1081. sharedstatedir=$ac_optarg ;;
  1082. -site | --site | --sit)
  1083. ac_prev=site ;;
  1084. -site=* | --site=* | --sit=*)
  1085. site=$ac_optarg ;;
  1086. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1087. ac_prev=srcdir ;;
  1088. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1089. srcdir=$ac_optarg ;;
  1090. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1091. | --syscon | --sysco | --sysc | --sys | --sy)
  1092. ac_prev=sysconfdir ;;
  1093. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1094. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1095. sysconfdir=$ac_optarg ;;
  1096. -target | --target | --targe | --targ | --tar | --ta | --t)
  1097. ac_prev=target_alias ;;
  1098. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1099. target_alias=$ac_optarg ;;
  1100. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1101. verbose=yes ;;
  1102. -version | --version | --versio | --versi | --vers | -V)
  1103. ac_init_version=: ;;
  1104. -with-* | --with-*)
  1105. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1108. as_fn_error $? "invalid package name: $ac_useropt"
  1109. ac_useropt_orig=$ac_useropt
  1110. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1111. case $ac_user_opts in
  1112. *"
  1113. "with_$ac_useropt"
  1114. "*) ;;
  1115. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1116. ac_unrecognized_sep=', ';;
  1117. esac
  1118. eval with_$ac_useropt=\$ac_optarg ;;
  1119. -without-* | --without-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error $? "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=no ;;
  1134. --x)
  1135. # Obsolete; use --with-x.
  1136. with_x=yes ;;
  1137. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1138. | --x-incl | --x-inc | --x-in | --x-i)
  1139. ac_prev=x_includes ;;
  1140. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1141. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1142. x_includes=$ac_optarg ;;
  1143. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1144. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1145. ac_prev=x_libraries ;;
  1146. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1147. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1148. x_libraries=$ac_optarg ;;
  1149. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1150. Try \`$0 --help' for more information"
  1151. ;;
  1152. *=*)
  1153. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1154. # Reject names that are not valid shell variable names.
  1155. case $ac_envvar in #(
  1156. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1157. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1158. esac
  1159. eval $ac_envvar=\$ac_optarg
  1160. export $ac_envvar ;;
  1161. *)
  1162. # FIXME: should be removed in autoconf 3.0.
  1163. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1164. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1165. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1166. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1167. ;;
  1168. esac
  1169. done
  1170. if test -n "$ac_prev"; then
  1171. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1172. as_fn_error $? "missing argument to $ac_option"
  1173. fi
  1174. if test -n "$ac_unrecognized_opts"; then
  1175. case $enable_option_checking in
  1176. no) ;;
  1177. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1178. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1179. esac
  1180. fi
  1181. # Check all directory arguments for consistency.
  1182. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1183. datadir sysconfdir sharedstatedir localstatedir includedir \
  1184. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1185. libdir localedir mandir
  1186. do
  1187. eval ac_val=\$$ac_var
  1188. # Remove trailing slashes.
  1189. case $ac_val in
  1190. */ )
  1191. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1192. eval $ac_var=\$ac_val;;
  1193. esac
  1194. # Be sure to have absolute directory names.
  1195. case $ac_val in
  1196. [\\/$]* | ?:[\\/]* ) continue;;
  1197. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1198. esac
  1199. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1200. done
  1201. # There might be people who depend on the old broken behavior: `$host'
  1202. # used to hold the argument of --host etc.
  1203. # FIXME: To remove some day.
  1204. build=$build_alias
  1205. host=$host_alias
  1206. target=$target_alias
  1207. # FIXME: To remove some day.
  1208. if test "x$host_alias" != x; then
  1209. if test "x$build_alias" = x; then
  1210. cross_compiling=maybe
  1211. elif test "x$build_alias" != "x$host_alias"; then
  1212. cross_compiling=yes
  1213. fi
  1214. fi
  1215. ac_tool_prefix=
  1216. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1217. test "$silent" = yes && exec 6>/dev/null
  1218. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1219. ac_ls_di=`ls -di .` &&
  1220. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1221. as_fn_error $? "working directory cannot be determined"
  1222. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223. as_fn_error $? "pwd does not report name of working directory"
  1224. # Find the source files, if location was not specified.
  1225. if test -z "$srcdir"; then
  1226. ac_srcdir_defaulted=yes
  1227. # Try the directory containing this script, then the parent directory.
  1228. ac_confdir=`$as_dirname -- "$as_myself" ||
  1229. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1230. X"$as_myself" : 'X\(//\)[^/]' \| \
  1231. X"$as_myself" : 'X\(//\)$' \| \
  1232. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1233. $as_echo X"$as_myself" |
  1234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)[^/].*/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\/\)$/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\).*/{
  1247. s//\1/
  1248. q
  1249. }
  1250. s/.*/./; q'`
  1251. srcdir=$ac_confdir
  1252. if test ! -r "$srcdir/$ac_unique_file"; then
  1253. srcdir=..
  1254. fi
  1255. else
  1256. ac_srcdir_defaulted=no
  1257. fi
  1258. if test ! -r "$srcdir/$ac_unique_file"; then
  1259. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1260. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1261. fi
  1262. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1263. ac_abs_confdir=`(
  1264. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1265. pwd)`
  1266. # When building in place, set srcdir=.
  1267. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1268. srcdir=.
  1269. fi
  1270. # Remove unnecessary trailing slashes from srcdir.
  1271. # Double slashes in file names in object file debugging info
  1272. # mess up M-x gdb in Emacs.
  1273. case $srcdir in
  1274. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1275. esac
  1276. for ac_var in $ac_precious_vars; do
  1277. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1278. eval ac_env_${ac_var}_value=\$${ac_var}
  1279. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1280. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1281. done
  1282. #
  1283. # Report the --help message.
  1284. #
  1285. if test "$ac_init_help" = "long"; then
  1286. # Omit some internal or obsolete options to make the list less imposing.
  1287. # This message is too long to be a string in the A/UX 3.1 sh.
  1288. cat <<_ACEOF
  1289. \`configure' configures this package to adapt to many kinds of systems.
  1290. Usage: $0 [OPTION]... [VAR=VALUE]...
  1291. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1292. VAR=VALUE. See below for descriptions of some of the useful variables.
  1293. Defaults for the options are specified in brackets.
  1294. Configuration:
  1295. -h, --help display this help and exit
  1296. --help=short display options specific to this package
  1297. --help=recursive display the short help of all the included packages
  1298. -V, --version display version information and exit
  1299. -q, --quiet, --silent do not print \`checking ...' messages
  1300. --cache-file=FILE cache test results in FILE [disabled]
  1301. -C, --config-cache alias for \`--cache-file=config.cache'
  1302. -n, --no-create do not create output files
  1303. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1304. Installation directories:
  1305. --prefix=PREFIX install architecture-independent files in PREFIX
  1306. [$ac_default_prefix]
  1307. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1308. [PREFIX]
  1309. By default, \`make install' will install all the files in
  1310. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1311. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1312. for instance \`--prefix=\$HOME'.
  1313. For better control, use the options below.
  1314. Fine tuning of the installation directories:
  1315. --bindir=DIR user executables [EPREFIX/bin]
  1316. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1317. --libexecdir=DIR program executables [EPREFIX/libexec]
  1318. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1319. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1320. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1321. --libdir=DIR object code libraries [EPREFIX/lib]
  1322. --includedir=DIR C header files [PREFIX/include]
  1323. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1324. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1325. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1326. --infodir=DIR info documentation [DATAROOTDIR/info]
  1327. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1328. --mandir=DIR man documentation [DATAROOTDIR/man]
  1329. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1330. --htmldir=DIR html documentation [DOCDIR]
  1331. --dvidir=DIR dvi documentation [DOCDIR]
  1332. --pdfdir=DIR pdf documentation [DOCDIR]
  1333. --psdir=DIR ps documentation [DOCDIR]
  1334. _ACEOF
  1335. cat <<\_ACEOF
  1336. X features:
  1337. --x-includes=DIR X include files are in DIR
  1338. --x-libraries=DIR X library files are in DIR
  1339. System types:
  1340. --build=BUILD configure for building on BUILD [guessed]
  1341. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1342. _ACEOF
  1343. fi
  1344. if test -n "$ac_init_help"; then
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --enable-shared[=PKGS] build shared libraries [default=yes]
  1351. --enable-static[=PKGS] build static libraries [default=yes]
  1352. --enable-fast-install[=PKGS]
  1353. optimize for fast installation [default=yes]
  1354. --disable-libtool-lock avoid locking (might break parallel builds)
  1355. --enable-assertions Enable internal sanity checks
  1356. (auto/disabled/release/enabled/paranoid)
  1357. [[default=auto]]
  1358. --enable-dependency-tracking
  1359. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1360. --enable-libc Use the system C library [[default=yes]]
  1361. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1362. --enable-atomic Enable the atomic operations subsystem
  1363. [[default=yes]]
  1364. --enable-audio Enable the audio subsystem [[default=yes]]
  1365. --enable-video Enable the video subsystem [[default=yes]]
  1366. --enable-render Enable the render subsystem [[default=yes]]
  1367. --enable-events Enable the events subsystem [[default=yes]]
  1368. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1369. --enable-haptic Enable the haptic (force feedback) subsystem
  1370. [[default=yes]]
  1371. --enable-power Enable the power subsystem [[default=yes]]
  1372. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1373. --enable-threads Enable the threading subsystem [[default=yes]]
  1374. --enable-timers Enable the timer subsystem [[default=yes]]
  1375. --enable-file Enable the file subsystem [[default=yes]]
  1376. --enable-loadso Enable the shared object loading subsystem
  1377. [[default=yes]]
  1378. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1379. --enable-assembly Enable assembly routines [[default=yes]]
  1380. --enable-ssemath Allow GCC to use SSE floating point math
  1381. [[default=no]]
  1382. --enable-mmx use MMX assembly routines [[default=yes]]
  1383. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1384. --enable-sse use SSE assembly routines [[default=yes]]
  1385. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1386. --enable-altivec use Altivec assembly routines [[default=yes]]
  1387. --enable-oss support the OSS audio API [[default=maybe]]
  1388. --enable-alsa support the ALSA audio API [[default=yes]]
  1389. --disable-alsatest Do not try to compile and run a test Alsa program
  1390. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1391. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1392. --disable-esdtest Do not try to compile and run a test ESD program
  1393. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1394. --enable-pulseaudio use PulseAudio [[default=yes]]
  1395. --enable-pulseaudio-shared
  1396. dynamically load PulseAudio support [[default=yes]]
  1397. --enable-arts support the Analog Real Time Synthesizer
  1398. [[default=yes]]
  1399. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1400. --enable-nas support the NAS audio API [[default=yes]]
  1401. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1402. --enable-sndio support the sndio audio API [[default=yes]]
  1403. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1404. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1405. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1406. --enable-video-wayland use Wayland video driver [[default=yes]]
  1407. --enable-video-wayland-qt-touch
  1408. QtWayland server support for Wayland video driver
  1409. [[default=yes]]
  1410. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1411. --enable-video-mir use Mir video driver [[default=yes]]
  1412. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1413. --enable-video-x11 use X11 video driver [[default=yes]]
  1414. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1415. --enable-video-x11-xcursor
  1416. enable X11 Xcursor support [[default=yes]]
  1417. --enable-video-x11-xinerama
  1418. enable X11 Xinerama support [[default=yes]]
  1419. --enable-video-x11-xinput
  1420. enable X11 XInput extension for manymouse, tablets,
  1421. etc [[default=yes]]
  1422. --enable-video-x11-xrandr
  1423. enable X11 Xrandr extension for fullscreen
  1424. [[default=yes]]
  1425. --enable-video-x11-scrnsaver
  1426. enable X11 screensaver extension [[default=yes]]
  1427. --enable-video-x11-xshape
  1428. enable X11 XShape support [[default=yes]]
  1429. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1430. --enable-video-mx6 use Freescale i.MX6 video driver [[default=no]]
  1431. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1432. --enable-video-directfb use DirectFB video driver [[default=no]]
  1433. --enable-directfb-shared
  1434. dynamically load directfb support [[default=yes]]
  1435. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1436. --enable-fusionsound-shared
  1437. dynamically load fusionsound audio support
  1438. [[default=yes]]
  1439. --enable-video-dummy use dummy video driver [[default=yes]]
  1440. --enable-video-opengl include OpenGL support [[default=yes]]
  1441. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1442. --enable-libudev enable libudev support [[default=yes]]
  1443. --enable-dbus enable D-Bus support [[default=yes]]
  1444. --enable-ibus enable IBus support [[default=yes]]
  1445. --enable-input-tslib use the Touchscreen library for input
  1446. [[default=yes]]
  1447. --enable-pthreads use POSIX threads for multi-threading
  1448. [[default=yes]]
  1449. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1450. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1451. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1452. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1453. UNIX [[default=yes]]
  1454. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1455. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1456. Optional Packages:
  1457. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1458. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1459. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1460. both]
  1461. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1462. --with-sysroot=DIR Search for dependent libraries within DIR
  1463. (or the compiler's sysroot if not specified).
  1464. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1465. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1466. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1467. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1468. --with-x use the X Window System
  1469. Some influential environment variables:
  1470. CC C compiler command
  1471. CFLAGS C compiler flags
  1472. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1473. nonstandard directory <lib dir>
  1474. LIBS libraries to pass to the linker, e.g. -l<library>
  1475. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1476. you have headers in a nonstandard directory <include dir>
  1477. CPP C preprocessor
  1478. CXX C++ compiler command
  1479. CXXFLAGS C++ compiler flags
  1480. CXXCPP C++ preprocessor
  1481. XMKMF Path to xmkmf, Makefile generator for X Window System
  1482. Use these variables to override the choices made by `configure' or to help
  1483. it to find libraries and programs with nonstandard names/locations.
  1484. Report bugs to the package provider.
  1485. _ACEOF
  1486. ac_status=$?
  1487. fi
  1488. if test "$ac_init_help" = "recursive"; then
  1489. # If there are subdirs, report their specific --help.
  1490. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1491. test -d "$ac_dir" ||
  1492. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1493. continue
  1494. ac_builddir=.
  1495. case "$ac_dir" in
  1496. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1497. *)
  1498. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1499. # A ".." for each directory in $ac_dir_suffix.
  1500. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1501. case $ac_top_builddir_sub in
  1502. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1503. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1504. esac ;;
  1505. esac
  1506. ac_abs_top_builddir=$ac_pwd
  1507. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1508. # for backward compatibility:
  1509. ac_top_builddir=$ac_top_build_prefix
  1510. case $srcdir in
  1511. .) # We are building in place.
  1512. ac_srcdir=.
  1513. ac_top_srcdir=$ac_top_builddir_sub
  1514. ac_abs_top_srcdir=$ac_pwd ;;
  1515. [\\/]* | ?:[\\/]* ) # Absolute name.
  1516. ac_srcdir=$srcdir$ac_dir_suffix;
  1517. ac_top_srcdir=$srcdir
  1518. ac_abs_top_srcdir=$srcdir ;;
  1519. *) # Relative name.
  1520. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1521. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1522. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1523. esac
  1524. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1525. cd "$ac_dir" || { ac_status=$?; continue; }
  1526. # Check for guested configure.
  1527. if test -f "$ac_srcdir/configure.gnu"; then
  1528. echo &&
  1529. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1530. elif test -f "$ac_srcdir/configure"; then
  1531. echo &&
  1532. $SHELL "$ac_srcdir/configure" --help=recursive
  1533. else
  1534. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1535. fi || ac_status=$?
  1536. cd "$ac_pwd" || { ac_status=$?; break; }
  1537. done
  1538. fi
  1539. test -n "$ac_init_help" && exit $ac_status
  1540. if $ac_init_version; then
  1541. cat <<\_ACEOF
  1542. configure
  1543. generated by GNU Autoconf 2.69
  1544. Copyright (C) 2012 Free Software Foundation, Inc.
  1545. This configure script is free software; the Free Software Foundation
  1546. gives unlimited permission to copy, distribute and modify it.
  1547. _ACEOF
  1548. exit
  1549. fi
  1550. ## ------------------------ ##
  1551. ## Autoconf initialization. ##
  1552. ## ------------------------ ##
  1553. # ac_fn_c_try_compile LINENO
  1554. # --------------------------
  1555. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1556. ac_fn_c_try_compile ()
  1557. {
  1558. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1559. rm -f conftest.$ac_objext
  1560. if { { ac_try="$ac_compile"
  1561. case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_compile") 2>conftest.err
  1568. ac_status=$?
  1569. if test -s conftest.err; then
  1570. grep -v '^ *+' conftest.err >conftest.er1
  1571. cat conftest.er1 >&5
  1572. mv -f conftest.er1 conftest.err
  1573. fi
  1574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1575. test $ac_status = 0; } && {
  1576. test -z "$ac_c_werror_flag" ||
  1577. test ! -s conftest.err
  1578. } && test -s conftest.$ac_objext; then :
  1579. ac_retval=0
  1580. else
  1581. $as_echo "$as_me: failed program was:" >&5
  1582. sed 's/^/| /' conftest.$ac_ext >&5
  1583. ac_retval=1
  1584. fi
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. as_fn_set_status $ac_retval
  1587. } # ac_fn_c_try_compile
  1588. # ac_fn_c_try_link LINENO
  1589. # -----------------------
  1590. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1591. ac_fn_c_try_link ()
  1592. {
  1593. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594. rm -f conftest.$ac_objext conftest$ac_exeext
  1595. if { { ac_try="$ac_link"
  1596. case "(($ac_try" in
  1597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1598. *) ac_try_echo=$ac_try;;
  1599. esac
  1600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1601. $as_echo "$ac_try_echo"; } >&5
  1602. (eval "$ac_link") 2>conftest.err
  1603. ac_status=$?
  1604. if test -s conftest.err; then
  1605. grep -v '^ *+' conftest.err >conftest.er1
  1606. cat conftest.er1 >&5
  1607. mv -f conftest.er1 conftest.err
  1608. fi
  1609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1610. test $ac_status = 0; } && {
  1611. test -z "$ac_c_werror_flag" ||
  1612. test ! -s conftest.err
  1613. } && test -s conftest$ac_exeext && {
  1614. test "$cross_compiling" = yes ||
  1615. test -x conftest$ac_exeext
  1616. }; then :
  1617. ac_retval=0
  1618. else
  1619. $as_echo "$as_me: failed program was:" >&5
  1620. sed 's/^/| /' conftest.$ac_ext >&5
  1621. ac_retval=1
  1622. fi
  1623. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1624. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1625. # interfere with the next link command; also delete a directory that is
  1626. # left behind by Apple's compiler. We do this before executing the actions.
  1627. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1628. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1629. as_fn_set_status $ac_retval
  1630. } # ac_fn_c_try_link
  1631. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1632. # -------------------------------------------------------
  1633. # Tests whether HEADER exists and can be compiled using the include files in
  1634. # INCLUDES, setting the cache variable VAR accordingly.
  1635. ac_fn_c_check_header_compile ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1639. $as_echo_n "checking for $2... " >&6; }
  1640. if eval \${$3+:} false; then :
  1641. $as_echo_n "(cached) " >&6
  1642. else
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. $4
  1646. #include <$2>
  1647. _ACEOF
  1648. if ac_fn_c_try_compile "$LINENO"; then :
  1649. eval "$3=yes"
  1650. else
  1651. eval "$3=no"
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1654. fi
  1655. eval ac_res=\$$3
  1656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1657. $as_echo "$ac_res" >&6; }
  1658. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1659. } # ac_fn_c_check_header_compile
  1660. # ac_fn_c_try_cpp LINENO
  1661. # ----------------------
  1662. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1663. ac_fn_c_try_cpp ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1667. case "(($ac_try" in
  1668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1669. *) ac_try_echo=$ac_try;;
  1670. esac
  1671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1672. $as_echo "$ac_try_echo"; } >&5
  1673. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1674. ac_status=$?
  1675. if test -s conftest.err; then
  1676. grep -v '^ *+' conftest.err >conftest.er1
  1677. cat conftest.er1 >&5
  1678. mv -f conftest.er1 conftest.err
  1679. fi
  1680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1681. test $ac_status = 0; } > conftest.i && {
  1682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1683. test ! -s conftest.err
  1684. }; then :
  1685. ac_retval=0
  1686. else
  1687. $as_echo "$as_me: failed program was:" >&5
  1688. sed 's/^/| /' conftest.$ac_ext >&5
  1689. ac_retval=1
  1690. fi
  1691. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1692. as_fn_set_status $ac_retval
  1693. } # ac_fn_c_try_cpp
  1694. # ac_fn_c_try_run LINENO
  1695. # ----------------------
  1696. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1697. # that executables *can* be run.
  1698. ac_fn_c_try_run ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. if { { ac_try="$ac_link"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_link") 2>&5
  1709. ac_status=$?
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1712. { { case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. $as_echo "$ac_try_echo"; } >&5
  1718. (eval "$ac_try") 2>&5
  1719. ac_status=$?
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; }; }; then :
  1722. ac_retval=0
  1723. else
  1724. $as_echo "$as_me: program exited with status $ac_status" >&5
  1725. $as_echo "$as_me: failed program was:" >&5
  1726. sed 's/^/| /' conftest.$ac_ext >&5
  1727. ac_retval=$ac_status
  1728. fi
  1729. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. as_fn_set_status $ac_retval
  1732. } # ac_fn_c_try_run
  1733. # ac_fn_c_check_func LINENO FUNC VAR
  1734. # ----------------------------------
  1735. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1736. ac_fn_c_check_func ()
  1737. {
  1738. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1740. $as_echo_n "checking for $2... " >&6; }
  1741. if eval \${$3+:} false; then :
  1742. $as_echo_n "(cached) " >&6
  1743. else
  1744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1745. /* end confdefs.h. */
  1746. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1747. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1748. #define $2 innocuous_$2
  1749. /* System header to define __stub macros and hopefully few prototypes,
  1750. which can conflict with char $2 (); below.
  1751. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1752. <limits.h> exists even on freestanding compilers. */
  1753. #ifdef __STDC__
  1754. # include <limits.h>
  1755. #else
  1756. # include <assert.h>
  1757. #endif
  1758. #undef $2
  1759. /* Override any GCC internal prototype to avoid an error.
  1760. Use char because int might match the return type of a GCC
  1761. builtin and then its argument prototype would still apply. */
  1762. #ifdef __cplusplus
  1763. extern "C"
  1764. #endif
  1765. char $2 ();
  1766. /* The GNU C library defines this for functions which it implements
  1767. to always fail with ENOSYS. Some functions are actually named
  1768. something starting with __ and the normal name is an alias. */
  1769. #if defined __stub_$2 || defined __stub___$2
  1770. choke me
  1771. #endif
  1772. int
  1773. main ()
  1774. {
  1775. return $2 ();
  1776. ;
  1777. return 0;
  1778. }
  1779. _ACEOF
  1780. if ac_fn_c_try_link "$LINENO"; then :
  1781. eval "$3=yes"
  1782. else
  1783. eval "$3=no"
  1784. fi
  1785. rm -f core conftest.err conftest.$ac_objext \
  1786. conftest$ac_exeext conftest.$ac_ext
  1787. fi
  1788. eval ac_res=\$$3
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1790. $as_echo "$ac_res" >&6; }
  1791. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1792. } # ac_fn_c_check_func
  1793. # ac_fn_cxx_try_compile LINENO
  1794. # ----------------------------
  1795. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1796. ac_fn_cxx_try_compile ()
  1797. {
  1798. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1799. rm -f conftest.$ac_objext
  1800. if { { ac_try="$ac_compile"
  1801. case "(($ac_try" in
  1802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1803. *) ac_try_echo=$ac_try;;
  1804. esac
  1805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1806. $as_echo "$ac_try_echo"; } >&5
  1807. (eval "$ac_compile") 2>conftest.err
  1808. ac_status=$?
  1809. if test -s conftest.err; then
  1810. grep -v '^ *+' conftest.err >conftest.er1
  1811. cat conftest.er1 >&5
  1812. mv -f conftest.er1 conftest.err
  1813. fi
  1814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1815. test $ac_status = 0; } && {
  1816. test -z "$ac_cxx_werror_flag" ||
  1817. test ! -s conftest.err
  1818. } && test -s conftest.$ac_objext; then :
  1819. ac_retval=0
  1820. else
  1821. $as_echo "$as_me: failed program was:" >&5
  1822. sed 's/^/| /' conftest.$ac_ext >&5
  1823. ac_retval=1
  1824. fi
  1825. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1826. as_fn_set_status $ac_retval
  1827. } # ac_fn_cxx_try_compile
  1828. # ac_fn_cxx_try_cpp LINENO
  1829. # ------------------------
  1830. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1831. ac_fn_cxx_try_cpp ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1835. case "(($ac_try" in
  1836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1837. *) ac_try_echo=$ac_try;;
  1838. esac
  1839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1840. $as_echo "$ac_try_echo"; } >&5
  1841. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1842. ac_status=$?
  1843. if test -s conftest.err; then
  1844. grep -v '^ *+' conftest.err >conftest.er1
  1845. cat conftest.er1 >&5
  1846. mv -f conftest.er1 conftest.err
  1847. fi
  1848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1849. test $ac_status = 0; } > conftest.i && {
  1850. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1851. test ! -s conftest.err
  1852. }; then :
  1853. ac_retval=0
  1854. else
  1855. $as_echo "$as_me: failed program was:" >&5
  1856. sed 's/^/| /' conftest.$ac_ext >&5
  1857. ac_retval=1
  1858. fi
  1859. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1860. as_fn_set_status $ac_retval
  1861. } # ac_fn_cxx_try_cpp
  1862. # ac_fn_cxx_try_link LINENO
  1863. # -------------------------
  1864. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1865. ac_fn_cxx_try_link ()
  1866. {
  1867. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1868. rm -f conftest.$ac_objext conftest$ac_exeext
  1869. if { { ac_try="$ac_link"
  1870. case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1875. $as_echo "$ac_try_echo"; } >&5
  1876. (eval "$ac_link") 2>conftest.err
  1877. ac_status=$?
  1878. if test -s conftest.err; then
  1879. grep -v '^ *+' conftest.err >conftest.er1
  1880. cat conftest.er1 >&5
  1881. mv -f conftest.er1 conftest.err
  1882. fi
  1883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1884. test $ac_status = 0; } && {
  1885. test -z "$ac_cxx_werror_flag" ||
  1886. test ! -s conftest.err
  1887. } && test -s conftest$ac_exeext && {
  1888. test "$cross_compiling" = yes ||
  1889. test -x conftest$ac_exeext
  1890. }; then :
  1891. ac_retval=0
  1892. else
  1893. $as_echo "$as_me: failed program was:" >&5
  1894. sed 's/^/| /' conftest.$ac_ext >&5
  1895. ac_retval=1
  1896. fi
  1897. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1898. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1899. # interfere with the next link command; also delete a directory that is
  1900. # left behind by Apple's compiler. We do this before executing the actions.
  1901. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. as_fn_set_status $ac_retval
  1904. } # ac_fn_cxx_try_link
  1905. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1906. # -------------------------------------------------------
  1907. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1908. # the include files in INCLUDES and setting the cache variable VAR
  1909. # accordingly.
  1910. ac_fn_c_check_header_mongrel ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. if eval \${$3+:} false; then :
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1915. $as_echo_n "checking for $2... " >&6; }
  1916. if eval \${$3+:} false; then :
  1917. $as_echo_n "(cached) " >&6
  1918. fi
  1919. eval ac_res=\$$3
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1921. $as_echo "$ac_res" >&6; }
  1922. else
  1923. # Is the header compilable?
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1925. $as_echo_n "checking $2 usability... " >&6; }
  1926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1927. /* end confdefs.h. */
  1928. $4
  1929. #include <$2>
  1930. _ACEOF
  1931. if ac_fn_c_try_compile "$LINENO"; then :
  1932. ac_header_compiler=yes
  1933. else
  1934. ac_header_compiler=no
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1938. $as_echo "$ac_header_compiler" >&6; }
  1939. # Is the header present?
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1941. $as_echo_n "checking $2 presence... " >&6; }
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. #include <$2>
  1945. _ACEOF
  1946. if ac_fn_c_try_cpp "$LINENO"; then :
  1947. ac_header_preproc=yes
  1948. else
  1949. ac_header_preproc=no
  1950. fi
  1951. rm -f conftest.err conftest.i conftest.$ac_ext
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1953. $as_echo "$ac_header_preproc" >&6; }
  1954. # So? What about this header?
  1955. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1956. yes:no: )
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1958. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1960. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1961. ;;
  1962. no:yes:* )
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1964. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1966. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1968. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1970. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1972. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1973. ;;
  1974. esac
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1976. $as_echo_n "checking for $2... " >&6; }
  1977. if eval \${$3+:} false; then :
  1978. $as_echo_n "(cached) " >&6
  1979. else
  1980. eval "$3=\$ac_header_compiler"
  1981. fi
  1982. eval ac_res=\$$3
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1984. $as_echo "$ac_res" >&6; }
  1985. fi
  1986. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1987. } # ac_fn_c_check_header_mongrel
  1988. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1989. # -------------------------------------------
  1990. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1991. # variable VAR accordingly.
  1992. ac_fn_c_check_type ()
  1993. {
  1994. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1996. $as_echo_n "checking for $2... " >&6; }
  1997. if eval \${$3+:} false; then :
  1998. $as_echo_n "(cached) " >&6
  1999. else
  2000. eval "$3=no"
  2001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2002. /* end confdefs.h. */
  2003. $4
  2004. int
  2005. main ()
  2006. {
  2007. if (sizeof ($2))
  2008. return 0;
  2009. ;
  2010. return 0;
  2011. }
  2012. _ACEOF
  2013. if ac_fn_c_try_compile "$LINENO"; then :
  2014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2015. /* end confdefs.h. */
  2016. $4
  2017. int
  2018. main ()
  2019. {
  2020. if (sizeof (($2)))
  2021. return 0;
  2022. ;
  2023. return 0;
  2024. }
  2025. _ACEOF
  2026. if ac_fn_c_try_compile "$LINENO"; then :
  2027. else
  2028. eval "$3=yes"
  2029. fi
  2030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2031. fi
  2032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2033. fi
  2034. eval ac_res=\$$3
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2036. $as_echo "$ac_res" >&6; }
  2037. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2038. } # ac_fn_c_check_type
  2039. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2040. # ----------------------------------------------------
  2041. # Tries to find if the field MEMBER exists in type AGGR, after including
  2042. # INCLUDES, setting cache variable VAR accordingly.
  2043. ac_fn_c_check_member ()
  2044. {
  2045. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2047. $as_echo_n "checking for $2.$3... " >&6; }
  2048. if eval \${$4+:} false; then :
  2049. $as_echo_n "(cached) " >&6
  2050. else
  2051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h. */
  2053. $5
  2054. int
  2055. main ()
  2056. {
  2057. static $2 ac_aggr;
  2058. if (ac_aggr.$3)
  2059. return 0;
  2060. ;
  2061. return 0;
  2062. }
  2063. _ACEOF
  2064. if ac_fn_c_try_compile "$LINENO"; then :
  2065. eval "$4=yes"
  2066. else
  2067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2068. /* end confdefs.h. */
  2069. $5
  2070. int
  2071. main ()
  2072. {
  2073. static $2 ac_aggr;
  2074. if (sizeof ac_aggr.$3)
  2075. return 0;
  2076. ;
  2077. return 0;
  2078. }
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. eval "$4=yes"
  2082. else
  2083. eval "$4=no"
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. fi
  2087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2088. fi
  2089. eval ac_res=\$$4
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2091. $as_echo "$ac_res" >&6; }
  2092. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2093. } # ac_fn_c_check_member
  2094. cat >config.log <<_ACEOF
  2095. This file contains any messages produced by compilers while
  2096. running configure, to aid debugging if configure makes a mistake.
  2097. It was created by $as_me, which was
  2098. generated by GNU Autoconf 2.69. Invocation command line was
  2099. $ $0 $@
  2100. _ACEOF
  2101. exec 5>>config.log
  2102. {
  2103. cat <<_ASUNAME
  2104. ## --------- ##
  2105. ## Platform. ##
  2106. ## --------- ##
  2107. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2108. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2109. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2110. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2111. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2112. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2113. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2114. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2115. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2116. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2117. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2118. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2119. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2120. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2121. _ASUNAME
  2122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2123. for as_dir in $PATH
  2124. do
  2125. IFS=$as_save_IFS
  2126. test -z "$as_dir" && as_dir=.
  2127. $as_echo "PATH: $as_dir"
  2128. done
  2129. IFS=$as_save_IFS
  2130. } >&5
  2131. cat >&5 <<_ACEOF
  2132. ## ----------- ##
  2133. ## Core tests. ##
  2134. ## ----------- ##
  2135. _ACEOF
  2136. # Keep a trace of the command line.
  2137. # Strip out --no-create and --no-recursion so they do not pile up.
  2138. # Strip out --silent because we don't want to record it for future runs.
  2139. # Also quote any args containing shell meta-characters.
  2140. # Make two passes to allow for proper duplicate-argument suppression.
  2141. ac_configure_args=
  2142. ac_configure_args0=
  2143. ac_configure_args1=
  2144. ac_must_keep_next=false
  2145. for ac_pass in 1 2
  2146. do
  2147. for ac_arg
  2148. do
  2149. case $ac_arg in
  2150. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2151. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2152. | -silent | --silent | --silen | --sile | --sil)
  2153. continue ;;
  2154. *\'*)
  2155. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2156. esac
  2157. case $ac_pass in
  2158. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2159. 2)
  2160. as_fn_append ac_configure_args1 " '$ac_arg'"
  2161. if test $ac_must_keep_next = true; then
  2162. ac_must_keep_next=false # Got value, back to normal.
  2163. else
  2164. case $ac_arg in
  2165. *=* | --config-cache | -C | -disable-* | --disable-* \
  2166. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2167. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2168. | -with-* | --with-* | -without-* | --without-* | --x)
  2169. case "$ac_configure_args0 " in
  2170. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2171. esac
  2172. ;;
  2173. -* ) ac_must_keep_next=true ;;
  2174. esac
  2175. fi
  2176. as_fn_append ac_configure_args " '$ac_arg'"
  2177. ;;
  2178. esac
  2179. done
  2180. done
  2181. { ac_configure_args0=; unset ac_configure_args0;}
  2182. { ac_configure_args1=; unset ac_configure_args1;}
  2183. # When interrupted or exit'd, cleanup temporary files, and complete
  2184. # config.log. We remove comments because anyway the quotes in there
  2185. # would cause problems or look ugly.
  2186. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2187. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2188. trap 'exit_status=$?
  2189. # Save into config.log some information that might help in debugging.
  2190. {
  2191. echo
  2192. $as_echo "## ---------------- ##
  2193. ## Cache variables. ##
  2194. ## ---------------- ##"
  2195. echo
  2196. # The following way of writing the cache mishandles newlines in values,
  2197. (
  2198. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2199. eval ac_val=\$$ac_var
  2200. case $ac_val in #(
  2201. *${as_nl}*)
  2202. case $ac_var in #(
  2203. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2204. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2205. esac
  2206. case $ac_var in #(
  2207. _ | IFS | as_nl) ;; #(
  2208. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2209. *) { eval $ac_var=; unset $ac_var;} ;;
  2210. esac ;;
  2211. esac
  2212. done
  2213. (set) 2>&1 |
  2214. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2215. *${as_nl}ac_space=\ *)
  2216. sed -n \
  2217. "s/'\''/'\''\\\\'\'''\''/g;
  2218. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2219. ;; #(
  2220. *)
  2221. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2222. ;;
  2223. esac |
  2224. sort
  2225. )
  2226. echo
  2227. $as_echo "## ----------------- ##
  2228. ## Output variables. ##
  2229. ## ----------------- ##"
  2230. echo
  2231. for ac_var in $ac_subst_vars
  2232. do
  2233. eval ac_val=\$$ac_var
  2234. case $ac_val in
  2235. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2236. esac
  2237. $as_echo "$ac_var='\''$ac_val'\''"
  2238. done | sort
  2239. echo
  2240. if test -n "$ac_subst_files"; then
  2241. $as_echo "## ------------------- ##
  2242. ## File substitutions. ##
  2243. ## ------------------- ##"
  2244. echo
  2245. for ac_var in $ac_subst_files
  2246. do
  2247. eval ac_val=\$$ac_var
  2248. case $ac_val in
  2249. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2250. esac
  2251. $as_echo "$ac_var='\''$ac_val'\''"
  2252. done | sort
  2253. echo
  2254. fi
  2255. if test -s confdefs.h; then
  2256. $as_echo "## ----------- ##
  2257. ## confdefs.h. ##
  2258. ## ----------- ##"
  2259. echo
  2260. cat confdefs.h
  2261. echo
  2262. fi
  2263. test "$ac_signal" != 0 &&
  2264. $as_echo "$as_me: caught signal $ac_signal"
  2265. $as_echo "$as_me: exit $exit_status"
  2266. } >&5
  2267. rm -f core *.core core.conftest.* &&
  2268. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2269. exit $exit_status
  2270. ' 0
  2271. for ac_signal in 1 2 13 15; do
  2272. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2273. done
  2274. ac_signal=0
  2275. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2276. rm -f -r conftest* confdefs.h
  2277. $as_echo "/* confdefs.h */" > confdefs.h
  2278. # Predefined preprocessor variables.
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_NAME "$PACKAGE_NAME"
  2281. _ACEOF
  2282. cat >>confdefs.h <<_ACEOF
  2283. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2284. _ACEOF
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_STRING "$PACKAGE_STRING"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_URL "$PACKAGE_URL"
  2296. _ACEOF
  2297. # Let the site file select an alternate cache file if it wants to.
  2298. # Prefer an explicitly selected file to automatically selected ones.
  2299. ac_site_file1=NONE
  2300. ac_site_file2=NONE
  2301. if test -n "$CONFIG_SITE"; then
  2302. # We do not want a PATH search for config.site.
  2303. case $CONFIG_SITE in #((
  2304. -*) ac_site_file1=./$CONFIG_SITE;;
  2305. */*) ac_site_file1=$CONFIG_SITE;;
  2306. *) ac_site_file1=./$CONFIG_SITE;;
  2307. esac
  2308. elif test "x$prefix" != xNONE; then
  2309. ac_site_file1=$prefix/share/config.site
  2310. ac_site_file2=$prefix/etc/config.site
  2311. else
  2312. ac_site_file1=$ac_default_prefix/share/config.site
  2313. ac_site_file2=$ac_default_prefix/etc/config.site
  2314. fi
  2315. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2316. do
  2317. test "x$ac_site_file" = xNONE && continue
  2318. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2320. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2321. sed 's/^/| /' "$ac_site_file" >&5
  2322. . "$ac_site_file" \
  2323. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2324. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2325. as_fn_error $? "failed to load site script $ac_site_file
  2326. See \`config.log' for more details" "$LINENO" 5; }
  2327. fi
  2328. done
  2329. if test -r "$cache_file"; then
  2330. # Some versions of bash will fail to source /dev/null (special files
  2331. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2332. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2334. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2335. case $cache_file in
  2336. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2337. *) . "./$cache_file";;
  2338. esac
  2339. fi
  2340. else
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2342. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2343. >$cache_file
  2344. fi
  2345. # Check that the precious variables saved in the cache have kept the same
  2346. # value.
  2347. ac_cache_corrupted=false
  2348. for ac_var in $ac_precious_vars; do
  2349. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2350. eval ac_new_set=\$ac_env_${ac_var}_set
  2351. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2352. eval ac_new_val=\$ac_env_${ac_var}_value
  2353. case $ac_old_set,$ac_new_set in
  2354. set,)
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2356. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2357. ac_cache_corrupted=: ;;
  2358. ,set)
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2360. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2361. ac_cache_corrupted=: ;;
  2362. ,);;
  2363. *)
  2364. if test "x$ac_old_val" != "x$ac_new_val"; then
  2365. # differences in whitespace do not lead to failure.
  2366. ac_old_val_w=`echo x $ac_old_val`
  2367. ac_new_val_w=`echo x $ac_new_val`
  2368. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2370. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2371. ac_cache_corrupted=:
  2372. else
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2374. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2375. eval $ac_var=\$ac_old_val
  2376. fi
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2378. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2380. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2381. fi;;
  2382. esac
  2383. # Pass precious variables to config.status.
  2384. if test "$ac_new_set" = set; then
  2385. case $ac_new_val in
  2386. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2387. *) ac_arg=$ac_var=$ac_new_val ;;
  2388. esac
  2389. case " $ac_configure_args " in
  2390. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2391. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2392. esac
  2393. fi
  2394. done
  2395. if $ac_cache_corrupted; then
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2399. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2400. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2401. fi
  2402. ## -------------------- ##
  2403. ## Main body of script. ##
  2404. ## -------------------- ##
  2405. ac_ext=c
  2406. ac_cpp='$CPP $CPPFLAGS'
  2407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2410. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2411. ac_aux_dir=
  2412. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2413. if 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/install.sh"; then
  2418. ac_aux_dir=$ac_dir
  2419. ac_install_sh="$ac_aux_dir/install.sh -c"
  2420. break
  2421. elif test -f "$ac_dir/shtool"; then
  2422. ac_aux_dir=$ac_dir
  2423. ac_install_sh="$ac_aux_dir/shtool install -c"
  2424. break
  2425. fi
  2426. done
  2427. if test -z "$ac_aux_dir"; then
  2428. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2429. fi
  2430. # These three variables are undocumented and unsupported,
  2431. # and are intended to be withdrawn in a future Autoconf release.
  2432. # They can cause serious problems if a builder's source tree is in a directory
  2433. # whose full name contains unusual characters.
  2434. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2435. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2436. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2437. orig_CFLAGS="$CFLAGS"
  2438. #
  2439. # Making releases:
  2440. # Edit include/SDL_version.h and change the version, then:
  2441. # SDL_MICRO_VERSION += 1;
  2442. # SDL_INTERFACE_AGE += 1;
  2443. # SDL_BINARY_AGE += 1;
  2444. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2445. # if backwards compatibility has been broken,
  2446. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2447. #
  2448. SDL_MAJOR_VERSION=2
  2449. SDL_MINOR_VERSION=0
  2450. SDL_MICRO_VERSION=4
  2451. SDL_INTERFACE_AGE=0
  2452. SDL_BINARY_AGE=4
  2453. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2454. # libtool versioning
  2455. case `pwd` in
  2456. *\ * | *\ *)
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2458. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2459. esac
  2460. macro_version='2.4.2'
  2461. macro_revision='1.3337'
  2462. ltmain="$ac_aux_dir/ltmain.sh"
  2463. # Make sure we can run config.sub.
  2464. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2465. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2467. $as_echo_n "checking build system type... " >&6; }
  2468. if ${ac_cv_build+:} false; then :
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. ac_build_alias=$build_alias
  2472. test "x$ac_build_alias" = x &&
  2473. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2474. test "x$ac_build_alias" = x &&
  2475. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2476. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2477. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2478. fi
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2480. $as_echo "$ac_cv_build" >&6; }
  2481. case $ac_cv_build in
  2482. *-*-*) ;;
  2483. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2484. esac
  2485. build=$ac_cv_build
  2486. ac_save_IFS=$IFS; IFS='-'
  2487. set x $ac_cv_build
  2488. shift
  2489. build_cpu=$1
  2490. build_vendor=$2
  2491. shift; shift
  2492. # Remember, the first character of IFS is used to create $*,
  2493. # except with old shells:
  2494. build_os=$*
  2495. IFS=$ac_save_IFS
  2496. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2498. $as_echo_n "checking host system type... " >&6; }
  2499. if ${ac_cv_host+:} false; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. if test "x$host_alias" = x; then
  2503. ac_cv_host=$ac_cv_build
  2504. else
  2505. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2506. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2507. fi
  2508. fi
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2510. $as_echo "$ac_cv_host" >&6; }
  2511. case $ac_cv_host in
  2512. *-*-*) ;;
  2513. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2514. esac
  2515. host=$ac_cv_host
  2516. ac_save_IFS=$IFS; IFS='-'
  2517. set x $ac_cv_host
  2518. shift
  2519. host_cpu=$1
  2520. host_vendor=$2
  2521. shift; shift
  2522. # Remember, the first character of IFS is used to create $*,
  2523. # except with old shells:
  2524. host_os=$*
  2525. IFS=$ac_save_IFS
  2526. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2527. # Backslashify metacharacters that are still active within
  2528. # double-quoted strings.
  2529. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2530. # Same as above, but do not quote variable references.
  2531. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2532. # Sed substitution to delay expansion of an escaped shell variable in a
  2533. # double_quote_subst'ed string.
  2534. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2535. # Sed substitution to delay expansion of an escaped single quote.
  2536. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2537. # Sed substitution to avoid accidental globbing in evaled expressions
  2538. no_glob_subst='s/\*/\\\*/g'
  2539. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2540. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2541. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2543. $as_echo_n "checking how to print strings... " >&6; }
  2544. # Test print first, because it will be a builtin if present.
  2545. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2546. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2547. ECHO='print -r --'
  2548. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2549. ECHO='printf %s\n'
  2550. else
  2551. # Use this function as a fallback that always works.
  2552. func_fallback_echo ()
  2553. {
  2554. eval 'cat <<_LTECHO_EOF
  2555. $1
  2556. _LTECHO_EOF'
  2557. }
  2558. ECHO='func_fallback_echo'
  2559. fi
  2560. # func_echo_all arg...
  2561. # Invoke $ECHO with all args, space-separated.
  2562. func_echo_all ()
  2563. {
  2564. $ECHO ""
  2565. }
  2566. case "$ECHO" in
  2567. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2568. $as_echo "printf" >&6; } ;;
  2569. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2570. $as_echo "print -r" >&6; } ;;
  2571. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2572. $as_echo "cat" >&6; } ;;
  2573. esac
  2574. ac_ext=c
  2575. ac_cpp='$CPP $CPPFLAGS'
  2576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2579. if test -n "$ac_tool_prefix"; then
  2580. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2581. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2583. $as_echo_n "checking for $ac_word... " >&6; }
  2584. if ${ac_cv_prog_CC+:} false; then :
  2585. $as_echo_n "(cached) " >&6
  2586. else
  2587. if test -n "$CC"; then
  2588. ac_cv_prog_CC="$CC" # Let the user override the test.
  2589. else
  2590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2591. for as_dir in $PATH
  2592. do
  2593. IFS=$as_save_IFS
  2594. test -z "$as_dir" && as_dir=.
  2595. for ac_exec_ext in '' $ac_executable_extensions; do
  2596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2597. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2599. break 2
  2600. fi
  2601. done
  2602. done
  2603. IFS=$as_save_IFS
  2604. fi
  2605. fi
  2606. CC=$ac_cv_prog_CC
  2607. if test -n "$CC"; then
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2609. $as_echo "$CC" >&6; }
  2610. else
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2612. $as_echo "no" >&6; }
  2613. fi
  2614. fi
  2615. if test -z "$ac_cv_prog_CC"; then
  2616. ac_ct_CC=$CC
  2617. # Extract the first word of "gcc", so it can be a program name with args.
  2618. set dummy gcc; ac_word=$2
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2620. $as_echo_n "checking for $ac_word... " >&6; }
  2621. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. if test -n "$ac_ct_CC"; then
  2625. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2626. else
  2627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2628. for as_dir in $PATH
  2629. do
  2630. IFS=$as_save_IFS
  2631. test -z "$as_dir" && as_dir=.
  2632. for ac_exec_ext in '' $ac_executable_extensions; do
  2633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2634. ac_cv_prog_ac_ct_CC="gcc"
  2635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2636. break 2
  2637. fi
  2638. done
  2639. done
  2640. IFS=$as_save_IFS
  2641. fi
  2642. fi
  2643. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2644. if test -n "$ac_ct_CC"; then
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2646. $as_echo "$ac_ct_CC" >&6; }
  2647. else
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2649. $as_echo "no" >&6; }
  2650. fi
  2651. if test "x$ac_ct_CC" = x; then
  2652. CC=""
  2653. else
  2654. case $cross_compiling:$ac_tool_warned in
  2655. yes:)
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2658. ac_tool_warned=yes ;;
  2659. esac
  2660. CC=$ac_ct_CC
  2661. fi
  2662. else
  2663. CC="$ac_cv_prog_CC"
  2664. fi
  2665. if test -z "$CC"; then
  2666. if test -n "$ac_tool_prefix"; then
  2667. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2668. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2670. $as_echo_n "checking for $ac_word... " >&6; }
  2671. if ${ac_cv_prog_CC+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. if test -n "$CC"; then
  2675. ac_cv_prog_CC="$CC" # Let the user override the test.
  2676. else
  2677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2678. for as_dir in $PATH
  2679. do
  2680. IFS=$as_save_IFS
  2681. test -z "$as_dir" && as_dir=.
  2682. for ac_exec_ext in '' $ac_executable_extensions; do
  2683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2684. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2686. break 2
  2687. fi
  2688. done
  2689. done
  2690. IFS=$as_save_IFS
  2691. fi
  2692. fi
  2693. CC=$ac_cv_prog_CC
  2694. if test -n "$CC"; then
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2696. $as_echo "$CC" >&6; }
  2697. else
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2699. $as_echo "no" >&6; }
  2700. fi
  2701. fi
  2702. fi
  2703. if test -z "$CC"; then
  2704. # Extract the first word of "cc", so it can be a program name with args.
  2705. set dummy cc; ac_word=$2
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2707. $as_echo_n "checking for $ac_word... " >&6; }
  2708. if ${ac_cv_prog_CC+:} false; then :
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. if test -n "$CC"; then
  2712. ac_cv_prog_CC="$CC" # Let the user override the test.
  2713. else
  2714. ac_prog_rejected=no
  2715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2716. for as_dir in $PATH
  2717. do
  2718. IFS=$as_save_IFS
  2719. test -z "$as_dir" && as_dir=.
  2720. for ac_exec_ext in '' $ac_executable_extensions; do
  2721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2722. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2723. ac_prog_rejected=yes
  2724. continue
  2725. fi
  2726. ac_cv_prog_CC="cc"
  2727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2728. break 2
  2729. fi
  2730. done
  2731. done
  2732. IFS=$as_save_IFS
  2733. if test $ac_prog_rejected = yes; then
  2734. # We found a bogon in the path, so make sure we never use it.
  2735. set dummy $ac_cv_prog_CC
  2736. shift
  2737. if test $# != 0; then
  2738. # We chose a different compiler from the bogus one.
  2739. # However, it has the same basename, so the bogon will be chosen
  2740. # first if we set CC to just the basename; use the full file name.
  2741. shift
  2742. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2743. fi
  2744. fi
  2745. fi
  2746. fi
  2747. CC=$ac_cv_prog_CC
  2748. if test -n "$CC"; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2750. $as_echo "$CC" >&6; }
  2751. else
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2753. $as_echo "no" >&6; }
  2754. fi
  2755. fi
  2756. if test -z "$CC"; then
  2757. if test -n "$ac_tool_prefix"; then
  2758. for ac_prog in cl.exe
  2759. do
  2760. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2761. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2763. $as_echo_n "checking for $ac_word... " >&6; }
  2764. if ${ac_cv_prog_CC+:} false; then :
  2765. $as_echo_n "(cached) " >&6
  2766. else
  2767. if test -n "$CC"; then
  2768. ac_cv_prog_CC="$CC" # Let the user override the test.
  2769. else
  2770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2771. for as_dir in $PATH
  2772. do
  2773. IFS=$as_save_IFS
  2774. test -z "$as_dir" && as_dir=.
  2775. for ac_exec_ext in '' $ac_executable_extensions; do
  2776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2777. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. break 2
  2780. fi
  2781. done
  2782. done
  2783. IFS=$as_save_IFS
  2784. fi
  2785. fi
  2786. CC=$ac_cv_prog_CC
  2787. if test -n "$CC"; then
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2789. $as_echo "$CC" >&6; }
  2790. else
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2792. $as_echo "no" >&6; }
  2793. fi
  2794. test -n "$CC" && break
  2795. done
  2796. fi
  2797. if test -z "$CC"; then
  2798. ac_ct_CC=$CC
  2799. for ac_prog in cl.exe
  2800. do
  2801. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2802. set dummy $ac_prog; ac_word=$2
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2804. $as_echo_n "checking for $ac_word... " >&6; }
  2805. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2806. $as_echo_n "(cached) " >&6
  2807. else
  2808. if test -n "$ac_ct_CC"; then
  2809. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2810. else
  2811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2812. for as_dir in $PATH
  2813. do
  2814. IFS=$as_save_IFS
  2815. test -z "$as_dir" && as_dir=.
  2816. for ac_exec_ext in '' $ac_executable_extensions; do
  2817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2818. ac_cv_prog_ac_ct_CC="$ac_prog"
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2820. break 2
  2821. fi
  2822. done
  2823. done
  2824. IFS=$as_save_IFS
  2825. fi
  2826. fi
  2827. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2828. if test -n "$ac_ct_CC"; then
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2830. $as_echo "$ac_ct_CC" >&6; }
  2831. else
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2833. $as_echo "no" >&6; }
  2834. fi
  2835. test -n "$ac_ct_CC" && break
  2836. done
  2837. if test "x$ac_ct_CC" = x; then
  2838. CC=""
  2839. else
  2840. case $cross_compiling:$ac_tool_warned in
  2841. yes:)
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2844. ac_tool_warned=yes ;;
  2845. esac
  2846. CC=$ac_ct_CC
  2847. fi
  2848. fi
  2849. fi
  2850. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2852. as_fn_error $? "no acceptable C compiler found in \$PATH
  2853. See \`config.log' for more details" "$LINENO" 5; }
  2854. # Provide some information about the compiler.
  2855. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2856. set X $ac_compile
  2857. ac_compiler=$2
  2858. for ac_option in --version -v -V -qversion; do
  2859. { { ac_try="$ac_compiler $ac_option >&5"
  2860. case "(($ac_try" in
  2861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2862. *) ac_try_echo=$ac_try;;
  2863. esac
  2864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2865. $as_echo "$ac_try_echo"; } >&5
  2866. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2867. ac_status=$?
  2868. if test -s conftest.err; then
  2869. sed '10a\
  2870. ... rest of stderr output deleted ...
  2871. 10q' conftest.err >conftest.er1
  2872. cat conftest.er1 >&5
  2873. fi
  2874. rm -f conftest.er1 conftest.err
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2876. test $ac_status = 0; }
  2877. done
  2878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2879. /* end confdefs.h. */
  2880. int
  2881. main ()
  2882. {
  2883. ;
  2884. return 0;
  2885. }
  2886. _ACEOF
  2887. ac_clean_files_save=$ac_clean_files
  2888. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2889. # Try to create an executable without -o first, disregard a.out.
  2890. # It will help us diagnose broken compilers, and finding out an intuition
  2891. # of exeext.
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2893. $as_echo_n "checking whether the C compiler works... " >&6; }
  2894. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2895. # The possible output files:
  2896. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2897. ac_rmfiles=
  2898. for ac_file in $ac_files
  2899. do
  2900. case $ac_file in
  2901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2902. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2903. esac
  2904. done
  2905. rm -f $ac_rmfiles
  2906. if { { ac_try="$ac_link_default"
  2907. case "(($ac_try" in
  2908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2909. *) ac_try_echo=$ac_try;;
  2910. esac
  2911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2912. $as_echo "$ac_try_echo"; } >&5
  2913. (eval "$ac_link_default") 2>&5
  2914. ac_status=$?
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }; then :
  2917. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2918. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2919. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2920. # so that the user can short-circuit this test for compilers unknown to
  2921. # Autoconf.
  2922. for ac_file in $ac_files ''
  2923. do
  2924. test -f "$ac_file" || continue
  2925. case $ac_file in
  2926. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2927. ;;
  2928. [ab].out )
  2929. # We found the default executable, but exeext='' is most
  2930. # certainly right.
  2931. break;;
  2932. *.* )
  2933. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2934. then :; else
  2935. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2936. fi
  2937. # We set ac_cv_exeext here because the later test for it is not
  2938. # safe: cross compilers may not add the suffix if given an `-o'
  2939. # argument, so we may need to know it at that point already.
  2940. # Even if this section looks crufty: it has the advantage of
  2941. # actually working.
  2942. break;;
  2943. * )
  2944. break;;
  2945. esac
  2946. done
  2947. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2948. else
  2949. ac_file=''
  2950. fi
  2951. if test -z "$ac_file"; then :
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2953. $as_echo "no" >&6; }
  2954. $as_echo "$as_me: failed program was:" >&5
  2955. sed 's/^/| /' conftest.$ac_ext >&5
  2956. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2957. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2958. as_fn_error 77 "C compiler cannot create executables
  2959. See \`config.log' for more details" "$LINENO" 5; }
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2962. $as_echo "yes" >&6; }
  2963. fi
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2965. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2967. $as_echo "$ac_file" >&6; }
  2968. ac_exeext=$ac_cv_exeext
  2969. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2970. ac_clean_files=$ac_clean_files_save
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2972. $as_echo_n "checking for suffix of executables... " >&6; }
  2973. if { { ac_try="$ac_link"
  2974. case "(($ac_try" in
  2975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2976. *) ac_try_echo=$ac_try;;
  2977. esac
  2978. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2979. $as_echo "$ac_try_echo"; } >&5
  2980. (eval "$ac_link") 2>&5
  2981. ac_status=$?
  2982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2983. test $ac_status = 0; }; then :
  2984. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2985. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2986. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2987. # `rm'.
  2988. for ac_file in conftest.exe conftest conftest.*; do
  2989. test -f "$ac_file" || continue
  2990. case $ac_file in
  2991. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2992. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2993. break;;
  2994. * ) break;;
  2995. esac
  2996. done
  2997. else
  2998. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3000. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3001. See \`config.log' for more details" "$LINENO" 5; }
  3002. fi
  3003. rm -f conftest conftest$ac_cv_exeext
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3005. $as_echo "$ac_cv_exeext" >&6; }
  3006. rm -f conftest.$ac_ext
  3007. EXEEXT=$ac_cv_exeext
  3008. ac_exeext=$EXEEXT
  3009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3010. /* end confdefs.h. */
  3011. #include <stdio.h>
  3012. int
  3013. main ()
  3014. {
  3015. FILE *f = fopen ("conftest.out", "w");
  3016. return ferror (f) || fclose (f) != 0;
  3017. ;
  3018. return 0;
  3019. }
  3020. _ACEOF
  3021. ac_clean_files="$ac_clean_files conftest.out"
  3022. # Check that the compiler produces executables we can run. If not, either
  3023. # the compiler is broken, or we cross compile.
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3025. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3026. if test "$cross_compiling" != yes; then
  3027. { { ac_try="$ac_link"
  3028. case "(($ac_try" in
  3029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3030. *) ac_try_echo=$ac_try;;
  3031. esac
  3032. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3033. $as_echo "$ac_try_echo"; } >&5
  3034. (eval "$ac_link") 2>&5
  3035. ac_status=$?
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3037. test $ac_status = 0; }
  3038. if { ac_try='./conftest$ac_cv_exeext'
  3039. { { case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3044. $as_echo "$ac_try_echo"; } >&5
  3045. (eval "$ac_try") 2>&5
  3046. ac_status=$?
  3047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3048. test $ac_status = 0; }; }; then
  3049. cross_compiling=no
  3050. else
  3051. if test "$cross_compiling" = maybe; then
  3052. cross_compiling=yes
  3053. else
  3054. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3056. as_fn_error $? "cannot run C compiled programs.
  3057. If you meant to cross compile, use \`--host'.
  3058. See \`config.log' for more details" "$LINENO" 5; }
  3059. fi
  3060. fi
  3061. fi
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3063. $as_echo "$cross_compiling" >&6; }
  3064. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3065. ac_clean_files=$ac_clean_files_save
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3067. $as_echo_n "checking for suffix of object files... " >&6; }
  3068. if ${ac_cv_objext+:} false; then :
  3069. $as_echo_n "(cached) " >&6
  3070. else
  3071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3072. /* end confdefs.h. */
  3073. int
  3074. main ()
  3075. {
  3076. ;
  3077. return 0;
  3078. }
  3079. _ACEOF
  3080. rm -f conftest.o conftest.obj
  3081. if { { ac_try="$ac_compile"
  3082. case "(($ac_try" in
  3083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3084. *) ac_try_echo=$ac_try;;
  3085. esac
  3086. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3087. $as_echo "$ac_try_echo"; } >&5
  3088. (eval "$ac_compile") 2>&5
  3089. ac_status=$?
  3090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3091. test $ac_status = 0; }; then :
  3092. for ac_file in conftest.o conftest.obj conftest.*; do
  3093. test -f "$ac_file" || continue;
  3094. case $ac_file in
  3095. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3096. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3097. break;;
  3098. esac
  3099. done
  3100. else
  3101. $as_echo "$as_me: failed program was:" >&5
  3102. sed 's/^/| /' conftest.$ac_ext >&5
  3103. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3104. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3105. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3106. See \`config.log' for more details" "$LINENO" 5; }
  3107. fi
  3108. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3109. fi
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3111. $as_echo "$ac_cv_objext" >&6; }
  3112. OBJEXT=$ac_cv_objext
  3113. ac_objext=$OBJEXT
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3115. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3116. if ${ac_cv_c_compiler_gnu+:} false; then :
  3117. $as_echo_n "(cached) " >&6
  3118. else
  3119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end confdefs.h. */
  3121. int
  3122. main ()
  3123. {
  3124. #ifndef __GNUC__
  3125. choke me
  3126. #endif
  3127. ;
  3128. return 0;
  3129. }
  3130. _ACEOF
  3131. if ac_fn_c_try_compile "$LINENO"; then :
  3132. ac_compiler_gnu=yes
  3133. else
  3134. ac_compiler_gnu=no
  3135. fi
  3136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3137. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3138. fi
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3140. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3141. if test $ac_compiler_gnu = yes; then
  3142. GCC=yes
  3143. else
  3144. GCC=
  3145. fi
  3146. ac_test_CFLAGS=${CFLAGS+set}
  3147. ac_save_CFLAGS=$CFLAGS
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3149. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3150. if ${ac_cv_prog_cc_g+:} false; then :
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. ac_save_c_werror_flag=$ac_c_werror_flag
  3154. ac_c_werror_flag=yes
  3155. ac_cv_prog_cc_g=no
  3156. CFLAGS="-g"
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. ac_cv_prog_cc_g=yes
  3168. else
  3169. CFLAGS=""
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. int
  3173. main ()
  3174. {
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. if ac_fn_c_try_compile "$LINENO"; then :
  3180. else
  3181. ac_c_werror_flag=$ac_save_c_werror_flag
  3182. CFLAGS="-g"
  3183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3184. /* end confdefs.h. */
  3185. int
  3186. main ()
  3187. {
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. if ac_fn_c_try_compile "$LINENO"; then :
  3193. ac_cv_prog_cc_g=yes
  3194. fi
  3195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3196. fi
  3197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3198. fi
  3199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3200. ac_c_werror_flag=$ac_save_c_werror_flag
  3201. fi
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3203. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3204. if test "$ac_test_CFLAGS" = set; then
  3205. CFLAGS=$ac_save_CFLAGS
  3206. elif test $ac_cv_prog_cc_g = yes; then
  3207. if test "$GCC" = yes; then
  3208. CFLAGS="-g -O2"
  3209. else
  3210. CFLAGS="-g"
  3211. fi
  3212. else
  3213. if test "$GCC" = yes; then
  3214. CFLAGS="-O2"
  3215. else
  3216. CFLAGS=
  3217. fi
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3220. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3221. if ${ac_cv_prog_cc_c89+:} false; then :
  3222. $as_echo_n "(cached) " >&6
  3223. else
  3224. ac_cv_prog_cc_c89=no
  3225. ac_save_CC=$CC
  3226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3227. /* end confdefs.h. */
  3228. #include <stdarg.h>
  3229. #include <stdio.h>
  3230. struct stat;
  3231. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3232. struct buf { int x; };
  3233. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3234. static char *e (p, i)
  3235. char **p;
  3236. int i;
  3237. {
  3238. return p[i];
  3239. }
  3240. static char *f (char * (*g) (char **, int), char **p, ...)
  3241. {
  3242. char *s;
  3243. va_list v;
  3244. va_start (v,p);
  3245. s = g (p, va_arg (v,int));
  3246. va_end (v);
  3247. return s;
  3248. }
  3249. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3250. function prototypes and stuff, but not '\xHH' hex character constants.
  3251. These don't provoke an error unfortunately, instead are silently treated
  3252. as 'x'. The following induces an error, until -std is added to get
  3253. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3254. array size at least. It's necessary to write '\x00'==0 to get something
  3255. that's true only with -std. */
  3256. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3257. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3258. inside strings and character constants. */
  3259. #define FOO(x) 'x'
  3260. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3261. int test (int i, double x);
  3262. struct s1 {int (*f) (int a);};
  3263. struct s2 {int (*f) (double a);};
  3264. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3265. int argc;
  3266. char **argv;
  3267. int
  3268. main ()
  3269. {
  3270. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3271. ;
  3272. return 0;
  3273. }
  3274. _ACEOF
  3275. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3276. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3277. do
  3278. CC="$ac_save_CC $ac_arg"
  3279. if ac_fn_c_try_compile "$LINENO"; then :
  3280. ac_cv_prog_cc_c89=$ac_arg
  3281. fi
  3282. rm -f core conftest.err conftest.$ac_objext
  3283. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3284. done
  3285. rm -f conftest.$ac_ext
  3286. CC=$ac_save_CC
  3287. fi
  3288. # AC_CACHE_VAL
  3289. case "x$ac_cv_prog_cc_c89" in
  3290. x)
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3292. $as_echo "none needed" >&6; } ;;
  3293. xno)
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3295. $as_echo "unsupported" >&6; } ;;
  3296. *)
  3297. CC="$CC $ac_cv_prog_cc_c89"
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3299. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3300. esac
  3301. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3302. fi
  3303. ac_ext=c
  3304. ac_cpp='$CPP $CPPFLAGS'
  3305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3309. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3310. if ${ac_cv_path_SED+:} false; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3314. for ac_i in 1 2 3 4 5 6 7; do
  3315. ac_script="$ac_script$as_nl$ac_script"
  3316. done
  3317. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3318. { ac_script=; unset ac_script;}
  3319. if test -z "$SED"; then
  3320. ac_path_SED_found=false
  3321. # Loop through the user's path and test for each of PROGNAME-LIST
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. test -z "$as_dir" && as_dir=.
  3327. for ac_prog in sed gsed; do
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3330. as_fn_executable_p "$ac_path_SED" || continue
  3331. # Check for GNU ac_path_SED and select it if it is found.
  3332. # Check for GNU $ac_path_SED
  3333. case `"$ac_path_SED" --version 2>&1` in
  3334. *GNU*)
  3335. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3336. *)
  3337. ac_count=0
  3338. $as_echo_n 0123456789 >"conftest.in"
  3339. while :
  3340. do
  3341. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3342. mv "conftest.tmp" "conftest.in"
  3343. cp "conftest.in" "conftest.nl"
  3344. $as_echo '' >> "conftest.nl"
  3345. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3346. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3347. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3348. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3349. # Best one so far, save it but keep looking for a better one
  3350. ac_cv_path_SED="$ac_path_SED"
  3351. ac_path_SED_max=$ac_count
  3352. fi
  3353. # 10*(2^10) chars as input seems more than enough
  3354. test $ac_count -gt 10 && break
  3355. done
  3356. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3357. esac
  3358. $ac_path_SED_found && break 3
  3359. done
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. if test -z "$ac_cv_path_SED"; then
  3364. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3365. fi
  3366. else
  3367. ac_cv_path_SED=$SED
  3368. fi
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3371. $as_echo "$ac_cv_path_SED" >&6; }
  3372. SED="$ac_cv_path_SED"
  3373. rm -f conftest.sed
  3374. test -z "$SED" && SED=sed
  3375. Xsed="$SED -e 1s/^X//"
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3377. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3378. if ${ac_cv_path_GREP+:} false; then :
  3379. $as_echo_n "(cached) " >&6
  3380. else
  3381. if test -z "$GREP"; then
  3382. ac_path_GREP_found=false
  3383. # Loop through the user's path and test for each of PROGNAME-LIST
  3384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3385. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3386. do
  3387. IFS=$as_save_IFS
  3388. test -z "$as_dir" && as_dir=.
  3389. for ac_prog in grep ggrep; do
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3392. as_fn_executable_p "$ac_path_GREP" || continue
  3393. # Check for GNU ac_path_GREP and select it if it is found.
  3394. # Check for GNU $ac_path_GREP
  3395. case `"$ac_path_GREP" --version 2>&1` in
  3396. *GNU*)
  3397. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3398. *)
  3399. ac_count=0
  3400. $as_echo_n 0123456789 >"conftest.in"
  3401. while :
  3402. do
  3403. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3404. mv "conftest.tmp" "conftest.in"
  3405. cp "conftest.in" "conftest.nl"
  3406. $as_echo 'GREP' >> "conftest.nl"
  3407. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3408. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3409. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3410. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3411. # Best one so far, save it but keep looking for a better one
  3412. ac_cv_path_GREP="$ac_path_GREP"
  3413. ac_path_GREP_max=$ac_count
  3414. fi
  3415. # 10*(2^10) chars as input seems more than enough
  3416. test $ac_count -gt 10 && break
  3417. done
  3418. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3419. esac
  3420. $ac_path_GREP_found && break 3
  3421. done
  3422. done
  3423. done
  3424. IFS=$as_save_IFS
  3425. if test -z "$ac_cv_path_GREP"; then
  3426. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3427. fi
  3428. else
  3429. ac_cv_path_GREP=$GREP
  3430. fi
  3431. fi
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3433. $as_echo "$ac_cv_path_GREP" >&6; }
  3434. GREP="$ac_cv_path_GREP"
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3436. $as_echo_n "checking for egrep... " >&6; }
  3437. if ${ac_cv_path_EGREP+:} false; then :
  3438. $as_echo_n "(cached) " >&6
  3439. else
  3440. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3441. then ac_cv_path_EGREP="$GREP -E"
  3442. else
  3443. if test -z "$EGREP"; then
  3444. ac_path_EGREP_found=false
  3445. # Loop through the user's path and test for each of PROGNAME-LIST
  3446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3448. do
  3449. IFS=$as_save_IFS
  3450. test -z "$as_dir" && as_dir=.
  3451. for ac_prog in egrep; do
  3452. for ac_exec_ext in '' $ac_executable_extensions; do
  3453. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3454. as_fn_executable_p "$ac_path_EGREP" || continue
  3455. # Check for GNU ac_path_EGREP and select it if it is found.
  3456. # Check for GNU $ac_path_EGREP
  3457. case `"$ac_path_EGREP" --version 2>&1` in
  3458. *GNU*)
  3459. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3460. *)
  3461. ac_count=0
  3462. $as_echo_n 0123456789 >"conftest.in"
  3463. while :
  3464. do
  3465. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3466. mv "conftest.tmp" "conftest.in"
  3467. cp "conftest.in" "conftest.nl"
  3468. $as_echo 'EGREP' >> "conftest.nl"
  3469. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3470. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3471. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3472. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3473. # Best one so far, save it but keep looking for a better one
  3474. ac_cv_path_EGREP="$ac_path_EGREP"
  3475. ac_path_EGREP_max=$ac_count
  3476. fi
  3477. # 10*(2^10) chars as input seems more than enough
  3478. test $ac_count -gt 10 && break
  3479. done
  3480. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3481. esac
  3482. $ac_path_EGREP_found && break 3
  3483. done
  3484. done
  3485. done
  3486. IFS=$as_save_IFS
  3487. if test -z "$ac_cv_path_EGREP"; then
  3488. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3489. fi
  3490. else
  3491. ac_cv_path_EGREP=$EGREP
  3492. fi
  3493. fi
  3494. fi
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3496. $as_echo "$ac_cv_path_EGREP" >&6; }
  3497. EGREP="$ac_cv_path_EGREP"
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3499. $as_echo_n "checking for fgrep... " >&6; }
  3500. if ${ac_cv_path_FGREP+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3504. then ac_cv_path_FGREP="$GREP -F"
  3505. else
  3506. if test -z "$FGREP"; then
  3507. ac_path_FGREP_found=false
  3508. # Loop through the user's path and test for each of PROGNAME-LIST
  3509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3510. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3511. do
  3512. IFS=$as_save_IFS
  3513. test -z "$as_dir" && as_dir=.
  3514. for ac_prog in fgrep; do
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3517. as_fn_executable_p "$ac_path_FGREP" || continue
  3518. # Check for GNU ac_path_FGREP and select it if it is found.
  3519. # Check for GNU $ac_path_FGREP
  3520. case `"$ac_path_FGREP" --version 2>&1` in
  3521. *GNU*)
  3522. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3523. *)
  3524. ac_count=0
  3525. $as_echo_n 0123456789 >"conftest.in"
  3526. while :
  3527. do
  3528. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3529. mv "conftest.tmp" "conftest.in"
  3530. cp "conftest.in" "conftest.nl"
  3531. $as_echo 'FGREP' >> "conftest.nl"
  3532. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3533. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3534. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3535. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3536. # Best one so far, save it but keep looking for a better one
  3537. ac_cv_path_FGREP="$ac_path_FGREP"
  3538. ac_path_FGREP_max=$ac_count
  3539. fi
  3540. # 10*(2^10) chars as input seems more than enough
  3541. test $ac_count -gt 10 && break
  3542. done
  3543. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3544. esac
  3545. $ac_path_FGREP_found && break 3
  3546. done
  3547. done
  3548. done
  3549. IFS=$as_save_IFS
  3550. if test -z "$ac_cv_path_FGREP"; then
  3551. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3552. fi
  3553. else
  3554. ac_cv_path_FGREP=$FGREP
  3555. fi
  3556. fi
  3557. fi
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3559. $as_echo "$ac_cv_path_FGREP" >&6; }
  3560. FGREP="$ac_cv_path_FGREP"
  3561. test -z "$GREP" && GREP=grep
  3562. # Check whether --with-gnu-ld was given.
  3563. if test "${with_gnu_ld+set}" = set; then :
  3564. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3565. else
  3566. with_gnu_ld=no
  3567. fi
  3568. ac_prog=ld
  3569. if test "$GCC" = yes; then
  3570. # Check if gcc -print-prog-name=ld gives a path.
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3572. $as_echo_n "checking for ld used by $CC... " >&6; }
  3573. case $host in
  3574. *-*-mingw*)
  3575. # gcc leaves a trailing carriage return which upsets mingw
  3576. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3577. *)
  3578. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3579. esac
  3580. case $ac_prog in
  3581. # Accept absolute paths.
  3582. [\\/]* | ?:[\\/]*)
  3583. re_direlt='/[^/][^/]*/\.\./'
  3584. # Canonicalize the pathname of ld
  3585. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3586. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3587. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3588. done
  3589. test -z "$LD" && LD="$ac_prog"
  3590. ;;
  3591. "")
  3592. # If it fails, then pretend we aren't using GCC.
  3593. ac_prog=ld
  3594. ;;
  3595. *)
  3596. # If it is relative, then search for the first ld in PATH.
  3597. with_gnu_ld=unknown
  3598. ;;
  3599. esac
  3600. elif test "$with_gnu_ld" = yes; then
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3602. $as_echo_n "checking for GNU ld... " >&6; }
  3603. else
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3605. $as_echo_n "checking for non-GNU ld... " >&6; }
  3606. fi
  3607. if ${lt_cv_path_LD+:} false; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. if test -z "$LD"; then
  3611. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3612. for ac_dir in $PATH; do
  3613. IFS="$lt_save_ifs"
  3614. test -z "$ac_dir" && ac_dir=.
  3615. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3616. lt_cv_path_LD="$ac_dir/$ac_prog"
  3617. # Check to see if the program is GNU ld. I'd rather use --version,
  3618. # but apparently some variants of GNU ld only accept -v.
  3619. # Break only if it was the GNU/non-GNU ld that we prefer.
  3620. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3621. *GNU* | *'with BFD'*)
  3622. test "$with_gnu_ld" != no && break
  3623. ;;
  3624. *)
  3625. test "$with_gnu_ld" != yes && break
  3626. ;;
  3627. esac
  3628. fi
  3629. done
  3630. IFS="$lt_save_ifs"
  3631. else
  3632. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3633. fi
  3634. fi
  3635. LD="$lt_cv_path_LD"
  3636. if test -n "$LD"; then
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3638. $as_echo "$LD" >&6; }
  3639. else
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3641. $as_echo "no" >&6; }
  3642. fi
  3643. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3645. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3646. if ${lt_cv_prog_gnu_ld+:} false; then :
  3647. $as_echo_n "(cached) " >&6
  3648. else
  3649. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3650. case `$LD -v 2>&1 </dev/null` in
  3651. *GNU* | *'with BFD'*)
  3652. lt_cv_prog_gnu_ld=yes
  3653. ;;
  3654. *)
  3655. lt_cv_prog_gnu_ld=no
  3656. ;;
  3657. esac
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3660. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3661. with_gnu_ld=$lt_cv_prog_gnu_ld
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3663. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3664. if ${lt_cv_path_NM+:} false; then :
  3665. $as_echo_n "(cached) " >&6
  3666. else
  3667. if test -n "$NM"; then
  3668. # Let the user override the test.
  3669. lt_cv_path_NM="$NM"
  3670. else
  3671. lt_nm_to_check="${ac_tool_prefix}nm"
  3672. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3673. lt_nm_to_check="$lt_nm_to_check nm"
  3674. fi
  3675. for lt_tmp_nm in $lt_nm_to_check; do
  3676. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3677. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3678. IFS="$lt_save_ifs"
  3679. test -z "$ac_dir" && ac_dir=.
  3680. tmp_nm="$ac_dir/$lt_tmp_nm"
  3681. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3682. # Check to see if the nm accepts a BSD-compat flag.
  3683. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3684. # nm: unknown option "B" ignored
  3685. # Tru64's nm complains that /dev/null is an invalid object file
  3686. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3687. */dev/null* | *'Invalid file or object type'*)
  3688. lt_cv_path_NM="$tmp_nm -B"
  3689. break
  3690. ;;
  3691. *)
  3692. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3693. */dev/null*)
  3694. lt_cv_path_NM="$tmp_nm -p"
  3695. break
  3696. ;;
  3697. *)
  3698. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3699. continue # so that we can try to find one that supports BSD flags
  3700. ;;
  3701. esac
  3702. ;;
  3703. esac
  3704. fi
  3705. done
  3706. IFS="$lt_save_ifs"
  3707. done
  3708. : ${lt_cv_path_NM=no}
  3709. fi
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3712. $as_echo "$lt_cv_path_NM" >&6; }
  3713. if test "$lt_cv_path_NM" != "no"; then
  3714. NM="$lt_cv_path_NM"
  3715. else
  3716. # Didn't find any BSD compatible name lister, look for dumpbin.
  3717. if test -n "$DUMPBIN"; then :
  3718. # Let the user override the test.
  3719. else
  3720. if test -n "$ac_tool_prefix"; then
  3721. for ac_prog in dumpbin "link -dump"
  3722. do
  3723. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3724. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3726. $as_echo_n "checking for $ac_word... " >&6; }
  3727. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. if test -n "$DUMPBIN"; then
  3731. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3732. else
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3740. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3742. break 2
  3743. fi
  3744. done
  3745. done
  3746. IFS=$as_save_IFS
  3747. fi
  3748. fi
  3749. DUMPBIN=$ac_cv_prog_DUMPBIN
  3750. if test -n "$DUMPBIN"; then
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3752. $as_echo "$DUMPBIN" >&6; }
  3753. else
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3755. $as_echo "no" >&6; }
  3756. fi
  3757. test -n "$DUMPBIN" && break
  3758. done
  3759. fi
  3760. if test -z "$DUMPBIN"; then
  3761. ac_ct_DUMPBIN=$DUMPBIN
  3762. for ac_prog in dumpbin "link -dump"
  3763. do
  3764. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3765. set dummy $ac_prog; ac_word=$2
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3767. $as_echo_n "checking for $ac_word... " >&6; }
  3768. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. if test -n "$ac_ct_DUMPBIN"; then
  3772. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3773. else
  3774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3775. for as_dir in $PATH
  3776. do
  3777. IFS=$as_save_IFS
  3778. test -z "$as_dir" && as_dir=.
  3779. for ac_exec_ext in '' $ac_executable_extensions; do
  3780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3781. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3783. break 2
  3784. fi
  3785. done
  3786. done
  3787. IFS=$as_save_IFS
  3788. fi
  3789. fi
  3790. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3791. if test -n "$ac_ct_DUMPBIN"; then
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3793. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3794. else
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3796. $as_echo "no" >&6; }
  3797. fi
  3798. test -n "$ac_ct_DUMPBIN" && break
  3799. done
  3800. if test "x$ac_ct_DUMPBIN" = x; then
  3801. DUMPBIN=":"
  3802. else
  3803. case $cross_compiling:$ac_tool_warned in
  3804. yes:)
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3807. ac_tool_warned=yes ;;
  3808. esac
  3809. DUMPBIN=$ac_ct_DUMPBIN
  3810. fi
  3811. fi
  3812. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3813. *COFF*)
  3814. DUMPBIN="$DUMPBIN -symbols"
  3815. ;;
  3816. *)
  3817. DUMPBIN=:
  3818. ;;
  3819. esac
  3820. fi
  3821. if test "$DUMPBIN" != ":"; then
  3822. NM="$DUMPBIN"
  3823. fi
  3824. fi
  3825. test -z "$NM" && NM=nm
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3827. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3828. if ${lt_cv_nm_interface+:} false; then :
  3829. $as_echo_n "(cached) " >&6
  3830. else
  3831. lt_cv_nm_interface="BSD nm"
  3832. echo "int some_variable = 0;" > conftest.$ac_ext
  3833. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3834. (eval "$ac_compile" 2>conftest.err)
  3835. cat conftest.err >&5
  3836. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3837. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3838. cat conftest.err >&5
  3839. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3840. cat conftest.out >&5
  3841. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3842. lt_cv_nm_interface="MS dumpbin"
  3843. fi
  3844. rm -f conftest*
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3847. $as_echo "$lt_cv_nm_interface" >&6; }
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3849. $as_echo_n "checking whether ln -s works... " >&6; }
  3850. LN_S=$as_ln_s
  3851. if test "$LN_S" = "ln -s"; then
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3853. $as_echo "yes" >&6; }
  3854. else
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3856. $as_echo "no, using $LN_S" >&6; }
  3857. fi
  3858. # find the maximum length of command line arguments
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3860. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3861. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. i=0
  3865. teststring="ABCD"
  3866. case $build_os in
  3867. msdosdjgpp*)
  3868. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3869. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3870. # during glob expansion). Even if it were fixed, the result of this
  3871. # check would be larger than it should be.
  3872. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3873. ;;
  3874. gnu*)
  3875. # Under GNU Hurd, this test is not required because there is
  3876. # no limit to the length of command line arguments.
  3877. # Libtool will interpret -1 as no limit whatsoever
  3878. lt_cv_sys_max_cmd_len=-1;
  3879. ;;
  3880. cygwin* | mingw* | cegcc*)
  3881. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3882. # about 5 minutes as the teststring grows exponentially.
  3883. # Worse, since 9x/ME are not pre-emptively multitasking,
  3884. # you end up with a "frozen" computer, even though with patience
  3885. # the test eventually succeeds (with a max line length of 256k).
  3886. # Instead, let's just punt: use the minimum linelength reported by
  3887. # all of the supported platforms: 8192 (on NT/2K/XP).
  3888. lt_cv_sys_max_cmd_len=8192;
  3889. ;;
  3890. mint*)
  3891. # On MiNT this can take a long time and run out of memory.
  3892. lt_cv_sys_max_cmd_len=8192;
  3893. ;;
  3894. amigaos*)
  3895. # On AmigaOS with pdksh, this test takes hours, literally.
  3896. # So we just punt and use a minimum line length of 8192.
  3897. lt_cv_sys_max_cmd_len=8192;
  3898. ;;
  3899. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3900. # This has been around since 386BSD, at least. Likely further.
  3901. if test -x /sbin/sysctl; then
  3902. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3903. elif test -x /usr/sbin/sysctl; then
  3904. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3905. else
  3906. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3907. fi
  3908. # And add a safety zone
  3909. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3910. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3911. ;;
  3912. interix*)
  3913. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3914. lt_cv_sys_max_cmd_len=196608
  3915. ;;
  3916. os2*)
  3917. # The test takes a long time on OS/2.
  3918. lt_cv_sys_max_cmd_len=8192
  3919. ;;
  3920. osf*)
  3921. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3922. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3923. # nice to cause kernel panics so lets avoid the loop below.
  3924. # First set a reasonable default.
  3925. lt_cv_sys_max_cmd_len=16384
  3926. #
  3927. if test -x /sbin/sysconfig; then
  3928. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3929. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3930. esac
  3931. fi
  3932. ;;
  3933. sco3.2v5*)
  3934. lt_cv_sys_max_cmd_len=102400
  3935. ;;
  3936. sysv5* | sco5v6* | sysv4.2uw2*)
  3937. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3938. if test -n "$kargmax"; then
  3939. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3940. else
  3941. lt_cv_sys_max_cmd_len=32768
  3942. fi
  3943. ;;
  3944. *)
  3945. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3946. if test -n "$lt_cv_sys_max_cmd_len"; then
  3947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3948. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3949. else
  3950. # Make teststring a little bigger before we do anything with it.
  3951. # a 1K string should be a reasonable start.
  3952. for i in 1 2 3 4 5 6 7 8 ; do
  3953. teststring=$teststring$teststring
  3954. done
  3955. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3956. # If test is not a shell built-in, we'll probably end up computing a
  3957. # maximum length that is only half of the actual maximum length, but
  3958. # we can't tell.
  3959. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3960. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3961. test $i != 17 # 1/2 MB should be enough
  3962. do
  3963. i=`expr $i + 1`
  3964. teststring=$teststring$teststring
  3965. done
  3966. # Only check the string length outside the loop.
  3967. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3968. teststring=
  3969. # Add a significant safety factor because C++ compilers can tack on
  3970. # massive amounts of additional arguments before passing them to the
  3971. # linker. It appears as though 1/2 is a usable value.
  3972. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3973. fi
  3974. ;;
  3975. esac
  3976. fi
  3977. if test -n $lt_cv_sys_max_cmd_len ; then
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3979. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3980. else
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3982. $as_echo "none" >&6; }
  3983. fi
  3984. max_cmd_len=$lt_cv_sys_max_cmd_len
  3985. : ${CP="cp -f"}
  3986. : ${MV="mv -f"}
  3987. : ${RM="rm -f"}
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3989. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3990. # Try some XSI features
  3991. xsi_shell=no
  3992. ( _lt_dummy="a/b/c"
  3993. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3994. = c,a/b,b/c, \
  3995. && eval 'test $(( 1 + 1 )) -eq 2 \
  3996. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3997. && xsi_shell=yes
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3999. $as_echo "$xsi_shell" >&6; }
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4001. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4002. lt_shell_append=no
  4003. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4004. >/dev/null 2>&1 \
  4005. && lt_shell_append=yes
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4007. $as_echo "$lt_shell_append" >&6; }
  4008. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4009. lt_unset=unset
  4010. else
  4011. lt_unset=false
  4012. fi
  4013. # test EBCDIC or ASCII
  4014. case `echo X|tr X '\101'` in
  4015. A) # ASCII based system
  4016. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4017. lt_SP2NL='tr \040 \012'
  4018. lt_NL2SP='tr \015\012 \040\040'
  4019. ;;
  4020. *) # EBCDIC based system
  4021. lt_SP2NL='tr \100 \n'
  4022. lt_NL2SP='tr \r\n \100\100'
  4023. ;;
  4024. esac
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4026. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4027. if ${lt_cv_to_host_file_cmd+:} false; then :
  4028. $as_echo_n "(cached) " >&6
  4029. else
  4030. case $host in
  4031. *-*-mingw* )
  4032. case $build in
  4033. *-*-mingw* ) # actually msys
  4034. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4035. ;;
  4036. *-*-cygwin* )
  4037. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4038. ;;
  4039. * ) # otherwise, assume *nix
  4040. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4041. ;;
  4042. esac
  4043. ;;
  4044. *-*-cygwin* )
  4045. case $build in
  4046. *-*-mingw* ) # actually msys
  4047. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4048. ;;
  4049. *-*-cygwin* )
  4050. lt_cv_to_host_file_cmd=func_convert_file_noop
  4051. ;;
  4052. * ) # otherwise, assume *nix
  4053. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4054. ;;
  4055. esac
  4056. ;;
  4057. * ) # unhandled hosts (and "normal" native builds)
  4058. lt_cv_to_host_file_cmd=func_convert_file_noop
  4059. ;;
  4060. esac
  4061. fi
  4062. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4064. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4066. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4067. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. #assume ordinary cross tools, or native build.
  4071. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4072. case $host in
  4073. *-*-mingw* )
  4074. case $build in
  4075. *-*-mingw* ) # actually msys
  4076. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4077. ;;
  4078. esac
  4079. ;;
  4080. esac
  4081. fi
  4082. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4084. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4086. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4087. if ${lt_cv_ld_reload_flag+:} false; then :
  4088. $as_echo_n "(cached) " >&6
  4089. else
  4090. lt_cv_ld_reload_flag='-r'
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4093. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4094. reload_flag=$lt_cv_ld_reload_flag
  4095. case $reload_flag in
  4096. "" | " "*) ;;
  4097. *) reload_flag=" $reload_flag" ;;
  4098. esac
  4099. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4100. case $host_os in
  4101. cygwin* | mingw* | pw32* | cegcc*)
  4102. if test "$GCC" != yes; then
  4103. reload_cmds=false
  4104. fi
  4105. ;;
  4106. darwin*)
  4107. if test "$GCC" = yes; then
  4108. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4109. else
  4110. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4111. fi
  4112. ;;
  4113. esac
  4114. if test -n "$ac_tool_prefix"; then
  4115. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4116. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4118. $as_echo_n "checking for $ac_word... " >&6; }
  4119. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4120. $as_echo_n "(cached) " >&6
  4121. else
  4122. if test -n "$OBJDUMP"; then
  4123. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4124. else
  4125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4126. for as_dir in $PATH
  4127. do
  4128. IFS=$as_save_IFS
  4129. test -z "$as_dir" && as_dir=.
  4130. for ac_exec_ext in '' $ac_executable_extensions; do
  4131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4132. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4134. break 2
  4135. fi
  4136. done
  4137. done
  4138. IFS=$as_save_IFS
  4139. fi
  4140. fi
  4141. OBJDUMP=$ac_cv_prog_OBJDUMP
  4142. if test -n "$OBJDUMP"; then
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4144. $as_echo "$OBJDUMP" >&6; }
  4145. else
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4147. $as_echo "no" >&6; }
  4148. fi
  4149. fi
  4150. if test -z "$ac_cv_prog_OBJDUMP"; then
  4151. ac_ct_OBJDUMP=$OBJDUMP
  4152. # Extract the first word of "objdump", so it can be a program name with args.
  4153. set dummy objdump; ac_word=$2
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4155. $as_echo_n "checking for $ac_word... " >&6; }
  4156. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. if test -n "$ac_ct_OBJDUMP"; then
  4160. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4161. else
  4162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4163. for as_dir in $PATH
  4164. do
  4165. IFS=$as_save_IFS
  4166. test -z "$as_dir" && as_dir=.
  4167. for ac_exec_ext in '' $ac_executable_extensions; do
  4168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4169. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4171. break 2
  4172. fi
  4173. done
  4174. done
  4175. IFS=$as_save_IFS
  4176. fi
  4177. fi
  4178. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4179. if test -n "$ac_ct_OBJDUMP"; then
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4181. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4182. else
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4184. $as_echo "no" >&6; }
  4185. fi
  4186. if test "x$ac_ct_OBJDUMP" = x; then
  4187. OBJDUMP="false"
  4188. else
  4189. case $cross_compiling:$ac_tool_warned in
  4190. yes:)
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4192. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4193. ac_tool_warned=yes ;;
  4194. esac
  4195. OBJDUMP=$ac_ct_OBJDUMP
  4196. fi
  4197. else
  4198. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4199. fi
  4200. test -z "$OBJDUMP" && OBJDUMP=objdump
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4202. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4203. if ${lt_cv_deplibs_check_method+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4207. lt_cv_file_magic_test_file=
  4208. lt_cv_deplibs_check_method='unknown'
  4209. # Need to set the preceding variable on all platforms that support
  4210. # interlibrary dependencies.
  4211. # 'none' -- dependencies not supported.
  4212. # `unknown' -- same as none, but documents that we really don't know.
  4213. # 'pass_all' -- all dependencies passed with no checks.
  4214. # 'test_compile' -- check by making test program.
  4215. # 'file_magic [[regex]]' -- check by looking for files in library path
  4216. # which responds to the $file_magic_cmd with a given extended regex.
  4217. # If you have `file' or equivalent on your system and you're not sure
  4218. # whether `pass_all' will *always* work, you probably want this one.
  4219. case $host_os in
  4220. aix[4-9]*)
  4221. lt_cv_deplibs_check_method=pass_all
  4222. ;;
  4223. beos*)
  4224. lt_cv_deplibs_check_method=pass_all
  4225. ;;
  4226. bsdi[45]*)
  4227. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4228. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4229. lt_cv_file_magic_test_file=/shlib/libc.so
  4230. ;;
  4231. cygwin*)
  4232. # func_win32_libid is a shell function defined in ltmain.sh
  4233. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4234. lt_cv_file_magic_cmd='func_win32_libid'
  4235. lt_cv_deplibs_check_method=pass_all
  4236. ;;
  4237. mingw* | pw32*)
  4238. # Base MSYS/MinGW do not provide the 'file' command needed by
  4239. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4240. # unless we find 'file', for example because we are cross-compiling.
  4241. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4242. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4243. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4244. lt_cv_file_magic_cmd='func_win32_libid'
  4245. else
  4246. # Keep this pattern in sync with the one in func_win32_libid.
  4247. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4248. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4249. fi
  4250. lt_cv_deplibs_check_method=pass_all
  4251. ;;
  4252. cegcc*)
  4253. # use the weaker test based on 'objdump'. See mingw*.
  4254. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4255. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4256. ;;
  4257. darwin* | rhapsody*)
  4258. lt_cv_deplibs_check_method=pass_all
  4259. ;;
  4260. freebsd* | dragonfly*)
  4261. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4262. case $host_cpu in
  4263. i*86 )
  4264. # Not sure whether the presence of OpenBSD here was a mistake.
  4265. # Let's accept both of them until this is cleared up.
  4266. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4267. lt_cv_file_magic_cmd=/usr/bin/file
  4268. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4269. ;;
  4270. esac
  4271. else
  4272. lt_cv_deplibs_check_method=pass_all
  4273. fi
  4274. ;;
  4275. gnu*)
  4276. lt_cv_deplibs_check_method=pass_all
  4277. ;;
  4278. haiku*)
  4279. lt_cv_deplibs_check_method=pass_all
  4280. ;;
  4281. hpux10.20* | hpux11*)
  4282. lt_cv_file_magic_cmd=/usr/bin/file
  4283. case $host_cpu in
  4284. ia64*)
  4285. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4286. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4287. ;;
  4288. hppa*64*)
  4289. 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]'
  4290. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4291. ;;
  4292. *)
  4293. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4294. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4295. ;;
  4296. esac
  4297. ;;
  4298. interix[3-9]*)
  4299. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4300. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4301. ;;
  4302. irix5* | irix6* | nonstopux*)
  4303. case $LD in
  4304. *-32|*"-32 ") libmagic=32-bit;;
  4305. *-n32|*"-n32 ") libmagic=N32;;
  4306. *-64|*"-64 ") libmagic=64-bit;;
  4307. *) libmagic=never-match;;
  4308. esac
  4309. lt_cv_deplibs_check_method=pass_all
  4310. ;;
  4311. # This must be glibc/ELF.
  4312. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4313. lt_cv_deplibs_check_method=pass_all
  4314. ;;
  4315. netbsd*)
  4316. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4317. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4318. else
  4319. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4320. fi
  4321. ;;
  4322. newos6*)
  4323. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4324. lt_cv_file_magic_cmd=/usr/bin/file
  4325. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4326. ;;
  4327. *nto* | *qnx*)
  4328. lt_cv_deplibs_check_method=pass_all
  4329. ;;
  4330. openbsd*)
  4331. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4332. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4333. else
  4334. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4335. fi
  4336. ;;
  4337. osf3* | osf4* | osf5*)
  4338. lt_cv_deplibs_check_method=pass_all
  4339. ;;
  4340. rdos*)
  4341. lt_cv_deplibs_check_method=pass_all
  4342. ;;
  4343. solaris*)
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. sysv4 | sysv4.3*)
  4350. case $host_vendor in
  4351. motorola)
  4352. 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]'
  4353. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4354. ;;
  4355. ncr)
  4356. lt_cv_deplibs_check_method=pass_all
  4357. ;;
  4358. sequent)
  4359. lt_cv_file_magic_cmd='/bin/file'
  4360. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4361. ;;
  4362. sni)
  4363. lt_cv_file_magic_cmd='/bin/file'
  4364. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4365. lt_cv_file_magic_test_file=/lib/libc.so
  4366. ;;
  4367. siemens)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. pc)
  4371. lt_cv_deplibs_check_method=pass_all
  4372. ;;
  4373. esac
  4374. ;;
  4375. tpf*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. esac
  4379. fi
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4381. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4382. file_magic_glob=
  4383. want_nocaseglob=no
  4384. if test "$build" = "$host"; then
  4385. case $host_os in
  4386. mingw* | pw32*)
  4387. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4388. want_nocaseglob=yes
  4389. else
  4390. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4391. fi
  4392. ;;
  4393. esac
  4394. fi
  4395. file_magic_cmd=$lt_cv_file_magic_cmd
  4396. deplibs_check_method=$lt_cv_deplibs_check_method
  4397. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4398. if test -n "$ac_tool_prefix"; then
  4399. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4400. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4402. $as_echo_n "checking for $ac_word... " >&6; }
  4403. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4404. $as_echo_n "(cached) " >&6
  4405. else
  4406. if test -n "$DLLTOOL"; then
  4407. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4408. else
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH
  4411. do
  4412. IFS=$as_save_IFS
  4413. test -z "$as_dir" && as_dir=.
  4414. for ac_exec_ext in '' $ac_executable_extensions; do
  4415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4416. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4418. break 2
  4419. fi
  4420. done
  4421. done
  4422. IFS=$as_save_IFS
  4423. fi
  4424. fi
  4425. DLLTOOL=$ac_cv_prog_DLLTOOL
  4426. if test -n "$DLLTOOL"; then
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4428. $as_echo "$DLLTOOL" >&6; }
  4429. else
  4430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4431. $as_echo "no" >&6; }
  4432. fi
  4433. fi
  4434. if test -z "$ac_cv_prog_DLLTOOL"; then
  4435. ac_ct_DLLTOOL=$DLLTOOL
  4436. # Extract the first word of "dlltool", so it can be a program name with args.
  4437. set dummy dlltool; ac_word=$2
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4439. $as_echo_n "checking for $ac_word... " >&6; }
  4440. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. if test -n "$ac_ct_DLLTOOL"; then
  4444. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4445. else
  4446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4447. for as_dir in $PATH
  4448. do
  4449. IFS=$as_save_IFS
  4450. test -z "$as_dir" && as_dir=.
  4451. for ac_exec_ext in '' $ac_executable_extensions; do
  4452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4453. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4455. break 2
  4456. fi
  4457. done
  4458. done
  4459. IFS=$as_save_IFS
  4460. fi
  4461. fi
  4462. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4463. if test -n "$ac_ct_DLLTOOL"; then
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4465. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4466. else
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4468. $as_echo "no" >&6; }
  4469. fi
  4470. if test "x$ac_ct_DLLTOOL" = x; then
  4471. DLLTOOL="false"
  4472. else
  4473. case $cross_compiling:$ac_tool_warned in
  4474. yes:)
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4477. ac_tool_warned=yes ;;
  4478. esac
  4479. DLLTOOL=$ac_ct_DLLTOOL
  4480. fi
  4481. else
  4482. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4483. fi
  4484. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4486. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4487. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4491. case $host_os in
  4492. cygwin* | mingw* | pw32* | cegcc*)
  4493. # two different shell functions defined in ltmain.sh
  4494. # decide which to use based on capabilities of $DLLTOOL
  4495. case `$DLLTOOL --help 2>&1` in
  4496. *--identify-strict*)
  4497. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4498. ;;
  4499. *)
  4500. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4501. ;;
  4502. esac
  4503. ;;
  4504. *)
  4505. # fallback: assume linklib IS sharedlib
  4506. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4507. ;;
  4508. esac
  4509. fi
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4511. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4512. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4513. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4514. if test -n "$ac_tool_prefix"; then
  4515. for ac_prog in ar
  4516. do
  4517. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4518. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4520. $as_echo_n "checking for $ac_word... " >&6; }
  4521. if ${ac_cv_prog_AR+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. if test -n "$AR"; then
  4525. ac_cv_prog_AR="$AR" # Let the user override the test.
  4526. else
  4527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4528. for as_dir in $PATH
  4529. do
  4530. IFS=$as_save_IFS
  4531. test -z "$as_dir" && as_dir=.
  4532. for ac_exec_ext in '' $ac_executable_extensions; do
  4533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4534. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4536. break 2
  4537. fi
  4538. done
  4539. done
  4540. IFS=$as_save_IFS
  4541. fi
  4542. fi
  4543. AR=$ac_cv_prog_AR
  4544. if test -n "$AR"; then
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4546. $as_echo "$AR" >&6; }
  4547. else
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4549. $as_echo "no" >&6; }
  4550. fi
  4551. test -n "$AR" && break
  4552. done
  4553. fi
  4554. if test -z "$AR"; then
  4555. ac_ct_AR=$AR
  4556. for ac_prog in ar
  4557. do
  4558. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4559. set dummy $ac_prog; ac_word=$2
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4561. $as_echo_n "checking for $ac_word... " >&6; }
  4562. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. if test -n "$ac_ct_AR"; then
  4566. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4567. else
  4568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4569. for as_dir in $PATH
  4570. do
  4571. IFS=$as_save_IFS
  4572. test -z "$as_dir" && as_dir=.
  4573. for ac_exec_ext in '' $ac_executable_extensions; do
  4574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4575. ac_cv_prog_ac_ct_AR="$ac_prog"
  4576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4577. break 2
  4578. fi
  4579. done
  4580. done
  4581. IFS=$as_save_IFS
  4582. fi
  4583. fi
  4584. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4585. if test -n "$ac_ct_AR"; then
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4587. $as_echo "$ac_ct_AR" >&6; }
  4588. else
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4590. $as_echo "no" >&6; }
  4591. fi
  4592. test -n "$ac_ct_AR" && break
  4593. done
  4594. if test "x$ac_ct_AR" = x; then
  4595. AR="false"
  4596. else
  4597. case $cross_compiling:$ac_tool_warned in
  4598. yes:)
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4601. ac_tool_warned=yes ;;
  4602. esac
  4603. AR=$ac_ct_AR
  4604. fi
  4605. fi
  4606. : ${AR=ar}
  4607. : ${AR_FLAGS=cru}
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4609. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4610. if ${lt_cv_ar_at_file+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. lt_cv_ar_at_file=no
  4614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4615. /* end confdefs.h. */
  4616. int
  4617. main ()
  4618. {
  4619. ;
  4620. return 0;
  4621. }
  4622. _ACEOF
  4623. if ac_fn_c_try_compile "$LINENO"; then :
  4624. echo conftest.$ac_objext > conftest.lst
  4625. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4626. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4627. (eval $lt_ar_try) 2>&5
  4628. ac_status=$?
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4630. test $ac_status = 0; }
  4631. if test "$ac_status" -eq 0; then
  4632. # Ensure the archiver fails upon bogus file names.
  4633. rm -f conftest.$ac_objext libconftest.a
  4634. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4635. (eval $lt_ar_try) 2>&5
  4636. ac_status=$?
  4637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4638. test $ac_status = 0; }
  4639. if test "$ac_status" -ne 0; then
  4640. lt_cv_ar_at_file=@
  4641. fi
  4642. fi
  4643. rm -f conftest.* libconftest.a
  4644. fi
  4645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4646. fi
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4648. $as_echo "$lt_cv_ar_at_file" >&6; }
  4649. if test "x$lt_cv_ar_at_file" = xno; then
  4650. archiver_list_spec=
  4651. else
  4652. archiver_list_spec=$lt_cv_ar_at_file
  4653. fi
  4654. if test -n "$ac_tool_prefix"; then
  4655. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4656. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4658. $as_echo_n "checking for $ac_word... " >&6; }
  4659. if ${ac_cv_prog_STRIP+:} false; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. if test -n "$STRIP"; then
  4663. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4664. else
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4672. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. fi
  4680. fi
  4681. STRIP=$ac_cv_prog_STRIP
  4682. if test -n "$STRIP"; then
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4684. $as_echo "$STRIP" >&6; }
  4685. else
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4687. $as_echo "no" >&6; }
  4688. fi
  4689. fi
  4690. if test -z "$ac_cv_prog_STRIP"; then
  4691. ac_ct_STRIP=$STRIP
  4692. # Extract the first word of "strip", so it can be a program name with args.
  4693. set dummy strip; ac_word=$2
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4695. $as_echo_n "checking for $ac_word... " >&6; }
  4696. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. if test -n "$ac_ct_STRIP"; then
  4700. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4701. else
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH
  4704. do
  4705. IFS=$as_save_IFS
  4706. test -z "$as_dir" && as_dir=.
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4709. ac_cv_prog_ac_ct_STRIP="strip"
  4710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4711. break 2
  4712. fi
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. fi
  4717. fi
  4718. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4719. if test -n "$ac_ct_STRIP"; then
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4721. $as_echo "$ac_ct_STRIP" >&6; }
  4722. else
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4724. $as_echo "no" >&6; }
  4725. fi
  4726. if test "x$ac_ct_STRIP" = x; then
  4727. STRIP=":"
  4728. else
  4729. case $cross_compiling:$ac_tool_warned in
  4730. yes:)
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4733. ac_tool_warned=yes ;;
  4734. esac
  4735. STRIP=$ac_ct_STRIP
  4736. fi
  4737. else
  4738. STRIP="$ac_cv_prog_STRIP"
  4739. fi
  4740. test -z "$STRIP" && STRIP=:
  4741. if test -n "$ac_tool_prefix"; then
  4742. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4743. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4745. $as_echo_n "checking for $ac_word... " >&6; }
  4746. if ${ac_cv_prog_RANLIB+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. if test -n "$RANLIB"; then
  4750. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4751. else
  4752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4753. for as_dir in $PATH
  4754. do
  4755. IFS=$as_save_IFS
  4756. test -z "$as_dir" && as_dir=.
  4757. for ac_exec_ext in '' $ac_executable_extensions; do
  4758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4759. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4761. break 2
  4762. fi
  4763. done
  4764. done
  4765. IFS=$as_save_IFS
  4766. fi
  4767. fi
  4768. RANLIB=$ac_cv_prog_RANLIB
  4769. if test -n "$RANLIB"; then
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4771. $as_echo "$RANLIB" >&6; }
  4772. else
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4774. $as_echo "no" >&6; }
  4775. fi
  4776. fi
  4777. if test -z "$ac_cv_prog_RANLIB"; then
  4778. ac_ct_RANLIB=$RANLIB
  4779. # Extract the first word of "ranlib", so it can be a program name with args.
  4780. set dummy ranlib; ac_word=$2
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4782. $as_echo_n "checking for $ac_word... " >&6; }
  4783. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. if test -n "$ac_ct_RANLIB"; then
  4787. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4788. else
  4789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4790. for as_dir in $PATH
  4791. do
  4792. IFS=$as_save_IFS
  4793. test -z "$as_dir" && as_dir=.
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4796. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4798. break 2
  4799. fi
  4800. done
  4801. done
  4802. IFS=$as_save_IFS
  4803. fi
  4804. fi
  4805. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4806. if test -n "$ac_ct_RANLIB"; then
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4808. $as_echo "$ac_ct_RANLIB" >&6; }
  4809. else
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4811. $as_echo "no" >&6; }
  4812. fi
  4813. if test "x$ac_ct_RANLIB" = x; then
  4814. RANLIB=":"
  4815. else
  4816. case $cross_compiling:$ac_tool_warned in
  4817. yes:)
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4820. ac_tool_warned=yes ;;
  4821. esac
  4822. RANLIB=$ac_ct_RANLIB
  4823. fi
  4824. else
  4825. RANLIB="$ac_cv_prog_RANLIB"
  4826. fi
  4827. test -z "$RANLIB" && RANLIB=:
  4828. # Determine commands to create old-style static archives.
  4829. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4830. old_postinstall_cmds='chmod 644 $oldlib'
  4831. old_postuninstall_cmds=
  4832. if test -n "$RANLIB"; then
  4833. case $host_os in
  4834. openbsd*)
  4835. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4836. ;;
  4837. *)
  4838. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4839. ;;
  4840. esac
  4841. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4842. fi
  4843. case $host_os in
  4844. darwin*)
  4845. lock_old_archive_extraction=yes ;;
  4846. *)
  4847. lock_old_archive_extraction=no ;;
  4848. esac
  4849. for ac_prog in gawk mawk nawk awk
  4850. do
  4851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4852. set dummy $ac_prog; ac_word=$2
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4854. $as_echo_n "checking for $ac_word... " >&6; }
  4855. if ${ac_cv_prog_AWK+:} false; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. if test -n "$AWK"; then
  4859. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4860. else
  4861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4862. for as_dir in $PATH
  4863. do
  4864. IFS=$as_save_IFS
  4865. test -z "$as_dir" && as_dir=.
  4866. for ac_exec_ext in '' $ac_executable_extensions; do
  4867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4868. ac_cv_prog_AWK="$ac_prog"
  4869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4870. break 2
  4871. fi
  4872. done
  4873. done
  4874. IFS=$as_save_IFS
  4875. fi
  4876. fi
  4877. AWK=$ac_cv_prog_AWK
  4878. if test -n "$AWK"; then
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4880. $as_echo "$AWK" >&6; }
  4881. else
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4883. $as_echo "no" >&6; }
  4884. fi
  4885. test -n "$AWK" && break
  4886. done
  4887. # If no C compiler was specified, use CC.
  4888. LTCC=${LTCC-"$CC"}
  4889. # If no C compiler flags were specified, use CFLAGS.
  4890. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4891. # Allow CC to be a program name with arguments.
  4892. compiler=$CC
  4893. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4895. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4896. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. # These are sane defaults that work on at least a few old systems.
  4900. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4901. # Character class describing NM global symbol codes.
  4902. symcode='[BCDEGRST]'
  4903. # Regexp to match symbols that can be accessed directly from C.
  4904. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4905. # Define system-specific variables.
  4906. case $host_os in
  4907. aix*)
  4908. symcode='[BCDT]'
  4909. ;;
  4910. cygwin* | mingw* | pw32* | cegcc*)
  4911. symcode='[ABCDGISTW]'
  4912. ;;
  4913. hpux*)
  4914. if test "$host_cpu" = ia64; then
  4915. symcode='[ABCDEGRST]'
  4916. fi
  4917. ;;
  4918. irix* | nonstopux*)
  4919. symcode='[BCDEGRST]'
  4920. ;;
  4921. osf*)
  4922. symcode='[BCDEGQRST]'
  4923. ;;
  4924. solaris*)
  4925. symcode='[BDRT]'
  4926. ;;
  4927. sco3.2v5*)
  4928. symcode='[DT]'
  4929. ;;
  4930. sysv4.2uw2*)
  4931. symcode='[DT]'
  4932. ;;
  4933. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4934. symcode='[ABDT]'
  4935. ;;
  4936. sysv4)
  4937. symcode='[DFNSTU]'
  4938. ;;
  4939. esac
  4940. # If we're using GNU nm, then use its standard symbol codes.
  4941. case `$NM -V 2>&1` in
  4942. *GNU* | *'with BFD'*)
  4943. symcode='[ABCDGIRSTW]' ;;
  4944. esac
  4945. # Transform an extracted symbol line into a proper C declaration.
  4946. # Some systems (esp. on ia64) link data and code symbols differently,
  4947. # so use this general approach.
  4948. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4949. # Transform an extracted symbol line into symbol name and symbol address
  4950. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4951. 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'"
  4952. # Handle CRLF in mingw tool chain
  4953. opt_cr=
  4954. case $build_os in
  4955. mingw*)
  4956. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4957. ;;
  4958. esac
  4959. # Try without a prefix underscore, then with it.
  4960. for ac_symprfx in "" "_"; do
  4961. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4962. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4963. # Write the raw and C identifiers.
  4964. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4965. # Fake it for dumpbin and say T for any non-static function
  4966. # and D for any global variable.
  4967. # Also find C++ and __fastcall symbols from MSVC++,
  4968. # which start with @ or ?.
  4969. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4970. " {last_section=section; section=\$ 3};"\
  4971. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4972. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4973. " \$ 0!~/External *\|/{next};"\
  4974. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4975. " {if(hide[section]) next};"\
  4976. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4977. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4978. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4979. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4980. " ' prfx=^$ac_symprfx"
  4981. else
  4982. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4983. fi
  4984. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4985. # Check to see that the pipe works correctly.
  4986. pipe_works=no
  4987. rm -f conftest*
  4988. cat > conftest.$ac_ext <<_LT_EOF
  4989. #ifdef __cplusplus
  4990. extern "C" {
  4991. #endif
  4992. char nm_test_var;
  4993. void nm_test_func(void);
  4994. void nm_test_func(void){}
  4995. #ifdef __cplusplus
  4996. }
  4997. #endif
  4998. int main(){nm_test_var='a';nm_test_func();return(0);}
  4999. _LT_EOF
  5000. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5001. (eval $ac_compile) 2>&5
  5002. ac_status=$?
  5003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5004. test $ac_status = 0; }; then
  5005. # Now try to grab the symbols.
  5006. nlist=conftest.nm
  5007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5008. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5009. ac_status=$?
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5011. test $ac_status = 0; } && test -s "$nlist"; then
  5012. # Try sorting and uniquifying the output.
  5013. if sort "$nlist" | uniq > "$nlist"T; then
  5014. mv -f "$nlist"T "$nlist"
  5015. else
  5016. rm -f "$nlist"T
  5017. fi
  5018. # Make sure that we snagged all the symbols we need.
  5019. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5020. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5021. cat <<_LT_EOF > conftest.$ac_ext
  5022. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5023. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5024. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5025. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5026. # define LT_DLSYM_CONST
  5027. #elif defined(__osf__)
  5028. /* This system does not cope well with relocations in const data. */
  5029. # define LT_DLSYM_CONST
  5030. #else
  5031. # define LT_DLSYM_CONST const
  5032. #endif
  5033. #ifdef __cplusplus
  5034. extern "C" {
  5035. #endif
  5036. _LT_EOF
  5037. # Now generate the symbol file.
  5038. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5039. cat <<_LT_EOF >> conftest.$ac_ext
  5040. /* The mapping between symbol names and symbols. */
  5041. LT_DLSYM_CONST struct {
  5042. const char *name;
  5043. void *address;
  5044. }
  5045. lt__PROGRAM__LTX_preloaded_symbols[] =
  5046. {
  5047. { "@PROGRAM@", (void *) 0 },
  5048. _LT_EOF
  5049. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5050. cat <<\_LT_EOF >> conftest.$ac_ext
  5051. {0, (void *) 0}
  5052. };
  5053. /* This works around a problem in FreeBSD linker */
  5054. #ifdef FREEBSD_WORKAROUND
  5055. static const void *lt_preloaded_setup() {
  5056. return lt__PROGRAM__LTX_preloaded_symbols;
  5057. }
  5058. #endif
  5059. #ifdef __cplusplus
  5060. }
  5061. #endif
  5062. _LT_EOF
  5063. # Now try linking the two files.
  5064. mv conftest.$ac_objext conftstm.$ac_objext
  5065. lt_globsym_save_LIBS=$LIBS
  5066. lt_globsym_save_CFLAGS=$CFLAGS
  5067. LIBS="conftstm.$ac_objext"
  5068. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5070. (eval $ac_link) 2>&5
  5071. ac_status=$?
  5072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5073. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5074. pipe_works=yes
  5075. fi
  5076. LIBS=$lt_globsym_save_LIBS
  5077. CFLAGS=$lt_globsym_save_CFLAGS
  5078. else
  5079. echo "cannot find nm_test_func in $nlist" >&5
  5080. fi
  5081. else
  5082. echo "cannot find nm_test_var in $nlist" >&5
  5083. fi
  5084. else
  5085. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5086. fi
  5087. else
  5088. echo "$progname: failed program was:" >&5
  5089. cat conftest.$ac_ext >&5
  5090. fi
  5091. rm -rf conftest* conftst*
  5092. # Do not use the global_symbol_pipe unless it works.
  5093. if test "$pipe_works" = yes; then
  5094. break
  5095. else
  5096. lt_cv_sys_global_symbol_pipe=
  5097. fi
  5098. done
  5099. fi
  5100. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5101. lt_cv_sys_global_symbol_to_cdecl=
  5102. fi
  5103. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5105. $as_echo "failed" >&6; }
  5106. else
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5108. $as_echo "ok" >&6; }
  5109. fi
  5110. # Response file support.
  5111. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5112. nm_file_list_spec='@'
  5113. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5114. nm_file_list_spec='@'
  5115. fi
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5117. $as_echo_n "checking for sysroot... " >&6; }
  5118. # Check whether --with-sysroot was given.
  5119. if test "${with_sysroot+set}" = set; then :
  5120. withval=$with_sysroot;
  5121. else
  5122. with_sysroot=no
  5123. fi
  5124. lt_sysroot=
  5125. case ${with_sysroot} in #(
  5126. yes)
  5127. if test "$GCC" = yes; then
  5128. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5129. fi
  5130. ;; #(
  5131. /*)
  5132. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5133. ;; #(
  5134. no|'')
  5135. ;; #(
  5136. *)
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5138. $as_echo "${with_sysroot}" >&6; }
  5139. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5140. ;;
  5141. esac
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5143. $as_echo "${lt_sysroot:-no}" >&6; }
  5144. # Check whether --enable-libtool-lock was given.
  5145. if test "${enable_libtool_lock+set}" = set; then :
  5146. enableval=$enable_libtool_lock;
  5147. fi
  5148. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5149. # Some flags need to be propagated to the compiler or linker for good
  5150. # libtool support.
  5151. case $host in
  5152. ia64-*-hpux*)
  5153. # Find out which ABI we are using.
  5154. echo 'int i;' > conftest.$ac_ext
  5155. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5156. (eval $ac_compile) 2>&5
  5157. ac_status=$?
  5158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5159. test $ac_status = 0; }; then
  5160. case `/usr/bin/file conftest.$ac_objext` in
  5161. *ELF-32*)
  5162. HPUX_IA64_MODE="32"
  5163. ;;
  5164. *ELF-64*)
  5165. HPUX_IA64_MODE="64"
  5166. ;;
  5167. esac
  5168. fi
  5169. rm -rf conftest*
  5170. ;;
  5171. *-*-irix6*)
  5172. # Find out which ABI we are using.
  5173. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5175. (eval $ac_compile) 2>&5
  5176. ac_status=$?
  5177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5178. test $ac_status = 0; }; then
  5179. if test "$lt_cv_prog_gnu_ld" = yes; then
  5180. case `/usr/bin/file conftest.$ac_objext` in
  5181. *32-bit*)
  5182. LD="${LD-ld} -melf32bsmip"
  5183. ;;
  5184. *N32*)
  5185. LD="${LD-ld} -melf32bmipn32"
  5186. ;;
  5187. *64-bit*)
  5188. LD="${LD-ld} -melf64bmip"
  5189. ;;
  5190. esac
  5191. else
  5192. case `/usr/bin/file conftest.$ac_objext` in
  5193. *32-bit*)
  5194. LD="${LD-ld} -32"
  5195. ;;
  5196. *N32*)
  5197. LD="${LD-ld} -n32"
  5198. ;;
  5199. *64-bit*)
  5200. LD="${LD-ld} -64"
  5201. ;;
  5202. esac
  5203. fi
  5204. fi
  5205. rm -rf conftest*
  5206. ;;
  5207. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5208. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5209. # Find out which ABI we are using.
  5210. echo 'int i;' > conftest.$ac_ext
  5211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5212. (eval $ac_compile) 2>&5
  5213. ac_status=$?
  5214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5215. test $ac_status = 0; }; then
  5216. case `/usr/bin/file conftest.o` in
  5217. *32-bit*)
  5218. case $host in
  5219. x86_64-*kfreebsd*-gnu)
  5220. LD="${LD-ld} -m elf_i386_fbsd"
  5221. ;;
  5222. x86_64-*linux*)
  5223. LD="${LD-ld} -m elf_i386"
  5224. ;;
  5225. ppc64-*linux*|powerpc64-*linux*)
  5226. LD="${LD-ld} -m elf32ppclinux"
  5227. ;;
  5228. s390x-*linux*)
  5229. LD="${LD-ld} -m elf_s390"
  5230. ;;
  5231. sparc64-*linux*)
  5232. LD="${LD-ld} -m elf32_sparc"
  5233. ;;
  5234. esac
  5235. ;;
  5236. *64-bit*)
  5237. case $host in
  5238. x86_64-*kfreebsd*-gnu)
  5239. LD="${LD-ld} -m elf_x86_64_fbsd"
  5240. ;;
  5241. x86_64-*linux*)
  5242. LD="${LD-ld} -m elf_x86_64"
  5243. ;;
  5244. ppc*-*linux*|powerpc*-*linux*)
  5245. LD="${LD-ld} -m elf64ppc"
  5246. ;;
  5247. s390*-*linux*|s390*-*tpf*)
  5248. LD="${LD-ld} -m elf64_s390"
  5249. ;;
  5250. sparc*-*linux*)
  5251. LD="${LD-ld} -m elf64_sparc"
  5252. ;;
  5253. esac
  5254. ;;
  5255. esac
  5256. fi
  5257. rm -rf conftest*
  5258. ;;
  5259. *-*-sco3.2v5*)
  5260. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5261. SAVE_CFLAGS="$CFLAGS"
  5262. CFLAGS="$CFLAGS -belf"
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5264. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5265. if ${lt_cv_cc_needs_belf+:} false; then :
  5266. $as_echo_n "(cached) " >&6
  5267. else
  5268. ac_ext=c
  5269. ac_cpp='$CPP $CPPFLAGS'
  5270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5274. /* end confdefs.h. */
  5275. int
  5276. main ()
  5277. {
  5278. ;
  5279. return 0;
  5280. }
  5281. _ACEOF
  5282. if ac_fn_c_try_link "$LINENO"; then :
  5283. lt_cv_cc_needs_belf=yes
  5284. else
  5285. lt_cv_cc_needs_belf=no
  5286. fi
  5287. rm -f core conftest.err conftest.$ac_objext \
  5288. conftest$ac_exeext conftest.$ac_ext
  5289. ac_ext=c
  5290. ac_cpp='$CPP $CPPFLAGS'
  5291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5294. fi
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5296. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5297. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5298. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5299. CFLAGS="$SAVE_CFLAGS"
  5300. fi
  5301. ;;
  5302. *-*solaris*)
  5303. # Find out which ABI we are using.
  5304. echo 'int i;' > conftest.$ac_ext
  5305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5306. (eval $ac_compile) 2>&5
  5307. ac_status=$?
  5308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5309. test $ac_status = 0; }; then
  5310. case `/usr/bin/file conftest.o` in
  5311. *64-bit*)
  5312. case $lt_cv_prog_gnu_ld in
  5313. yes*)
  5314. case $host in
  5315. i?86-*-solaris*)
  5316. LD="${LD-ld} -m elf_x86_64"
  5317. ;;
  5318. sparc*-*-solaris*)
  5319. LD="${LD-ld} -m elf64_sparc"
  5320. ;;
  5321. esac
  5322. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5323. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5324. LD="${LD-ld}_sol2"
  5325. fi
  5326. ;;
  5327. *)
  5328. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5329. LD="${LD-ld} -64"
  5330. fi
  5331. ;;
  5332. esac
  5333. ;;
  5334. esac
  5335. fi
  5336. rm -rf conftest*
  5337. ;;
  5338. esac
  5339. need_locks="$enable_libtool_lock"
  5340. if test -n "$ac_tool_prefix"; then
  5341. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5342. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5344. $as_echo_n "checking for $ac_word... " >&6; }
  5345. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. if test -n "$MANIFEST_TOOL"; then
  5349. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5350. else
  5351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5352. for as_dir in $PATH
  5353. do
  5354. IFS=$as_save_IFS
  5355. test -z "$as_dir" && as_dir=.
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5358. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5360. break 2
  5361. fi
  5362. done
  5363. done
  5364. IFS=$as_save_IFS
  5365. fi
  5366. fi
  5367. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5368. if test -n "$MANIFEST_TOOL"; then
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5370. $as_echo "$MANIFEST_TOOL" >&6; }
  5371. else
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5373. $as_echo "no" >&6; }
  5374. fi
  5375. fi
  5376. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5377. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5378. # Extract the first word of "mt", so it can be a program name with args.
  5379. set dummy mt; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5386. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5395. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5405. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5407. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5413. MANIFEST_TOOL=":"
  5414. else
  5415. case $cross_compiling:$ac_tool_warned in
  5416. yes:)
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5418. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5419. ac_tool_warned=yes ;;
  5420. esac
  5421. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5422. fi
  5423. else
  5424. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5425. fi
  5426. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5428. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5429. if ${lt_cv_path_mainfest_tool+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. lt_cv_path_mainfest_tool=no
  5433. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5434. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5435. cat conftest.err >&5
  5436. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5437. lt_cv_path_mainfest_tool=yes
  5438. fi
  5439. rm -f conftest*
  5440. fi
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5442. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5443. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5444. MANIFEST_TOOL=:
  5445. fi
  5446. case $host_os in
  5447. rhapsody* | darwin*)
  5448. if test -n "$ac_tool_prefix"; then
  5449. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5450. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5452. $as_echo_n "checking for $ac_word... " >&6; }
  5453. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. if test -n "$DSYMUTIL"; then
  5457. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. test -z "$as_dir" && as_dir=.
  5464. for ac_exec_ext in '' $ac_executable_extensions; do
  5465. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5466. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5468. break 2
  5469. fi
  5470. done
  5471. done
  5472. IFS=$as_save_IFS
  5473. fi
  5474. fi
  5475. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5476. if test -n "$DSYMUTIL"; then
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5478. $as_echo "$DSYMUTIL" >&6; }
  5479. else
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5481. $as_echo "no" >&6; }
  5482. fi
  5483. fi
  5484. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5485. ac_ct_DSYMUTIL=$DSYMUTIL
  5486. # Extract the first word of "dsymutil", so it can be a program name with args.
  5487. set dummy dsymutil; ac_word=$2
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if test -n "$ac_ct_DSYMUTIL"; then
  5494. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5495. else
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5503. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5513. if test -n "$ac_ct_DSYMUTIL"; then
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5515. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5516. else
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520. if test "x$ac_ct_DSYMUTIL" = x; then
  5521. DSYMUTIL=":"
  5522. else
  5523. case $cross_compiling:$ac_tool_warned in
  5524. yes:)
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5526. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5527. ac_tool_warned=yes ;;
  5528. esac
  5529. DSYMUTIL=$ac_ct_DSYMUTIL
  5530. fi
  5531. else
  5532. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5533. fi
  5534. if test -n "$ac_tool_prefix"; then
  5535. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5536. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5538. $as_echo_n "checking for $ac_word... " >&6; }
  5539. if ${ac_cv_prog_NMEDIT+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -n "$NMEDIT"; then
  5543. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5544. else
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for ac_exec_ext in '' $ac_executable_extensions; do
  5551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5552. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5554. break 2
  5555. fi
  5556. done
  5557. done
  5558. IFS=$as_save_IFS
  5559. fi
  5560. fi
  5561. NMEDIT=$ac_cv_prog_NMEDIT
  5562. if test -n "$NMEDIT"; then
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5564. $as_echo "$NMEDIT" >&6; }
  5565. else
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5567. $as_echo "no" >&6; }
  5568. fi
  5569. fi
  5570. if test -z "$ac_cv_prog_NMEDIT"; then
  5571. ac_ct_NMEDIT=$NMEDIT
  5572. # Extract the first word of "nmedit", so it can be a program name with args.
  5573. set dummy nmedit; ac_word=$2
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. $as_echo_n "checking for $ac_word... " >&6; }
  5576. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if test -n "$ac_ct_NMEDIT"; then
  5580. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5581. else
  5582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5583. for as_dir in $PATH
  5584. do
  5585. IFS=$as_save_IFS
  5586. test -z "$as_dir" && as_dir=.
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5589. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5591. break 2
  5592. fi
  5593. done
  5594. done
  5595. IFS=$as_save_IFS
  5596. fi
  5597. fi
  5598. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5599. if test -n "$ac_ct_NMEDIT"; then
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5601. $as_echo "$ac_ct_NMEDIT" >&6; }
  5602. else
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5604. $as_echo "no" >&6; }
  5605. fi
  5606. if test "x$ac_ct_NMEDIT" = x; then
  5607. NMEDIT=":"
  5608. else
  5609. case $cross_compiling:$ac_tool_warned in
  5610. yes:)
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5612. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5613. ac_tool_warned=yes ;;
  5614. esac
  5615. NMEDIT=$ac_ct_NMEDIT
  5616. fi
  5617. else
  5618. NMEDIT="$ac_cv_prog_NMEDIT"
  5619. fi
  5620. if test -n "$ac_tool_prefix"; then
  5621. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5622. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5624. $as_echo_n "checking for $ac_word... " >&6; }
  5625. if ${ac_cv_prog_LIPO+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. if test -n "$LIPO"; then
  5629. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5630. else
  5631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5632. for as_dir in $PATH
  5633. do
  5634. IFS=$as_save_IFS
  5635. test -z "$as_dir" && as_dir=.
  5636. for ac_exec_ext in '' $ac_executable_extensions; do
  5637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5638. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5640. break 2
  5641. fi
  5642. done
  5643. done
  5644. IFS=$as_save_IFS
  5645. fi
  5646. fi
  5647. LIPO=$ac_cv_prog_LIPO
  5648. if test -n "$LIPO"; then
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5650. $as_echo "$LIPO" >&6; }
  5651. else
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5653. $as_echo "no" >&6; }
  5654. fi
  5655. fi
  5656. if test -z "$ac_cv_prog_LIPO"; then
  5657. ac_ct_LIPO=$LIPO
  5658. # Extract the first word of "lipo", so it can be a program name with args.
  5659. set dummy lipo; ac_word=$2
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5661. $as_echo_n "checking for $ac_word... " >&6; }
  5662. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5663. $as_echo_n "(cached) " >&6
  5664. else
  5665. if test -n "$ac_ct_LIPO"; then
  5666. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5667. else
  5668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5669. for as_dir in $PATH
  5670. do
  5671. IFS=$as_save_IFS
  5672. test -z "$as_dir" && as_dir=.
  5673. for ac_exec_ext in '' $ac_executable_extensions; do
  5674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5675. ac_cv_prog_ac_ct_LIPO="lipo"
  5676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5677. break 2
  5678. fi
  5679. done
  5680. done
  5681. IFS=$as_save_IFS
  5682. fi
  5683. fi
  5684. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5685. if test -n "$ac_ct_LIPO"; then
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5687. $as_echo "$ac_ct_LIPO" >&6; }
  5688. else
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. fi
  5692. if test "x$ac_ct_LIPO" = x; then
  5693. LIPO=":"
  5694. else
  5695. case $cross_compiling:$ac_tool_warned in
  5696. yes:)
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5698. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5699. ac_tool_warned=yes ;;
  5700. esac
  5701. LIPO=$ac_ct_LIPO
  5702. fi
  5703. else
  5704. LIPO="$ac_cv_prog_LIPO"
  5705. fi
  5706. if test -n "$ac_tool_prefix"; then
  5707. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5708. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. $as_echo_n "checking for $ac_word... " >&6; }
  5711. if ${ac_cv_prog_OTOOL+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -n "$OTOOL"; then
  5715. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5716. else
  5717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5718. for as_dir in $PATH
  5719. do
  5720. IFS=$as_save_IFS
  5721. test -z "$as_dir" && as_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5724. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. OTOOL=$ac_cv_prog_OTOOL
  5734. if test -n "$OTOOL"; then
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5736. $as_echo "$OTOOL" >&6; }
  5737. else
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. $as_echo "no" >&6; }
  5740. fi
  5741. fi
  5742. if test -z "$ac_cv_prog_OTOOL"; then
  5743. ac_ct_OTOOL=$OTOOL
  5744. # Extract the first word of "otool", so it can be a program name with args.
  5745. set dummy otool; ac_word=$2
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5747. $as_echo_n "checking for $ac_word... " >&6; }
  5748. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. if test -n "$ac_ct_OTOOL"; then
  5752. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5753. else
  5754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5755. for as_dir in $PATH
  5756. do
  5757. IFS=$as_save_IFS
  5758. test -z "$as_dir" && as_dir=.
  5759. for ac_exec_ext in '' $ac_executable_extensions; do
  5760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5761. ac_cv_prog_ac_ct_OTOOL="otool"
  5762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5763. break 2
  5764. fi
  5765. done
  5766. done
  5767. IFS=$as_save_IFS
  5768. fi
  5769. fi
  5770. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5771. if test -n "$ac_ct_OTOOL"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5773. $as_echo "$ac_ct_OTOOL" >&6; }
  5774. else
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. $as_echo "no" >&6; }
  5777. fi
  5778. if test "x$ac_ct_OTOOL" = x; then
  5779. OTOOL=":"
  5780. else
  5781. case $cross_compiling:$ac_tool_warned in
  5782. yes:)
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5784. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5785. ac_tool_warned=yes ;;
  5786. esac
  5787. OTOOL=$ac_ct_OTOOL
  5788. fi
  5789. else
  5790. OTOOL="$ac_cv_prog_OTOOL"
  5791. fi
  5792. if test -n "$ac_tool_prefix"; then
  5793. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5794. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if ${ac_cv_prog_OTOOL64+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$OTOOL64"; then
  5801. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5810. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. OTOOL64=$ac_cv_prog_OTOOL64
  5820. if test -n "$OTOOL64"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5822. $as_echo "$OTOOL64" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. fi
  5828. if test -z "$ac_cv_prog_OTOOL64"; then
  5829. ac_ct_OTOOL64=$OTOOL64
  5830. # Extract the first word of "otool64", so it can be a program name with args.
  5831. set dummy otool64; ac_word=$2
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5833. $as_echo_n "checking for $ac_word... " >&6; }
  5834. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5835. $as_echo_n "(cached) " >&6
  5836. else
  5837. if test -n "$ac_ct_OTOOL64"; then
  5838. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5839. else
  5840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5841. for as_dir in $PATH
  5842. do
  5843. IFS=$as_save_IFS
  5844. test -z "$as_dir" && as_dir=.
  5845. for ac_exec_ext in '' $ac_executable_extensions; do
  5846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5847. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5849. break 2
  5850. fi
  5851. done
  5852. done
  5853. IFS=$as_save_IFS
  5854. fi
  5855. fi
  5856. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5857. if test -n "$ac_ct_OTOOL64"; then
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5859. $as_echo "$ac_ct_OTOOL64" >&6; }
  5860. else
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5862. $as_echo "no" >&6; }
  5863. fi
  5864. if test "x$ac_ct_OTOOL64" = x; then
  5865. OTOOL64=":"
  5866. else
  5867. case $cross_compiling:$ac_tool_warned in
  5868. yes:)
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5871. ac_tool_warned=yes ;;
  5872. esac
  5873. OTOOL64=$ac_ct_OTOOL64
  5874. fi
  5875. else
  5876. OTOOL64="$ac_cv_prog_OTOOL64"
  5877. fi
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5879. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5880. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. lt_cv_apple_cc_single_mod=no
  5884. if test -z "${LT_MULTI_MODULE}"; then
  5885. # By default we will add the -single_module flag. You can override
  5886. # by either setting the environment variable LT_MULTI_MODULE
  5887. # non-empty at configure time, or by adding -multi_module to the
  5888. # link flags.
  5889. rm -rf libconftest.dylib*
  5890. echo "int foo(void){return 1;}" > conftest.c
  5891. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5892. -dynamiclib -Wl,-single_module conftest.c" >&5
  5893. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5894. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5895. _lt_result=$?
  5896. # If there is a non-empty error log, and "single_module"
  5897. # appears in it, assume the flag caused a linker warning
  5898. if test -s conftest.err && $GREP single_module conftest.err; then
  5899. cat conftest.err >&5
  5900. # Otherwise, if the output was created with a 0 exit code from
  5901. # the compiler, it worked.
  5902. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5903. lt_cv_apple_cc_single_mod=yes
  5904. else
  5905. cat conftest.err >&5
  5906. fi
  5907. rm -rf libconftest.dylib*
  5908. rm -f conftest.*
  5909. fi
  5910. fi
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5912. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5914. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5915. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5916. $as_echo_n "(cached) " >&6
  5917. else
  5918. lt_cv_ld_exported_symbols_list=no
  5919. save_LDFLAGS=$LDFLAGS
  5920. echo "_main" > conftest.sym
  5921. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5923. /* end confdefs.h. */
  5924. int
  5925. main ()
  5926. {
  5927. ;
  5928. return 0;
  5929. }
  5930. _ACEOF
  5931. if ac_fn_c_try_link "$LINENO"; then :
  5932. lt_cv_ld_exported_symbols_list=yes
  5933. else
  5934. lt_cv_ld_exported_symbols_list=no
  5935. fi
  5936. rm -f core conftest.err conftest.$ac_objext \
  5937. conftest$ac_exeext conftest.$ac_ext
  5938. LDFLAGS="$save_LDFLAGS"
  5939. fi
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5941. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5943. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5944. if ${lt_cv_ld_force_load+:} false; then :
  5945. $as_echo_n "(cached) " >&6
  5946. else
  5947. lt_cv_ld_force_load=no
  5948. cat > conftest.c << _LT_EOF
  5949. int forced_loaded() { return 2;}
  5950. _LT_EOF
  5951. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5952. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5953. echo "$AR cru libconftest.a conftest.o" >&5
  5954. $AR cru libconftest.a conftest.o 2>&5
  5955. echo "$RANLIB libconftest.a" >&5
  5956. $RANLIB libconftest.a 2>&5
  5957. cat > conftest.c << _LT_EOF
  5958. int main() { return 0;}
  5959. _LT_EOF
  5960. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5961. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5962. _lt_result=$?
  5963. if test -s conftest.err && $GREP force_load conftest.err; then
  5964. cat conftest.err >&5
  5965. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5966. lt_cv_ld_force_load=yes
  5967. else
  5968. cat conftest.err >&5
  5969. fi
  5970. rm -f conftest.err libconftest.a conftest conftest.c
  5971. rm -rf conftest.dSYM
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5974. $as_echo "$lt_cv_ld_force_load" >&6; }
  5975. case $host_os in
  5976. rhapsody* | darwin1.[012])
  5977. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5978. darwin1.*)
  5979. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5980. darwin*) # darwin 5.x on
  5981. # if running on 10.5 or later, the deployment target defaults
  5982. # to the OS version, if on x86, and 10.4, the deployment
  5983. # target defaults to 10.4. Don't you love it?
  5984. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5985. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5986. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5987. 10.[012]*)
  5988. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5989. 10.*)
  5990. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5991. esac
  5992. ;;
  5993. esac
  5994. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5995. _lt_dar_single_mod='$single_module'
  5996. fi
  5997. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5998. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5999. else
  6000. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6001. fi
  6002. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6003. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6004. else
  6005. _lt_dsymutil=
  6006. fi
  6007. ;;
  6008. esac
  6009. ac_ext=c
  6010. ac_cpp='$CPP $CPPFLAGS'
  6011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6015. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6016. # On Suns, sometimes $CPP names a directory.
  6017. if test -n "$CPP" && test -d "$CPP"; then
  6018. CPP=
  6019. fi
  6020. if test -z "$CPP"; then
  6021. if ${ac_cv_prog_CPP+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. # Double quotes because CPP needs to be expanded
  6025. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6026. do
  6027. ac_preproc_ok=false
  6028. for ac_c_preproc_warn_flag in '' yes
  6029. do
  6030. # Use a header file that comes with gcc, so configuring glibc
  6031. # with a fresh cross-compiler works.
  6032. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6033. # <limits.h> exists even on freestanding compilers.
  6034. # On the NeXT, cc -E runs the code through the compiler's parser,
  6035. # not just through cpp. "Syntax error" is here to catch this case.
  6036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6037. /* end confdefs.h. */
  6038. #ifdef __STDC__
  6039. # include <limits.h>
  6040. #else
  6041. # include <assert.h>
  6042. #endif
  6043. Syntax error
  6044. _ACEOF
  6045. if ac_fn_c_try_cpp "$LINENO"; then :
  6046. else
  6047. # Broken: fails on valid input.
  6048. continue
  6049. fi
  6050. rm -f conftest.err conftest.i conftest.$ac_ext
  6051. # OK, works on sane cases. Now check whether nonexistent headers
  6052. # can be detected and how.
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h. */
  6055. #include <ac_nonexistent.h>
  6056. _ACEOF
  6057. if ac_fn_c_try_cpp "$LINENO"; then :
  6058. # Broken: success on invalid input.
  6059. continue
  6060. else
  6061. # Passes both tests.
  6062. ac_preproc_ok=:
  6063. break
  6064. fi
  6065. rm -f conftest.err conftest.i conftest.$ac_ext
  6066. done
  6067. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6068. rm -f conftest.i conftest.err conftest.$ac_ext
  6069. if $ac_preproc_ok; then :
  6070. break
  6071. fi
  6072. done
  6073. ac_cv_prog_CPP=$CPP
  6074. fi
  6075. CPP=$ac_cv_prog_CPP
  6076. else
  6077. ac_cv_prog_CPP=$CPP
  6078. fi
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6080. $as_echo "$CPP" >&6; }
  6081. ac_preproc_ok=false
  6082. for ac_c_preproc_warn_flag in '' yes
  6083. do
  6084. # Use a header file that comes with gcc, so configuring glibc
  6085. # with a fresh cross-compiler works.
  6086. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6087. # <limits.h> exists even on freestanding compilers.
  6088. # On the NeXT, cc -E runs the code through the compiler's parser,
  6089. # not just through cpp. "Syntax error" is here to catch this case.
  6090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091. /* end confdefs.h. */
  6092. #ifdef __STDC__
  6093. # include <limits.h>
  6094. #else
  6095. # include <assert.h>
  6096. #endif
  6097. Syntax error
  6098. _ACEOF
  6099. if ac_fn_c_try_cpp "$LINENO"; then :
  6100. else
  6101. # Broken: fails on valid input.
  6102. continue
  6103. fi
  6104. rm -f conftest.err conftest.i conftest.$ac_ext
  6105. # OK, works on sane cases. Now check whether nonexistent headers
  6106. # can be detected and how.
  6107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6108. /* end confdefs.h. */
  6109. #include <ac_nonexistent.h>
  6110. _ACEOF
  6111. if ac_fn_c_try_cpp "$LINENO"; then :
  6112. # Broken: success on invalid input.
  6113. continue
  6114. else
  6115. # Passes both tests.
  6116. ac_preproc_ok=:
  6117. break
  6118. fi
  6119. rm -f conftest.err conftest.i conftest.$ac_ext
  6120. done
  6121. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6122. rm -f conftest.i conftest.err conftest.$ac_ext
  6123. if $ac_preproc_ok; then :
  6124. else
  6125. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6126. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6127. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6128. See \`config.log' for more details" "$LINENO" 5; }
  6129. fi
  6130. ac_ext=c
  6131. ac_cpp='$CPP $CPPFLAGS'
  6132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6136. $as_echo_n "checking for ANSI C header files... " >&6; }
  6137. if ${ac_cv_header_stdc+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6141. /* end confdefs.h. */
  6142. #include <stdlib.h>
  6143. #include <stdarg.h>
  6144. #include <string.h>
  6145. #include <float.h>
  6146. int
  6147. main ()
  6148. {
  6149. ;
  6150. return 0;
  6151. }
  6152. _ACEOF
  6153. if ac_fn_c_try_compile "$LINENO"; then :
  6154. ac_cv_header_stdc=yes
  6155. else
  6156. ac_cv_header_stdc=no
  6157. fi
  6158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6159. if test $ac_cv_header_stdc = yes; then
  6160. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6162. /* end confdefs.h. */
  6163. #include <string.h>
  6164. _ACEOF
  6165. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6166. $EGREP "memchr" >/dev/null 2>&1; then :
  6167. else
  6168. ac_cv_header_stdc=no
  6169. fi
  6170. rm -f conftest*
  6171. fi
  6172. if test $ac_cv_header_stdc = yes; then
  6173. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6175. /* end confdefs.h. */
  6176. #include <stdlib.h>
  6177. _ACEOF
  6178. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6179. $EGREP "free" >/dev/null 2>&1; then :
  6180. else
  6181. ac_cv_header_stdc=no
  6182. fi
  6183. rm -f conftest*
  6184. fi
  6185. if test $ac_cv_header_stdc = yes; then
  6186. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6187. if test "$cross_compiling" = yes; then :
  6188. :
  6189. else
  6190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end confdefs.h. */
  6192. #include <ctype.h>
  6193. #include <stdlib.h>
  6194. #if ((' ' & 0x0FF) == 0x020)
  6195. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6196. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6197. #else
  6198. # define ISLOWER(c) \
  6199. (('a' <= (c) && (c) <= 'i') \
  6200. || ('j' <= (c) && (c) <= 'r') \
  6201. || ('s' <= (c) && (c) <= 'z'))
  6202. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6203. #endif
  6204. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6205. int
  6206. main ()
  6207. {
  6208. int i;
  6209. for (i = 0; i < 256; i++)
  6210. if (XOR (islower (i), ISLOWER (i))
  6211. || toupper (i) != TOUPPER (i))
  6212. return 2;
  6213. return 0;
  6214. }
  6215. _ACEOF
  6216. if ac_fn_c_try_run "$LINENO"; then :
  6217. else
  6218. ac_cv_header_stdc=no
  6219. fi
  6220. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6221. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6222. fi
  6223. fi
  6224. fi
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6226. $as_echo "$ac_cv_header_stdc" >&6; }
  6227. if test $ac_cv_header_stdc = yes; then
  6228. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6229. fi
  6230. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6231. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6232. inttypes.h stdint.h unistd.h
  6233. do :
  6234. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6235. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6236. "
  6237. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6238. cat >>confdefs.h <<_ACEOF
  6239. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6240. _ACEOF
  6241. fi
  6242. done
  6243. for ac_header in dlfcn.h
  6244. do :
  6245. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6246. "
  6247. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6248. cat >>confdefs.h <<_ACEOF
  6249. #define HAVE_DLFCN_H 1
  6250. _ACEOF
  6251. fi
  6252. done
  6253. # Set options
  6254. enable_win32_dll=yes
  6255. case $host in
  6256. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6257. if test -n "$ac_tool_prefix"; then
  6258. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6259. set dummy ${ac_tool_prefix}as; ac_word=$2
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6261. $as_echo_n "checking for $ac_word... " >&6; }
  6262. if ${ac_cv_prog_AS+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. if test -n "$AS"; then
  6266. ac_cv_prog_AS="$AS" # Let the user override the test.
  6267. else
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6275. ac_cv_prog_AS="${ac_tool_prefix}as"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. fi
  6283. fi
  6284. AS=$ac_cv_prog_AS
  6285. if test -n "$AS"; then
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6287. $as_echo "$AS" >&6; }
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6290. $as_echo "no" >&6; }
  6291. fi
  6292. fi
  6293. if test -z "$ac_cv_prog_AS"; then
  6294. ac_ct_AS=$AS
  6295. # Extract the first word of "as", so it can be a program name with args.
  6296. set dummy as; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$ac_ct_AS"; then
  6303. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6312. ac_cv_prog_ac_ct_AS="as"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6322. if test -n "$ac_ct_AS"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6324. $as_echo "$ac_ct_AS" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. if test "x$ac_ct_AS" = x; then
  6330. AS="false"
  6331. else
  6332. case $cross_compiling:$ac_tool_warned in
  6333. yes:)
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6336. ac_tool_warned=yes ;;
  6337. esac
  6338. AS=$ac_ct_AS
  6339. fi
  6340. else
  6341. AS="$ac_cv_prog_AS"
  6342. fi
  6343. if test -n "$ac_tool_prefix"; then
  6344. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6345. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6347. $as_echo_n "checking for $ac_word... " >&6; }
  6348. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6349. $as_echo_n "(cached) " >&6
  6350. else
  6351. if test -n "$DLLTOOL"; then
  6352. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6353. else
  6354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6355. for as_dir in $PATH
  6356. do
  6357. IFS=$as_save_IFS
  6358. test -z "$as_dir" && as_dir=.
  6359. for ac_exec_ext in '' $ac_executable_extensions; do
  6360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6361. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6363. break 2
  6364. fi
  6365. done
  6366. done
  6367. IFS=$as_save_IFS
  6368. fi
  6369. fi
  6370. DLLTOOL=$ac_cv_prog_DLLTOOL
  6371. if test -n "$DLLTOOL"; then
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6373. $as_echo "$DLLTOOL" >&6; }
  6374. else
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6376. $as_echo "no" >&6; }
  6377. fi
  6378. fi
  6379. if test -z "$ac_cv_prog_DLLTOOL"; then
  6380. ac_ct_DLLTOOL=$DLLTOOL
  6381. # Extract the first word of "dlltool", so it can be a program name with args.
  6382. set dummy dlltool; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$ac_ct_DLLTOOL"; then
  6389. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6398. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6408. if test -n "$ac_ct_DLLTOOL"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6410. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. if test "x$ac_ct_DLLTOOL" = x; then
  6416. DLLTOOL="false"
  6417. else
  6418. case $cross_compiling:$ac_tool_warned in
  6419. yes:)
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6421. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6422. ac_tool_warned=yes ;;
  6423. esac
  6424. DLLTOOL=$ac_ct_DLLTOOL
  6425. fi
  6426. else
  6427. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6428. fi
  6429. if test -n "$ac_tool_prefix"; then
  6430. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6431. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6433. $as_echo_n "checking for $ac_word... " >&6; }
  6434. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. if test -n "$OBJDUMP"; then
  6438. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6439. else
  6440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6441. for as_dir in $PATH
  6442. do
  6443. IFS=$as_save_IFS
  6444. test -z "$as_dir" && as_dir=.
  6445. for ac_exec_ext in '' $ac_executable_extensions; do
  6446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6447. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6449. break 2
  6450. fi
  6451. done
  6452. done
  6453. IFS=$as_save_IFS
  6454. fi
  6455. fi
  6456. OBJDUMP=$ac_cv_prog_OBJDUMP
  6457. if test -n "$OBJDUMP"; then
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6459. $as_echo "$OBJDUMP" >&6; }
  6460. else
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6462. $as_echo "no" >&6; }
  6463. fi
  6464. fi
  6465. if test -z "$ac_cv_prog_OBJDUMP"; then
  6466. ac_ct_OBJDUMP=$OBJDUMP
  6467. # Extract the first word of "objdump", so it can be a program name with args.
  6468. set dummy objdump; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$ac_ct_OBJDUMP"; then
  6475. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6484. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6494. if test -n "$ac_ct_OBJDUMP"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6496. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. if test "x$ac_ct_OBJDUMP" = x; then
  6502. OBJDUMP="false"
  6503. else
  6504. case $cross_compiling:$ac_tool_warned in
  6505. yes:)
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6508. ac_tool_warned=yes ;;
  6509. esac
  6510. OBJDUMP=$ac_ct_OBJDUMP
  6511. fi
  6512. else
  6513. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6514. fi
  6515. ;;
  6516. esac
  6517. test -z "$AS" && AS=as
  6518. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6519. test -z "$OBJDUMP" && OBJDUMP=objdump
  6520. enable_dlopen=no
  6521. # Check whether --enable-shared was given.
  6522. if test "${enable_shared+set}" = set; then :
  6523. enableval=$enable_shared; p=${PACKAGE-default}
  6524. case $enableval in
  6525. yes) enable_shared=yes ;;
  6526. no) enable_shared=no ;;
  6527. *)
  6528. enable_shared=no
  6529. # Look at the argument we got. We use all the common list separators.
  6530. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6531. for pkg in $enableval; do
  6532. IFS="$lt_save_ifs"
  6533. if test "X$pkg" = "X$p"; then
  6534. enable_shared=yes
  6535. fi
  6536. done
  6537. IFS="$lt_save_ifs"
  6538. ;;
  6539. esac
  6540. else
  6541. enable_shared=yes
  6542. fi
  6543. # Check whether --enable-static was given.
  6544. if test "${enable_static+set}" = set; then :
  6545. enableval=$enable_static; p=${PACKAGE-default}
  6546. case $enableval in
  6547. yes) enable_static=yes ;;
  6548. no) enable_static=no ;;
  6549. *)
  6550. enable_static=no
  6551. # Look at the argument we got. We use all the common list separators.
  6552. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6553. for pkg in $enableval; do
  6554. IFS="$lt_save_ifs"
  6555. if test "X$pkg" = "X$p"; then
  6556. enable_static=yes
  6557. fi
  6558. done
  6559. IFS="$lt_save_ifs"
  6560. ;;
  6561. esac
  6562. else
  6563. enable_static=yes
  6564. fi
  6565. # Check whether --with-pic was given.
  6566. if test "${with_pic+set}" = set; then :
  6567. withval=$with_pic; lt_p=${PACKAGE-default}
  6568. case $withval in
  6569. yes|no) pic_mode=$withval ;;
  6570. *)
  6571. pic_mode=default
  6572. # Look at the argument we got. We use all the common list separators.
  6573. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6574. for lt_pkg in $withval; do
  6575. IFS="$lt_save_ifs"
  6576. if test "X$lt_pkg" = "X$lt_p"; then
  6577. pic_mode=yes
  6578. fi
  6579. done
  6580. IFS="$lt_save_ifs"
  6581. ;;
  6582. esac
  6583. else
  6584. pic_mode=default
  6585. fi
  6586. test -z "$pic_mode" && pic_mode=default
  6587. # Check whether --enable-fast-install was given.
  6588. if test "${enable_fast_install+set}" = set; then :
  6589. enableval=$enable_fast_install; p=${PACKAGE-default}
  6590. case $enableval in
  6591. yes) enable_fast_install=yes ;;
  6592. no) enable_fast_install=no ;;
  6593. *)
  6594. enable_fast_install=no
  6595. # Look at the argument we got. We use all the common list separators.
  6596. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6597. for pkg in $enableval; do
  6598. IFS="$lt_save_ifs"
  6599. if test "X$pkg" = "X$p"; then
  6600. enable_fast_install=yes
  6601. fi
  6602. done
  6603. IFS="$lt_save_ifs"
  6604. ;;
  6605. esac
  6606. else
  6607. enable_fast_install=yes
  6608. fi
  6609. # This can be used to rebuild libtool when needed
  6610. LIBTOOL_DEPS="$ltmain"
  6611. # Always use our own libtool.
  6612. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6613. test -z "$LN_S" && LN_S="ln -s"
  6614. if test -n "${ZSH_VERSION+set}" ; then
  6615. setopt NO_GLOB_SUBST
  6616. fi
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6618. $as_echo_n "checking for objdir... " >&6; }
  6619. if ${lt_cv_objdir+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. rm -f .libs 2>/dev/null
  6623. mkdir .libs 2>/dev/null
  6624. if test -d .libs; then
  6625. lt_cv_objdir=.libs
  6626. else
  6627. # MS-DOS does not allow filenames that begin with a dot.
  6628. lt_cv_objdir=_libs
  6629. fi
  6630. rmdir .libs 2>/dev/null
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6633. $as_echo "$lt_cv_objdir" >&6; }
  6634. objdir=$lt_cv_objdir
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define LT_OBJDIR "$lt_cv_objdir/"
  6637. _ACEOF
  6638. case $host_os in
  6639. aix3*)
  6640. # AIX sometimes has problems with the GCC collect2 program. For some
  6641. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6642. # vanish in a puff of smoke.
  6643. if test "X${COLLECT_NAMES+set}" != Xset; then
  6644. COLLECT_NAMES=
  6645. export COLLECT_NAMES
  6646. fi
  6647. ;;
  6648. esac
  6649. # Global variables:
  6650. ofile=libtool
  6651. can_build_shared=yes
  6652. # All known linkers require a `.a' archive for static linking (except MSVC,
  6653. # which needs '.lib').
  6654. libext=a
  6655. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6656. old_CC="$CC"
  6657. old_CFLAGS="$CFLAGS"
  6658. # Set sane defaults for various variables
  6659. test -z "$CC" && CC=cc
  6660. test -z "$LTCC" && LTCC=$CC
  6661. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6662. test -z "$LD" && LD=ld
  6663. test -z "$ac_objext" && ac_objext=o
  6664. for cc_temp in $compiler""; do
  6665. case $cc_temp in
  6666. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6667. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6668. \-*) ;;
  6669. *) break;;
  6670. esac
  6671. done
  6672. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6673. # Only perform the check for file, if the check method requires it
  6674. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6675. case $deplibs_check_method in
  6676. file_magic*)
  6677. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6679. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6680. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6681. $as_echo_n "(cached) " >&6
  6682. else
  6683. case $MAGIC_CMD in
  6684. [\\/*] | ?:[\\/]*)
  6685. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6686. ;;
  6687. *)
  6688. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6689. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6690. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6691. for ac_dir in $ac_dummy; do
  6692. IFS="$lt_save_ifs"
  6693. test -z "$ac_dir" && ac_dir=.
  6694. if test -f $ac_dir/${ac_tool_prefix}file; then
  6695. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6696. if test -n "$file_magic_test_file"; then
  6697. case $deplibs_check_method in
  6698. "file_magic "*)
  6699. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6700. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6701. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6702. $EGREP "$file_magic_regex" > /dev/null; then
  6703. :
  6704. else
  6705. cat <<_LT_EOF 1>&2
  6706. *** Warning: the command libtool uses to detect shared libraries,
  6707. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6708. *** The result is that libtool may fail to recognize shared libraries
  6709. *** as such. This will affect the creation of libtool libraries that
  6710. *** depend on shared libraries, but programs linked with such libtool
  6711. *** libraries will work regardless of this problem. Nevertheless, you
  6712. *** may want to report the problem to your system manager and/or to
  6713. *** bug-libtool@gnu.org
  6714. _LT_EOF
  6715. fi ;;
  6716. esac
  6717. fi
  6718. break
  6719. fi
  6720. done
  6721. IFS="$lt_save_ifs"
  6722. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6723. ;;
  6724. esac
  6725. fi
  6726. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6727. if test -n "$MAGIC_CMD"; then
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6729. $as_echo "$MAGIC_CMD" >&6; }
  6730. else
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6732. $as_echo "no" >&6; }
  6733. fi
  6734. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6735. if test -n "$ac_tool_prefix"; then
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6737. $as_echo_n "checking for file... " >&6; }
  6738. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. case $MAGIC_CMD in
  6742. [\\/*] | ?:[\\/]*)
  6743. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6744. ;;
  6745. *)
  6746. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6747. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6748. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6749. for ac_dir in $ac_dummy; do
  6750. IFS="$lt_save_ifs"
  6751. test -z "$ac_dir" && ac_dir=.
  6752. if test -f $ac_dir/file; then
  6753. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6754. if test -n "$file_magic_test_file"; then
  6755. case $deplibs_check_method in
  6756. "file_magic "*)
  6757. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6758. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6759. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6760. $EGREP "$file_magic_regex" > /dev/null; then
  6761. :
  6762. else
  6763. cat <<_LT_EOF 1>&2
  6764. *** Warning: the command libtool uses to detect shared libraries,
  6765. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6766. *** The result is that libtool may fail to recognize shared libraries
  6767. *** as such. This will affect the creation of libtool libraries that
  6768. *** depend on shared libraries, but programs linked with such libtool
  6769. *** libraries will work regardless of this problem. Nevertheless, you
  6770. *** may want to report the problem to your system manager and/or to
  6771. *** bug-libtool@gnu.org
  6772. _LT_EOF
  6773. fi ;;
  6774. esac
  6775. fi
  6776. break
  6777. fi
  6778. done
  6779. IFS="$lt_save_ifs"
  6780. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6781. ;;
  6782. esac
  6783. fi
  6784. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6785. if test -n "$MAGIC_CMD"; then
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6787. $as_echo "$MAGIC_CMD" >&6; }
  6788. else
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6790. $as_echo "no" >&6; }
  6791. fi
  6792. else
  6793. MAGIC_CMD=:
  6794. fi
  6795. fi
  6796. fi
  6797. ;;
  6798. esac
  6799. # Use C for the default configuration in the libtool script
  6800. lt_save_CC="$CC"
  6801. ac_ext=c
  6802. ac_cpp='$CPP $CPPFLAGS'
  6803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6806. # Source file extension for C test sources.
  6807. ac_ext=c
  6808. # Object file extension for compiled C test sources.
  6809. objext=o
  6810. objext=$objext
  6811. # Code to be used in simple compile tests
  6812. lt_simple_compile_test_code="int some_variable = 0;"
  6813. # Code to be used in simple link tests
  6814. lt_simple_link_test_code='int main(){return(0);}'
  6815. # If no C compiler was specified, use CC.
  6816. LTCC=${LTCC-"$CC"}
  6817. # If no C compiler flags were specified, use CFLAGS.
  6818. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6819. # Allow CC to be a program name with arguments.
  6820. compiler=$CC
  6821. # Save the default compiler, since it gets overwritten when the other
  6822. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6823. compiler_DEFAULT=$CC
  6824. # save warnings/boilerplate of simple test code
  6825. ac_outfile=conftest.$ac_objext
  6826. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6827. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6828. _lt_compiler_boilerplate=`cat conftest.err`
  6829. $RM conftest*
  6830. ac_outfile=conftest.$ac_objext
  6831. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6832. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6833. _lt_linker_boilerplate=`cat conftest.err`
  6834. $RM -r conftest*
  6835. ## CAVEAT EMPTOR:
  6836. ## There is no encapsulation within the following macros, do not change
  6837. ## the running order or otherwise move them around unless you know exactly
  6838. ## what you are doing...
  6839. if test -n "$compiler"; then
  6840. lt_prog_compiler_no_builtin_flag=
  6841. if test "$GCC" = yes; then
  6842. case $cc_basename in
  6843. nvcc*)
  6844. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6845. *)
  6846. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6847. esac
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6849. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6850. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6851. $as_echo_n "(cached) " >&6
  6852. else
  6853. lt_cv_prog_compiler_rtti_exceptions=no
  6854. ac_outfile=conftest.$ac_objext
  6855. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6856. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6857. # Insert the option either (1) after the last *FLAGS variable, or
  6858. # (2) before a word containing "conftest.", or (3) at the end.
  6859. # Note that $ac_compile itself does not contain backslashes and begins
  6860. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6861. # The option is referenced via a variable to avoid confusing sed.
  6862. lt_compile=`echo "$ac_compile" | $SED \
  6863. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6864. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6865. -e 's:$: $lt_compiler_flag:'`
  6866. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6867. (eval "$lt_compile" 2>conftest.err)
  6868. ac_status=$?
  6869. cat conftest.err >&5
  6870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6871. if (exit $ac_status) && test -s "$ac_outfile"; then
  6872. # The compiler can only warn and ignore the option if not recognized
  6873. # So say no if there are warnings other than the usual output.
  6874. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6875. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6876. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6877. lt_cv_prog_compiler_rtti_exceptions=yes
  6878. fi
  6879. fi
  6880. $RM conftest*
  6881. fi
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6883. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6884. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6885. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6886. else
  6887. :
  6888. fi
  6889. fi
  6890. lt_prog_compiler_wl=
  6891. lt_prog_compiler_pic=
  6892. lt_prog_compiler_static=
  6893. if test "$GCC" = yes; then
  6894. lt_prog_compiler_wl='-Wl,'
  6895. lt_prog_compiler_static='-static'
  6896. case $host_os in
  6897. aix*)
  6898. # All AIX code is PIC.
  6899. if test "$host_cpu" = ia64; then
  6900. # AIX 5 now supports IA64 processor
  6901. lt_prog_compiler_static='-Bstatic'
  6902. fi
  6903. ;;
  6904. amigaos*)
  6905. case $host_cpu in
  6906. powerpc)
  6907. # see comment about AmigaOS4 .so support
  6908. lt_prog_compiler_pic='-fPIC'
  6909. ;;
  6910. m68k)
  6911. # FIXME: we need at least 68020 code to build shared libraries, but
  6912. # adding the `-m68020' flag to GCC prevents building anything better,
  6913. # like `-m68040'.
  6914. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6915. ;;
  6916. esac
  6917. ;;
  6918. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6919. # PIC is the default for these OSes.
  6920. ;;
  6921. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6922. # This hack is so that the source file can tell whether it is being
  6923. # built for inclusion in a dll (and should export symbols for example).
  6924. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6925. # (--disable-auto-import) libraries
  6926. lt_prog_compiler_pic='-DDLL_EXPORT'
  6927. ;;
  6928. darwin* | rhapsody*)
  6929. # PIC is the default on this platform
  6930. # Common symbols not allowed in MH_DYLIB files
  6931. lt_prog_compiler_pic='-fno-common'
  6932. ;;
  6933. haiku*)
  6934. # PIC is the default for Haiku.
  6935. # The "-static" flag exists, but is broken.
  6936. lt_prog_compiler_static=
  6937. ;;
  6938. hpux*)
  6939. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6940. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6941. # sets the default TLS model and affects inlining.
  6942. case $host_cpu in
  6943. hppa*64*)
  6944. # +Z the default
  6945. ;;
  6946. *)
  6947. lt_prog_compiler_pic='-fPIC'
  6948. ;;
  6949. esac
  6950. ;;
  6951. interix[3-9]*)
  6952. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6953. # Instead, we relocate shared libraries at runtime.
  6954. ;;
  6955. msdosdjgpp*)
  6956. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6957. # on systems that don't support them.
  6958. lt_prog_compiler_can_build_shared=no
  6959. enable_shared=no
  6960. ;;
  6961. *nto* | *qnx*)
  6962. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6963. # it will coredump.
  6964. lt_prog_compiler_pic='-fPIC -shared'
  6965. ;;
  6966. sysv4*MP*)
  6967. if test -d /usr/nec; then
  6968. lt_prog_compiler_pic=-Kconform_pic
  6969. fi
  6970. ;;
  6971. *)
  6972. lt_prog_compiler_pic='-fPIC'
  6973. ;;
  6974. esac
  6975. case $cc_basename in
  6976. nvcc*) # Cuda Compiler Driver 2.2
  6977. lt_prog_compiler_wl='-Xlinker '
  6978. if test -n "$lt_prog_compiler_pic"; then
  6979. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6980. fi
  6981. ;;
  6982. esac
  6983. else
  6984. # PORTME Check for flag to pass linker flags through the system compiler.
  6985. case $host_os in
  6986. aix*)
  6987. lt_prog_compiler_wl='-Wl,'
  6988. if test "$host_cpu" = ia64; then
  6989. # AIX 5 now supports IA64 processor
  6990. lt_prog_compiler_static='-Bstatic'
  6991. else
  6992. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6993. fi
  6994. ;;
  6995. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6996. # This hack is so that the source file can tell whether it is being
  6997. # built for inclusion in a dll (and should export symbols for example).
  6998. lt_prog_compiler_pic='-DDLL_EXPORT'
  6999. ;;
  7000. hpux9* | hpux10* | hpux11*)
  7001. lt_prog_compiler_wl='-Wl,'
  7002. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7003. # not for PA HP-UX.
  7004. case $host_cpu in
  7005. hppa*64*|ia64*)
  7006. # +Z the default
  7007. ;;
  7008. *)
  7009. lt_prog_compiler_pic='+Z'
  7010. ;;
  7011. esac
  7012. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7013. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7014. ;;
  7015. irix5* | irix6* | nonstopux*)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. # PIC (with -KPIC) is the default.
  7018. lt_prog_compiler_static='-non_shared'
  7019. ;;
  7020. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7021. case $cc_basename in
  7022. # old Intel for x86_64 which still supported -KPIC.
  7023. ecc*)
  7024. lt_prog_compiler_wl='-Wl,'
  7025. lt_prog_compiler_pic='-KPIC'
  7026. lt_prog_compiler_static='-static'
  7027. ;;
  7028. # icc used to be incompatible with GCC.
  7029. # ICC 10 doesn't accept -KPIC any more.
  7030. icc* | ifort*)
  7031. lt_prog_compiler_wl='-Wl,'
  7032. lt_prog_compiler_pic='-fPIC'
  7033. lt_prog_compiler_static='-static'
  7034. ;;
  7035. # Lahey Fortran 8.1.
  7036. lf95*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='--shared'
  7039. lt_prog_compiler_static='--static'
  7040. ;;
  7041. nagfor*)
  7042. # NAG Fortran compiler
  7043. lt_prog_compiler_wl='-Wl,-Wl,,'
  7044. lt_prog_compiler_pic='-PIC'
  7045. lt_prog_compiler_static='-Bstatic'
  7046. ;;
  7047. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7048. # Portland Group compilers (*not* the Pentium gcc compiler,
  7049. # which looks to be a dead project)
  7050. lt_prog_compiler_wl='-Wl,'
  7051. lt_prog_compiler_pic='-fpic'
  7052. lt_prog_compiler_static='-Bstatic'
  7053. ;;
  7054. ccc*)
  7055. lt_prog_compiler_wl='-Wl,'
  7056. # All Alpha code is PIC.
  7057. lt_prog_compiler_static='-non_shared'
  7058. ;;
  7059. xl* | bgxl* | bgf* | mpixl*)
  7060. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='-qpic'
  7063. lt_prog_compiler_static='-qstaticlink'
  7064. ;;
  7065. *)
  7066. case `$CC -V 2>&1 | sed 5q` in
  7067. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7068. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7069. lt_prog_compiler_pic='-KPIC'
  7070. lt_prog_compiler_static='-Bstatic'
  7071. lt_prog_compiler_wl=''
  7072. ;;
  7073. *Sun\ F* | *Sun*Fortran*)
  7074. lt_prog_compiler_pic='-KPIC'
  7075. lt_prog_compiler_static='-Bstatic'
  7076. lt_prog_compiler_wl='-Qoption ld '
  7077. ;;
  7078. *Sun\ C*)
  7079. # Sun C 5.9
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. lt_prog_compiler_wl='-Wl,'
  7083. ;;
  7084. *Intel*\ [CF]*Compiler*)
  7085. lt_prog_compiler_wl='-Wl,'
  7086. lt_prog_compiler_pic='-fPIC'
  7087. lt_prog_compiler_static='-static'
  7088. ;;
  7089. *Portland\ Group*)
  7090. lt_prog_compiler_wl='-Wl,'
  7091. lt_prog_compiler_pic='-fpic'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. esac
  7095. ;;
  7096. esac
  7097. ;;
  7098. newsos6)
  7099. lt_prog_compiler_pic='-KPIC'
  7100. lt_prog_compiler_static='-Bstatic'
  7101. ;;
  7102. *nto* | *qnx*)
  7103. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7104. # it will coredump.
  7105. lt_prog_compiler_pic='-fPIC -shared'
  7106. ;;
  7107. osf3* | osf4* | osf5*)
  7108. lt_prog_compiler_wl='-Wl,'
  7109. # All OSF/1 code is PIC.
  7110. lt_prog_compiler_static='-non_shared'
  7111. ;;
  7112. rdos*)
  7113. lt_prog_compiler_static='-non_shared'
  7114. ;;
  7115. solaris*)
  7116. lt_prog_compiler_pic='-KPIC'
  7117. lt_prog_compiler_static='-Bstatic'
  7118. case $cc_basename in
  7119. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7120. lt_prog_compiler_wl='-Qoption ld ';;
  7121. *)
  7122. lt_prog_compiler_wl='-Wl,';;
  7123. esac
  7124. ;;
  7125. sunos4*)
  7126. lt_prog_compiler_wl='-Qoption ld '
  7127. lt_prog_compiler_pic='-PIC'
  7128. lt_prog_compiler_static='-Bstatic'
  7129. ;;
  7130. sysv4 | sysv4.2uw2* | sysv4.3*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. lt_prog_compiler_pic='-KPIC'
  7133. lt_prog_compiler_static='-Bstatic'
  7134. ;;
  7135. sysv4*MP*)
  7136. if test -d /usr/nec ;then
  7137. lt_prog_compiler_pic='-Kconform_pic'
  7138. lt_prog_compiler_static='-Bstatic'
  7139. fi
  7140. ;;
  7141. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7142. lt_prog_compiler_wl='-Wl,'
  7143. lt_prog_compiler_pic='-KPIC'
  7144. lt_prog_compiler_static='-Bstatic'
  7145. ;;
  7146. unicos*)
  7147. lt_prog_compiler_wl='-Wl,'
  7148. lt_prog_compiler_can_build_shared=no
  7149. ;;
  7150. uts4*)
  7151. lt_prog_compiler_pic='-pic'
  7152. lt_prog_compiler_static='-Bstatic'
  7153. ;;
  7154. *)
  7155. lt_prog_compiler_can_build_shared=no
  7156. ;;
  7157. esac
  7158. fi
  7159. case $host_os in
  7160. # For platforms which do not support PIC, -DPIC is meaningless:
  7161. *djgpp*)
  7162. lt_prog_compiler_pic=
  7163. ;;
  7164. *)
  7165. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7166. ;;
  7167. esac
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7169. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7170. if ${lt_cv_prog_compiler_pic+:} false; then :
  7171. $as_echo_n "(cached) " >&6
  7172. else
  7173. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7174. fi
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7176. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7177. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7178. #
  7179. # Check to make sure the PIC flag actually works.
  7180. #
  7181. if test -n "$lt_prog_compiler_pic"; then
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7183. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7184. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7185. $as_echo_n "(cached) " >&6
  7186. else
  7187. lt_cv_prog_compiler_pic_works=no
  7188. ac_outfile=conftest.$ac_objext
  7189. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7190. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7191. # Insert the option either (1) after the last *FLAGS variable, or
  7192. # (2) before a word containing "conftest.", or (3) at the end.
  7193. # Note that $ac_compile itself does not contain backslashes and begins
  7194. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7195. # The option is referenced via a variable to avoid confusing sed.
  7196. lt_compile=`echo "$ac_compile" | $SED \
  7197. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7198. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7199. -e 's:$: $lt_compiler_flag:'`
  7200. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7201. (eval "$lt_compile" 2>conftest.err)
  7202. ac_status=$?
  7203. cat conftest.err >&5
  7204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7205. if (exit $ac_status) && test -s "$ac_outfile"; then
  7206. # The compiler can only warn and ignore the option if not recognized
  7207. # So say no if there are warnings other than the usual output.
  7208. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7209. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7210. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7211. lt_cv_prog_compiler_pic_works=yes
  7212. fi
  7213. fi
  7214. $RM conftest*
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7217. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7218. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7219. case $lt_prog_compiler_pic in
  7220. "" | " "*) ;;
  7221. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7222. esac
  7223. else
  7224. lt_prog_compiler_pic=
  7225. lt_prog_compiler_can_build_shared=no
  7226. fi
  7227. fi
  7228. #
  7229. # Check to make sure the static flag actually works.
  7230. #
  7231. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7233. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7234. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7235. $as_echo_n "(cached) " >&6
  7236. else
  7237. lt_cv_prog_compiler_static_works=no
  7238. save_LDFLAGS="$LDFLAGS"
  7239. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7240. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7241. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7242. # The linker can only warn and ignore the option if not recognized
  7243. # So say no if there are warnings
  7244. if test -s conftest.err; then
  7245. # Append any errors to the config.log.
  7246. cat conftest.err 1>&5
  7247. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7248. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7249. if diff conftest.exp conftest.er2 >/dev/null; then
  7250. lt_cv_prog_compiler_static_works=yes
  7251. fi
  7252. else
  7253. lt_cv_prog_compiler_static_works=yes
  7254. fi
  7255. fi
  7256. $RM -r conftest*
  7257. LDFLAGS="$save_LDFLAGS"
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7260. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7261. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7262. :
  7263. else
  7264. lt_prog_compiler_static=
  7265. fi
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7267. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7268. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7269. $as_echo_n "(cached) " >&6
  7270. else
  7271. lt_cv_prog_compiler_c_o=no
  7272. $RM -r conftest 2>/dev/null
  7273. mkdir conftest
  7274. cd conftest
  7275. mkdir out
  7276. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7277. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7278. # Insert the option either (1) after the last *FLAGS variable, or
  7279. # (2) before a word containing "conftest.", or (3) at the end.
  7280. # Note that $ac_compile itself does not contain backslashes and begins
  7281. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7282. lt_compile=`echo "$ac_compile" | $SED \
  7283. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7284. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7285. -e 's:$: $lt_compiler_flag:'`
  7286. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7287. (eval "$lt_compile" 2>out/conftest.err)
  7288. ac_status=$?
  7289. cat out/conftest.err >&5
  7290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7291. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7292. then
  7293. # The compiler can only warn and ignore the option if not recognized
  7294. # So say no if there are warnings
  7295. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7296. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7297. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7298. lt_cv_prog_compiler_c_o=yes
  7299. fi
  7300. fi
  7301. chmod u+w . 2>&5
  7302. $RM conftest*
  7303. # SGI C++ compiler will create directory out/ii_files/ for
  7304. # template instantiation
  7305. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7306. $RM out/* && rmdir out
  7307. cd ..
  7308. $RM -r conftest
  7309. $RM conftest*
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7312. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7314. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7315. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. lt_cv_prog_compiler_c_o=no
  7319. $RM -r conftest 2>/dev/null
  7320. mkdir conftest
  7321. cd conftest
  7322. mkdir out
  7323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7324. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7325. # Insert the option either (1) after the last *FLAGS variable, or
  7326. # (2) before a word containing "conftest.", or (3) at the end.
  7327. # Note that $ac_compile itself does not contain backslashes and begins
  7328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7329. lt_compile=`echo "$ac_compile" | $SED \
  7330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7332. -e 's:$: $lt_compiler_flag:'`
  7333. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7334. (eval "$lt_compile" 2>out/conftest.err)
  7335. ac_status=$?
  7336. cat out/conftest.err >&5
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7339. then
  7340. # The compiler can only warn and ignore the option if not recognized
  7341. # So say no if there are warnings
  7342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7343. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7344. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7345. lt_cv_prog_compiler_c_o=yes
  7346. fi
  7347. fi
  7348. chmod u+w . 2>&5
  7349. $RM conftest*
  7350. # SGI C++ compiler will create directory out/ii_files/ for
  7351. # template instantiation
  7352. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7353. $RM out/* && rmdir out
  7354. cd ..
  7355. $RM -r conftest
  7356. $RM conftest*
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7359. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7360. hard_links="nottested"
  7361. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7362. # do not overwrite the value of need_locks provided by the user
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7364. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7365. hard_links=yes
  7366. $RM conftest*
  7367. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7368. touch conftest.a
  7369. ln conftest.a conftest.b 2>&5 || hard_links=no
  7370. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7372. $as_echo "$hard_links" >&6; }
  7373. if test "$hard_links" = no; then
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7375. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7376. need_locks=warn
  7377. fi
  7378. else
  7379. need_locks=no
  7380. fi
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7382. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7383. runpath_var=
  7384. allow_undefined_flag=
  7385. always_export_symbols=no
  7386. archive_cmds=
  7387. archive_expsym_cmds=
  7388. compiler_needs_object=no
  7389. enable_shared_with_static_runtimes=no
  7390. export_dynamic_flag_spec=
  7391. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7392. hardcode_automatic=no
  7393. hardcode_direct=no
  7394. hardcode_direct_absolute=no
  7395. hardcode_libdir_flag_spec=
  7396. hardcode_libdir_separator=
  7397. hardcode_minus_L=no
  7398. hardcode_shlibpath_var=unsupported
  7399. inherit_rpath=no
  7400. link_all_deplibs=unknown
  7401. module_cmds=
  7402. module_expsym_cmds=
  7403. old_archive_from_new_cmds=
  7404. old_archive_from_expsyms_cmds=
  7405. thread_safe_flag_spec=
  7406. whole_archive_flag_spec=
  7407. # include_expsyms should be a list of space-separated symbols to be *always*
  7408. # included in the symbol list
  7409. include_expsyms=
  7410. # exclude_expsyms can be an extended regexp of symbols to exclude
  7411. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7412. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7413. # as well as any symbol that contains `d'.
  7414. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7415. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7416. # platforms (ab)use it in PIC code, but their linkers get confused if
  7417. # the symbol is explicitly referenced. Since portable code cannot
  7418. # rely on this symbol name, it's probably fine to never include it in
  7419. # preloaded symbol tables.
  7420. # Exclude shared library initialization/finalization symbols.
  7421. extract_expsyms_cmds=
  7422. case $host_os in
  7423. cygwin* | mingw* | pw32* | cegcc*)
  7424. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7425. # When not using gcc, we currently assume that we are using
  7426. # Microsoft Visual C++.
  7427. if test "$GCC" != yes; then
  7428. with_gnu_ld=no
  7429. fi
  7430. ;;
  7431. interix*)
  7432. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7433. with_gnu_ld=yes
  7434. ;;
  7435. openbsd*)
  7436. with_gnu_ld=no
  7437. ;;
  7438. esac
  7439. ld_shlibs=yes
  7440. # On some targets, GNU ld is compatible enough with the native linker
  7441. # that we're better off using the native interface for both.
  7442. lt_use_gnu_ld_interface=no
  7443. if test "$with_gnu_ld" = yes; then
  7444. case $host_os in
  7445. aix*)
  7446. # The AIX port of GNU ld has always aspired to compatibility
  7447. # with the native linker. However, as the warning in the GNU ld
  7448. # block says, versions before 2.19.5* couldn't really create working
  7449. # shared libraries, regardless of the interface used.
  7450. case `$LD -v 2>&1` in
  7451. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7452. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7453. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7454. *)
  7455. lt_use_gnu_ld_interface=yes
  7456. ;;
  7457. esac
  7458. ;;
  7459. *)
  7460. lt_use_gnu_ld_interface=yes
  7461. ;;
  7462. esac
  7463. fi
  7464. if test "$lt_use_gnu_ld_interface" = yes; then
  7465. # If archive_cmds runs LD, not CC, wlarc should be empty
  7466. wlarc='${wl}'
  7467. # Set some defaults for GNU ld with shared library support. These
  7468. # are reset later if shared libraries are not supported. Putting them
  7469. # here allows them to be overridden if necessary.
  7470. runpath_var=LD_RUN_PATH
  7471. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7472. export_dynamic_flag_spec='${wl}--export-dynamic'
  7473. # ancient GNU ld didn't support --whole-archive et. al.
  7474. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7475. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7476. else
  7477. whole_archive_flag_spec=
  7478. fi
  7479. supports_anon_versioning=no
  7480. case `$LD -v 2>&1` in
  7481. *GNU\ gold*) supports_anon_versioning=yes ;;
  7482. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7483. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7484. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7485. *\ 2.11.*) ;; # other 2.11 versions
  7486. *) supports_anon_versioning=yes ;;
  7487. esac
  7488. # See if GNU ld supports shared libraries.
  7489. case $host_os in
  7490. aix[3-9]*)
  7491. # On AIX/PPC, the GNU linker is very broken
  7492. if test "$host_cpu" != ia64; then
  7493. ld_shlibs=no
  7494. cat <<_LT_EOF 1>&2
  7495. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7496. *** to be unable to reliably create shared libraries on AIX.
  7497. *** Therefore, libtool is disabling shared libraries support. If you
  7498. *** really care for shared libraries, you may want to install binutils
  7499. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7500. *** You will then need to restart the configuration process.
  7501. _LT_EOF
  7502. fi
  7503. ;;
  7504. amigaos*)
  7505. case $host_cpu in
  7506. powerpc)
  7507. # see comment about AmigaOS4 .so support
  7508. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7509. archive_expsym_cmds=''
  7510. ;;
  7511. m68k)
  7512. 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)'
  7513. hardcode_libdir_flag_spec='-L$libdir'
  7514. hardcode_minus_L=yes
  7515. ;;
  7516. esac
  7517. ;;
  7518. beos*)
  7519. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7520. allow_undefined_flag=unsupported
  7521. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7522. # support --undefined. This deserves some investigation. FIXME
  7523. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7524. else
  7525. ld_shlibs=no
  7526. fi
  7527. ;;
  7528. cygwin* | mingw* | pw32* | cegcc*)
  7529. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7530. # as there is no search path for DLLs.
  7531. hardcode_libdir_flag_spec='-L$libdir'
  7532. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7533. allow_undefined_flag=unsupported
  7534. always_export_symbols=no
  7535. enable_shared_with_static_runtimes=yes
  7536. 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'
  7537. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7538. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7539. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7540. # If the export-symbols file already is a .def file (1st line
  7541. # is EXPORTS), use it as is; otherwise, prepend...
  7542. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7543. cp $export_symbols $output_objdir/$soname.def;
  7544. else
  7545. echo EXPORTS > $output_objdir/$soname.def;
  7546. cat $export_symbols >> $output_objdir/$soname.def;
  7547. fi~
  7548. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7549. else
  7550. ld_shlibs=no
  7551. fi
  7552. ;;
  7553. haiku*)
  7554. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7555. link_all_deplibs=yes
  7556. ;;
  7557. interix[3-9]*)
  7558. hardcode_direct=no
  7559. hardcode_shlibpath_var=no
  7560. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7561. export_dynamic_flag_spec='${wl}-E'
  7562. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7563. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7564. # default) and relocated if they conflict, which is a slow very memory
  7565. # consuming and fragmenting process. To avoid this, we pick a random,
  7566. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7567. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7568. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7569. 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'
  7570. ;;
  7571. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7572. tmp_diet=no
  7573. if test "$host_os" = linux-dietlibc; then
  7574. case $cc_basename in
  7575. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7576. esac
  7577. fi
  7578. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7579. && test "$tmp_diet" = no
  7580. then
  7581. tmp_addflag=' $pic_flag'
  7582. tmp_sharedflag='-shared'
  7583. case $cc_basename,$host_cpu in
  7584. pgcc*) # Portland Group C compiler
  7585. 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'
  7586. tmp_addflag=' $pic_flag'
  7587. ;;
  7588. pgf77* | pgf90* | pgf95* | pgfortran*)
  7589. # Portland Group f77 and f90 compilers
  7590. 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'
  7591. tmp_addflag=' $pic_flag -Mnomain' ;;
  7592. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7593. tmp_addflag=' -i_dynamic' ;;
  7594. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7595. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7596. ifc* | ifort*) # Intel Fortran compiler
  7597. tmp_addflag=' -nofor_main' ;;
  7598. lf95*) # Lahey Fortran 8.1
  7599. whole_archive_flag_spec=
  7600. tmp_sharedflag='--shared' ;;
  7601. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7602. tmp_sharedflag='-qmkshrobj'
  7603. tmp_addflag= ;;
  7604. nvcc*) # Cuda Compiler Driver 2.2
  7605. 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'
  7606. compiler_needs_object=yes
  7607. ;;
  7608. esac
  7609. case `$CC -V 2>&1 | sed 5q` in
  7610. *Sun\ C*) # Sun C 5.9
  7611. 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'
  7612. compiler_needs_object=yes
  7613. tmp_sharedflag='-G' ;;
  7614. *Sun\ F*) # Sun Fortran 8.3
  7615. tmp_sharedflag='-G' ;;
  7616. esac
  7617. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7618. if test "x$supports_anon_versioning" = xyes; then
  7619. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7620. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7621. echo "local: *; };" >> $output_objdir/$libname.ver~
  7622. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7623. fi
  7624. case $cc_basename in
  7625. xlf* | bgf* | bgxlf* | mpixlf*)
  7626. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7627. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7628. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7629. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7630. if test "x$supports_anon_versioning" = xyes; then
  7631. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7632. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7633. echo "local: *; };" >> $output_objdir/$libname.ver~
  7634. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7635. fi
  7636. ;;
  7637. esac
  7638. else
  7639. ld_shlibs=no
  7640. fi
  7641. ;;
  7642. netbsd*)
  7643. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7644. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7645. wlarc=
  7646. else
  7647. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7648. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7649. fi
  7650. ;;
  7651. solaris*)
  7652. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7653. ld_shlibs=no
  7654. cat <<_LT_EOF 1>&2
  7655. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7656. *** create shared libraries on Solaris systems. Therefore, libtool
  7657. *** is disabling shared libraries support. We urge you to upgrade GNU
  7658. *** binutils to release 2.9.1 or newer. Another option is to modify
  7659. *** your PATH or compiler configuration so that the native linker is
  7660. *** used, and then restart.
  7661. _LT_EOF
  7662. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7663. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7664. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7665. else
  7666. ld_shlibs=no
  7667. fi
  7668. ;;
  7669. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7670. case `$LD -v 2>&1` in
  7671. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7672. ld_shlibs=no
  7673. cat <<_LT_EOF 1>&2
  7674. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7675. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7676. *** is disabling shared libraries support. We urge you to upgrade GNU
  7677. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7678. *** your PATH or compiler configuration so that the native linker is
  7679. *** used, and then restart.
  7680. _LT_EOF
  7681. ;;
  7682. *)
  7683. # For security reasons, it is highly recommended that you always
  7684. # use absolute paths for naming shared libraries, and exclude the
  7685. # DT_RUNPATH tag from executables and libraries. But doing so
  7686. # requires that you compile everything twice, which is a pain.
  7687. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7688. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7689. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7690. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7691. else
  7692. ld_shlibs=no
  7693. fi
  7694. ;;
  7695. esac
  7696. ;;
  7697. sunos4*)
  7698. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7699. wlarc=
  7700. hardcode_direct=yes
  7701. hardcode_shlibpath_var=no
  7702. ;;
  7703. *)
  7704. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7705. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7706. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7707. else
  7708. ld_shlibs=no
  7709. fi
  7710. ;;
  7711. esac
  7712. if test "$ld_shlibs" = no; then
  7713. runpath_var=
  7714. hardcode_libdir_flag_spec=
  7715. export_dynamic_flag_spec=
  7716. whole_archive_flag_spec=
  7717. fi
  7718. else
  7719. # PORTME fill in a description of your system's linker (not GNU ld)
  7720. case $host_os in
  7721. aix3*)
  7722. allow_undefined_flag=unsupported
  7723. always_export_symbols=yes
  7724. 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'
  7725. # Note: this linker hardcodes the directories in LIBPATH if there
  7726. # are no directories specified by -L.
  7727. hardcode_minus_L=yes
  7728. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7729. # Neither direct hardcoding nor static linking is supported with a
  7730. # broken collect2.
  7731. hardcode_direct=unsupported
  7732. fi
  7733. ;;
  7734. aix[4-9]*)
  7735. if test "$host_cpu" = ia64; then
  7736. # On IA64, the linker does run time linking by default, so we don't
  7737. # have to do anything special.
  7738. aix_use_runtimelinking=no
  7739. exp_sym_flag='-Bexport'
  7740. no_entry_flag=""
  7741. else
  7742. # If we're using GNU nm, then we don't want the "-C" option.
  7743. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7744. # Also, AIX nm treats weak defined symbols like other global
  7745. # defined symbols, whereas GNU nm marks them as "W".
  7746. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7747. 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'
  7748. else
  7749. 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'
  7750. fi
  7751. aix_use_runtimelinking=no
  7752. # Test if we are trying to use run time linking or normal
  7753. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7754. # need to do runtime linking.
  7755. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7756. for ld_flag in $LDFLAGS; do
  7757. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7758. aix_use_runtimelinking=yes
  7759. break
  7760. fi
  7761. done
  7762. ;;
  7763. esac
  7764. exp_sym_flag='-bexport'
  7765. no_entry_flag='-bnoentry'
  7766. fi
  7767. # When large executables or shared objects are built, AIX ld can
  7768. # have problems creating the table of contents. If linking a library
  7769. # or program results in "error TOC overflow" add -mminimal-toc to
  7770. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7771. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7772. archive_cmds=''
  7773. hardcode_direct=yes
  7774. hardcode_direct_absolute=yes
  7775. hardcode_libdir_separator=':'
  7776. link_all_deplibs=yes
  7777. file_list_spec='${wl}-f,'
  7778. if test "$GCC" = yes; then
  7779. case $host_os in aix4.[012]|aix4.[012].*)
  7780. # We only want to do this on AIX 4.2 and lower, the check
  7781. # below for broken collect2 doesn't work under 4.3+
  7782. collect2name=`${CC} -print-prog-name=collect2`
  7783. if test -f "$collect2name" &&
  7784. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7785. then
  7786. # We have reworked collect2
  7787. :
  7788. else
  7789. # We have old collect2
  7790. hardcode_direct=unsupported
  7791. # It fails to find uninstalled libraries when the uninstalled
  7792. # path is not listed in the libpath. Setting hardcode_minus_L
  7793. # to unsupported forces relinking
  7794. hardcode_minus_L=yes
  7795. hardcode_libdir_flag_spec='-L$libdir'
  7796. hardcode_libdir_separator=
  7797. fi
  7798. ;;
  7799. esac
  7800. shared_flag='-shared'
  7801. if test "$aix_use_runtimelinking" = yes; then
  7802. shared_flag="$shared_flag "'${wl}-G'
  7803. fi
  7804. else
  7805. # not using gcc
  7806. if test "$host_cpu" = ia64; then
  7807. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7808. # chokes on -Wl,-G. The following line is correct:
  7809. shared_flag='-G'
  7810. else
  7811. if test "$aix_use_runtimelinking" = yes; then
  7812. shared_flag='${wl}-G'
  7813. else
  7814. shared_flag='${wl}-bM:SRE'
  7815. fi
  7816. fi
  7817. fi
  7818. export_dynamic_flag_spec='${wl}-bexpall'
  7819. # It seems that -bexpall does not export symbols beginning with
  7820. # underscore (_), so it is better to generate a list of symbols to export.
  7821. always_export_symbols=yes
  7822. if test "$aix_use_runtimelinking" = yes; then
  7823. # Warning - without using the other runtime loading flags (-brtl),
  7824. # -berok will link without error, but may produce a broken library.
  7825. allow_undefined_flag='-berok'
  7826. # Determine the default libpath from the value encoded in an
  7827. # empty executable.
  7828. if test "${lt_cv_aix_libpath+set}" = set; then
  7829. aix_libpath=$lt_cv_aix_libpath
  7830. else
  7831. if ${lt_cv_aix_libpath_+:} false; then :
  7832. $as_echo_n "(cached) " >&6
  7833. else
  7834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7835. /* end confdefs.h. */
  7836. int
  7837. main ()
  7838. {
  7839. ;
  7840. return 0;
  7841. }
  7842. _ACEOF
  7843. if ac_fn_c_try_link "$LINENO"; then :
  7844. lt_aix_libpath_sed='
  7845. /Import File Strings/,/^$/ {
  7846. /^0/ {
  7847. s/^0 *\([^ ]*\) *$/\1/
  7848. p
  7849. }
  7850. }'
  7851. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7852. # Check for a 64-bit object if we didn't find anything.
  7853. if test -z "$lt_cv_aix_libpath_"; then
  7854. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7855. fi
  7856. fi
  7857. rm -f core conftest.err conftest.$ac_objext \
  7858. conftest$ac_exeext conftest.$ac_ext
  7859. if test -z "$lt_cv_aix_libpath_"; then
  7860. lt_cv_aix_libpath_="/usr/lib:/lib"
  7861. fi
  7862. fi
  7863. aix_libpath=$lt_cv_aix_libpath_
  7864. fi
  7865. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7866. 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"
  7867. else
  7868. if test "$host_cpu" = ia64; then
  7869. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7870. allow_undefined_flag="-z nodefs"
  7871. 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"
  7872. else
  7873. # Determine the default libpath from the value encoded in an
  7874. # empty executable.
  7875. if test "${lt_cv_aix_libpath+set}" = set; then
  7876. aix_libpath=$lt_cv_aix_libpath
  7877. else
  7878. if ${lt_cv_aix_libpath_+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int
  7884. main ()
  7885. {
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. if ac_fn_c_try_link "$LINENO"; then :
  7891. lt_aix_libpath_sed='
  7892. /Import File Strings/,/^$/ {
  7893. /^0/ {
  7894. s/^0 *\([^ ]*\) *$/\1/
  7895. p
  7896. }
  7897. }'
  7898. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7899. # Check for a 64-bit object if we didn't find anything.
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7902. fi
  7903. fi
  7904. rm -f core conftest.err conftest.$ac_objext \
  7905. conftest$ac_exeext conftest.$ac_ext
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_="/usr/lib:/lib"
  7908. fi
  7909. fi
  7910. aix_libpath=$lt_cv_aix_libpath_
  7911. fi
  7912. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7913. # Warning - without using the other run time loading flags,
  7914. # -berok will link without error, but may produce a broken library.
  7915. no_undefined_flag=' ${wl}-bernotok'
  7916. allow_undefined_flag=' ${wl}-berok'
  7917. if test "$with_gnu_ld" = yes; then
  7918. # We only use this code for GNU lds that support --whole-archive.
  7919. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7920. else
  7921. # Exported symbols can be pulled into shared objects from archives
  7922. whole_archive_flag_spec='$convenience'
  7923. fi
  7924. archive_cmds_need_lc=yes
  7925. # This is similar to how AIX traditionally builds its shared libraries.
  7926. 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'
  7927. fi
  7928. fi
  7929. ;;
  7930. amigaos*)
  7931. case $host_cpu in
  7932. powerpc)
  7933. # see comment about AmigaOS4 .so support
  7934. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7935. archive_expsym_cmds=''
  7936. ;;
  7937. m68k)
  7938. 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)'
  7939. hardcode_libdir_flag_spec='-L$libdir'
  7940. hardcode_minus_L=yes
  7941. ;;
  7942. esac
  7943. ;;
  7944. bsdi[45]*)
  7945. export_dynamic_flag_spec=-rdynamic
  7946. ;;
  7947. cygwin* | mingw* | pw32* | cegcc*)
  7948. # When not using gcc, we currently assume that we are using
  7949. # Microsoft Visual C++.
  7950. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7951. # no search path for DLLs.
  7952. case $cc_basename in
  7953. cl*)
  7954. # Native MSVC
  7955. hardcode_libdir_flag_spec=' '
  7956. allow_undefined_flag=unsupported
  7957. always_export_symbols=yes
  7958. file_list_spec='@'
  7959. # Tell ltmain to make .lib files, not .a files.
  7960. libext=lib
  7961. # Tell ltmain to make .dll files, not .so files.
  7962. shrext_cmds=".dll"
  7963. # FIXME: Setting linknames here is a bad hack.
  7964. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7965. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7966. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7967. else
  7968. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7969. fi~
  7970. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7971. linknames='
  7972. # The linker will not automatically build a static lib if we build a DLL.
  7973. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7974. enable_shared_with_static_runtimes=yes
  7975. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7976. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7977. # Don't use ranlib
  7978. old_postinstall_cmds='chmod 644 $oldlib'
  7979. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7980. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7981. case $lt_outputfile in
  7982. *.exe|*.EXE) ;;
  7983. *)
  7984. lt_outputfile="$lt_outputfile.exe"
  7985. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7986. ;;
  7987. esac~
  7988. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7989. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7990. $RM "$lt_outputfile.manifest";
  7991. fi'
  7992. ;;
  7993. *)
  7994. # Assume MSVC wrapper
  7995. hardcode_libdir_flag_spec=' '
  7996. allow_undefined_flag=unsupported
  7997. # Tell ltmain to make .lib files, not .a files.
  7998. libext=lib
  7999. # Tell ltmain to make .dll files, not .so files.
  8000. shrext_cmds=".dll"
  8001. # FIXME: Setting linknames here is a bad hack.
  8002. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8003. # The linker will automatically build a .lib file if we build a DLL.
  8004. old_archive_from_new_cmds='true'
  8005. # FIXME: Should let the user specify the lib program.
  8006. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8007. enable_shared_with_static_runtimes=yes
  8008. ;;
  8009. esac
  8010. ;;
  8011. darwin* | rhapsody*)
  8012. archive_cmds_need_lc=no
  8013. hardcode_direct=no
  8014. hardcode_automatic=yes
  8015. hardcode_shlibpath_var=unsupported
  8016. if test "$lt_cv_ld_force_load" = "yes"; then
  8017. 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\"`'
  8018. else
  8019. whole_archive_flag_spec=''
  8020. fi
  8021. link_all_deplibs=yes
  8022. allow_undefined_flag="$_lt_dar_allow_undefined"
  8023. case $cc_basename in
  8024. ifort*) _lt_dar_can_shared=yes ;;
  8025. *) _lt_dar_can_shared=$GCC ;;
  8026. esac
  8027. if test "$_lt_dar_can_shared" = "yes"; then
  8028. output_verbose_link_cmd=func_echo_all
  8029. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8030. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8031. 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}"
  8032. 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}"
  8033. else
  8034. ld_shlibs=no
  8035. fi
  8036. ;;
  8037. dgux*)
  8038. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8039. hardcode_libdir_flag_spec='-L$libdir'
  8040. hardcode_shlibpath_var=no
  8041. ;;
  8042. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8043. # support. Future versions do this automatically, but an explicit c++rt0.o
  8044. # does not break anything, and helps significantly (at the cost of a little
  8045. # extra space).
  8046. freebsd2.2*)
  8047. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8048. hardcode_libdir_flag_spec='-R$libdir'
  8049. hardcode_direct=yes
  8050. hardcode_shlibpath_var=no
  8051. ;;
  8052. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8053. freebsd2.*)
  8054. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8055. hardcode_direct=yes
  8056. hardcode_minus_L=yes
  8057. hardcode_shlibpath_var=no
  8058. ;;
  8059. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8060. freebsd* | dragonfly*)
  8061. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8062. hardcode_libdir_flag_spec='-R$libdir'
  8063. hardcode_direct=yes
  8064. hardcode_shlibpath_var=no
  8065. ;;
  8066. hpux9*)
  8067. if test "$GCC" = yes; then
  8068. 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'
  8069. else
  8070. 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'
  8071. fi
  8072. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8073. hardcode_libdir_separator=:
  8074. hardcode_direct=yes
  8075. # hardcode_minus_L: Not really in the search PATH,
  8076. # but as the default location of the library.
  8077. hardcode_minus_L=yes
  8078. export_dynamic_flag_spec='${wl}-E'
  8079. ;;
  8080. hpux10*)
  8081. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8082. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8083. else
  8084. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8085. fi
  8086. if test "$with_gnu_ld" = no; then
  8087. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8088. hardcode_libdir_separator=:
  8089. hardcode_direct=yes
  8090. hardcode_direct_absolute=yes
  8091. export_dynamic_flag_spec='${wl}-E'
  8092. # hardcode_minus_L: Not really in the search PATH,
  8093. # but as the default location of the library.
  8094. hardcode_minus_L=yes
  8095. fi
  8096. ;;
  8097. hpux11*)
  8098. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8099. case $host_cpu in
  8100. hppa*64*)
  8101. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8102. ;;
  8103. ia64*)
  8104. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8105. ;;
  8106. *)
  8107. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8108. ;;
  8109. esac
  8110. else
  8111. case $host_cpu in
  8112. hppa*64*)
  8113. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8114. ;;
  8115. ia64*)
  8116. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8117. ;;
  8118. *)
  8119. # Older versions of the 11.00 compiler do not understand -b yet
  8120. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8122. $as_echo_n "checking if $CC understands -b... " >&6; }
  8123. if ${lt_cv_prog_compiler__b+:} false; then :
  8124. $as_echo_n "(cached) " >&6
  8125. else
  8126. lt_cv_prog_compiler__b=no
  8127. save_LDFLAGS="$LDFLAGS"
  8128. LDFLAGS="$LDFLAGS -b"
  8129. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8130. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8131. # The linker can only warn and ignore the option if not recognized
  8132. # So say no if there are warnings
  8133. if test -s conftest.err; then
  8134. # Append any errors to the config.log.
  8135. cat conftest.err 1>&5
  8136. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8137. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8138. if diff conftest.exp conftest.er2 >/dev/null; then
  8139. lt_cv_prog_compiler__b=yes
  8140. fi
  8141. else
  8142. lt_cv_prog_compiler__b=yes
  8143. fi
  8144. fi
  8145. $RM -r conftest*
  8146. LDFLAGS="$save_LDFLAGS"
  8147. fi
  8148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8149. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8150. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8151. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8152. else
  8153. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8154. fi
  8155. ;;
  8156. esac
  8157. fi
  8158. if test "$with_gnu_ld" = no; then
  8159. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8160. hardcode_libdir_separator=:
  8161. case $host_cpu in
  8162. hppa*64*|ia64*)
  8163. hardcode_direct=no
  8164. hardcode_shlibpath_var=no
  8165. ;;
  8166. *)
  8167. hardcode_direct=yes
  8168. hardcode_direct_absolute=yes
  8169. export_dynamic_flag_spec='${wl}-E'
  8170. # hardcode_minus_L: Not really in the search PATH,
  8171. # but as the default location of the library.
  8172. hardcode_minus_L=yes
  8173. ;;
  8174. esac
  8175. fi
  8176. ;;
  8177. irix5* | irix6* | nonstopux*)
  8178. if test "$GCC" = yes; then
  8179. 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'
  8180. # Try to use the -exported_symbol ld option, if it does not
  8181. # work, assume that -exports_file does not work either and
  8182. # implicitly export all symbols.
  8183. # This should be the same for all languages, so no per-tag cache variable.
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8185. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8186. if ${lt_cv_irix_exported_symbol+:} false; then :
  8187. $as_echo_n "(cached) " >&6
  8188. else
  8189. save_LDFLAGS="$LDFLAGS"
  8190. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8192. /* end confdefs.h. */
  8193. int foo (void) { return 0; }
  8194. _ACEOF
  8195. if ac_fn_c_try_link "$LINENO"; then :
  8196. lt_cv_irix_exported_symbol=yes
  8197. else
  8198. lt_cv_irix_exported_symbol=no
  8199. fi
  8200. rm -f core conftest.err conftest.$ac_objext \
  8201. conftest$ac_exeext conftest.$ac_ext
  8202. LDFLAGS="$save_LDFLAGS"
  8203. fi
  8204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8205. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8206. if test "$lt_cv_irix_exported_symbol" = yes; then
  8207. 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'
  8208. fi
  8209. else
  8210. 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'
  8211. 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'
  8212. fi
  8213. archive_cmds_need_lc='no'
  8214. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8215. hardcode_libdir_separator=:
  8216. inherit_rpath=yes
  8217. link_all_deplibs=yes
  8218. ;;
  8219. netbsd*)
  8220. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8221. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8222. else
  8223. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8224. fi
  8225. hardcode_libdir_flag_spec='-R$libdir'
  8226. hardcode_direct=yes
  8227. hardcode_shlibpath_var=no
  8228. ;;
  8229. newsos6)
  8230. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8231. hardcode_direct=yes
  8232. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8233. hardcode_libdir_separator=:
  8234. hardcode_shlibpath_var=no
  8235. ;;
  8236. *nto* | *qnx*)
  8237. ;;
  8238. openbsd*)
  8239. if test -f /usr/libexec/ld.so; then
  8240. hardcode_direct=yes
  8241. hardcode_shlibpath_var=no
  8242. hardcode_direct_absolute=yes
  8243. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8244. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8245. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8246. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8247. export_dynamic_flag_spec='${wl}-E'
  8248. else
  8249. case $host_os in
  8250. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8251. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8252. hardcode_libdir_flag_spec='-R$libdir'
  8253. ;;
  8254. *)
  8255. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8256. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8257. ;;
  8258. esac
  8259. fi
  8260. else
  8261. ld_shlibs=no
  8262. fi
  8263. ;;
  8264. os2*)
  8265. hardcode_libdir_flag_spec='-L$libdir'
  8266. hardcode_minus_L=yes
  8267. allow_undefined_flag=unsupported
  8268. 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'
  8269. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8270. ;;
  8271. osf3*)
  8272. if test "$GCC" = yes; then
  8273. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8274. 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'
  8275. else
  8276. allow_undefined_flag=' -expect_unresolved \*'
  8277. 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'
  8278. fi
  8279. archive_cmds_need_lc='no'
  8280. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8281. hardcode_libdir_separator=:
  8282. ;;
  8283. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8284. if test "$GCC" = yes; then
  8285. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8286. 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'
  8287. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8288. else
  8289. allow_undefined_flag=' -expect_unresolved \*'
  8290. 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'
  8291. 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~
  8292. $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'
  8293. # Both c and cxx compiler support -rpath directly
  8294. hardcode_libdir_flag_spec='-rpath $libdir'
  8295. fi
  8296. archive_cmds_need_lc='no'
  8297. hardcode_libdir_separator=:
  8298. ;;
  8299. solaris*)
  8300. no_undefined_flag=' -z defs'
  8301. if test "$GCC" = yes; then
  8302. wlarc='${wl}'
  8303. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8304. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8305. $CC -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'
  8306. else
  8307. case `$CC -V 2>&1` in
  8308. *"Compilers 5.0"*)
  8309. wlarc=''
  8310. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8311. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8312. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8313. ;;
  8314. *)
  8315. wlarc='${wl}'
  8316. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8317. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8318. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8319. ;;
  8320. esac
  8321. fi
  8322. hardcode_libdir_flag_spec='-R$libdir'
  8323. hardcode_shlibpath_var=no
  8324. case $host_os in
  8325. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8326. *)
  8327. # The compiler driver will combine and reorder linker options,
  8328. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8329. # but is careful enough not to reorder.
  8330. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8331. if test "$GCC" = yes; then
  8332. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8333. else
  8334. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8335. fi
  8336. ;;
  8337. esac
  8338. link_all_deplibs=yes
  8339. ;;
  8340. sunos4*)
  8341. if test "x$host_vendor" = xsequent; then
  8342. # Use $CC to link under sequent, because it throws in some extra .o
  8343. # files that make .init and .fini sections work.
  8344. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8345. else
  8346. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8347. fi
  8348. hardcode_libdir_flag_spec='-L$libdir'
  8349. hardcode_direct=yes
  8350. hardcode_minus_L=yes
  8351. hardcode_shlibpath_var=no
  8352. ;;
  8353. sysv4)
  8354. case $host_vendor in
  8355. sni)
  8356. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8357. hardcode_direct=yes # is this really true???
  8358. ;;
  8359. siemens)
  8360. ## LD is ld it makes a PLAMLIB
  8361. ## CC just makes a GrossModule.
  8362. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8363. reload_cmds='$CC -r -o $output$reload_objs'
  8364. hardcode_direct=no
  8365. ;;
  8366. motorola)
  8367. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8368. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8369. ;;
  8370. esac
  8371. runpath_var='LD_RUN_PATH'
  8372. hardcode_shlibpath_var=no
  8373. ;;
  8374. sysv4.3*)
  8375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8376. hardcode_shlibpath_var=no
  8377. export_dynamic_flag_spec='-Bexport'
  8378. ;;
  8379. sysv4*MP*)
  8380. if test -d /usr/nec; then
  8381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. hardcode_shlibpath_var=no
  8383. runpath_var=LD_RUN_PATH
  8384. hardcode_runpath_var=yes
  8385. ld_shlibs=yes
  8386. fi
  8387. ;;
  8388. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8389. no_undefined_flag='${wl}-z,text'
  8390. archive_cmds_need_lc=no
  8391. hardcode_shlibpath_var=no
  8392. runpath_var='LD_RUN_PATH'
  8393. if test "$GCC" = yes; then
  8394. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8395. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8396. else
  8397. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8398. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8399. fi
  8400. ;;
  8401. sysv5* | sco3.2v5* | sco5v6*)
  8402. # Note: We can NOT use -z defs as we might desire, because we do not
  8403. # link with -lc, and that would cause any symbols used from libc to
  8404. # always be unresolved, which means just about no library would
  8405. # ever link correctly. If we're not using GNU ld we use -z text
  8406. # though, which does catch some bad symbols but isn't as heavy-handed
  8407. # as -z defs.
  8408. no_undefined_flag='${wl}-z,text'
  8409. allow_undefined_flag='${wl}-z,nodefs'
  8410. archive_cmds_need_lc=no
  8411. hardcode_shlibpath_var=no
  8412. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8413. hardcode_libdir_separator=':'
  8414. link_all_deplibs=yes
  8415. export_dynamic_flag_spec='${wl}-Bexport'
  8416. runpath_var='LD_RUN_PATH'
  8417. if test "$GCC" = yes; then
  8418. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8420. else
  8421. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8423. fi
  8424. ;;
  8425. uts4*)
  8426. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8427. hardcode_libdir_flag_spec='-L$libdir'
  8428. hardcode_shlibpath_var=no
  8429. ;;
  8430. *)
  8431. ld_shlibs=no
  8432. ;;
  8433. esac
  8434. if test x$host_vendor = xsni; then
  8435. case $host in
  8436. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8437. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8438. ;;
  8439. esac
  8440. fi
  8441. fi
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8443. $as_echo "$ld_shlibs" >&6; }
  8444. test "$ld_shlibs" = no && can_build_shared=no
  8445. with_gnu_ld=$with_gnu_ld
  8446. #
  8447. # Do we need to explicitly link libc?
  8448. #
  8449. case "x$archive_cmds_need_lc" in
  8450. x|xyes)
  8451. # Assume -lc should be added
  8452. archive_cmds_need_lc=yes
  8453. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8454. case $archive_cmds in
  8455. *'~'*)
  8456. # FIXME: we may have to deal with multi-command sequences.
  8457. ;;
  8458. '$CC '*)
  8459. # Test whether the compiler implicitly links with -lc since on some
  8460. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8461. # to ld, don't add -lc before -lgcc.
  8462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8463. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8464. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8465. $as_echo_n "(cached) " >&6
  8466. else
  8467. $RM conftest*
  8468. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8469. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8470. (eval $ac_compile) 2>&5
  8471. ac_status=$?
  8472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8473. test $ac_status = 0; } 2>conftest.err; then
  8474. soname=conftest
  8475. lib=conftest
  8476. libobjs=conftest.$ac_objext
  8477. deplibs=
  8478. wl=$lt_prog_compiler_wl
  8479. pic_flag=$lt_prog_compiler_pic
  8480. compiler_flags=-v
  8481. linker_flags=-v
  8482. verstring=
  8483. output_objdir=.
  8484. libname=conftest
  8485. lt_save_allow_undefined_flag=$allow_undefined_flag
  8486. allow_undefined_flag=
  8487. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8488. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8489. ac_status=$?
  8490. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8491. test $ac_status = 0; }
  8492. then
  8493. lt_cv_archive_cmds_need_lc=no
  8494. else
  8495. lt_cv_archive_cmds_need_lc=yes
  8496. fi
  8497. allow_undefined_flag=$lt_save_allow_undefined_flag
  8498. else
  8499. cat conftest.err 1>&5
  8500. fi
  8501. $RM conftest*
  8502. fi
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8504. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8505. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8506. ;;
  8507. esac
  8508. fi
  8509. ;;
  8510. esac
  8511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8512. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8513. if test "$GCC" = yes; then
  8514. case $host_os in
  8515. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8516. *) lt_awk_arg="/^libraries:/" ;;
  8517. esac
  8518. case $host_os in
  8519. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8520. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8521. esac
  8522. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8523. case $lt_search_path_spec in
  8524. *\;*)
  8525. # if the path contains ";" then we assume it to be the separator
  8526. # otherwise default to the standard path separator (i.e. ":") - it is
  8527. # assumed that no part of a normal pathname contains ";" but that should
  8528. # okay in the real world where ";" in dirpaths is itself problematic.
  8529. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8530. ;;
  8531. *)
  8532. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8533. ;;
  8534. esac
  8535. # Ok, now we have the path, separated by spaces, we can step through it
  8536. # and add multilib dir if necessary.
  8537. lt_tmp_lt_search_path_spec=
  8538. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8539. for lt_sys_path in $lt_search_path_spec; do
  8540. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8541. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8542. else
  8543. test -d "$lt_sys_path" && \
  8544. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8545. fi
  8546. done
  8547. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8548. BEGIN {RS=" "; FS="/|\n";} {
  8549. lt_foo="";
  8550. lt_count=0;
  8551. for (lt_i = NF; lt_i > 0; lt_i--) {
  8552. if ($lt_i != "" && $lt_i != ".") {
  8553. if ($lt_i == "..") {
  8554. lt_count++;
  8555. } else {
  8556. if (lt_count == 0) {
  8557. lt_foo="/" $lt_i lt_foo;
  8558. } else {
  8559. lt_count--;
  8560. }
  8561. }
  8562. }
  8563. }
  8564. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8565. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8566. }'`
  8567. # AWK program above erroneously prepends '/' to C:/dos/paths
  8568. # for these hosts.
  8569. case $host_os in
  8570. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8571. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8572. esac
  8573. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8574. else
  8575. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8576. fi
  8577. library_names_spec=
  8578. libname_spec='lib$name'
  8579. soname_spec=
  8580. shrext_cmds=".so"
  8581. postinstall_cmds=
  8582. postuninstall_cmds=
  8583. finish_cmds=
  8584. finish_eval=
  8585. shlibpath_var=
  8586. shlibpath_overrides_runpath=unknown
  8587. version_type=none
  8588. dynamic_linker="$host_os ld.so"
  8589. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8590. need_lib_prefix=unknown
  8591. hardcode_into_libs=no
  8592. # when you set need_version to no, make sure it does not cause -set_version
  8593. # flags to be left without arguments
  8594. need_version=unknown
  8595. case $host_os in
  8596. aix3*)
  8597. version_type=linux # correct to gnu/linux during the next big refactor
  8598. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8599. shlibpath_var=LIBPATH
  8600. # AIX 3 has no versioning support, so we append a major version to the name.
  8601. soname_spec='${libname}${release}${shared_ext}$major'
  8602. ;;
  8603. aix[4-9]*)
  8604. version_type=linux # correct to gnu/linux during the next big refactor
  8605. need_lib_prefix=no
  8606. need_version=no
  8607. hardcode_into_libs=yes
  8608. if test "$host_cpu" = ia64; then
  8609. # AIX 5 supports IA64
  8610. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8611. shlibpath_var=LD_LIBRARY_PATH
  8612. else
  8613. # With GCC up to 2.95.x, collect2 would create an import file
  8614. # for dependence libraries. The import file would start with
  8615. # the line `#! .'. This would cause the generated library to
  8616. # depend on `.', always an invalid library. This was fixed in
  8617. # development snapshots of GCC prior to 3.0.
  8618. case $host_os in
  8619. aix4 | aix4.[01] | aix4.[01].*)
  8620. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8621. echo ' yes '
  8622. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8623. :
  8624. else
  8625. can_build_shared=no
  8626. fi
  8627. ;;
  8628. esac
  8629. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8630. # soname into executable. Probably we can add versioning support to
  8631. # collect2, so additional links can be useful in future.
  8632. if test "$aix_use_runtimelinking" = yes; then
  8633. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8634. # instead of lib<name>.a to let people know that these are not
  8635. # typical AIX shared libraries.
  8636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8637. else
  8638. # We preserve .a as extension for shared libraries through AIX4.2
  8639. # and later when we are not doing run time linking.
  8640. library_names_spec='${libname}${release}.a $libname.a'
  8641. soname_spec='${libname}${release}${shared_ext}$major'
  8642. fi
  8643. shlibpath_var=LIBPATH
  8644. fi
  8645. ;;
  8646. amigaos*)
  8647. case $host_cpu in
  8648. powerpc)
  8649. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8650. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8652. ;;
  8653. m68k)
  8654. library_names_spec='$libname.ixlibrary $libname.a'
  8655. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8656. 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'
  8657. ;;
  8658. esac
  8659. ;;
  8660. beos*)
  8661. library_names_spec='${libname}${shared_ext}'
  8662. dynamic_linker="$host_os ld.so"
  8663. shlibpath_var=LIBRARY_PATH
  8664. ;;
  8665. bsdi[45]*)
  8666. version_type=linux # correct to gnu/linux during the next big refactor
  8667. need_version=no
  8668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8669. soname_spec='${libname}${release}${shared_ext}$major'
  8670. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8671. shlibpath_var=LD_LIBRARY_PATH
  8672. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8673. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8674. # the default ld.so.conf also contains /usr/contrib/lib and
  8675. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8676. # libtool to hard-code these into programs
  8677. ;;
  8678. cygwin* | mingw* | pw32* | cegcc*)
  8679. version_type=windows
  8680. shrext_cmds=".dll"
  8681. need_version=no
  8682. need_lib_prefix=no
  8683. case $GCC,$cc_basename in
  8684. yes,*)
  8685. # gcc
  8686. library_names_spec='$libname.dll.a'
  8687. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8688. postinstall_cmds='base_file=`basename \${file}`~
  8689. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8690. dldir=$destdir/`dirname \$dlpath`~
  8691. test -d \$dldir || mkdir -p \$dldir~
  8692. $install_prog $dir/$dlname \$dldir/$dlname~
  8693. chmod a+x \$dldir/$dlname~
  8694. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8695. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8696. fi'
  8697. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8698. dlpath=$dir/\$dldll~
  8699. $RM \$dlpath'
  8700. shlibpath_overrides_runpath=yes
  8701. case $host_os in
  8702. cygwin*)
  8703. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8704. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8705. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8706. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8707. ;;
  8708. mingw* | cegcc*)
  8709. # MinGW DLLs use traditional 'lib' prefix
  8710. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8711. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8712. ;;
  8713. pw32*)
  8714. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8715. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8716. ;;
  8717. esac
  8718. dynamic_linker='Win32 ld.exe'
  8719. ;;
  8720. *,cl*)
  8721. # Native MSVC
  8722. libname_spec='$name'
  8723. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8724. library_names_spec='${libname}.dll.lib'
  8725. case $build_os in
  8726. mingw*)
  8727. sys_lib_search_path_spec=
  8728. lt_save_ifs=$IFS
  8729. IFS=';'
  8730. for lt_path in $LIB
  8731. do
  8732. IFS=$lt_save_ifs
  8733. # Let DOS variable expansion print the short 8.3 style file name.
  8734. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8735. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8736. done
  8737. IFS=$lt_save_ifs
  8738. # Convert to MSYS style.
  8739. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8740. ;;
  8741. cygwin*)
  8742. # Convert to unix form, then to dos form, then back to unix form
  8743. # but this time dos style (no spaces!) so that the unix form looks
  8744. # like /cygdrive/c/PROGRA~1:/cygdr...
  8745. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8746. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8747. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8748. ;;
  8749. *)
  8750. sys_lib_search_path_spec="$LIB"
  8751. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8752. # It is most probably a Windows format PATH.
  8753. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8754. else
  8755. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8756. fi
  8757. # FIXME: find the short name or the path components, as spaces are
  8758. # common. (e.g. "Program Files" -> "PROGRA~1")
  8759. ;;
  8760. esac
  8761. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8762. postinstall_cmds='base_file=`basename \${file}`~
  8763. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8764. dldir=$destdir/`dirname \$dlpath`~
  8765. test -d \$dldir || mkdir -p \$dldir~
  8766. $install_prog $dir/$dlname \$dldir/$dlname'
  8767. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8768. dlpath=$dir/\$dldll~
  8769. $RM \$dlpath'
  8770. shlibpath_overrides_runpath=yes
  8771. dynamic_linker='Win32 link.exe'
  8772. ;;
  8773. *)
  8774. # Assume MSVC wrapper
  8775. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8776. dynamic_linker='Win32 ld.exe'
  8777. ;;
  8778. esac
  8779. # FIXME: first we should search . and the directory the executable is in
  8780. shlibpath_var=PATH
  8781. ;;
  8782. darwin* | rhapsody*)
  8783. dynamic_linker="$host_os dyld"
  8784. version_type=darwin
  8785. need_lib_prefix=no
  8786. need_version=no
  8787. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8788. soname_spec='${libname}${release}${major}$shared_ext'
  8789. shlibpath_overrides_runpath=yes
  8790. shlibpath_var=DYLD_LIBRARY_PATH
  8791. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8792. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8793. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8794. ;;
  8795. dgux*)
  8796. version_type=linux # correct to gnu/linux during the next big refactor
  8797. need_lib_prefix=no
  8798. need_version=no
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8800. soname_spec='${libname}${release}${shared_ext}$major'
  8801. shlibpath_var=LD_LIBRARY_PATH
  8802. ;;
  8803. freebsd* | dragonfly*)
  8804. # DragonFly does not have aout. When/if they implement a new
  8805. # versioning mechanism, adjust this.
  8806. if test -x /usr/bin/objformat; then
  8807. objformat=`/usr/bin/objformat`
  8808. else
  8809. case $host_os in
  8810. freebsd[23].*) objformat=aout ;;
  8811. *) objformat=elf ;;
  8812. esac
  8813. fi
  8814. version_type=freebsd-$objformat
  8815. case $version_type in
  8816. freebsd-elf*)
  8817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8818. need_version=no
  8819. need_lib_prefix=no
  8820. ;;
  8821. freebsd-*)
  8822. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8823. need_version=yes
  8824. ;;
  8825. esac
  8826. shlibpath_var=LD_LIBRARY_PATH
  8827. case $host_os in
  8828. freebsd2.*)
  8829. shlibpath_overrides_runpath=yes
  8830. ;;
  8831. freebsd3.[01]* | freebsdelf3.[01]*)
  8832. shlibpath_overrides_runpath=yes
  8833. hardcode_into_libs=yes
  8834. ;;
  8835. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8836. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8837. shlibpath_overrides_runpath=no
  8838. hardcode_into_libs=yes
  8839. ;;
  8840. *) # from 4.6 on, and DragonFly
  8841. shlibpath_overrides_runpath=yes
  8842. hardcode_into_libs=yes
  8843. ;;
  8844. esac
  8845. ;;
  8846. gnu*)
  8847. version_type=linux # correct to gnu/linux during the next big refactor
  8848. need_lib_prefix=no
  8849. need_version=no
  8850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8851. soname_spec='${libname}${release}${shared_ext}$major'
  8852. shlibpath_var=LD_LIBRARY_PATH
  8853. shlibpath_overrides_runpath=no
  8854. hardcode_into_libs=yes
  8855. ;;
  8856. haiku*)
  8857. version_type=linux # correct to gnu/linux during the next big refactor
  8858. need_lib_prefix=no
  8859. need_version=no
  8860. dynamic_linker="$host_os runtime_loader"
  8861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8862. soname_spec='${libname}${release}${shared_ext}$major'
  8863. shlibpath_var=LIBRARY_PATH
  8864. shlibpath_overrides_runpath=yes
  8865. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8866. hardcode_into_libs=yes
  8867. ;;
  8868. hpux9* | hpux10* | hpux11*)
  8869. # Give a soname corresponding to the major version so that dld.sl refuses to
  8870. # link against other versions.
  8871. version_type=sunos
  8872. need_lib_prefix=no
  8873. need_version=no
  8874. case $host_cpu in
  8875. ia64*)
  8876. shrext_cmds='.so'
  8877. hardcode_into_libs=yes
  8878. dynamic_linker="$host_os dld.so"
  8879. shlibpath_var=LD_LIBRARY_PATH
  8880. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8882. soname_spec='${libname}${release}${shared_ext}$major'
  8883. if test "X$HPUX_IA64_MODE" = X32; then
  8884. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8885. else
  8886. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8887. fi
  8888. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8889. ;;
  8890. hppa*64*)
  8891. shrext_cmds='.sl'
  8892. hardcode_into_libs=yes
  8893. dynamic_linker="$host_os dld.sl"
  8894. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8895. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8897. soname_spec='${libname}${release}${shared_ext}$major'
  8898. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8899. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8900. ;;
  8901. *)
  8902. shrext_cmds='.sl'
  8903. dynamic_linker="$host_os dld.sl"
  8904. shlibpath_var=SHLIB_PATH
  8905. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. ;;
  8909. esac
  8910. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8911. postinstall_cmds='chmod 555 $lib'
  8912. # or fails outright, so override atomically:
  8913. install_override_mode=555
  8914. ;;
  8915. interix[3-9]*)
  8916. version_type=linux # correct to gnu/linux during the next big refactor
  8917. need_lib_prefix=no
  8918. need_version=no
  8919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8920. soname_spec='${libname}${release}${shared_ext}$major'
  8921. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8922. shlibpath_var=LD_LIBRARY_PATH
  8923. shlibpath_overrides_runpath=no
  8924. hardcode_into_libs=yes
  8925. ;;
  8926. irix5* | irix6* | nonstopux*)
  8927. case $host_os in
  8928. nonstopux*) version_type=nonstopux ;;
  8929. *)
  8930. if test "$lt_cv_prog_gnu_ld" = yes; then
  8931. version_type=linux # correct to gnu/linux during the next big refactor
  8932. else
  8933. version_type=irix
  8934. fi ;;
  8935. esac
  8936. need_lib_prefix=no
  8937. need_version=no
  8938. soname_spec='${libname}${release}${shared_ext}$major'
  8939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8940. case $host_os in
  8941. irix5* | nonstopux*)
  8942. libsuff= shlibsuff=
  8943. ;;
  8944. *)
  8945. case $LD in # libtool.m4 will add one of these switches to LD
  8946. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8947. libsuff= shlibsuff= libmagic=32-bit;;
  8948. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8949. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8950. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8951. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8952. *) libsuff= shlibsuff= libmagic=never-match;;
  8953. esac
  8954. ;;
  8955. esac
  8956. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8957. shlibpath_overrides_runpath=no
  8958. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8959. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8960. hardcode_into_libs=yes
  8961. ;;
  8962. # No shared lib support for Linux oldld, aout, or coff.
  8963. linux*oldld* | linux*aout* | linux*coff*)
  8964. dynamic_linker=no
  8965. ;;
  8966. # This must be glibc/ELF.
  8967. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8968. version_type=linux # correct to gnu/linux during the next big refactor
  8969. need_lib_prefix=no
  8970. need_version=no
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8972. soname_spec='${libname}${release}${shared_ext}$major'
  8973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8974. shlibpath_var=LD_LIBRARY_PATH
  8975. shlibpath_overrides_runpath=no
  8976. # Some binutils ld are patched to set DT_RUNPATH
  8977. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8978. $as_echo_n "(cached) " >&6
  8979. else
  8980. lt_cv_shlibpath_overrides_runpath=no
  8981. save_LDFLAGS=$LDFLAGS
  8982. save_libdir=$libdir
  8983. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8984. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8986. /* end confdefs.h. */
  8987. int
  8988. main ()
  8989. {
  8990. ;
  8991. return 0;
  8992. }
  8993. _ACEOF
  8994. if ac_fn_c_try_link "$LINENO"; then :
  8995. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8996. lt_cv_shlibpath_overrides_runpath=yes
  8997. fi
  8998. fi
  8999. rm -f core conftest.err conftest.$ac_objext \
  9000. conftest$ac_exeext conftest.$ac_ext
  9001. LDFLAGS=$save_LDFLAGS
  9002. libdir=$save_libdir
  9003. fi
  9004. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9005. # This implies no fast_install, which is unacceptable.
  9006. # Some rework will be needed to allow for fast_install
  9007. # before this can be enabled.
  9008. hardcode_into_libs=yes
  9009. # Append ld.so.conf contents to the search path
  9010. if test -f /etc/ld.so.conf; then
  9011. 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' ' '`
  9012. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9013. fi
  9014. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9015. # powerpc, because MkLinux only supported shared libraries with the
  9016. # GNU dynamic linker. Since this was broken with cross compilers,
  9017. # most powerpc-linux boxes support dynamic linking these days and
  9018. # people can always --disable-shared, the test was removed, and we
  9019. # assume the GNU/Linux dynamic linker is in use.
  9020. dynamic_linker='GNU/Linux ld.so'
  9021. ;;
  9022. netbsd*)
  9023. version_type=sunos
  9024. need_lib_prefix=no
  9025. need_version=no
  9026. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9028. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9029. dynamic_linker='NetBSD (a.out) ld.so'
  9030. else
  9031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9032. soname_spec='${libname}${release}${shared_ext}$major'
  9033. dynamic_linker='NetBSD ld.elf_so'
  9034. fi
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. shlibpath_overrides_runpath=yes
  9037. hardcode_into_libs=yes
  9038. ;;
  9039. newsos6)
  9040. version_type=linux # correct to gnu/linux during the next big refactor
  9041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9042. shlibpath_var=LD_LIBRARY_PATH
  9043. shlibpath_overrides_runpath=yes
  9044. ;;
  9045. *nto* | *qnx*)
  9046. version_type=qnx
  9047. need_lib_prefix=no
  9048. need_version=no
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. shlibpath_overrides_runpath=no
  9053. hardcode_into_libs=yes
  9054. dynamic_linker='ldqnx.so'
  9055. ;;
  9056. openbsd*)
  9057. version_type=sunos
  9058. sys_lib_dlsearch_path_spec="/usr/lib"
  9059. need_lib_prefix=no
  9060. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9061. case $host_os in
  9062. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9063. *) need_version=no ;;
  9064. esac
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9066. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9067. shlibpath_var=LD_LIBRARY_PATH
  9068. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9069. case $host_os in
  9070. openbsd2.[89] | openbsd2.[89].*)
  9071. shlibpath_overrides_runpath=no
  9072. ;;
  9073. *)
  9074. shlibpath_overrides_runpath=yes
  9075. ;;
  9076. esac
  9077. else
  9078. shlibpath_overrides_runpath=yes
  9079. fi
  9080. ;;
  9081. os2*)
  9082. libname_spec='$name'
  9083. shrext_cmds=".dll"
  9084. need_lib_prefix=no
  9085. library_names_spec='$libname${shared_ext} $libname.a'
  9086. dynamic_linker='OS/2 ld.exe'
  9087. shlibpath_var=LIBPATH
  9088. ;;
  9089. osf3* | osf4* | osf5*)
  9090. version_type=osf
  9091. need_lib_prefix=no
  9092. need_version=no
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9095. shlibpath_var=LD_LIBRARY_PATH
  9096. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9097. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9098. ;;
  9099. rdos*)
  9100. dynamic_linker=no
  9101. ;;
  9102. solaris*)
  9103. version_type=linux # correct to gnu/linux during the next big refactor
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9107. soname_spec='${libname}${release}${shared_ext}$major'
  9108. shlibpath_var=LD_LIBRARY_PATH
  9109. shlibpath_overrides_runpath=yes
  9110. hardcode_into_libs=yes
  9111. # ldd complains unless libraries are executable
  9112. postinstall_cmds='chmod +x $lib'
  9113. ;;
  9114. sunos4*)
  9115. version_type=sunos
  9116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9117. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9118. shlibpath_var=LD_LIBRARY_PATH
  9119. shlibpath_overrides_runpath=yes
  9120. if test "$with_gnu_ld" = yes; then
  9121. need_lib_prefix=no
  9122. fi
  9123. need_version=yes
  9124. ;;
  9125. sysv4 | sysv4.3*)
  9126. version_type=linux # correct to gnu/linux during the next big refactor
  9127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9128. soname_spec='${libname}${release}${shared_ext}$major'
  9129. shlibpath_var=LD_LIBRARY_PATH
  9130. case $host_vendor in
  9131. sni)
  9132. shlibpath_overrides_runpath=no
  9133. need_lib_prefix=no
  9134. runpath_var=LD_RUN_PATH
  9135. ;;
  9136. siemens)
  9137. need_lib_prefix=no
  9138. ;;
  9139. motorola)
  9140. need_lib_prefix=no
  9141. need_version=no
  9142. shlibpath_overrides_runpath=no
  9143. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9144. ;;
  9145. esac
  9146. ;;
  9147. sysv4*MP*)
  9148. if test -d /usr/nec ;then
  9149. version_type=linux # correct to gnu/linux during the next big refactor
  9150. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9151. soname_spec='$libname${shared_ext}.$major'
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. fi
  9154. ;;
  9155. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9156. version_type=freebsd-elf
  9157. need_lib_prefix=no
  9158. need_version=no
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9160. soname_spec='${libname}${release}${shared_ext}$major'
  9161. shlibpath_var=LD_LIBRARY_PATH
  9162. shlibpath_overrides_runpath=yes
  9163. hardcode_into_libs=yes
  9164. if test "$with_gnu_ld" = yes; then
  9165. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9166. else
  9167. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9168. case $host_os in
  9169. sco3.2v5*)
  9170. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9171. ;;
  9172. esac
  9173. fi
  9174. sys_lib_dlsearch_path_spec='/usr/lib'
  9175. ;;
  9176. tpf*)
  9177. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9178. version_type=linux # correct to gnu/linux during the next big refactor
  9179. need_lib_prefix=no
  9180. need_version=no
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9182. shlibpath_var=LD_LIBRARY_PATH
  9183. shlibpath_overrides_runpath=no
  9184. hardcode_into_libs=yes
  9185. ;;
  9186. uts4*)
  9187. version_type=linux # correct to gnu/linux during the next big refactor
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. ;;
  9192. *)
  9193. dynamic_linker=no
  9194. ;;
  9195. esac
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9197. $as_echo "$dynamic_linker" >&6; }
  9198. test "$dynamic_linker" = no && can_build_shared=no
  9199. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9200. if test "$GCC" = yes; then
  9201. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9202. fi
  9203. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9204. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9205. fi
  9206. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9207. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9208. fi
  9209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9210. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9211. hardcode_action=
  9212. if test -n "$hardcode_libdir_flag_spec" ||
  9213. test -n "$runpath_var" ||
  9214. test "X$hardcode_automatic" = "Xyes" ; then
  9215. # We can hardcode non-existent directories.
  9216. if test "$hardcode_direct" != no &&
  9217. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9218. # have to relink, otherwise we might link with an installed library
  9219. # when we should be linking with a yet-to-be-installed one
  9220. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9221. test "$hardcode_minus_L" != no; then
  9222. # Linking always hardcodes the temporary library directory.
  9223. hardcode_action=relink
  9224. else
  9225. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9226. hardcode_action=immediate
  9227. fi
  9228. else
  9229. # We cannot hardcode anything, or else we can only hardcode existing
  9230. # directories.
  9231. hardcode_action=unsupported
  9232. fi
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9234. $as_echo "$hardcode_action" >&6; }
  9235. if test "$hardcode_action" = relink ||
  9236. test "$inherit_rpath" = yes; then
  9237. # Fast installation is not supported
  9238. enable_fast_install=no
  9239. elif test "$shlibpath_overrides_runpath" = yes ||
  9240. test "$enable_shared" = no; then
  9241. # Fast installation is not necessary
  9242. enable_fast_install=needless
  9243. fi
  9244. if test "x$enable_dlopen" != xyes; then
  9245. enable_dlopen=unknown
  9246. enable_dlopen_self=unknown
  9247. enable_dlopen_self_static=unknown
  9248. else
  9249. lt_cv_dlopen=no
  9250. lt_cv_dlopen_libs=
  9251. case $host_os in
  9252. beos*)
  9253. lt_cv_dlopen="load_add_on"
  9254. lt_cv_dlopen_libs=
  9255. lt_cv_dlopen_self=yes
  9256. ;;
  9257. mingw* | pw32* | cegcc*)
  9258. lt_cv_dlopen="LoadLibrary"
  9259. lt_cv_dlopen_libs=
  9260. ;;
  9261. cygwin*)
  9262. lt_cv_dlopen="dlopen"
  9263. lt_cv_dlopen_libs=
  9264. ;;
  9265. darwin*)
  9266. # if libdl is installed we need to link against it
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9268. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9269. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9270. $as_echo_n "(cached) " >&6
  9271. else
  9272. ac_check_lib_save_LIBS=$LIBS
  9273. LIBS="-ldl $LIBS"
  9274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9275. /* end confdefs.h. */
  9276. /* Override any GCC internal prototype to avoid an error.
  9277. Use char because int might match the return type of a GCC
  9278. builtin and then its argument prototype would still apply. */
  9279. #ifdef __cplusplus
  9280. extern "C"
  9281. #endif
  9282. char dlopen ();
  9283. int
  9284. main ()
  9285. {
  9286. return dlopen ();
  9287. ;
  9288. return 0;
  9289. }
  9290. _ACEOF
  9291. if ac_fn_c_try_link "$LINENO"; then :
  9292. ac_cv_lib_dl_dlopen=yes
  9293. else
  9294. ac_cv_lib_dl_dlopen=no
  9295. fi
  9296. rm -f core conftest.err conftest.$ac_objext \
  9297. conftest$ac_exeext conftest.$ac_ext
  9298. LIBS=$ac_check_lib_save_LIBS
  9299. fi
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9301. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9302. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9303. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9304. else
  9305. lt_cv_dlopen="dyld"
  9306. lt_cv_dlopen_libs=
  9307. lt_cv_dlopen_self=yes
  9308. fi
  9309. ;;
  9310. *)
  9311. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9312. if test "x$ac_cv_func_shl_load" = xyes; then :
  9313. lt_cv_dlopen="shl_load"
  9314. else
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9316. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9317. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. ac_check_lib_save_LIBS=$LIBS
  9321. LIBS="-ldld $LIBS"
  9322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9323. /* end confdefs.h. */
  9324. /* Override any GCC internal prototype to avoid an error.
  9325. Use char because int might match the return type of a GCC
  9326. builtin and then its argument prototype would still apply. */
  9327. #ifdef __cplusplus
  9328. extern "C"
  9329. #endif
  9330. char shl_load ();
  9331. int
  9332. main ()
  9333. {
  9334. return shl_load ();
  9335. ;
  9336. return 0;
  9337. }
  9338. _ACEOF
  9339. if ac_fn_c_try_link "$LINENO"; then :
  9340. ac_cv_lib_dld_shl_load=yes
  9341. else
  9342. ac_cv_lib_dld_shl_load=no
  9343. fi
  9344. rm -f core conftest.err conftest.$ac_objext \
  9345. conftest$ac_exeext conftest.$ac_ext
  9346. LIBS=$ac_check_lib_save_LIBS
  9347. fi
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9349. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9350. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9351. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9352. else
  9353. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9354. if test "x$ac_cv_func_dlopen" = xyes; then :
  9355. lt_cv_dlopen="dlopen"
  9356. else
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9358. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9359. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9360. $as_echo_n "(cached) " >&6
  9361. else
  9362. ac_check_lib_save_LIBS=$LIBS
  9363. LIBS="-ldl $LIBS"
  9364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9365. /* end confdefs.h. */
  9366. /* Override any GCC internal prototype to avoid an error.
  9367. Use char because int might match the return type of a GCC
  9368. builtin and then its argument prototype would still apply. */
  9369. #ifdef __cplusplus
  9370. extern "C"
  9371. #endif
  9372. char dlopen ();
  9373. int
  9374. main ()
  9375. {
  9376. return dlopen ();
  9377. ;
  9378. return 0;
  9379. }
  9380. _ACEOF
  9381. if ac_fn_c_try_link "$LINENO"; then :
  9382. ac_cv_lib_dl_dlopen=yes
  9383. else
  9384. ac_cv_lib_dl_dlopen=no
  9385. fi
  9386. rm -f core conftest.err conftest.$ac_objext \
  9387. conftest$ac_exeext conftest.$ac_ext
  9388. LIBS=$ac_check_lib_save_LIBS
  9389. fi
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9391. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9392. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9393. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9394. else
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9396. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9397. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9398. $as_echo_n "(cached) " >&6
  9399. else
  9400. ac_check_lib_save_LIBS=$LIBS
  9401. LIBS="-lsvld $LIBS"
  9402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9403. /* end confdefs.h. */
  9404. /* Override any GCC internal prototype to avoid an error.
  9405. Use char because int might match the return type of a GCC
  9406. builtin and then its argument prototype would still apply. */
  9407. #ifdef __cplusplus
  9408. extern "C"
  9409. #endif
  9410. char dlopen ();
  9411. int
  9412. main ()
  9413. {
  9414. return dlopen ();
  9415. ;
  9416. return 0;
  9417. }
  9418. _ACEOF
  9419. if ac_fn_c_try_link "$LINENO"; then :
  9420. ac_cv_lib_svld_dlopen=yes
  9421. else
  9422. ac_cv_lib_svld_dlopen=no
  9423. fi
  9424. rm -f core conftest.err conftest.$ac_objext \
  9425. conftest$ac_exeext conftest.$ac_ext
  9426. LIBS=$ac_check_lib_save_LIBS
  9427. fi
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9429. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9430. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9431. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9432. else
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9434. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9435. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9436. $as_echo_n "(cached) " >&6
  9437. else
  9438. ac_check_lib_save_LIBS=$LIBS
  9439. LIBS="-ldld $LIBS"
  9440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9441. /* end confdefs.h. */
  9442. /* Override any GCC internal prototype to avoid an error.
  9443. Use char because int might match the return type of a GCC
  9444. builtin and then its argument prototype would still apply. */
  9445. #ifdef __cplusplus
  9446. extern "C"
  9447. #endif
  9448. char dld_link ();
  9449. int
  9450. main ()
  9451. {
  9452. return dld_link ();
  9453. ;
  9454. return 0;
  9455. }
  9456. _ACEOF
  9457. if ac_fn_c_try_link "$LINENO"; then :
  9458. ac_cv_lib_dld_dld_link=yes
  9459. else
  9460. ac_cv_lib_dld_dld_link=no
  9461. fi
  9462. rm -f core conftest.err conftest.$ac_objext \
  9463. conftest$ac_exeext conftest.$ac_ext
  9464. LIBS=$ac_check_lib_save_LIBS
  9465. fi
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9467. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9468. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9469. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9470. fi
  9471. fi
  9472. fi
  9473. fi
  9474. fi
  9475. fi
  9476. ;;
  9477. esac
  9478. if test "x$lt_cv_dlopen" != xno; then
  9479. enable_dlopen=yes
  9480. else
  9481. enable_dlopen=no
  9482. fi
  9483. case $lt_cv_dlopen in
  9484. dlopen)
  9485. save_CPPFLAGS="$CPPFLAGS"
  9486. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9487. save_LDFLAGS="$LDFLAGS"
  9488. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9489. save_LIBS="$LIBS"
  9490. LIBS="$lt_cv_dlopen_libs $LIBS"
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9492. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9493. if ${lt_cv_dlopen_self+:} false; then :
  9494. $as_echo_n "(cached) " >&6
  9495. else
  9496. if test "$cross_compiling" = yes; then :
  9497. lt_cv_dlopen_self=cross
  9498. else
  9499. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9500. lt_status=$lt_dlunknown
  9501. cat > conftest.$ac_ext <<_LT_EOF
  9502. #line $LINENO "configure"
  9503. #include "confdefs.h"
  9504. #if HAVE_DLFCN_H
  9505. #include <dlfcn.h>
  9506. #endif
  9507. #include <stdio.h>
  9508. #ifdef RTLD_GLOBAL
  9509. # define LT_DLGLOBAL RTLD_GLOBAL
  9510. #else
  9511. # ifdef DL_GLOBAL
  9512. # define LT_DLGLOBAL DL_GLOBAL
  9513. # else
  9514. # define LT_DLGLOBAL 0
  9515. # endif
  9516. #endif
  9517. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9518. find out it does not work in some platform. */
  9519. #ifndef LT_DLLAZY_OR_NOW
  9520. # ifdef RTLD_LAZY
  9521. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9522. # else
  9523. # ifdef DL_LAZY
  9524. # define LT_DLLAZY_OR_NOW DL_LAZY
  9525. # else
  9526. # ifdef RTLD_NOW
  9527. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9528. # else
  9529. # ifdef DL_NOW
  9530. # define LT_DLLAZY_OR_NOW DL_NOW
  9531. # else
  9532. # define LT_DLLAZY_OR_NOW 0
  9533. # endif
  9534. # endif
  9535. # endif
  9536. # endif
  9537. #endif
  9538. /* When -fvisbility=hidden is used, assume the code has been annotated
  9539. correspondingly for the symbols needed. */
  9540. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9541. int fnord () __attribute__((visibility("default")));
  9542. #endif
  9543. int fnord () { return 42; }
  9544. int main ()
  9545. {
  9546. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9547. int status = $lt_dlunknown;
  9548. if (self)
  9549. {
  9550. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9551. else
  9552. {
  9553. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9554. else puts (dlerror ());
  9555. }
  9556. /* dlclose (self); */
  9557. }
  9558. else
  9559. puts (dlerror ());
  9560. return status;
  9561. }
  9562. _LT_EOF
  9563. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9564. (eval $ac_link) 2>&5
  9565. ac_status=$?
  9566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9567. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9568. (./conftest; exit; ) >&5 2>/dev/null
  9569. lt_status=$?
  9570. case x$lt_status in
  9571. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9572. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9573. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9574. esac
  9575. else :
  9576. # compilation failed
  9577. lt_cv_dlopen_self=no
  9578. fi
  9579. fi
  9580. rm -fr conftest*
  9581. fi
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9583. $as_echo "$lt_cv_dlopen_self" >&6; }
  9584. if test "x$lt_cv_dlopen_self" = xyes; then
  9585. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9587. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9588. if ${lt_cv_dlopen_self_static+:} false; then :
  9589. $as_echo_n "(cached) " >&6
  9590. else
  9591. if test "$cross_compiling" = yes; then :
  9592. lt_cv_dlopen_self_static=cross
  9593. else
  9594. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9595. lt_status=$lt_dlunknown
  9596. cat > conftest.$ac_ext <<_LT_EOF
  9597. #line $LINENO "configure"
  9598. #include "confdefs.h"
  9599. #if HAVE_DLFCN_H
  9600. #include <dlfcn.h>
  9601. #endif
  9602. #include <stdio.h>
  9603. #ifdef RTLD_GLOBAL
  9604. # define LT_DLGLOBAL RTLD_GLOBAL
  9605. #else
  9606. # ifdef DL_GLOBAL
  9607. # define LT_DLGLOBAL DL_GLOBAL
  9608. # else
  9609. # define LT_DLGLOBAL 0
  9610. # endif
  9611. #endif
  9612. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9613. find out it does not work in some platform. */
  9614. #ifndef LT_DLLAZY_OR_NOW
  9615. # ifdef RTLD_LAZY
  9616. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9617. # else
  9618. # ifdef DL_LAZY
  9619. # define LT_DLLAZY_OR_NOW DL_LAZY
  9620. # else
  9621. # ifdef RTLD_NOW
  9622. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9623. # else
  9624. # ifdef DL_NOW
  9625. # define LT_DLLAZY_OR_NOW DL_NOW
  9626. # else
  9627. # define LT_DLLAZY_OR_NOW 0
  9628. # endif
  9629. # endif
  9630. # endif
  9631. # endif
  9632. #endif
  9633. /* When -fvisbility=hidden is used, assume the code has been annotated
  9634. correspondingly for the symbols needed. */
  9635. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9636. int fnord () __attribute__((visibility("default")));
  9637. #endif
  9638. int fnord () { return 42; }
  9639. int main ()
  9640. {
  9641. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9642. int status = $lt_dlunknown;
  9643. if (self)
  9644. {
  9645. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9646. else
  9647. {
  9648. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9649. else puts (dlerror ());
  9650. }
  9651. /* dlclose (self); */
  9652. }
  9653. else
  9654. puts (dlerror ());
  9655. return status;
  9656. }
  9657. _LT_EOF
  9658. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9659. (eval $ac_link) 2>&5
  9660. ac_status=$?
  9661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9662. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9663. (./conftest; exit; ) >&5 2>/dev/null
  9664. lt_status=$?
  9665. case x$lt_status in
  9666. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9667. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9668. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9669. esac
  9670. else :
  9671. # compilation failed
  9672. lt_cv_dlopen_self_static=no
  9673. fi
  9674. fi
  9675. rm -fr conftest*
  9676. fi
  9677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9678. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9679. fi
  9680. CPPFLAGS="$save_CPPFLAGS"
  9681. LDFLAGS="$save_LDFLAGS"
  9682. LIBS="$save_LIBS"
  9683. ;;
  9684. esac
  9685. case $lt_cv_dlopen_self in
  9686. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9687. *) enable_dlopen_self=unknown ;;
  9688. esac
  9689. case $lt_cv_dlopen_self_static in
  9690. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9691. *) enable_dlopen_self_static=unknown ;;
  9692. esac
  9693. fi
  9694. striplib=
  9695. old_striplib=
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9697. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9698. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9699. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9700. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9702. $as_echo "yes" >&6; }
  9703. else
  9704. # FIXME - insert some real tests, host_os isn't really good enough
  9705. case $host_os in
  9706. darwin*)
  9707. if test -n "$STRIP" ; then
  9708. striplib="$STRIP -x"
  9709. old_striplib="$STRIP -S"
  9710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9711. $as_echo "yes" >&6; }
  9712. else
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9714. $as_echo "no" >&6; }
  9715. fi
  9716. ;;
  9717. *)
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9719. $as_echo "no" >&6; }
  9720. ;;
  9721. esac
  9722. fi
  9723. # Report which library types will actually be built
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9725. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9727. $as_echo "$can_build_shared" >&6; }
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9729. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9730. test "$can_build_shared" = "no" && enable_shared=no
  9731. # On AIX, shared libraries and static libraries use the same namespace, and
  9732. # are all built from PIC.
  9733. case $host_os in
  9734. aix3*)
  9735. test "$enable_shared" = yes && enable_static=no
  9736. if test -n "$RANLIB"; then
  9737. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9738. postinstall_cmds='$RANLIB $lib'
  9739. fi
  9740. ;;
  9741. aix[4-9]*)
  9742. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9743. test "$enable_shared" = yes && enable_static=no
  9744. fi
  9745. ;;
  9746. esac
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9748. $as_echo "$enable_shared" >&6; }
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9750. $as_echo_n "checking whether to build static libraries... " >&6; }
  9751. # Make sure either enable_shared or enable_static is yes.
  9752. test "$enable_shared" = yes || enable_static=yes
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9754. $as_echo "$enable_static" >&6; }
  9755. fi
  9756. ac_ext=c
  9757. ac_cpp='$CPP $CPPFLAGS'
  9758. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9759. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9760. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9761. CC="$lt_save_CC"
  9762. ac_config_commands="$ac_config_commands libtool"
  9763. # Only expand once:
  9764. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9765. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9766. LT_REVISION=$SDL_INTERFACE_AGE
  9767. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9768. ac_ext=c
  9769. ac_cpp='$CPP $CPPFLAGS'
  9770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9773. if test -n "$ac_tool_prefix"; then
  9774. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9775. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9777. $as_echo_n "checking for $ac_word... " >&6; }
  9778. if ${ac_cv_prog_CC+:} false; then :
  9779. $as_echo_n "(cached) " >&6
  9780. else
  9781. if test -n "$CC"; then
  9782. ac_cv_prog_CC="$CC" # Let the user override the test.
  9783. else
  9784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9785. for as_dir in $PATH
  9786. do
  9787. IFS=$as_save_IFS
  9788. test -z "$as_dir" && as_dir=.
  9789. for ac_exec_ext in '' $ac_executable_extensions; do
  9790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9791. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9793. break 2
  9794. fi
  9795. done
  9796. done
  9797. IFS=$as_save_IFS
  9798. fi
  9799. fi
  9800. CC=$ac_cv_prog_CC
  9801. if test -n "$CC"; then
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9803. $as_echo "$CC" >&6; }
  9804. else
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9806. $as_echo "no" >&6; }
  9807. fi
  9808. fi
  9809. if test -z "$ac_cv_prog_CC"; then
  9810. ac_ct_CC=$CC
  9811. # Extract the first word of "gcc", so it can be a program name with args.
  9812. set dummy gcc; ac_word=$2
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9814. $as_echo_n "checking for $ac_word... " >&6; }
  9815. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9816. $as_echo_n "(cached) " >&6
  9817. else
  9818. if test -n "$ac_ct_CC"; then
  9819. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9820. else
  9821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9822. for as_dir in $PATH
  9823. do
  9824. IFS=$as_save_IFS
  9825. test -z "$as_dir" && as_dir=.
  9826. for ac_exec_ext in '' $ac_executable_extensions; do
  9827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9828. ac_cv_prog_ac_ct_CC="gcc"
  9829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9830. break 2
  9831. fi
  9832. done
  9833. done
  9834. IFS=$as_save_IFS
  9835. fi
  9836. fi
  9837. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9838. if test -n "$ac_ct_CC"; then
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9840. $as_echo "$ac_ct_CC" >&6; }
  9841. else
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9843. $as_echo "no" >&6; }
  9844. fi
  9845. if test "x$ac_ct_CC" = x; then
  9846. CC=""
  9847. else
  9848. case $cross_compiling:$ac_tool_warned in
  9849. yes:)
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9852. ac_tool_warned=yes ;;
  9853. esac
  9854. CC=$ac_ct_CC
  9855. fi
  9856. else
  9857. CC="$ac_cv_prog_CC"
  9858. fi
  9859. if test -z "$CC"; then
  9860. if test -n "$ac_tool_prefix"; then
  9861. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9862. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9864. $as_echo_n "checking for $ac_word... " >&6; }
  9865. if ${ac_cv_prog_CC+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. if test -n "$CC"; then
  9869. ac_cv_prog_CC="$CC" # Let the user override the test.
  9870. else
  9871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9872. for as_dir in $PATH
  9873. do
  9874. IFS=$as_save_IFS
  9875. test -z "$as_dir" && as_dir=.
  9876. for ac_exec_ext in '' $ac_executable_extensions; do
  9877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9878. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9880. break 2
  9881. fi
  9882. done
  9883. done
  9884. IFS=$as_save_IFS
  9885. fi
  9886. fi
  9887. CC=$ac_cv_prog_CC
  9888. if test -n "$CC"; then
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9890. $as_echo "$CC" >&6; }
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. fi
  9895. fi
  9896. fi
  9897. if test -z "$CC"; then
  9898. # Extract the first word of "cc", so it can be a program name with args.
  9899. set dummy cc; ac_word=$2
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9901. $as_echo_n "checking for $ac_word... " >&6; }
  9902. if ${ac_cv_prog_CC+:} false; then :
  9903. $as_echo_n "(cached) " >&6
  9904. else
  9905. if test -n "$CC"; then
  9906. ac_cv_prog_CC="$CC" # Let the user override the test.
  9907. else
  9908. ac_prog_rejected=no
  9909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9910. for as_dir in $PATH
  9911. do
  9912. IFS=$as_save_IFS
  9913. test -z "$as_dir" && as_dir=.
  9914. for ac_exec_ext in '' $ac_executable_extensions; do
  9915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9916. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9917. ac_prog_rejected=yes
  9918. continue
  9919. fi
  9920. ac_cv_prog_CC="cc"
  9921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9922. break 2
  9923. fi
  9924. done
  9925. done
  9926. IFS=$as_save_IFS
  9927. if test $ac_prog_rejected = yes; then
  9928. # We found a bogon in the path, so make sure we never use it.
  9929. set dummy $ac_cv_prog_CC
  9930. shift
  9931. if test $# != 0; then
  9932. # We chose a different compiler from the bogus one.
  9933. # However, it has the same basename, so the bogon will be chosen
  9934. # first if we set CC to just the basename; use the full file name.
  9935. shift
  9936. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9937. fi
  9938. fi
  9939. fi
  9940. fi
  9941. CC=$ac_cv_prog_CC
  9942. if test -n "$CC"; then
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9944. $as_echo "$CC" >&6; }
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9947. $as_echo "no" >&6; }
  9948. fi
  9949. fi
  9950. if test -z "$CC"; then
  9951. if test -n "$ac_tool_prefix"; then
  9952. for ac_prog in cl.exe
  9953. do
  9954. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9955. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9957. $as_echo_n "checking for $ac_word... " >&6; }
  9958. if ${ac_cv_prog_CC+:} false; then :
  9959. $as_echo_n "(cached) " >&6
  9960. else
  9961. if test -n "$CC"; then
  9962. ac_cv_prog_CC="$CC" # Let the user override the test.
  9963. else
  9964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9965. for as_dir in $PATH
  9966. do
  9967. IFS=$as_save_IFS
  9968. test -z "$as_dir" && as_dir=.
  9969. for ac_exec_ext in '' $ac_executable_extensions; do
  9970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9971. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9973. break 2
  9974. fi
  9975. done
  9976. done
  9977. IFS=$as_save_IFS
  9978. fi
  9979. fi
  9980. CC=$ac_cv_prog_CC
  9981. if test -n "$CC"; then
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9983. $as_echo "$CC" >&6; }
  9984. else
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9986. $as_echo "no" >&6; }
  9987. fi
  9988. test -n "$CC" && break
  9989. done
  9990. fi
  9991. if test -z "$CC"; then
  9992. ac_ct_CC=$CC
  9993. for ac_prog in cl.exe
  9994. do
  9995. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9996. set dummy $ac_prog; ac_word=$2
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9998. $as_echo_n "checking for $ac_word... " >&6; }
  9999. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. if test -n "$ac_ct_CC"; then
  10003. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10004. else
  10005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10006. for as_dir in $PATH
  10007. do
  10008. IFS=$as_save_IFS
  10009. test -z "$as_dir" && as_dir=.
  10010. for ac_exec_ext in '' $ac_executable_extensions; do
  10011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10012. ac_cv_prog_ac_ct_CC="$ac_prog"
  10013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10014. break 2
  10015. fi
  10016. done
  10017. done
  10018. IFS=$as_save_IFS
  10019. fi
  10020. fi
  10021. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10022. if test -n "$ac_ct_CC"; then
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10024. $as_echo "$ac_ct_CC" >&6; }
  10025. else
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10027. $as_echo "no" >&6; }
  10028. fi
  10029. test -n "$ac_ct_CC" && break
  10030. done
  10031. if test "x$ac_ct_CC" = x; then
  10032. CC=""
  10033. else
  10034. case $cross_compiling:$ac_tool_warned in
  10035. yes:)
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10038. ac_tool_warned=yes ;;
  10039. esac
  10040. CC=$ac_ct_CC
  10041. fi
  10042. fi
  10043. fi
  10044. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10045. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10046. as_fn_error $? "no acceptable C compiler found in \$PATH
  10047. See \`config.log' for more details" "$LINENO" 5; }
  10048. # Provide some information about the compiler.
  10049. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10050. set X $ac_compile
  10051. ac_compiler=$2
  10052. for ac_option in --version -v -V -qversion; do
  10053. { { ac_try="$ac_compiler $ac_option >&5"
  10054. case "(($ac_try" in
  10055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10056. *) ac_try_echo=$ac_try;;
  10057. esac
  10058. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10059. $as_echo "$ac_try_echo"; } >&5
  10060. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10061. ac_status=$?
  10062. if test -s conftest.err; then
  10063. sed '10a\
  10064. ... rest of stderr output deleted ...
  10065. 10q' conftest.err >conftest.er1
  10066. cat conftest.er1 >&5
  10067. fi
  10068. rm -f conftest.er1 conftest.err
  10069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10070. test $ac_status = 0; }
  10071. done
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10073. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10074. if ${ac_cv_c_compiler_gnu+:} false; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10078. /* end confdefs.h. */
  10079. int
  10080. main ()
  10081. {
  10082. #ifndef __GNUC__
  10083. choke me
  10084. #endif
  10085. ;
  10086. return 0;
  10087. }
  10088. _ACEOF
  10089. if ac_fn_c_try_compile "$LINENO"; then :
  10090. ac_compiler_gnu=yes
  10091. else
  10092. ac_compiler_gnu=no
  10093. fi
  10094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10095. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10096. fi
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10098. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10099. if test $ac_compiler_gnu = yes; then
  10100. GCC=yes
  10101. else
  10102. GCC=
  10103. fi
  10104. ac_test_CFLAGS=${CFLAGS+set}
  10105. ac_save_CFLAGS=$CFLAGS
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10107. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10108. if ${ac_cv_prog_cc_g+:} false; then :
  10109. $as_echo_n "(cached) " >&6
  10110. else
  10111. ac_save_c_werror_flag=$ac_c_werror_flag
  10112. ac_c_werror_flag=yes
  10113. ac_cv_prog_cc_g=no
  10114. CFLAGS="-g"
  10115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10116. /* end confdefs.h. */
  10117. int
  10118. main ()
  10119. {
  10120. ;
  10121. return 0;
  10122. }
  10123. _ACEOF
  10124. if ac_fn_c_try_compile "$LINENO"; then :
  10125. ac_cv_prog_cc_g=yes
  10126. else
  10127. CFLAGS=""
  10128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10129. /* end confdefs.h. */
  10130. int
  10131. main ()
  10132. {
  10133. ;
  10134. return 0;
  10135. }
  10136. _ACEOF
  10137. if ac_fn_c_try_compile "$LINENO"; then :
  10138. else
  10139. ac_c_werror_flag=$ac_save_c_werror_flag
  10140. CFLAGS="-g"
  10141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10142. /* end confdefs.h. */
  10143. int
  10144. main ()
  10145. {
  10146. ;
  10147. return 0;
  10148. }
  10149. _ACEOF
  10150. if ac_fn_c_try_compile "$LINENO"; then :
  10151. ac_cv_prog_cc_g=yes
  10152. fi
  10153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10154. fi
  10155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10156. fi
  10157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10158. ac_c_werror_flag=$ac_save_c_werror_flag
  10159. fi
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10161. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10162. if test "$ac_test_CFLAGS" = set; then
  10163. CFLAGS=$ac_save_CFLAGS
  10164. elif test $ac_cv_prog_cc_g = yes; then
  10165. if test "$GCC" = yes; then
  10166. CFLAGS="-g -O2"
  10167. else
  10168. CFLAGS="-g"
  10169. fi
  10170. else
  10171. if test "$GCC" = yes; then
  10172. CFLAGS="-O2"
  10173. else
  10174. CFLAGS=
  10175. fi
  10176. fi
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10178. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10179. if ${ac_cv_prog_cc_c89+:} false; then :
  10180. $as_echo_n "(cached) " >&6
  10181. else
  10182. ac_cv_prog_cc_c89=no
  10183. ac_save_CC=$CC
  10184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10185. /* end confdefs.h. */
  10186. #include <stdarg.h>
  10187. #include <stdio.h>
  10188. struct stat;
  10189. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10190. struct buf { int x; };
  10191. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10192. static char *e (p, i)
  10193. char **p;
  10194. int i;
  10195. {
  10196. return p[i];
  10197. }
  10198. static char *f (char * (*g) (char **, int), char **p, ...)
  10199. {
  10200. char *s;
  10201. va_list v;
  10202. va_start (v,p);
  10203. s = g (p, va_arg (v,int));
  10204. va_end (v);
  10205. return s;
  10206. }
  10207. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10208. function prototypes and stuff, but not '\xHH' hex character constants.
  10209. These don't provoke an error unfortunately, instead are silently treated
  10210. as 'x'. The following induces an error, until -std is added to get
  10211. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10212. array size at least. It's necessary to write '\x00'==0 to get something
  10213. that's true only with -std. */
  10214. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10215. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10216. inside strings and character constants. */
  10217. #define FOO(x) 'x'
  10218. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10219. int test (int i, double x);
  10220. struct s1 {int (*f) (int a);};
  10221. struct s2 {int (*f) (double a);};
  10222. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10223. int argc;
  10224. char **argv;
  10225. int
  10226. main ()
  10227. {
  10228. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10229. ;
  10230. return 0;
  10231. }
  10232. _ACEOF
  10233. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10234. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10235. do
  10236. CC="$ac_save_CC $ac_arg"
  10237. if ac_fn_c_try_compile "$LINENO"; then :
  10238. ac_cv_prog_cc_c89=$ac_arg
  10239. fi
  10240. rm -f core conftest.err conftest.$ac_objext
  10241. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10242. done
  10243. rm -f conftest.$ac_ext
  10244. CC=$ac_save_CC
  10245. fi
  10246. # AC_CACHE_VAL
  10247. case "x$ac_cv_prog_cc_c89" in
  10248. x)
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10250. $as_echo "none needed" >&6; } ;;
  10251. xno)
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10253. $as_echo "unsupported" >&6; } ;;
  10254. *)
  10255. CC="$CC $ac_cv_prog_cc_c89"
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10257. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10258. esac
  10259. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10260. fi
  10261. ac_ext=c
  10262. ac_cpp='$CPP $CPPFLAGS'
  10263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10266. ac_ext=cpp
  10267. ac_cpp='$CXXCPP $CPPFLAGS'
  10268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10271. if test -z "$CXX"; then
  10272. if test -n "$CCC"; then
  10273. CXX=$CCC
  10274. else
  10275. if test -n "$ac_tool_prefix"; then
  10276. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10277. do
  10278. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10279. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10281. $as_echo_n "checking for $ac_word... " >&6; }
  10282. if ${ac_cv_prog_CXX+:} false; then :
  10283. $as_echo_n "(cached) " >&6
  10284. else
  10285. if test -n "$CXX"; then
  10286. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10287. else
  10288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10289. for as_dir in $PATH
  10290. do
  10291. IFS=$as_save_IFS
  10292. test -z "$as_dir" && as_dir=.
  10293. for ac_exec_ext in '' $ac_executable_extensions; do
  10294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10295. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10297. break 2
  10298. fi
  10299. done
  10300. done
  10301. IFS=$as_save_IFS
  10302. fi
  10303. fi
  10304. CXX=$ac_cv_prog_CXX
  10305. if test -n "$CXX"; then
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10307. $as_echo "$CXX" >&6; }
  10308. else
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10310. $as_echo "no" >&6; }
  10311. fi
  10312. test -n "$CXX" && break
  10313. done
  10314. fi
  10315. if test -z "$CXX"; then
  10316. ac_ct_CXX=$CXX
  10317. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10318. do
  10319. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10320. set dummy $ac_prog; ac_word=$2
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10322. $as_echo_n "checking for $ac_word... " >&6; }
  10323. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. if test -n "$ac_ct_CXX"; then
  10327. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10328. else
  10329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10330. for as_dir in $PATH
  10331. do
  10332. IFS=$as_save_IFS
  10333. test -z "$as_dir" && as_dir=.
  10334. for ac_exec_ext in '' $ac_executable_extensions; do
  10335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10336. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10338. break 2
  10339. fi
  10340. done
  10341. done
  10342. IFS=$as_save_IFS
  10343. fi
  10344. fi
  10345. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10346. if test -n "$ac_ct_CXX"; then
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10348. $as_echo "$ac_ct_CXX" >&6; }
  10349. else
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. fi
  10353. test -n "$ac_ct_CXX" && break
  10354. done
  10355. if test "x$ac_ct_CXX" = x; then
  10356. CXX="g++"
  10357. else
  10358. case $cross_compiling:$ac_tool_warned in
  10359. yes:)
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10362. ac_tool_warned=yes ;;
  10363. esac
  10364. CXX=$ac_ct_CXX
  10365. fi
  10366. fi
  10367. fi
  10368. fi
  10369. # Provide some information about the compiler.
  10370. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10371. set X $ac_compile
  10372. ac_compiler=$2
  10373. for ac_option in --version -v -V -qversion; do
  10374. { { ac_try="$ac_compiler $ac_option >&5"
  10375. case "(($ac_try" in
  10376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10377. *) ac_try_echo=$ac_try;;
  10378. esac
  10379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10380. $as_echo "$ac_try_echo"; } >&5
  10381. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10382. ac_status=$?
  10383. if test -s conftest.err; then
  10384. sed '10a\
  10385. ... rest of stderr output deleted ...
  10386. 10q' conftest.err >conftest.er1
  10387. cat conftest.er1 >&5
  10388. fi
  10389. rm -f conftest.er1 conftest.err
  10390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10391. test $ac_status = 0; }
  10392. done
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10394. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10395. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10396. $as_echo_n "(cached) " >&6
  10397. else
  10398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10399. /* end confdefs.h. */
  10400. int
  10401. main ()
  10402. {
  10403. #ifndef __GNUC__
  10404. choke me
  10405. #endif
  10406. ;
  10407. return 0;
  10408. }
  10409. _ACEOF
  10410. if ac_fn_cxx_try_compile "$LINENO"; then :
  10411. ac_compiler_gnu=yes
  10412. else
  10413. ac_compiler_gnu=no
  10414. fi
  10415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10416. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10417. fi
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10419. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10420. if test $ac_compiler_gnu = yes; then
  10421. GXX=yes
  10422. else
  10423. GXX=
  10424. fi
  10425. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10426. ac_save_CXXFLAGS=$CXXFLAGS
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10428. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10429. if ${ac_cv_prog_cxx_g+:} false; then :
  10430. $as_echo_n "(cached) " >&6
  10431. else
  10432. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10433. ac_cxx_werror_flag=yes
  10434. ac_cv_prog_cxx_g=no
  10435. CXXFLAGS="-g"
  10436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10437. /* end confdefs.h. */
  10438. int
  10439. main ()
  10440. {
  10441. ;
  10442. return 0;
  10443. }
  10444. _ACEOF
  10445. if ac_fn_cxx_try_compile "$LINENO"; then :
  10446. ac_cv_prog_cxx_g=yes
  10447. else
  10448. CXXFLAGS=""
  10449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10450. /* end confdefs.h. */
  10451. int
  10452. main ()
  10453. {
  10454. ;
  10455. return 0;
  10456. }
  10457. _ACEOF
  10458. if ac_fn_cxx_try_compile "$LINENO"; then :
  10459. else
  10460. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10461. CXXFLAGS="-g"
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. int
  10465. main ()
  10466. {
  10467. ;
  10468. return 0;
  10469. }
  10470. _ACEOF
  10471. if ac_fn_cxx_try_compile "$LINENO"; then :
  10472. ac_cv_prog_cxx_g=yes
  10473. fi
  10474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10475. fi
  10476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10477. fi
  10478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10479. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10480. fi
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10482. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10483. if test "$ac_test_CXXFLAGS" = set; then
  10484. CXXFLAGS=$ac_save_CXXFLAGS
  10485. elif test $ac_cv_prog_cxx_g = yes; then
  10486. if test "$GXX" = yes; then
  10487. CXXFLAGS="-g -O2"
  10488. else
  10489. CXXFLAGS="-g"
  10490. fi
  10491. else
  10492. if test "$GXX" = yes; then
  10493. CXXFLAGS="-O2"
  10494. else
  10495. CXXFLAGS=
  10496. fi
  10497. fi
  10498. ac_ext=c
  10499. ac_cpp='$CPP $CPPFLAGS'
  10500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10503. func_stripname_cnf ()
  10504. {
  10505. case ${2} in
  10506. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10507. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10508. esac
  10509. } # func_stripname_cnf
  10510. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10511. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10512. (test "X$CXX" != "Xg++"))) ; then
  10513. ac_ext=cpp
  10514. ac_cpp='$CXXCPP $CPPFLAGS'
  10515. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10516. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10517. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10519. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10520. if test -z "$CXXCPP"; then
  10521. if ${ac_cv_prog_CXXCPP+:} false; then :
  10522. $as_echo_n "(cached) " >&6
  10523. else
  10524. # Double quotes because CXXCPP needs to be expanded
  10525. for CXXCPP in "$CXX -E" "/lib/cpp"
  10526. do
  10527. ac_preproc_ok=false
  10528. for ac_cxx_preproc_warn_flag in '' yes
  10529. do
  10530. # Use a header file that comes with gcc, so configuring glibc
  10531. # with a fresh cross-compiler works.
  10532. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10533. # <limits.h> exists even on freestanding compilers.
  10534. # On the NeXT, cc -E runs the code through the compiler's parser,
  10535. # not just through cpp. "Syntax error" is here to catch this case.
  10536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10537. /* end confdefs.h. */
  10538. #ifdef __STDC__
  10539. # include <limits.h>
  10540. #else
  10541. # include <assert.h>
  10542. #endif
  10543. Syntax error
  10544. _ACEOF
  10545. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10546. else
  10547. # Broken: fails on valid input.
  10548. continue
  10549. fi
  10550. rm -f conftest.err conftest.i conftest.$ac_ext
  10551. # OK, works on sane cases. Now check whether nonexistent headers
  10552. # can be detected and how.
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. #include <ac_nonexistent.h>
  10556. _ACEOF
  10557. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10558. # Broken: success on invalid input.
  10559. continue
  10560. else
  10561. # Passes both tests.
  10562. ac_preproc_ok=:
  10563. break
  10564. fi
  10565. rm -f conftest.err conftest.i conftest.$ac_ext
  10566. done
  10567. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10568. rm -f conftest.i conftest.err conftest.$ac_ext
  10569. if $ac_preproc_ok; then :
  10570. break
  10571. fi
  10572. done
  10573. ac_cv_prog_CXXCPP=$CXXCPP
  10574. fi
  10575. CXXCPP=$ac_cv_prog_CXXCPP
  10576. else
  10577. ac_cv_prog_CXXCPP=$CXXCPP
  10578. fi
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10580. $as_echo "$CXXCPP" >&6; }
  10581. ac_preproc_ok=false
  10582. for ac_cxx_preproc_warn_flag in '' yes
  10583. do
  10584. # Use a header file that comes with gcc, so configuring glibc
  10585. # with a fresh cross-compiler works.
  10586. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10587. # <limits.h> exists even on freestanding compilers.
  10588. # On the NeXT, cc -E runs the code through the compiler's parser,
  10589. # not just through cpp. "Syntax error" is here to catch this case.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #ifdef __STDC__
  10593. # include <limits.h>
  10594. #else
  10595. # include <assert.h>
  10596. #endif
  10597. Syntax error
  10598. _ACEOF
  10599. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10600. else
  10601. # Broken: fails on valid input.
  10602. continue
  10603. fi
  10604. rm -f conftest.err conftest.i conftest.$ac_ext
  10605. # OK, works on sane cases. Now check whether nonexistent headers
  10606. # can be detected and how.
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. #include <ac_nonexistent.h>
  10610. _ACEOF
  10611. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10612. # Broken: success on invalid input.
  10613. continue
  10614. else
  10615. # Passes both tests.
  10616. ac_preproc_ok=:
  10617. break
  10618. fi
  10619. rm -f conftest.err conftest.i conftest.$ac_ext
  10620. done
  10621. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10622. rm -f conftest.i conftest.err conftest.$ac_ext
  10623. if $ac_preproc_ok; then :
  10624. else
  10625. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10627. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10628. See \`config.log' for more details" "$LINENO" 5; }
  10629. fi
  10630. ac_ext=c
  10631. ac_cpp='$CPP $CPPFLAGS'
  10632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10635. else
  10636. _lt_caught_CXX_error=yes
  10637. fi
  10638. ac_ext=cpp
  10639. ac_cpp='$CXXCPP $CPPFLAGS'
  10640. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10641. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10642. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10643. archive_cmds_need_lc_CXX=no
  10644. allow_undefined_flag_CXX=
  10645. always_export_symbols_CXX=no
  10646. archive_expsym_cmds_CXX=
  10647. compiler_needs_object_CXX=no
  10648. export_dynamic_flag_spec_CXX=
  10649. hardcode_direct_CXX=no
  10650. hardcode_direct_absolute_CXX=no
  10651. hardcode_libdir_flag_spec_CXX=
  10652. hardcode_libdir_separator_CXX=
  10653. hardcode_minus_L_CXX=no
  10654. hardcode_shlibpath_var_CXX=unsupported
  10655. hardcode_automatic_CXX=no
  10656. inherit_rpath_CXX=no
  10657. module_cmds_CXX=
  10658. module_expsym_cmds_CXX=
  10659. link_all_deplibs_CXX=unknown
  10660. old_archive_cmds_CXX=$old_archive_cmds
  10661. reload_flag_CXX=$reload_flag
  10662. reload_cmds_CXX=$reload_cmds
  10663. no_undefined_flag_CXX=
  10664. whole_archive_flag_spec_CXX=
  10665. enable_shared_with_static_runtimes_CXX=no
  10666. # Source file extension for C++ test sources.
  10667. ac_ext=cpp
  10668. # Object file extension for compiled C++ test sources.
  10669. objext=o
  10670. objext_CXX=$objext
  10671. # No sense in running all these tests if we already determined that
  10672. # the CXX compiler isn't working. Some variables (like enable_shared)
  10673. # are currently assumed to apply to all compilers on this platform,
  10674. # and will be corrupted by setting them based on a non-working compiler.
  10675. if test "$_lt_caught_CXX_error" != yes; then
  10676. # Code to be used in simple compile tests
  10677. lt_simple_compile_test_code="int some_variable = 0;"
  10678. # Code to be used in simple link tests
  10679. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10680. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10681. # If no C compiler was specified, use CC.
  10682. LTCC=${LTCC-"$CC"}
  10683. # If no C compiler flags were specified, use CFLAGS.
  10684. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10685. # Allow CC to be a program name with arguments.
  10686. compiler=$CC
  10687. # save warnings/boilerplate of simple test code
  10688. ac_outfile=conftest.$ac_objext
  10689. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10690. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10691. _lt_compiler_boilerplate=`cat conftest.err`
  10692. $RM conftest*
  10693. ac_outfile=conftest.$ac_objext
  10694. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10695. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10696. _lt_linker_boilerplate=`cat conftest.err`
  10697. $RM -r conftest*
  10698. # Allow CC to be a program name with arguments.
  10699. lt_save_CC=$CC
  10700. lt_save_CFLAGS=$CFLAGS
  10701. lt_save_LD=$LD
  10702. lt_save_GCC=$GCC
  10703. GCC=$GXX
  10704. lt_save_with_gnu_ld=$with_gnu_ld
  10705. lt_save_path_LD=$lt_cv_path_LD
  10706. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10707. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10708. else
  10709. $as_unset lt_cv_prog_gnu_ld
  10710. fi
  10711. if test -n "${lt_cv_path_LDCXX+set}"; then
  10712. lt_cv_path_LD=$lt_cv_path_LDCXX
  10713. else
  10714. $as_unset lt_cv_path_LD
  10715. fi
  10716. test -z "${LDCXX+set}" || LD=$LDCXX
  10717. CC=${CXX-"c++"}
  10718. CFLAGS=$CXXFLAGS
  10719. compiler=$CC
  10720. compiler_CXX=$CC
  10721. for cc_temp in $compiler""; do
  10722. case $cc_temp in
  10723. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10724. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10725. \-*) ;;
  10726. *) break;;
  10727. esac
  10728. done
  10729. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10730. if test -n "$compiler"; then
  10731. # We don't want -fno-exception when compiling C++ code, so set the
  10732. # no_builtin_flag separately
  10733. if test "$GXX" = yes; then
  10734. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10735. else
  10736. lt_prog_compiler_no_builtin_flag_CXX=
  10737. fi
  10738. if test "$GXX" = yes; then
  10739. # Set up default GNU C++ configuration
  10740. # Check whether --with-gnu-ld was given.
  10741. if test "${with_gnu_ld+set}" = set; then :
  10742. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10743. else
  10744. with_gnu_ld=no
  10745. fi
  10746. ac_prog=ld
  10747. if test "$GCC" = yes; then
  10748. # Check if gcc -print-prog-name=ld gives a path.
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10750. $as_echo_n "checking for ld used by $CC... " >&6; }
  10751. case $host in
  10752. *-*-mingw*)
  10753. # gcc leaves a trailing carriage return which upsets mingw
  10754. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10755. *)
  10756. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10757. esac
  10758. case $ac_prog in
  10759. # Accept absolute paths.
  10760. [\\/]* | ?:[\\/]*)
  10761. re_direlt='/[^/][^/]*/\.\./'
  10762. # Canonicalize the pathname of ld
  10763. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10764. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10765. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10766. done
  10767. test -z "$LD" && LD="$ac_prog"
  10768. ;;
  10769. "")
  10770. # If it fails, then pretend we aren't using GCC.
  10771. ac_prog=ld
  10772. ;;
  10773. *)
  10774. # If it is relative, then search for the first ld in PATH.
  10775. with_gnu_ld=unknown
  10776. ;;
  10777. esac
  10778. elif test "$with_gnu_ld" = yes; then
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10780. $as_echo_n "checking for GNU ld... " >&6; }
  10781. else
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10783. $as_echo_n "checking for non-GNU ld... " >&6; }
  10784. fi
  10785. if ${lt_cv_path_LD+:} false; then :
  10786. $as_echo_n "(cached) " >&6
  10787. else
  10788. if test -z "$LD"; then
  10789. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10790. for ac_dir in $PATH; do
  10791. IFS="$lt_save_ifs"
  10792. test -z "$ac_dir" && ac_dir=.
  10793. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10794. lt_cv_path_LD="$ac_dir/$ac_prog"
  10795. # Check to see if the program is GNU ld. I'd rather use --version,
  10796. # but apparently some variants of GNU ld only accept -v.
  10797. # Break only if it was the GNU/non-GNU ld that we prefer.
  10798. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10799. *GNU* | *'with BFD'*)
  10800. test "$with_gnu_ld" != no && break
  10801. ;;
  10802. *)
  10803. test "$with_gnu_ld" != yes && break
  10804. ;;
  10805. esac
  10806. fi
  10807. done
  10808. IFS="$lt_save_ifs"
  10809. else
  10810. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10811. fi
  10812. fi
  10813. LD="$lt_cv_path_LD"
  10814. if test -n "$LD"; then
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10816. $as_echo "$LD" >&6; }
  10817. else
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10819. $as_echo "no" >&6; }
  10820. fi
  10821. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10823. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10824. if ${lt_cv_prog_gnu_ld+:} false; then :
  10825. $as_echo_n "(cached) " >&6
  10826. else
  10827. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10828. case `$LD -v 2>&1 </dev/null` in
  10829. *GNU* | *'with BFD'*)
  10830. lt_cv_prog_gnu_ld=yes
  10831. ;;
  10832. *)
  10833. lt_cv_prog_gnu_ld=no
  10834. ;;
  10835. esac
  10836. fi
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10838. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10839. with_gnu_ld=$lt_cv_prog_gnu_ld
  10840. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10841. # archiving commands below assume that GNU ld is being used.
  10842. if test "$with_gnu_ld" = yes; then
  10843. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10844. 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'
  10845. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10846. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10847. # If archive_cmds runs LD, not CC, wlarc should be empty
  10848. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10849. # investigate it a little bit more. (MM)
  10850. wlarc='${wl}'
  10851. # ancient GNU ld didn't support --whole-archive et. al.
  10852. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10853. $GREP 'no-whole-archive' > /dev/null; then
  10854. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10855. else
  10856. whole_archive_flag_spec_CXX=
  10857. fi
  10858. else
  10859. with_gnu_ld=no
  10860. wlarc=
  10861. # A generic and very simple default shared library creation
  10862. # command for GNU C++ for the case where it uses the native
  10863. # linker, instead of GNU ld. If possible, this setting should
  10864. # overridden to take advantage of the native linker features on
  10865. # the platform it is being used on.
  10866. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10867. fi
  10868. # Commands to make compiler produce verbose output that lists
  10869. # what "hidden" libraries, object files and flags are used when
  10870. # linking a shared library.
  10871. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10872. else
  10873. GXX=no
  10874. with_gnu_ld=no
  10875. wlarc=
  10876. fi
  10877. # PORTME: fill in a description of your system's C++ link characteristics
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10879. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10880. ld_shlibs_CXX=yes
  10881. case $host_os in
  10882. aix3*)
  10883. # FIXME: insert proper C++ library support
  10884. ld_shlibs_CXX=no
  10885. ;;
  10886. aix[4-9]*)
  10887. if test "$host_cpu" = ia64; then
  10888. # On IA64, the linker does run time linking by default, so we don't
  10889. # have to do anything special.
  10890. aix_use_runtimelinking=no
  10891. exp_sym_flag='-Bexport'
  10892. no_entry_flag=""
  10893. else
  10894. aix_use_runtimelinking=no
  10895. # Test if we are trying to use run time linking or normal
  10896. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10897. # need to do runtime linking.
  10898. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10899. for ld_flag in $LDFLAGS; do
  10900. case $ld_flag in
  10901. *-brtl*)
  10902. aix_use_runtimelinking=yes
  10903. break
  10904. ;;
  10905. esac
  10906. done
  10907. ;;
  10908. esac
  10909. exp_sym_flag='-bexport'
  10910. no_entry_flag='-bnoentry'
  10911. fi
  10912. # When large executables or shared objects are built, AIX ld can
  10913. # have problems creating the table of contents. If linking a library
  10914. # or program results in "error TOC overflow" add -mminimal-toc to
  10915. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10916. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10917. archive_cmds_CXX=''
  10918. hardcode_direct_CXX=yes
  10919. hardcode_direct_absolute_CXX=yes
  10920. hardcode_libdir_separator_CXX=':'
  10921. link_all_deplibs_CXX=yes
  10922. file_list_spec_CXX='${wl}-f,'
  10923. if test "$GXX" = yes; then
  10924. case $host_os in aix4.[012]|aix4.[012].*)
  10925. # We only want to do this on AIX 4.2 and lower, the check
  10926. # below for broken collect2 doesn't work under 4.3+
  10927. collect2name=`${CC} -print-prog-name=collect2`
  10928. if test -f "$collect2name" &&
  10929. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10930. then
  10931. # We have reworked collect2
  10932. :
  10933. else
  10934. # We have old collect2
  10935. hardcode_direct_CXX=unsupported
  10936. # It fails to find uninstalled libraries when the uninstalled
  10937. # path is not listed in the libpath. Setting hardcode_minus_L
  10938. # to unsupported forces relinking
  10939. hardcode_minus_L_CXX=yes
  10940. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10941. hardcode_libdir_separator_CXX=
  10942. fi
  10943. esac
  10944. shared_flag='-shared'
  10945. if test "$aix_use_runtimelinking" = yes; then
  10946. shared_flag="$shared_flag "'${wl}-G'
  10947. fi
  10948. else
  10949. # not using gcc
  10950. if test "$host_cpu" = ia64; then
  10951. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10952. # chokes on -Wl,-G. The following line is correct:
  10953. shared_flag='-G'
  10954. else
  10955. if test "$aix_use_runtimelinking" = yes; then
  10956. shared_flag='${wl}-G'
  10957. else
  10958. shared_flag='${wl}-bM:SRE'
  10959. fi
  10960. fi
  10961. fi
  10962. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10963. # It seems that -bexpall does not export symbols beginning with
  10964. # underscore (_), so it is better to generate a list of symbols to
  10965. # export.
  10966. always_export_symbols_CXX=yes
  10967. if test "$aix_use_runtimelinking" = yes; then
  10968. # Warning - without using the other runtime loading flags (-brtl),
  10969. # -berok will link without error, but may produce a broken library.
  10970. allow_undefined_flag_CXX='-berok'
  10971. # Determine the default libpath from the value encoded in an empty
  10972. # executable.
  10973. if test "${lt_cv_aix_libpath+set}" = set; then
  10974. aix_libpath=$lt_cv_aix_libpath
  10975. else
  10976. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10977. $as_echo_n "(cached) " >&6
  10978. else
  10979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10980. /* end confdefs.h. */
  10981. int
  10982. main ()
  10983. {
  10984. ;
  10985. return 0;
  10986. }
  10987. _ACEOF
  10988. if ac_fn_cxx_try_link "$LINENO"; then :
  10989. lt_aix_libpath_sed='
  10990. /Import File Strings/,/^$/ {
  10991. /^0/ {
  10992. s/^0 *\([^ ]*\) *$/\1/
  10993. p
  10994. }
  10995. }'
  10996. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10997. # Check for a 64-bit object if we didn't find anything.
  10998. if test -z "$lt_cv_aix_libpath__CXX"; then
  10999. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11000. fi
  11001. fi
  11002. rm -f core conftest.err conftest.$ac_objext \
  11003. conftest$ac_exeext conftest.$ac_ext
  11004. if test -z "$lt_cv_aix_libpath__CXX"; then
  11005. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11006. fi
  11007. fi
  11008. aix_libpath=$lt_cv_aix_libpath__CXX
  11009. fi
  11010. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11011. 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"
  11012. else
  11013. if test "$host_cpu" = ia64; then
  11014. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11015. allow_undefined_flag_CXX="-z nodefs"
  11016. 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"
  11017. else
  11018. # Determine the default libpath from the value encoded in an
  11019. # empty executable.
  11020. if test "${lt_cv_aix_libpath+set}" = set; then
  11021. aix_libpath=$lt_cv_aix_libpath
  11022. else
  11023. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11024. $as_echo_n "(cached) " >&6
  11025. else
  11026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11027. /* end confdefs.h. */
  11028. int
  11029. main ()
  11030. {
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. if ac_fn_cxx_try_link "$LINENO"; then :
  11036. lt_aix_libpath_sed='
  11037. /Import File Strings/,/^$/ {
  11038. /^0/ {
  11039. s/^0 *\([^ ]*\) *$/\1/
  11040. p
  11041. }
  11042. }'
  11043. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11044. # Check for a 64-bit object if we didn't find anything.
  11045. if test -z "$lt_cv_aix_libpath__CXX"; then
  11046. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11047. fi
  11048. fi
  11049. rm -f core conftest.err conftest.$ac_objext \
  11050. conftest$ac_exeext conftest.$ac_ext
  11051. if test -z "$lt_cv_aix_libpath__CXX"; then
  11052. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11053. fi
  11054. fi
  11055. aix_libpath=$lt_cv_aix_libpath__CXX
  11056. fi
  11057. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11058. # Warning - without using the other run time loading flags,
  11059. # -berok will link without error, but may produce a broken library.
  11060. no_undefined_flag_CXX=' ${wl}-bernotok'
  11061. allow_undefined_flag_CXX=' ${wl}-berok'
  11062. if test "$with_gnu_ld" = yes; then
  11063. # We only use this code for GNU lds that support --whole-archive.
  11064. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11065. else
  11066. # Exported symbols can be pulled into shared objects from archives
  11067. whole_archive_flag_spec_CXX='$convenience'
  11068. fi
  11069. archive_cmds_need_lc_CXX=yes
  11070. # This is similar to how AIX traditionally builds its shared
  11071. # libraries.
  11072. 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'
  11073. fi
  11074. fi
  11075. ;;
  11076. beos*)
  11077. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11078. allow_undefined_flag_CXX=unsupported
  11079. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11080. # support --undefined. This deserves some investigation. FIXME
  11081. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11082. else
  11083. ld_shlibs_CXX=no
  11084. fi
  11085. ;;
  11086. chorus*)
  11087. case $cc_basename in
  11088. *)
  11089. # FIXME: insert proper C++ library support
  11090. ld_shlibs_CXX=no
  11091. ;;
  11092. esac
  11093. ;;
  11094. cygwin* | mingw* | pw32* | cegcc*)
  11095. case $GXX,$cc_basename in
  11096. ,cl* | no,cl*)
  11097. # Native MSVC
  11098. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11099. # no search path for DLLs.
  11100. hardcode_libdir_flag_spec_CXX=' '
  11101. allow_undefined_flag_CXX=unsupported
  11102. always_export_symbols_CXX=yes
  11103. file_list_spec_CXX='@'
  11104. # Tell ltmain to make .lib files, not .a files.
  11105. libext=lib
  11106. # Tell ltmain to make .dll files, not .so files.
  11107. shrext_cmds=".dll"
  11108. # FIXME: Setting linknames here is a bad hack.
  11109. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11110. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11111. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11112. else
  11113. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11114. fi~
  11115. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11116. linknames='
  11117. # The linker will not automatically build a static lib if we build a DLL.
  11118. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11119. enable_shared_with_static_runtimes_CXX=yes
  11120. # Don't use ranlib
  11121. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11122. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11123. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11124. case $lt_outputfile in
  11125. *.exe|*.EXE) ;;
  11126. *)
  11127. lt_outputfile="$lt_outputfile.exe"
  11128. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11129. ;;
  11130. esac~
  11131. func_to_tool_file "$lt_outputfile"~
  11132. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11133. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11134. $RM "$lt_outputfile.manifest";
  11135. fi'
  11136. ;;
  11137. *)
  11138. # g++
  11139. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11140. # as there is no search path for DLLs.
  11141. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11142. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11143. allow_undefined_flag_CXX=unsupported
  11144. always_export_symbols_CXX=no
  11145. enable_shared_with_static_runtimes_CXX=yes
  11146. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11147. 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'
  11148. # If the export-symbols file already is a .def file (1st line
  11149. # is EXPORTS), use it as is; otherwise, prepend...
  11150. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11151. cp $export_symbols $output_objdir/$soname.def;
  11152. else
  11153. echo EXPORTS > $output_objdir/$soname.def;
  11154. cat $export_symbols >> $output_objdir/$soname.def;
  11155. fi~
  11156. $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'
  11157. else
  11158. ld_shlibs_CXX=no
  11159. fi
  11160. ;;
  11161. esac
  11162. ;;
  11163. darwin* | rhapsody*)
  11164. archive_cmds_need_lc_CXX=no
  11165. hardcode_direct_CXX=no
  11166. hardcode_automatic_CXX=yes
  11167. hardcode_shlibpath_var_CXX=unsupported
  11168. if test "$lt_cv_ld_force_load" = "yes"; then
  11169. 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\"`'
  11170. else
  11171. whole_archive_flag_spec_CXX=''
  11172. fi
  11173. link_all_deplibs_CXX=yes
  11174. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11175. case $cc_basename in
  11176. ifort*) _lt_dar_can_shared=yes ;;
  11177. *) _lt_dar_can_shared=$GCC ;;
  11178. esac
  11179. if test "$_lt_dar_can_shared" = "yes"; then
  11180. output_verbose_link_cmd=func_echo_all
  11181. 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}"
  11182. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11183. 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}"
  11184. 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}"
  11185. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11186. 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}"
  11187. 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}"
  11188. fi
  11189. else
  11190. ld_shlibs_CXX=no
  11191. fi
  11192. ;;
  11193. dgux*)
  11194. case $cc_basename in
  11195. ec++*)
  11196. # FIXME: insert proper C++ library support
  11197. ld_shlibs_CXX=no
  11198. ;;
  11199. ghcx*)
  11200. # Green Hills C++ Compiler
  11201. # FIXME: insert proper C++ library support
  11202. ld_shlibs_CXX=no
  11203. ;;
  11204. *)
  11205. # FIXME: insert proper C++ library support
  11206. ld_shlibs_CXX=no
  11207. ;;
  11208. esac
  11209. ;;
  11210. freebsd2.*)
  11211. # C++ shared libraries reported to be fairly broken before
  11212. # switch to ELF
  11213. ld_shlibs_CXX=no
  11214. ;;
  11215. freebsd-elf*)
  11216. archive_cmds_need_lc_CXX=no
  11217. ;;
  11218. freebsd* | dragonfly*)
  11219. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11220. # conventions
  11221. ld_shlibs_CXX=yes
  11222. ;;
  11223. gnu*)
  11224. ;;
  11225. haiku*)
  11226. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11227. link_all_deplibs_CXX=yes
  11228. ;;
  11229. hpux9*)
  11230. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11231. hardcode_libdir_separator_CXX=:
  11232. export_dynamic_flag_spec_CXX='${wl}-E'
  11233. hardcode_direct_CXX=yes
  11234. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11235. # but as the default
  11236. # location of the library.
  11237. case $cc_basename in
  11238. CC*)
  11239. # FIXME: insert proper C++ library support
  11240. ld_shlibs_CXX=no
  11241. ;;
  11242. aCC*)
  11243. 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'
  11244. # Commands to make compiler produce verbose output that lists
  11245. # what "hidden" libraries, object files and flags are used when
  11246. # linking a shared library.
  11247. #
  11248. # There doesn't appear to be a way to prevent this compiler from
  11249. # explicitly linking system object files so we need to strip them
  11250. # from the output so that they don't get included in the library
  11251. # dependencies.
  11252. 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"'
  11253. ;;
  11254. *)
  11255. if test "$GXX" = yes; then
  11256. 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'
  11257. else
  11258. # FIXME: insert proper C++ library support
  11259. ld_shlibs_CXX=no
  11260. fi
  11261. ;;
  11262. esac
  11263. ;;
  11264. hpux10*|hpux11*)
  11265. if test $with_gnu_ld = no; then
  11266. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11267. hardcode_libdir_separator_CXX=:
  11268. case $host_cpu in
  11269. hppa*64*|ia64*)
  11270. ;;
  11271. *)
  11272. export_dynamic_flag_spec_CXX='${wl}-E'
  11273. ;;
  11274. esac
  11275. fi
  11276. case $host_cpu in
  11277. hppa*64*|ia64*)
  11278. hardcode_direct_CXX=no
  11279. hardcode_shlibpath_var_CXX=no
  11280. ;;
  11281. *)
  11282. hardcode_direct_CXX=yes
  11283. hardcode_direct_absolute_CXX=yes
  11284. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11285. # but as the default
  11286. # location of the library.
  11287. ;;
  11288. esac
  11289. case $cc_basename in
  11290. CC*)
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. ;;
  11294. aCC*)
  11295. case $host_cpu in
  11296. hppa*64*)
  11297. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11298. ;;
  11299. ia64*)
  11300. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11301. ;;
  11302. *)
  11303. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11304. ;;
  11305. esac
  11306. # Commands to make compiler produce verbose output that lists
  11307. # what "hidden" libraries, object files and flags are used when
  11308. # linking a shared library.
  11309. #
  11310. # There doesn't appear to be a way to prevent this compiler from
  11311. # explicitly linking system object files so we need to strip them
  11312. # from the output so that they don't get included in the library
  11313. # dependencies.
  11314. 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"'
  11315. ;;
  11316. *)
  11317. if test "$GXX" = yes; then
  11318. if test $with_gnu_ld = no; then
  11319. case $host_cpu in
  11320. hppa*64*)
  11321. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11322. ;;
  11323. ia64*)
  11324. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11325. ;;
  11326. *)
  11327. 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'
  11328. ;;
  11329. esac
  11330. fi
  11331. else
  11332. # FIXME: insert proper C++ library support
  11333. ld_shlibs_CXX=no
  11334. fi
  11335. ;;
  11336. esac
  11337. ;;
  11338. interix[3-9]*)
  11339. hardcode_direct_CXX=no
  11340. hardcode_shlibpath_var_CXX=no
  11341. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11342. export_dynamic_flag_spec_CXX='${wl}-E'
  11343. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11344. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11345. # default) and relocated if they conflict, which is a slow very memory
  11346. # consuming and fragmenting process. To avoid this, we pick a random,
  11347. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11348. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11349. 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'
  11350. 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'
  11351. ;;
  11352. irix5* | irix6*)
  11353. case $cc_basename in
  11354. CC*)
  11355. # SGI C++
  11356. 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'
  11357. # Archives containing C++ object files must be created using
  11358. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11359. # necessary to make sure instantiated templates are included
  11360. # in the archive.
  11361. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11362. ;;
  11363. *)
  11364. if test "$GXX" = yes; then
  11365. if test "$with_gnu_ld" = no; then
  11366. 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'
  11367. else
  11368. 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'
  11369. fi
  11370. fi
  11371. link_all_deplibs_CXX=yes
  11372. ;;
  11373. esac
  11374. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11375. hardcode_libdir_separator_CXX=:
  11376. inherit_rpath_CXX=yes
  11377. ;;
  11378. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11379. case $cc_basename in
  11380. KCC*)
  11381. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11382. # KCC will only create a shared library if the output file
  11383. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11384. # to its proper name (with version) after linking.
  11385. 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'
  11386. 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'
  11387. # Commands to make compiler produce verbose output that lists
  11388. # what "hidden" libraries, object files and flags are used when
  11389. # linking a shared library.
  11390. #
  11391. # There doesn't appear to be a way to prevent this compiler from
  11392. # explicitly linking system object files so we need to strip them
  11393. # from the output so that they don't get included in the library
  11394. # dependencies.
  11395. 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"'
  11396. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11397. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11398. # Archives containing C++ object files must be created using
  11399. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11400. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11401. ;;
  11402. icpc* | ecpc* )
  11403. # Intel C++
  11404. with_gnu_ld=yes
  11405. # version 8.0 and above of icpc choke on multiply defined symbols
  11406. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11407. # earlier do not add the objects themselves.
  11408. case `$CC -V 2>&1` in
  11409. *"Version 7."*)
  11410. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11411. 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'
  11412. ;;
  11413. *) # Version 8.0 or newer
  11414. tmp_idyn=
  11415. case $host_cpu in
  11416. ia64*) tmp_idyn=' -i_dynamic';;
  11417. esac
  11418. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11419. 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'
  11420. ;;
  11421. esac
  11422. archive_cmds_need_lc_CXX=no
  11423. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11424. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11425. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11426. ;;
  11427. pgCC* | pgcpp*)
  11428. # Portland Group C++ compiler
  11429. case `$CC -V` in
  11430. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11431. prelink_cmds_CXX='tpldir=Template.dir~
  11432. rm -rf $tpldir~
  11433. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11434. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11435. old_archive_cmds_CXX='tpldir=Template.dir~
  11436. rm -rf $tpldir~
  11437. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11438. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11439. $RANLIB $oldlib'
  11440. archive_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 -o $lib'
  11444. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11445. rm -rf $tpldir~
  11446. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11447. $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'
  11448. ;;
  11449. *) # Version 6 and above use weak symbols
  11450. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11451. 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'
  11452. ;;
  11453. esac
  11454. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11455. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11456. 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'
  11457. ;;
  11458. cxx*)
  11459. # Compaq C++
  11460. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11461. 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'
  11462. runpath_var=LD_RUN_PATH
  11463. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11464. hardcode_libdir_separator_CXX=:
  11465. # Commands to make compiler produce verbose output that lists
  11466. # what "hidden" libraries, object files and flags are used when
  11467. # linking a shared library.
  11468. #
  11469. # There doesn't appear to be a way to prevent this compiler from
  11470. # explicitly linking system object files so we need to strip them
  11471. # from the output so that they don't get included in the library
  11472. # dependencies.
  11473. 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'
  11474. ;;
  11475. xl* | mpixl* | bgxl*)
  11476. # IBM XL 8.0 on PPC, with GNU ld
  11477. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11478. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11479. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11480. if test "x$supports_anon_versioning" = xyes; then
  11481. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11482. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11483. echo "local: *; };" >> $output_objdir/$libname.ver~
  11484. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11485. fi
  11486. ;;
  11487. *)
  11488. case `$CC -V 2>&1 | sed 5q` in
  11489. *Sun\ C*)
  11490. # Sun C++ 5.9
  11491. no_undefined_flag_CXX=' -zdefs'
  11492. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11493. 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'
  11494. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11495. 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'
  11496. compiler_needs_object_CXX=yes
  11497. # Not sure whether something based on
  11498. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11499. # would be better.
  11500. output_verbose_link_cmd='func_echo_all'
  11501. # Archives containing C++ object files must be created using
  11502. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11503. # necessary to make sure instantiated templates are included
  11504. # in the archive.
  11505. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11506. ;;
  11507. esac
  11508. ;;
  11509. esac
  11510. ;;
  11511. lynxos*)
  11512. # FIXME: insert proper C++ library support
  11513. ld_shlibs_CXX=no
  11514. ;;
  11515. m88k*)
  11516. # FIXME: insert proper C++ library support
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. mvs*)
  11520. case $cc_basename in
  11521. cxx*)
  11522. # FIXME: insert proper C++ library support
  11523. ld_shlibs_CXX=no
  11524. ;;
  11525. *)
  11526. # FIXME: insert proper C++ library support
  11527. ld_shlibs_CXX=no
  11528. ;;
  11529. esac
  11530. ;;
  11531. netbsd*)
  11532. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11533. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11534. wlarc=
  11535. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11536. hardcode_direct_CXX=yes
  11537. hardcode_shlibpath_var_CXX=no
  11538. fi
  11539. # Workaround some broken pre-1.5 toolchains
  11540. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11541. ;;
  11542. *nto* | *qnx*)
  11543. ld_shlibs_CXX=yes
  11544. ;;
  11545. openbsd2*)
  11546. # C++ shared libraries are fairly broken
  11547. ld_shlibs_CXX=no
  11548. ;;
  11549. openbsd*)
  11550. if test -f /usr/libexec/ld.so; then
  11551. hardcode_direct_CXX=yes
  11552. hardcode_shlibpath_var_CXX=no
  11553. hardcode_direct_absolute_CXX=yes
  11554. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11555. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11556. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11557. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11558. export_dynamic_flag_spec_CXX='${wl}-E'
  11559. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11560. fi
  11561. output_verbose_link_cmd=func_echo_all
  11562. else
  11563. ld_shlibs_CXX=no
  11564. fi
  11565. ;;
  11566. osf3* | osf4* | osf5*)
  11567. case $cc_basename in
  11568. KCC*)
  11569. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11570. # KCC will only create a shared library if the output file
  11571. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11572. # to its proper name (with version) after linking.
  11573. 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'
  11574. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11575. hardcode_libdir_separator_CXX=:
  11576. # Archives containing C++ object files must be created using
  11577. # the KAI C++ compiler.
  11578. case $host in
  11579. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11580. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11581. esac
  11582. ;;
  11583. RCC*)
  11584. # Rational C++ 2.4.1
  11585. # FIXME: insert proper C++ library support
  11586. ld_shlibs_CXX=no
  11587. ;;
  11588. cxx*)
  11589. case $host in
  11590. osf3*)
  11591. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11592. 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'
  11593. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11594. ;;
  11595. *)
  11596. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11597. 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'
  11598. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11599. echo "-hidden">> $lib.exp~
  11600. $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~
  11601. $RM $lib.exp'
  11602. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11603. ;;
  11604. esac
  11605. hardcode_libdir_separator_CXX=:
  11606. # Commands to make compiler produce verbose output that lists
  11607. # what "hidden" libraries, object files and flags are used when
  11608. # linking a shared library.
  11609. #
  11610. # There doesn't appear to be a way to prevent this compiler from
  11611. # explicitly linking system object files so we need to strip them
  11612. # from the output so that they don't get included in the library
  11613. # dependencies.
  11614. 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"'
  11615. ;;
  11616. *)
  11617. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11618. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11619. case $host in
  11620. osf3*)
  11621. 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'
  11622. ;;
  11623. *)
  11624. 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'
  11625. ;;
  11626. esac
  11627. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11628. hardcode_libdir_separator_CXX=:
  11629. # Commands to make compiler produce verbose output that lists
  11630. # what "hidden" libraries, object files and flags are used when
  11631. # linking a shared library.
  11632. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11633. else
  11634. # FIXME: insert proper C++ library support
  11635. ld_shlibs_CXX=no
  11636. fi
  11637. ;;
  11638. esac
  11639. ;;
  11640. psos*)
  11641. # FIXME: insert proper C++ library support
  11642. ld_shlibs_CXX=no
  11643. ;;
  11644. sunos4*)
  11645. case $cc_basename in
  11646. CC*)
  11647. # Sun C++ 4.x
  11648. # FIXME: insert proper C++ library support
  11649. ld_shlibs_CXX=no
  11650. ;;
  11651. lcc*)
  11652. # Lucid
  11653. # FIXME: insert proper C++ library support
  11654. ld_shlibs_CXX=no
  11655. ;;
  11656. *)
  11657. # FIXME: insert proper C++ library support
  11658. ld_shlibs_CXX=no
  11659. ;;
  11660. esac
  11661. ;;
  11662. solaris*)
  11663. case $cc_basename in
  11664. CC* | sunCC*)
  11665. # Sun C++ 4.2, 5.x and Centerline C++
  11666. archive_cmds_need_lc_CXX=yes
  11667. no_undefined_flag_CXX=' -zdefs'
  11668. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11669. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11670. $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'
  11671. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11672. hardcode_shlibpath_var_CXX=no
  11673. case $host_os in
  11674. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11675. *)
  11676. # The compiler driver will combine and reorder linker options,
  11677. # but understands `-z linker_flag'.
  11678. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11679. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11680. ;;
  11681. esac
  11682. link_all_deplibs_CXX=yes
  11683. output_verbose_link_cmd='func_echo_all'
  11684. # Archives containing C++ object files must be created using
  11685. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11686. # necessary to make sure instantiated templates are included
  11687. # in the archive.
  11688. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11689. ;;
  11690. gcx*)
  11691. # Green Hills C++ Compiler
  11692. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11693. # The C++ compiler must be used to create the archive.
  11694. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11695. ;;
  11696. *)
  11697. # GNU C++ compiler with Solaris linker
  11698. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11699. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11700. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11701. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11702. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11703. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11704. # Commands to make compiler produce verbose output that lists
  11705. # what "hidden" libraries, object files and flags are used when
  11706. # linking a shared library.
  11707. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11708. else
  11709. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11710. # platform.
  11711. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11712. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11713. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11714. # Commands to make compiler produce verbose output that lists
  11715. # what "hidden" libraries, object files and flags are used when
  11716. # linking a shared library.
  11717. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11718. fi
  11719. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11720. case $host_os in
  11721. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11722. *)
  11723. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11724. ;;
  11725. esac
  11726. fi
  11727. ;;
  11728. esac
  11729. ;;
  11730. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11731. no_undefined_flag_CXX='${wl}-z,text'
  11732. archive_cmds_need_lc_CXX=no
  11733. hardcode_shlibpath_var_CXX=no
  11734. runpath_var='LD_RUN_PATH'
  11735. case $cc_basename in
  11736. CC*)
  11737. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11738. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11739. ;;
  11740. *)
  11741. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11742. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11743. ;;
  11744. esac
  11745. ;;
  11746. sysv5* | sco3.2v5* | sco5v6*)
  11747. # Note: We can NOT use -z defs as we might desire, because we do not
  11748. # link with -lc, and that would cause any symbols used from libc to
  11749. # always be unresolved, which means just about no library would
  11750. # ever link correctly. If we're not using GNU ld we use -z text
  11751. # though, which does catch some bad symbols but isn't as heavy-handed
  11752. # as -z defs.
  11753. no_undefined_flag_CXX='${wl}-z,text'
  11754. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11755. archive_cmds_need_lc_CXX=no
  11756. hardcode_shlibpath_var_CXX=no
  11757. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11758. hardcode_libdir_separator_CXX=':'
  11759. link_all_deplibs_CXX=yes
  11760. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11761. runpath_var='LD_RUN_PATH'
  11762. case $cc_basename in
  11763. CC*)
  11764. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11765. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11766. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11767. '"$old_archive_cmds_CXX"
  11768. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11769. '"$reload_cmds_CXX"
  11770. ;;
  11771. *)
  11772. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11773. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11774. ;;
  11775. esac
  11776. ;;
  11777. tandem*)
  11778. case $cc_basename in
  11779. NCC*)
  11780. # NonStop-UX NCC 3.20
  11781. # FIXME: insert proper C++ library support
  11782. ld_shlibs_CXX=no
  11783. ;;
  11784. *)
  11785. # FIXME: insert proper C++ library support
  11786. ld_shlibs_CXX=no
  11787. ;;
  11788. esac
  11789. ;;
  11790. vxworks*)
  11791. # FIXME: insert proper C++ library support
  11792. ld_shlibs_CXX=no
  11793. ;;
  11794. *)
  11795. # FIXME: insert proper C++ library support
  11796. ld_shlibs_CXX=no
  11797. ;;
  11798. esac
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11800. $as_echo "$ld_shlibs_CXX" >&6; }
  11801. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11802. GCC_CXX="$GXX"
  11803. LD_CXX="$LD"
  11804. ## CAVEAT EMPTOR:
  11805. ## There is no encapsulation within the following macros, do not change
  11806. ## the running order or otherwise move them around unless you know exactly
  11807. ## what you are doing...
  11808. # Dependencies to place before and after the object being linked:
  11809. predep_objects_CXX=
  11810. postdep_objects_CXX=
  11811. predeps_CXX=
  11812. postdeps_CXX=
  11813. compiler_lib_search_path_CXX=
  11814. cat > conftest.$ac_ext <<_LT_EOF
  11815. class Foo
  11816. {
  11817. public:
  11818. Foo (void) { a = 0; }
  11819. private:
  11820. int a;
  11821. };
  11822. _LT_EOF
  11823. _lt_libdeps_save_CFLAGS=$CFLAGS
  11824. case "$CC $CFLAGS " in #(
  11825. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11826. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11827. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11828. esac
  11829. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11830. (eval $ac_compile) 2>&5
  11831. ac_status=$?
  11832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11833. test $ac_status = 0; }; then
  11834. # Parse the compiler output and extract the necessary
  11835. # objects, libraries and library flags.
  11836. # Sentinel used to keep track of whether or not we are before
  11837. # the conftest object file.
  11838. pre_test_object_deps_done=no
  11839. for p in `eval "$output_verbose_link_cmd"`; do
  11840. case ${prev}${p} in
  11841. -L* | -R* | -l*)
  11842. # Some compilers place space between "-{L,R}" and the path.
  11843. # Remove the space.
  11844. if test $p = "-L" ||
  11845. test $p = "-R"; then
  11846. prev=$p
  11847. continue
  11848. fi
  11849. # Expand the sysroot to ease extracting the directories later.
  11850. if test -z "$prev"; then
  11851. case $p in
  11852. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11853. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11854. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11855. esac
  11856. fi
  11857. case $p in
  11858. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11859. esac
  11860. if test "$pre_test_object_deps_done" = no; then
  11861. case ${prev} in
  11862. -L | -R)
  11863. # Internal compiler library paths should come after those
  11864. # provided the user. The postdeps already come after the
  11865. # user supplied libs so there is no need to process them.
  11866. if test -z "$compiler_lib_search_path_CXX"; then
  11867. compiler_lib_search_path_CXX="${prev}${p}"
  11868. else
  11869. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11870. fi
  11871. ;;
  11872. # The "-l" case would never come before the object being
  11873. # linked, so don't bother handling this case.
  11874. esac
  11875. else
  11876. if test -z "$postdeps_CXX"; then
  11877. postdeps_CXX="${prev}${p}"
  11878. else
  11879. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11880. fi
  11881. fi
  11882. prev=
  11883. ;;
  11884. *.lto.$objext) ;; # Ignore GCC LTO objects
  11885. *.$objext)
  11886. # This assumes that the test object file only shows up
  11887. # once in the compiler output.
  11888. if test "$p" = "conftest.$objext"; then
  11889. pre_test_object_deps_done=yes
  11890. continue
  11891. fi
  11892. if test "$pre_test_object_deps_done" = no; then
  11893. if test -z "$predep_objects_CXX"; then
  11894. predep_objects_CXX="$p"
  11895. else
  11896. predep_objects_CXX="$predep_objects_CXX $p"
  11897. fi
  11898. else
  11899. if test -z "$postdep_objects_CXX"; then
  11900. postdep_objects_CXX="$p"
  11901. else
  11902. postdep_objects_CXX="$postdep_objects_CXX $p"
  11903. fi
  11904. fi
  11905. ;;
  11906. *) ;; # Ignore the rest.
  11907. esac
  11908. done
  11909. # Clean up.
  11910. rm -f a.out a.exe
  11911. else
  11912. echo "libtool.m4: error: problem compiling CXX test program"
  11913. fi
  11914. $RM -f confest.$objext
  11915. CFLAGS=$_lt_libdeps_save_CFLAGS
  11916. # PORTME: override above test on systems where it is broken
  11917. case $host_os in
  11918. interix[3-9]*)
  11919. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11920. # hack all around it, let's just trust "g++" to DTRT.
  11921. predep_objects_CXX=
  11922. postdep_objects_CXX=
  11923. postdeps_CXX=
  11924. ;;
  11925. linux*)
  11926. case `$CC -V 2>&1 | sed 5q` in
  11927. *Sun\ C*)
  11928. # Sun C++ 5.9
  11929. # The more standards-conforming stlport4 library is
  11930. # incompatible with the Cstd library. Avoid specifying
  11931. # it if it's in CXXFLAGS. Ignore libCrun as
  11932. # -library=stlport4 depends on it.
  11933. case " $CXX $CXXFLAGS " in
  11934. *" -library=stlport4 "*)
  11935. solaris_use_stlport4=yes
  11936. ;;
  11937. esac
  11938. if test "$solaris_use_stlport4" != yes; then
  11939. postdeps_CXX='-library=Cstd -library=Crun'
  11940. fi
  11941. ;;
  11942. esac
  11943. ;;
  11944. solaris*)
  11945. case $cc_basename in
  11946. CC* | sunCC*)
  11947. # The more standards-conforming stlport4 library is
  11948. # incompatible with the Cstd library. Avoid specifying
  11949. # it if it's in CXXFLAGS. Ignore libCrun as
  11950. # -library=stlport4 depends on it.
  11951. case " $CXX $CXXFLAGS " in
  11952. *" -library=stlport4 "*)
  11953. solaris_use_stlport4=yes
  11954. ;;
  11955. esac
  11956. # Adding this requires a known-good setup of shared libraries for
  11957. # Sun compiler versions before 5.6, else PIC objects from an old
  11958. # archive will be linked into the output, leading to subtle bugs.
  11959. if test "$solaris_use_stlport4" != yes; then
  11960. postdeps_CXX='-library=Cstd -library=Crun'
  11961. fi
  11962. ;;
  11963. esac
  11964. ;;
  11965. esac
  11966. case " $postdeps_CXX " in
  11967. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11968. esac
  11969. compiler_lib_search_dirs_CXX=
  11970. if test -n "${compiler_lib_search_path_CXX}"; then
  11971. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11972. fi
  11973. lt_prog_compiler_wl_CXX=
  11974. lt_prog_compiler_pic_CXX=
  11975. lt_prog_compiler_static_CXX=
  11976. # C++ specific cases for pic, static, wl, etc.
  11977. if test "$GXX" = yes; then
  11978. lt_prog_compiler_wl_CXX='-Wl,'
  11979. lt_prog_compiler_static_CXX='-static'
  11980. case $host_os in
  11981. aix*)
  11982. # All AIX code is PIC.
  11983. if test "$host_cpu" = ia64; then
  11984. # AIX 5 now supports IA64 processor
  11985. lt_prog_compiler_static_CXX='-Bstatic'
  11986. fi
  11987. ;;
  11988. amigaos*)
  11989. case $host_cpu in
  11990. powerpc)
  11991. # see comment about AmigaOS4 .so support
  11992. lt_prog_compiler_pic_CXX='-fPIC'
  11993. ;;
  11994. m68k)
  11995. # FIXME: we need at least 68020 code to build shared libraries, but
  11996. # adding the `-m68020' flag to GCC prevents building anything better,
  11997. # like `-m68040'.
  11998. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11999. ;;
  12000. esac
  12001. ;;
  12002. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12003. # PIC is the default for these OSes.
  12004. ;;
  12005. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12006. # This hack is so that the source file can tell whether it is being
  12007. # built for inclusion in a dll (and should export symbols for example).
  12008. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12009. # (--disable-auto-import) libraries
  12010. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12011. ;;
  12012. darwin* | rhapsody*)
  12013. # PIC is the default on this platform
  12014. # Common symbols not allowed in MH_DYLIB files
  12015. lt_prog_compiler_pic_CXX='-fno-common'
  12016. ;;
  12017. *djgpp*)
  12018. # DJGPP does not support shared libraries at all
  12019. lt_prog_compiler_pic_CXX=
  12020. ;;
  12021. haiku*)
  12022. # PIC is the default for Haiku.
  12023. # The "-static" flag exists, but is broken.
  12024. lt_prog_compiler_static_CXX=
  12025. ;;
  12026. interix[3-9]*)
  12027. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12028. # Instead, we relocate shared libraries at runtime.
  12029. ;;
  12030. sysv4*MP*)
  12031. if test -d /usr/nec; then
  12032. lt_prog_compiler_pic_CXX=-Kconform_pic
  12033. fi
  12034. ;;
  12035. hpux*)
  12036. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12037. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12038. # sets the default TLS model and affects inlining.
  12039. case $host_cpu in
  12040. hppa*64*)
  12041. ;;
  12042. *)
  12043. lt_prog_compiler_pic_CXX='-fPIC'
  12044. ;;
  12045. esac
  12046. ;;
  12047. *qnx* | *nto*)
  12048. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12049. # it will coredump.
  12050. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12051. ;;
  12052. *)
  12053. lt_prog_compiler_pic_CXX='-fPIC'
  12054. ;;
  12055. esac
  12056. else
  12057. case $host_os in
  12058. aix[4-9]*)
  12059. # All AIX code is PIC.
  12060. if test "$host_cpu" = ia64; then
  12061. # AIX 5 now supports IA64 processor
  12062. lt_prog_compiler_static_CXX='-Bstatic'
  12063. else
  12064. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12065. fi
  12066. ;;
  12067. chorus*)
  12068. case $cc_basename in
  12069. cxch68*)
  12070. # Green Hills C++ Compiler
  12071. # _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"
  12072. ;;
  12073. esac
  12074. ;;
  12075. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12076. # This hack is so that the source file can tell whether it is being
  12077. # built for inclusion in a dll (and should export symbols for example).
  12078. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12079. ;;
  12080. dgux*)
  12081. case $cc_basename in
  12082. ec++*)
  12083. lt_prog_compiler_pic_CXX='-KPIC'
  12084. ;;
  12085. ghcx*)
  12086. # Green Hills C++ Compiler
  12087. lt_prog_compiler_pic_CXX='-pic'
  12088. ;;
  12089. *)
  12090. ;;
  12091. esac
  12092. ;;
  12093. freebsd* | dragonfly*)
  12094. # FreeBSD uses GNU C++
  12095. ;;
  12096. hpux9* | hpux10* | hpux11*)
  12097. case $cc_basename in
  12098. CC*)
  12099. lt_prog_compiler_wl_CXX='-Wl,'
  12100. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12101. if test "$host_cpu" != ia64; then
  12102. lt_prog_compiler_pic_CXX='+Z'
  12103. fi
  12104. ;;
  12105. aCC*)
  12106. lt_prog_compiler_wl_CXX='-Wl,'
  12107. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12108. case $host_cpu in
  12109. hppa*64*|ia64*)
  12110. # +Z the default
  12111. ;;
  12112. *)
  12113. lt_prog_compiler_pic_CXX='+Z'
  12114. ;;
  12115. esac
  12116. ;;
  12117. *)
  12118. ;;
  12119. esac
  12120. ;;
  12121. interix*)
  12122. # This is c89, which is MS Visual C++ (no shared libs)
  12123. # Anyone wants to do a port?
  12124. ;;
  12125. irix5* | irix6* | nonstopux*)
  12126. case $cc_basename in
  12127. CC*)
  12128. lt_prog_compiler_wl_CXX='-Wl,'
  12129. lt_prog_compiler_static_CXX='-non_shared'
  12130. # CC pic flag -KPIC is the default.
  12131. ;;
  12132. *)
  12133. ;;
  12134. esac
  12135. ;;
  12136. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12137. case $cc_basename in
  12138. KCC*)
  12139. # KAI C++ Compiler
  12140. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12141. lt_prog_compiler_pic_CXX='-fPIC'
  12142. ;;
  12143. ecpc* )
  12144. # old Intel C++ for x86_64 which still supported -KPIC.
  12145. lt_prog_compiler_wl_CXX='-Wl,'
  12146. lt_prog_compiler_pic_CXX='-KPIC'
  12147. lt_prog_compiler_static_CXX='-static'
  12148. ;;
  12149. icpc* )
  12150. # Intel C++, used to be incompatible with GCC.
  12151. # ICC 10 doesn't accept -KPIC any more.
  12152. lt_prog_compiler_wl_CXX='-Wl,'
  12153. lt_prog_compiler_pic_CXX='-fPIC'
  12154. lt_prog_compiler_static_CXX='-static'
  12155. ;;
  12156. pgCC* | pgcpp*)
  12157. # Portland Group C++ compiler
  12158. lt_prog_compiler_wl_CXX='-Wl,'
  12159. lt_prog_compiler_pic_CXX='-fpic'
  12160. lt_prog_compiler_static_CXX='-Bstatic'
  12161. ;;
  12162. cxx*)
  12163. # Compaq C++
  12164. # Make sure the PIC flag is empty. It appears that all Alpha
  12165. # Linux and Compaq Tru64 Unix objects are PIC.
  12166. lt_prog_compiler_pic_CXX=
  12167. lt_prog_compiler_static_CXX='-non_shared'
  12168. ;;
  12169. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12170. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12171. lt_prog_compiler_wl_CXX='-Wl,'
  12172. lt_prog_compiler_pic_CXX='-qpic'
  12173. lt_prog_compiler_static_CXX='-qstaticlink'
  12174. ;;
  12175. *)
  12176. case `$CC -V 2>&1 | sed 5q` in
  12177. *Sun\ C*)
  12178. # Sun C++ 5.9
  12179. lt_prog_compiler_pic_CXX='-KPIC'
  12180. lt_prog_compiler_static_CXX='-Bstatic'
  12181. lt_prog_compiler_wl_CXX='-Qoption ld '
  12182. ;;
  12183. esac
  12184. ;;
  12185. esac
  12186. ;;
  12187. lynxos*)
  12188. ;;
  12189. m88k*)
  12190. ;;
  12191. mvs*)
  12192. case $cc_basename in
  12193. cxx*)
  12194. lt_prog_compiler_pic_CXX='-W c,exportall'
  12195. ;;
  12196. *)
  12197. ;;
  12198. esac
  12199. ;;
  12200. netbsd*)
  12201. ;;
  12202. *qnx* | *nto*)
  12203. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12204. # it will coredump.
  12205. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12206. ;;
  12207. osf3* | osf4* | osf5*)
  12208. case $cc_basename in
  12209. KCC*)
  12210. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12211. ;;
  12212. RCC*)
  12213. # Rational C++ 2.4.1
  12214. lt_prog_compiler_pic_CXX='-pic'
  12215. ;;
  12216. cxx*)
  12217. # Digital/Compaq C++
  12218. lt_prog_compiler_wl_CXX='-Wl,'
  12219. # Make sure the PIC flag is empty. It appears that all Alpha
  12220. # Linux and Compaq Tru64 Unix objects are PIC.
  12221. lt_prog_compiler_pic_CXX=
  12222. lt_prog_compiler_static_CXX='-non_shared'
  12223. ;;
  12224. *)
  12225. ;;
  12226. esac
  12227. ;;
  12228. psos*)
  12229. ;;
  12230. solaris*)
  12231. case $cc_basename in
  12232. CC* | sunCC*)
  12233. # Sun C++ 4.2, 5.x and Centerline C++
  12234. lt_prog_compiler_pic_CXX='-KPIC'
  12235. lt_prog_compiler_static_CXX='-Bstatic'
  12236. lt_prog_compiler_wl_CXX='-Qoption ld '
  12237. ;;
  12238. gcx*)
  12239. # Green Hills C++ Compiler
  12240. lt_prog_compiler_pic_CXX='-PIC'
  12241. ;;
  12242. *)
  12243. ;;
  12244. esac
  12245. ;;
  12246. sunos4*)
  12247. case $cc_basename in
  12248. CC*)
  12249. # Sun C++ 4.x
  12250. lt_prog_compiler_pic_CXX='-pic'
  12251. lt_prog_compiler_static_CXX='-Bstatic'
  12252. ;;
  12253. lcc*)
  12254. # Lucid
  12255. lt_prog_compiler_pic_CXX='-pic'
  12256. ;;
  12257. *)
  12258. ;;
  12259. esac
  12260. ;;
  12261. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12262. case $cc_basename in
  12263. CC*)
  12264. lt_prog_compiler_wl_CXX='-Wl,'
  12265. lt_prog_compiler_pic_CXX='-KPIC'
  12266. lt_prog_compiler_static_CXX='-Bstatic'
  12267. ;;
  12268. esac
  12269. ;;
  12270. tandem*)
  12271. case $cc_basename in
  12272. NCC*)
  12273. # NonStop-UX NCC 3.20
  12274. lt_prog_compiler_pic_CXX='-KPIC'
  12275. ;;
  12276. *)
  12277. ;;
  12278. esac
  12279. ;;
  12280. vxworks*)
  12281. ;;
  12282. *)
  12283. lt_prog_compiler_can_build_shared_CXX=no
  12284. ;;
  12285. esac
  12286. fi
  12287. case $host_os in
  12288. # For platforms which do not support PIC, -DPIC is meaningless:
  12289. *djgpp*)
  12290. lt_prog_compiler_pic_CXX=
  12291. ;;
  12292. *)
  12293. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12294. ;;
  12295. esac
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12297. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12298. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12299. $as_echo_n "(cached) " >&6
  12300. else
  12301. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12302. fi
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12304. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12305. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12306. #
  12307. # Check to make sure the PIC flag actually works.
  12308. #
  12309. if test -n "$lt_prog_compiler_pic_CXX"; then
  12310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12311. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12312. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12313. $as_echo_n "(cached) " >&6
  12314. else
  12315. lt_cv_prog_compiler_pic_works_CXX=no
  12316. ac_outfile=conftest.$ac_objext
  12317. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12318. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12319. # Insert the option either (1) after the last *FLAGS variable, or
  12320. # (2) before a word containing "conftest.", or (3) at the end.
  12321. # Note that $ac_compile itself does not contain backslashes and begins
  12322. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12323. # The option is referenced via a variable to avoid confusing sed.
  12324. lt_compile=`echo "$ac_compile" | $SED \
  12325. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12326. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12327. -e 's:$: $lt_compiler_flag:'`
  12328. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12329. (eval "$lt_compile" 2>conftest.err)
  12330. ac_status=$?
  12331. cat conftest.err >&5
  12332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12333. if (exit $ac_status) && test -s "$ac_outfile"; then
  12334. # The compiler can only warn and ignore the option if not recognized
  12335. # So say no if there are warnings other than the usual output.
  12336. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12337. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12338. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12339. lt_cv_prog_compiler_pic_works_CXX=yes
  12340. fi
  12341. fi
  12342. $RM conftest*
  12343. fi
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12345. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12346. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12347. case $lt_prog_compiler_pic_CXX in
  12348. "" | " "*) ;;
  12349. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12350. esac
  12351. else
  12352. lt_prog_compiler_pic_CXX=
  12353. lt_prog_compiler_can_build_shared_CXX=no
  12354. fi
  12355. fi
  12356. #
  12357. # Check to make sure the static flag actually works.
  12358. #
  12359. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12361. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12362. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12363. $as_echo_n "(cached) " >&6
  12364. else
  12365. lt_cv_prog_compiler_static_works_CXX=no
  12366. save_LDFLAGS="$LDFLAGS"
  12367. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12368. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12369. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12370. # The linker can only warn and ignore the option if not recognized
  12371. # So say no if there are warnings
  12372. if test -s conftest.err; then
  12373. # Append any errors to the config.log.
  12374. cat conftest.err 1>&5
  12375. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12376. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12377. if diff conftest.exp conftest.er2 >/dev/null; then
  12378. lt_cv_prog_compiler_static_works_CXX=yes
  12379. fi
  12380. else
  12381. lt_cv_prog_compiler_static_works_CXX=yes
  12382. fi
  12383. fi
  12384. $RM -r conftest*
  12385. LDFLAGS="$save_LDFLAGS"
  12386. fi
  12387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12388. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12389. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12390. :
  12391. else
  12392. lt_prog_compiler_static_CXX=
  12393. fi
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12395. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12396. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12397. $as_echo_n "(cached) " >&6
  12398. else
  12399. lt_cv_prog_compiler_c_o_CXX=no
  12400. $RM -r conftest 2>/dev/null
  12401. mkdir conftest
  12402. cd conftest
  12403. mkdir out
  12404. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12405. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12406. # Insert the option either (1) after the last *FLAGS variable, or
  12407. # (2) before a word containing "conftest.", or (3) at the end.
  12408. # Note that $ac_compile itself does not contain backslashes and begins
  12409. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12410. lt_compile=`echo "$ac_compile" | $SED \
  12411. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12412. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12413. -e 's:$: $lt_compiler_flag:'`
  12414. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12415. (eval "$lt_compile" 2>out/conftest.err)
  12416. ac_status=$?
  12417. cat out/conftest.err >&5
  12418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12419. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12420. then
  12421. # The compiler can only warn and ignore the option if not recognized
  12422. # So say no if there are warnings
  12423. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12424. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12425. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12426. lt_cv_prog_compiler_c_o_CXX=yes
  12427. fi
  12428. fi
  12429. chmod u+w . 2>&5
  12430. $RM conftest*
  12431. # SGI C++ compiler will create directory out/ii_files/ for
  12432. # template instantiation
  12433. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12434. $RM out/* && rmdir out
  12435. cd ..
  12436. $RM -r conftest
  12437. $RM conftest*
  12438. fi
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12440. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12442. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12443. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. lt_cv_prog_compiler_c_o_CXX=no
  12447. $RM -r conftest 2>/dev/null
  12448. mkdir conftest
  12449. cd conftest
  12450. mkdir out
  12451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12452. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12453. # Insert the option either (1) after the last *FLAGS variable, or
  12454. # (2) before a word containing "conftest.", or (3) at the end.
  12455. # Note that $ac_compile itself does not contain backslashes and begins
  12456. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12457. lt_compile=`echo "$ac_compile" | $SED \
  12458. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12459. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12460. -e 's:$: $lt_compiler_flag:'`
  12461. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12462. (eval "$lt_compile" 2>out/conftest.err)
  12463. ac_status=$?
  12464. cat out/conftest.err >&5
  12465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12466. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12467. then
  12468. # The compiler can only warn and ignore the option if not recognized
  12469. # So say no if there are warnings
  12470. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12471. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12472. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12473. lt_cv_prog_compiler_c_o_CXX=yes
  12474. fi
  12475. fi
  12476. chmod u+w . 2>&5
  12477. $RM conftest*
  12478. # SGI C++ compiler will create directory out/ii_files/ for
  12479. # template instantiation
  12480. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12481. $RM out/* && rmdir out
  12482. cd ..
  12483. $RM -r conftest
  12484. $RM conftest*
  12485. fi
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12487. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12488. hard_links="nottested"
  12489. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12490. # do not overwrite the value of need_locks provided by the user
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12492. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12493. hard_links=yes
  12494. $RM conftest*
  12495. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12496. touch conftest.a
  12497. ln conftest.a conftest.b 2>&5 || hard_links=no
  12498. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12500. $as_echo "$hard_links" >&6; }
  12501. if test "$hard_links" = no; then
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12503. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12504. need_locks=warn
  12505. fi
  12506. else
  12507. need_locks=no
  12508. fi
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12510. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12511. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12512. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12513. case $host_os in
  12514. aix[4-9]*)
  12515. # If we're using GNU nm, then we don't want the "-C" option.
  12516. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12517. # Also, AIX nm treats weak defined symbols like other global defined
  12518. # symbols, whereas GNU nm marks them as "W".
  12519. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12520. 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'
  12521. else
  12522. 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'
  12523. fi
  12524. ;;
  12525. pw32*)
  12526. export_symbols_cmds_CXX="$ltdll_cmds"
  12527. ;;
  12528. cygwin* | mingw* | cegcc*)
  12529. case $cc_basename in
  12530. cl*)
  12531. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12532. ;;
  12533. *)
  12534. 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'
  12535. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12536. ;;
  12537. esac
  12538. ;;
  12539. *)
  12540. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12541. ;;
  12542. esac
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12544. $as_echo "$ld_shlibs_CXX" >&6; }
  12545. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12546. with_gnu_ld_CXX=$with_gnu_ld
  12547. #
  12548. # Do we need to explicitly link libc?
  12549. #
  12550. case "x$archive_cmds_need_lc_CXX" in
  12551. x|xyes)
  12552. # Assume -lc should be added
  12553. archive_cmds_need_lc_CXX=yes
  12554. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12555. case $archive_cmds_CXX in
  12556. *'~'*)
  12557. # FIXME: we may have to deal with multi-command sequences.
  12558. ;;
  12559. '$CC '*)
  12560. # Test whether the compiler implicitly links with -lc since on some
  12561. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12562. # to ld, don't add -lc before -lgcc.
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12564. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12565. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12566. $as_echo_n "(cached) " >&6
  12567. else
  12568. $RM conftest*
  12569. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12570. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12571. (eval $ac_compile) 2>&5
  12572. ac_status=$?
  12573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12574. test $ac_status = 0; } 2>conftest.err; then
  12575. soname=conftest
  12576. lib=conftest
  12577. libobjs=conftest.$ac_objext
  12578. deplibs=
  12579. wl=$lt_prog_compiler_wl_CXX
  12580. pic_flag=$lt_prog_compiler_pic_CXX
  12581. compiler_flags=-v
  12582. linker_flags=-v
  12583. verstring=
  12584. output_objdir=.
  12585. libname=conftest
  12586. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12587. allow_undefined_flag_CXX=
  12588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12589. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12590. ac_status=$?
  12591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12592. test $ac_status = 0; }
  12593. then
  12594. lt_cv_archive_cmds_need_lc_CXX=no
  12595. else
  12596. lt_cv_archive_cmds_need_lc_CXX=yes
  12597. fi
  12598. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12599. else
  12600. cat conftest.err 1>&5
  12601. fi
  12602. $RM conftest*
  12603. fi
  12604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12605. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12606. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12607. ;;
  12608. esac
  12609. fi
  12610. ;;
  12611. esac
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12613. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12614. library_names_spec=
  12615. libname_spec='lib$name'
  12616. soname_spec=
  12617. shrext_cmds=".so"
  12618. postinstall_cmds=
  12619. postuninstall_cmds=
  12620. finish_cmds=
  12621. finish_eval=
  12622. shlibpath_var=
  12623. shlibpath_overrides_runpath=unknown
  12624. version_type=none
  12625. dynamic_linker="$host_os ld.so"
  12626. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12627. need_lib_prefix=unknown
  12628. hardcode_into_libs=no
  12629. # when you set need_version to no, make sure it does not cause -set_version
  12630. # flags to be left without arguments
  12631. need_version=unknown
  12632. case $host_os in
  12633. aix3*)
  12634. version_type=linux # correct to gnu/linux during the next big refactor
  12635. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12636. shlibpath_var=LIBPATH
  12637. # AIX 3 has no versioning support, so we append a major version to the name.
  12638. soname_spec='${libname}${release}${shared_ext}$major'
  12639. ;;
  12640. aix[4-9]*)
  12641. version_type=linux # correct to gnu/linux during the next big refactor
  12642. need_lib_prefix=no
  12643. need_version=no
  12644. hardcode_into_libs=yes
  12645. if test "$host_cpu" = ia64; then
  12646. # AIX 5 supports IA64
  12647. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12648. shlibpath_var=LD_LIBRARY_PATH
  12649. else
  12650. # With GCC up to 2.95.x, collect2 would create an import file
  12651. # for dependence libraries. The import file would start with
  12652. # the line `#! .'. This would cause the generated library to
  12653. # depend on `.', always an invalid library. This was fixed in
  12654. # development snapshots of GCC prior to 3.0.
  12655. case $host_os in
  12656. aix4 | aix4.[01] | aix4.[01].*)
  12657. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12658. echo ' yes '
  12659. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12660. :
  12661. else
  12662. can_build_shared=no
  12663. fi
  12664. ;;
  12665. esac
  12666. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12667. # soname into executable. Probably we can add versioning support to
  12668. # collect2, so additional links can be useful in future.
  12669. if test "$aix_use_runtimelinking" = yes; then
  12670. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12671. # instead of lib<name>.a to let people know that these are not
  12672. # typical AIX shared libraries.
  12673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12674. else
  12675. # We preserve .a as extension for shared libraries through AIX4.2
  12676. # and later when we are not doing run time linking.
  12677. library_names_spec='${libname}${release}.a $libname.a'
  12678. soname_spec='${libname}${release}${shared_ext}$major'
  12679. fi
  12680. shlibpath_var=LIBPATH
  12681. fi
  12682. ;;
  12683. amigaos*)
  12684. case $host_cpu in
  12685. powerpc)
  12686. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12687. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12689. ;;
  12690. m68k)
  12691. library_names_spec='$libname.ixlibrary $libname.a'
  12692. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12693. 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'
  12694. ;;
  12695. esac
  12696. ;;
  12697. beos*)
  12698. library_names_spec='${libname}${shared_ext}'
  12699. dynamic_linker="$host_os ld.so"
  12700. shlibpath_var=LIBRARY_PATH
  12701. ;;
  12702. bsdi[45]*)
  12703. version_type=linux # correct to gnu/linux during the next big refactor
  12704. need_version=no
  12705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12706. soname_spec='${libname}${release}${shared_ext}$major'
  12707. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12708. shlibpath_var=LD_LIBRARY_PATH
  12709. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12710. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12711. # the default ld.so.conf also contains /usr/contrib/lib and
  12712. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12713. # libtool to hard-code these into programs
  12714. ;;
  12715. cygwin* | mingw* | pw32* | cegcc*)
  12716. version_type=windows
  12717. shrext_cmds=".dll"
  12718. need_version=no
  12719. need_lib_prefix=no
  12720. case $GCC,$cc_basename in
  12721. yes,*)
  12722. # gcc
  12723. library_names_spec='$libname.dll.a'
  12724. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12725. postinstall_cmds='base_file=`basename \${file}`~
  12726. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12727. dldir=$destdir/`dirname \$dlpath`~
  12728. test -d \$dldir || mkdir -p \$dldir~
  12729. $install_prog $dir/$dlname \$dldir/$dlname~
  12730. chmod a+x \$dldir/$dlname~
  12731. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12732. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12733. fi'
  12734. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12735. dlpath=$dir/\$dldll~
  12736. $RM \$dlpath'
  12737. shlibpath_overrides_runpath=yes
  12738. case $host_os in
  12739. cygwin*)
  12740. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12741. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12742. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12743. ;;
  12744. mingw* | cegcc*)
  12745. # MinGW DLLs use traditional 'lib' prefix
  12746. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12747. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12748. ;;
  12749. pw32*)
  12750. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12751. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12752. ;;
  12753. esac
  12754. dynamic_linker='Win32 ld.exe'
  12755. ;;
  12756. *,cl*)
  12757. # Native MSVC
  12758. libname_spec='$name'
  12759. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12760. library_names_spec='${libname}.dll.lib'
  12761. case $build_os in
  12762. mingw*)
  12763. sys_lib_search_path_spec=
  12764. lt_save_ifs=$IFS
  12765. IFS=';'
  12766. for lt_path in $LIB
  12767. do
  12768. IFS=$lt_save_ifs
  12769. # Let DOS variable expansion print the short 8.3 style file name.
  12770. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12771. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12772. done
  12773. IFS=$lt_save_ifs
  12774. # Convert to MSYS style.
  12775. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12776. ;;
  12777. cygwin*)
  12778. # Convert to unix form, then to dos form, then back to unix form
  12779. # but this time dos style (no spaces!) so that the unix form looks
  12780. # like /cygdrive/c/PROGRA~1:/cygdr...
  12781. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12782. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12783. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12784. ;;
  12785. *)
  12786. sys_lib_search_path_spec="$LIB"
  12787. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12788. # It is most probably a Windows format PATH.
  12789. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12790. else
  12791. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12792. fi
  12793. # FIXME: find the short name or the path components, as spaces are
  12794. # common. (e.g. "Program Files" -> "PROGRA~1")
  12795. ;;
  12796. esac
  12797. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12798. postinstall_cmds='base_file=`basename \${file}`~
  12799. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12800. dldir=$destdir/`dirname \$dlpath`~
  12801. test -d \$dldir || mkdir -p \$dldir~
  12802. $install_prog $dir/$dlname \$dldir/$dlname'
  12803. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12804. dlpath=$dir/\$dldll~
  12805. $RM \$dlpath'
  12806. shlibpath_overrides_runpath=yes
  12807. dynamic_linker='Win32 link.exe'
  12808. ;;
  12809. *)
  12810. # Assume MSVC wrapper
  12811. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12812. dynamic_linker='Win32 ld.exe'
  12813. ;;
  12814. esac
  12815. # FIXME: first we should search . and the directory the executable is in
  12816. shlibpath_var=PATH
  12817. ;;
  12818. darwin* | rhapsody*)
  12819. dynamic_linker="$host_os dyld"
  12820. version_type=darwin
  12821. need_lib_prefix=no
  12822. need_version=no
  12823. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12824. soname_spec='${libname}${release}${major}$shared_ext'
  12825. shlibpath_overrides_runpath=yes
  12826. shlibpath_var=DYLD_LIBRARY_PATH
  12827. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12828. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12829. ;;
  12830. dgux*)
  12831. version_type=linux # correct to gnu/linux during the next big refactor
  12832. need_lib_prefix=no
  12833. need_version=no
  12834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12835. soname_spec='${libname}${release}${shared_ext}$major'
  12836. shlibpath_var=LD_LIBRARY_PATH
  12837. ;;
  12838. freebsd* | dragonfly*)
  12839. # DragonFly does not have aout. When/if they implement a new
  12840. # versioning mechanism, adjust this.
  12841. if test -x /usr/bin/objformat; then
  12842. objformat=`/usr/bin/objformat`
  12843. else
  12844. case $host_os in
  12845. freebsd[23].*) objformat=aout ;;
  12846. *) objformat=elf ;;
  12847. esac
  12848. fi
  12849. version_type=freebsd-$objformat
  12850. case $version_type in
  12851. freebsd-elf*)
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12853. need_version=no
  12854. need_lib_prefix=no
  12855. ;;
  12856. freebsd-*)
  12857. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12858. need_version=yes
  12859. ;;
  12860. esac
  12861. shlibpath_var=LD_LIBRARY_PATH
  12862. case $host_os in
  12863. freebsd2.*)
  12864. shlibpath_overrides_runpath=yes
  12865. ;;
  12866. freebsd3.[01]* | freebsdelf3.[01]*)
  12867. shlibpath_overrides_runpath=yes
  12868. hardcode_into_libs=yes
  12869. ;;
  12870. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12871. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12872. shlibpath_overrides_runpath=no
  12873. hardcode_into_libs=yes
  12874. ;;
  12875. *) # from 4.6 on, and DragonFly
  12876. shlibpath_overrides_runpath=yes
  12877. hardcode_into_libs=yes
  12878. ;;
  12879. esac
  12880. ;;
  12881. gnu*)
  12882. version_type=linux # correct to gnu/linux during the next big refactor
  12883. need_lib_prefix=no
  12884. need_version=no
  12885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12886. soname_spec='${libname}${release}${shared_ext}$major'
  12887. shlibpath_var=LD_LIBRARY_PATH
  12888. shlibpath_overrides_runpath=no
  12889. hardcode_into_libs=yes
  12890. ;;
  12891. haiku*)
  12892. version_type=linux # correct to gnu/linux during the next big refactor
  12893. need_lib_prefix=no
  12894. need_version=no
  12895. dynamic_linker="$host_os runtime_loader"
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12897. soname_spec='${libname}${release}${shared_ext}$major'
  12898. shlibpath_var=LIBRARY_PATH
  12899. shlibpath_overrides_runpath=yes
  12900. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12901. hardcode_into_libs=yes
  12902. ;;
  12903. hpux9* | hpux10* | hpux11*)
  12904. # Give a soname corresponding to the major version so that dld.sl refuses to
  12905. # link against other versions.
  12906. version_type=sunos
  12907. need_lib_prefix=no
  12908. need_version=no
  12909. case $host_cpu in
  12910. ia64*)
  12911. shrext_cmds='.so'
  12912. hardcode_into_libs=yes
  12913. dynamic_linker="$host_os dld.so"
  12914. shlibpath_var=LD_LIBRARY_PATH
  12915. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12917. soname_spec='${libname}${release}${shared_ext}$major'
  12918. if test "X$HPUX_IA64_MODE" = X32; then
  12919. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12920. else
  12921. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12922. fi
  12923. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12924. ;;
  12925. hppa*64*)
  12926. shrext_cmds='.sl'
  12927. hardcode_into_libs=yes
  12928. dynamic_linker="$host_os dld.sl"
  12929. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12930. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12932. soname_spec='${libname}${release}${shared_ext}$major'
  12933. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12934. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12935. ;;
  12936. *)
  12937. shrext_cmds='.sl'
  12938. dynamic_linker="$host_os dld.sl"
  12939. shlibpath_var=SHLIB_PATH
  12940. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. ;;
  12944. esac
  12945. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12946. postinstall_cmds='chmod 555 $lib'
  12947. # or fails outright, so override atomically:
  12948. install_override_mode=555
  12949. ;;
  12950. interix[3-9]*)
  12951. version_type=linux # correct to gnu/linux during the next big refactor
  12952. need_lib_prefix=no
  12953. need_version=no
  12954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12955. soname_spec='${libname}${release}${shared_ext}$major'
  12956. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. shlibpath_overrides_runpath=no
  12959. hardcode_into_libs=yes
  12960. ;;
  12961. irix5* | irix6* | nonstopux*)
  12962. case $host_os in
  12963. nonstopux*) version_type=nonstopux ;;
  12964. *)
  12965. if test "$lt_cv_prog_gnu_ld" = yes; then
  12966. version_type=linux # correct to gnu/linux during the next big refactor
  12967. else
  12968. version_type=irix
  12969. fi ;;
  12970. esac
  12971. need_lib_prefix=no
  12972. need_version=no
  12973. soname_spec='${libname}${release}${shared_ext}$major'
  12974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12975. case $host_os in
  12976. irix5* | nonstopux*)
  12977. libsuff= shlibsuff=
  12978. ;;
  12979. *)
  12980. case $LD in # libtool.m4 will add one of these switches to LD
  12981. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12982. libsuff= shlibsuff= libmagic=32-bit;;
  12983. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12984. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12985. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12986. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12987. *) libsuff= shlibsuff= libmagic=never-match;;
  12988. esac
  12989. ;;
  12990. esac
  12991. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12992. shlibpath_overrides_runpath=no
  12993. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12994. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12995. hardcode_into_libs=yes
  12996. ;;
  12997. # No shared lib support for Linux oldld, aout, or coff.
  12998. linux*oldld* | linux*aout* | linux*coff*)
  12999. dynamic_linker=no
  13000. ;;
  13001. # This must be glibc/ELF.
  13002. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13003. version_type=linux # correct to gnu/linux during the next big refactor
  13004. need_lib_prefix=no
  13005. need_version=no
  13006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13007. soname_spec='${libname}${release}${shared_ext}$major'
  13008. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13009. shlibpath_var=LD_LIBRARY_PATH
  13010. shlibpath_overrides_runpath=no
  13011. # Some binutils ld are patched to set DT_RUNPATH
  13012. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13013. $as_echo_n "(cached) " >&6
  13014. else
  13015. lt_cv_shlibpath_overrides_runpath=no
  13016. save_LDFLAGS=$LDFLAGS
  13017. save_libdir=$libdir
  13018. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13019. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13021. /* end confdefs.h. */
  13022. int
  13023. main ()
  13024. {
  13025. ;
  13026. return 0;
  13027. }
  13028. _ACEOF
  13029. if ac_fn_cxx_try_link "$LINENO"; then :
  13030. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13031. lt_cv_shlibpath_overrides_runpath=yes
  13032. fi
  13033. fi
  13034. rm -f core conftest.err conftest.$ac_objext \
  13035. conftest$ac_exeext conftest.$ac_ext
  13036. LDFLAGS=$save_LDFLAGS
  13037. libdir=$save_libdir
  13038. fi
  13039. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13040. # This implies no fast_install, which is unacceptable.
  13041. # Some rework will be needed to allow for fast_install
  13042. # before this can be enabled.
  13043. hardcode_into_libs=yes
  13044. # Append ld.so.conf contents to the search path
  13045. if test -f /etc/ld.so.conf; then
  13046. 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' ' '`
  13047. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13048. fi
  13049. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13050. # powerpc, because MkLinux only supported shared libraries with the
  13051. # GNU dynamic linker. Since this was broken with cross compilers,
  13052. # most powerpc-linux boxes support dynamic linking these days and
  13053. # people can always --disable-shared, the test was removed, and we
  13054. # assume the GNU/Linux dynamic linker is in use.
  13055. dynamic_linker='GNU/Linux ld.so'
  13056. ;;
  13057. netbsd*)
  13058. version_type=sunos
  13059. need_lib_prefix=no
  13060. need_version=no
  13061. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13063. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13064. dynamic_linker='NetBSD (a.out) ld.so'
  13065. else
  13066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13067. soname_spec='${libname}${release}${shared_ext}$major'
  13068. dynamic_linker='NetBSD ld.elf_so'
  13069. fi
  13070. shlibpath_var=LD_LIBRARY_PATH
  13071. shlibpath_overrides_runpath=yes
  13072. hardcode_into_libs=yes
  13073. ;;
  13074. newsos6)
  13075. version_type=linux # correct to gnu/linux during the next big refactor
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13077. shlibpath_var=LD_LIBRARY_PATH
  13078. shlibpath_overrides_runpath=yes
  13079. ;;
  13080. *nto* | *qnx*)
  13081. version_type=qnx
  13082. need_lib_prefix=no
  13083. need_version=no
  13084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13085. soname_spec='${libname}${release}${shared_ext}$major'
  13086. shlibpath_var=LD_LIBRARY_PATH
  13087. shlibpath_overrides_runpath=no
  13088. hardcode_into_libs=yes
  13089. dynamic_linker='ldqnx.so'
  13090. ;;
  13091. openbsd*)
  13092. version_type=sunos
  13093. sys_lib_dlsearch_path_spec="/usr/lib"
  13094. need_lib_prefix=no
  13095. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13096. case $host_os in
  13097. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13098. *) need_version=no ;;
  13099. esac
  13100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13101. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13102. shlibpath_var=LD_LIBRARY_PATH
  13103. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13104. case $host_os in
  13105. openbsd2.[89] | openbsd2.[89].*)
  13106. shlibpath_overrides_runpath=no
  13107. ;;
  13108. *)
  13109. shlibpath_overrides_runpath=yes
  13110. ;;
  13111. esac
  13112. else
  13113. shlibpath_overrides_runpath=yes
  13114. fi
  13115. ;;
  13116. os2*)
  13117. libname_spec='$name'
  13118. shrext_cmds=".dll"
  13119. need_lib_prefix=no
  13120. library_names_spec='$libname${shared_ext} $libname.a'
  13121. dynamic_linker='OS/2 ld.exe'
  13122. shlibpath_var=LIBPATH
  13123. ;;
  13124. osf3* | osf4* | osf5*)
  13125. version_type=osf
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. soname_spec='${libname}${release}${shared_ext}$major'
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13130. shlibpath_var=LD_LIBRARY_PATH
  13131. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13132. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13133. ;;
  13134. rdos*)
  13135. dynamic_linker=no
  13136. ;;
  13137. solaris*)
  13138. version_type=linux # correct to gnu/linux during the next big refactor
  13139. need_lib_prefix=no
  13140. need_version=no
  13141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13142. soname_spec='${libname}${release}${shared_ext}$major'
  13143. shlibpath_var=LD_LIBRARY_PATH
  13144. shlibpath_overrides_runpath=yes
  13145. hardcode_into_libs=yes
  13146. # ldd complains unless libraries are executable
  13147. postinstall_cmds='chmod +x $lib'
  13148. ;;
  13149. sunos4*)
  13150. version_type=sunos
  13151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13152. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. shlibpath_overrides_runpath=yes
  13155. if test "$with_gnu_ld" = yes; then
  13156. need_lib_prefix=no
  13157. fi
  13158. need_version=yes
  13159. ;;
  13160. sysv4 | sysv4.3*)
  13161. version_type=linux # correct to gnu/linux during the next big refactor
  13162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13163. soname_spec='${libname}${release}${shared_ext}$major'
  13164. shlibpath_var=LD_LIBRARY_PATH
  13165. case $host_vendor in
  13166. sni)
  13167. shlibpath_overrides_runpath=no
  13168. need_lib_prefix=no
  13169. runpath_var=LD_RUN_PATH
  13170. ;;
  13171. siemens)
  13172. need_lib_prefix=no
  13173. ;;
  13174. motorola)
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. shlibpath_overrides_runpath=no
  13178. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13179. ;;
  13180. esac
  13181. ;;
  13182. sysv4*MP*)
  13183. if test -d /usr/nec ;then
  13184. version_type=linux # correct to gnu/linux during the next big refactor
  13185. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13186. soname_spec='$libname${shared_ext}.$major'
  13187. shlibpath_var=LD_LIBRARY_PATH
  13188. fi
  13189. ;;
  13190. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13191. version_type=freebsd-elf
  13192. need_lib_prefix=no
  13193. need_version=no
  13194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13195. soname_spec='${libname}${release}${shared_ext}$major'
  13196. shlibpath_var=LD_LIBRARY_PATH
  13197. shlibpath_overrides_runpath=yes
  13198. hardcode_into_libs=yes
  13199. if test "$with_gnu_ld" = yes; then
  13200. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13201. else
  13202. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13203. case $host_os in
  13204. sco3.2v5*)
  13205. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13206. ;;
  13207. esac
  13208. fi
  13209. sys_lib_dlsearch_path_spec='/usr/lib'
  13210. ;;
  13211. tpf*)
  13212. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13213. version_type=linux # correct to gnu/linux during the next big refactor
  13214. need_lib_prefix=no
  13215. need_version=no
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. shlibpath_var=LD_LIBRARY_PATH
  13218. shlibpath_overrides_runpath=no
  13219. hardcode_into_libs=yes
  13220. ;;
  13221. uts4*)
  13222. version_type=linux # correct to gnu/linux during the next big refactor
  13223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13224. soname_spec='${libname}${release}${shared_ext}$major'
  13225. shlibpath_var=LD_LIBRARY_PATH
  13226. ;;
  13227. *)
  13228. dynamic_linker=no
  13229. ;;
  13230. esac
  13231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13232. $as_echo "$dynamic_linker" >&6; }
  13233. test "$dynamic_linker" = no && can_build_shared=no
  13234. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13235. if test "$GCC" = yes; then
  13236. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13237. fi
  13238. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13239. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13240. fi
  13241. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13242. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13243. fi
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13245. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13246. hardcode_action_CXX=
  13247. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13248. test -n "$runpath_var_CXX" ||
  13249. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13250. # We can hardcode non-existent directories.
  13251. if test "$hardcode_direct_CXX" != no &&
  13252. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13253. # have to relink, otherwise we might link with an installed library
  13254. # when we should be linking with a yet-to-be-installed one
  13255. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13256. test "$hardcode_minus_L_CXX" != no; then
  13257. # Linking always hardcodes the temporary library directory.
  13258. hardcode_action_CXX=relink
  13259. else
  13260. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13261. hardcode_action_CXX=immediate
  13262. fi
  13263. else
  13264. # We cannot hardcode anything, or else we can only hardcode existing
  13265. # directories.
  13266. hardcode_action_CXX=unsupported
  13267. fi
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13269. $as_echo "$hardcode_action_CXX" >&6; }
  13270. if test "$hardcode_action_CXX" = relink ||
  13271. test "$inherit_rpath_CXX" = yes; then
  13272. # Fast installation is not supported
  13273. enable_fast_install=no
  13274. elif test "$shlibpath_overrides_runpath" = yes ||
  13275. test "$enable_shared" = no; then
  13276. # Fast installation is not necessary
  13277. enable_fast_install=needless
  13278. fi
  13279. fi # test -n "$compiler"
  13280. CC=$lt_save_CC
  13281. CFLAGS=$lt_save_CFLAGS
  13282. LDCXX=$LD
  13283. LD=$lt_save_LD
  13284. GCC=$lt_save_GCC
  13285. with_gnu_ld=$lt_save_with_gnu_ld
  13286. lt_cv_path_LDCXX=$lt_cv_path_LD
  13287. lt_cv_path_LD=$lt_save_path_LD
  13288. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13289. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13290. fi # test "$_lt_caught_CXX_error" != yes
  13291. ac_ext=c
  13292. ac_cpp='$CPP $CPPFLAGS'
  13293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13296. # Find a good install program. We prefer a C program (faster),
  13297. # so one script is as good as another. But avoid the broken or
  13298. # incompatible versions:
  13299. # SysV /etc/install, /usr/sbin/install
  13300. # SunOS /usr/etc/install
  13301. # IRIX /sbin/install
  13302. # AIX /bin/install
  13303. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13304. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13305. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13306. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13307. # OS/2's system install, which has a completely different semantic
  13308. # ./install, which can be erroneously created by make from ./install.sh.
  13309. # Reject install programs that cannot install multiple files.
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13311. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13312. if test -z "$INSTALL"; then
  13313. if ${ac_cv_path_install+:} false; then :
  13314. $as_echo_n "(cached) " >&6
  13315. else
  13316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13317. for as_dir in $PATH
  13318. do
  13319. IFS=$as_save_IFS
  13320. test -z "$as_dir" && as_dir=.
  13321. # Account for people who put trailing slashes in PATH elements.
  13322. case $as_dir/ in #((
  13323. ./ | .// | /[cC]/* | \
  13324. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13325. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13326. /usr/ucb/* ) ;;
  13327. *)
  13328. # OSF1 and SCO ODT 3.0 have their own names for install.
  13329. # Don't use installbsd from OSF since it installs stuff as root
  13330. # by default.
  13331. for ac_prog in ginstall scoinst install; do
  13332. for ac_exec_ext in '' $ac_executable_extensions; do
  13333. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13334. if test $ac_prog = install &&
  13335. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13336. # AIX install. It has an incompatible calling convention.
  13337. :
  13338. elif test $ac_prog = install &&
  13339. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13340. # program-specific install script used by HP pwplus--don't use.
  13341. :
  13342. else
  13343. rm -rf conftest.one conftest.two conftest.dir
  13344. echo one > conftest.one
  13345. echo two > conftest.two
  13346. mkdir conftest.dir
  13347. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13348. test -s conftest.one && test -s conftest.two &&
  13349. test -s conftest.dir/conftest.one &&
  13350. test -s conftest.dir/conftest.two
  13351. then
  13352. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13353. break 3
  13354. fi
  13355. fi
  13356. fi
  13357. done
  13358. done
  13359. ;;
  13360. esac
  13361. done
  13362. IFS=$as_save_IFS
  13363. rm -rf conftest.one conftest.two conftest.dir
  13364. fi
  13365. if test "${ac_cv_path_install+set}" = set; then
  13366. INSTALL=$ac_cv_path_install
  13367. else
  13368. # As a last resort, use the slow shell script. Don't cache a
  13369. # value for INSTALL within a source directory, because that will
  13370. # break other packages using the cache if that directory is
  13371. # removed, or if the value is a relative name.
  13372. INSTALL=$ac_install_sh
  13373. fi
  13374. fi
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13376. $as_echo "$INSTALL" >&6; }
  13377. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13378. # It thinks the first close brace ends the variable substitution.
  13379. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13380. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13381. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13383. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13384. set x ${MAKE-make}
  13385. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13386. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13387. $as_echo_n "(cached) " >&6
  13388. else
  13389. cat >conftest.make <<\_ACEOF
  13390. SHELL = /bin/sh
  13391. all:
  13392. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13393. _ACEOF
  13394. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13395. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13396. *@@@%%%=?*=@@@%%%*)
  13397. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13398. *)
  13399. eval ac_cv_prog_make_${ac_make}_set=no;;
  13400. esac
  13401. rm -f conftest.make
  13402. fi
  13403. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13405. $as_echo "yes" >&6; }
  13406. SET_MAKE=
  13407. else
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13409. $as_echo "no" >&6; }
  13410. SET_MAKE="MAKE=${MAKE-make}"
  13411. fi
  13412. if test -n "$ac_tool_prefix"; then
  13413. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13414. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13416. $as_echo_n "checking for $ac_word... " >&6; }
  13417. if ${ac_cv_prog_WINDRES+:} false; then :
  13418. $as_echo_n "(cached) " >&6
  13419. else
  13420. if test -n "$WINDRES"; then
  13421. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13422. else
  13423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13424. for as_dir in $PATH
  13425. do
  13426. IFS=$as_save_IFS
  13427. test -z "$as_dir" && as_dir=.
  13428. for ac_exec_ext in '' $ac_executable_extensions; do
  13429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13430. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13432. break 2
  13433. fi
  13434. done
  13435. done
  13436. IFS=$as_save_IFS
  13437. fi
  13438. fi
  13439. WINDRES=$ac_cv_prog_WINDRES
  13440. if test -n "$WINDRES"; then
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13442. $as_echo "$WINDRES" >&6; }
  13443. else
  13444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13445. $as_echo "no" >&6; }
  13446. fi
  13447. fi
  13448. if test -z "$ac_cv_prog_WINDRES"; then
  13449. ac_ct_WINDRES=$WINDRES
  13450. # Extract the first word of "windres", so it can be a program name with args.
  13451. set dummy windres; ac_word=$2
  13452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13453. $as_echo_n "checking for $ac_word... " >&6; }
  13454. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13455. $as_echo_n "(cached) " >&6
  13456. else
  13457. if test -n "$ac_ct_WINDRES"; then
  13458. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13459. else
  13460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13461. for as_dir in $PATH
  13462. do
  13463. IFS=$as_save_IFS
  13464. test -z "$as_dir" && as_dir=.
  13465. for ac_exec_ext in '' $ac_executable_extensions; do
  13466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13467. ac_cv_prog_ac_ct_WINDRES="windres"
  13468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13469. break 2
  13470. fi
  13471. done
  13472. done
  13473. IFS=$as_save_IFS
  13474. fi
  13475. fi
  13476. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13477. if test -n "$ac_ct_WINDRES"; then
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13479. $as_echo "$ac_ct_WINDRES" >&6; }
  13480. else
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13482. $as_echo "no" >&6; }
  13483. fi
  13484. if test "x$ac_ct_WINDRES" = x; then
  13485. WINDRES=":"
  13486. else
  13487. case $cross_compiling:$ac_tool_warned in
  13488. yes:)
  13489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13490. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13491. ac_tool_warned=yes ;;
  13492. esac
  13493. WINDRES=$ac_ct_WINDRES
  13494. fi
  13495. else
  13496. WINDRES="$ac_cv_prog_WINDRES"
  13497. fi
  13498. case "$host" in
  13499. *-*-mingw32*)
  13500. # Except on msys, where make can't handle full pathnames (bug 1972)
  13501. ;;
  13502. *)
  13503. srcdir=`cd $srcdir && pwd`
  13504. ;;
  13505. esac
  13506. INCLUDE="-I$srcdir/include"
  13507. if test x$srcdir != x.; then
  13508. INCLUDE="-Iinclude $INCLUDE"
  13509. elif test -d .hg; then
  13510. as_fn_error $? "
  13511. *** When building from Mercurial you should configure and build in a
  13512. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13513. " "$LINENO" 5
  13514. fi
  13515. BASE_CFLAGS=""
  13516. BASE_LDFLAGS=""
  13517. case "$host" in
  13518. *-*-cygwin*)
  13519. # We build SDL on cygwin without the UNIX emulation layer
  13520. save_CFLAGS="$CFLAGS"
  13521. have_no_cygwin=no
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13523. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13524. CFLAGS="$save_CFLAGS -mno-cygwin"
  13525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13526. /* end confdefs.h. */
  13527. int
  13528. main ()
  13529. {
  13530. ;
  13531. return 0;
  13532. }
  13533. _ACEOF
  13534. if ac_fn_c_try_compile "$LINENO"; then :
  13535. have_no_cygwin=yes
  13536. fi
  13537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13539. $as_echo "$have_no_cygwin" >&6; }
  13540. CFLAGS="$save_CFLAGS"
  13541. if test x$have_no_cygwin = xyes; then
  13542. BASE_CFLAGS="-mno-cygwin"
  13543. BASE_LDFLAGS="-mno-cygwin"
  13544. fi
  13545. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13546. ;;
  13547. esac
  13548. # Uncomment the following line if you want to force SDL and applications
  13549. # built with it to be compiled for a particular architecture.
  13550. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13551. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13552. # The default optimization for SDL is -O3 (Bug #31)
  13553. if test "x$orig_CFLAGS" = x; then
  13554. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13555. fi
  13556. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13557. BUILD_LDFLAGS="$LDFLAGS"
  13558. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13559. ## These are common directories to find software packages
  13560. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13561. # if test -d $path/include; then
  13562. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13563. # fi
  13564. # if test -d $path/lib; then
  13565. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13566. # fi
  13567. #done
  13568. SDL_CFLAGS="$BASE_CFLAGS"
  13569. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13570. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13571. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13572. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13573. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13574. find_lib()
  13575. {
  13576. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13577. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13578. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13579. if test "$cross_compiling" = yes; then
  13580. host_lib_path=""
  13581. else
  13582. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13583. fi
  13584. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13585. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13586. if test x$lib != x; then
  13587. echo $lib
  13588. return
  13589. fi
  13590. done
  13591. }
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13593. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13594. if ${ac_cv_c_const+:} false; then :
  13595. $as_echo_n "(cached) " >&6
  13596. else
  13597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13598. /* end confdefs.h. */
  13599. int
  13600. main ()
  13601. {
  13602. #ifndef __cplusplus
  13603. /* Ultrix mips cc rejects this sort of thing. */
  13604. typedef int charset[2];
  13605. const charset cs = { 0, 0 };
  13606. /* SunOS 4.1.1 cc rejects this. */
  13607. char const *const *pcpcc;
  13608. char **ppc;
  13609. /* NEC SVR4.0.2 mips cc rejects this. */
  13610. struct point {int x, y;};
  13611. static struct point const zero = {0,0};
  13612. /* AIX XL C 1.02.0.0 rejects this.
  13613. It does not let you subtract one const X* pointer from another in
  13614. an arm of an if-expression whose if-part is not a constant
  13615. expression */
  13616. const char *g = "string";
  13617. pcpcc = &g + (g ? g-g : 0);
  13618. /* HPUX 7.0 cc rejects these. */
  13619. ++pcpcc;
  13620. ppc = (char**) pcpcc;
  13621. pcpcc = (char const *const *) ppc;
  13622. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13623. char tx;
  13624. char *t = &tx;
  13625. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13626. *t++ = 0;
  13627. if (s) return 0;
  13628. }
  13629. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13630. int x[] = {25, 17};
  13631. const int *foo = &x[0];
  13632. ++foo;
  13633. }
  13634. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13635. typedef const int *iptr;
  13636. iptr p = 0;
  13637. ++p;
  13638. }
  13639. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13640. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13641. struct s { int j; const int *ap[3]; } bx;
  13642. struct s *b = &bx; b->j = 5;
  13643. }
  13644. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13645. const int foo = 10;
  13646. if (!foo) return 0;
  13647. }
  13648. return !cs[0] && !zero.x;
  13649. #endif
  13650. ;
  13651. return 0;
  13652. }
  13653. _ACEOF
  13654. if ac_fn_c_try_compile "$LINENO"; then :
  13655. ac_cv_c_const=yes
  13656. else
  13657. ac_cv_c_const=no
  13658. fi
  13659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13660. fi
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13662. $as_echo "$ac_cv_c_const" >&6; }
  13663. if test $ac_cv_c_const = no; then
  13664. $as_echo "#define const /**/" >>confdefs.h
  13665. fi
  13666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13667. $as_echo_n "checking for inline... " >&6; }
  13668. if ${ac_cv_c_inline+:} false; then :
  13669. $as_echo_n "(cached) " >&6
  13670. else
  13671. ac_cv_c_inline=no
  13672. for ac_kw in inline __inline__ __inline; do
  13673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13674. /* end confdefs.h. */
  13675. #ifndef __cplusplus
  13676. typedef int foo_t;
  13677. static $ac_kw foo_t static_foo () {return 0; }
  13678. $ac_kw foo_t foo () {return 0; }
  13679. #endif
  13680. _ACEOF
  13681. if ac_fn_c_try_compile "$LINENO"; then :
  13682. ac_cv_c_inline=$ac_kw
  13683. fi
  13684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13685. test "$ac_cv_c_inline" != no && break
  13686. done
  13687. fi
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13689. $as_echo "$ac_cv_c_inline" >&6; }
  13690. case $ac_cv_c_inline in
  13691. inline | yes) ;;
  13692. *)
  13693. case $ac_cv_c_inline in
  13694. no) ac_val=;;
  13695. *) ac_val=$ac_cv_c_inline;;
  13696. esac
  13697. cat >>confdefs.h <<_ACEOF
  13698. #ifndef __cplusplus
  13699. #define inline $ac_val
  13700. #endif
  13701. _ACEOF
  13702. ;;
  13703. esac
  13704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13705. $as_echo_n "checking for working volatile... " >&6; }
  13706. if ${ac_cv_c_volatile+:} false; then :
  13707. $as_echo_n "(cached) " >&6
  13708. else
  13709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13710. /* end confdefs.h. */
  13711. int
  13712. main ()
  13713. {
  13714. volatile int x;
  13715. int * volatile y = (int *) 0;
  13716. return !x && !y;
  13717. ;
  13718. return 0;
  13719. }
  13720. _ACEOF
  13721. if ac_fn_c_try_compile "$LINENO"; then :
  13722. ac_cv_c_volatile=yes
  13723. else
  13724. ac_cv_c_volatile=no
  13725. fi
  13726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13727. fi
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13729. $as_echo "$ac_cv_c_volatile" >&6; }
  13730. if test $ac_cv_c_volatile = no; then
  13731. $as_echo "#define volatile /**/" >>confdefs.h
  13732. fi
  13733. # Check whether --enable-assertions was given.
  13734. if test "${enable_assertions+set}" = set; then :
  13735. enableval=$enable_assertions;
  13736. else
  13737. enable_assertions=auto
  13738. fi
  13739. case "$enable_assertions" in
  13740. auto) # Use optimization settings to determine assertion level
  13741. ;;
  13742. disabled)
  13743. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13744. ;;
  13745. release)
  13746. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13747. ;;
  13748. enabled)
  13749. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13750. ;;
  13751. paranoid)
  13752. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13753. ;;
  13754. *)
  13755. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13756. ;;
  13757. esac
  13758. # Check whether --enable-dependency-tracking was given.
  13759. if test "${enable_dependency_tracking+set}" = set; then :
  13760. enableval=$enable_dependency_tracking;
  13761. else
  13762. enable_dependency_tracking=yes
  13763. fi
  13764. if test x$enable_dependency_tracking = xyes; then
  13765. have_gcc_mmd_mt=no
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13767. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13769. /* end confdefs.h. */
  13770. #if !defined(__GNUC__) || __GNUC__ < 3
  13771. #error Dependency tracking requires GCC 3.0 or newer
  13772. #endif
  13773. int
  13774. main ()
  13775. {
  13776. ;
  13777. return 0;
  13778. }
  13779. _ACEOF
  13780. if ac_fn_c_try_compile "$LINENO"; then :
  13781. have_gcc_mmd_mt=yes
  13782. fi
  13783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13785. $as_echo "$have_gcc_mmd_mt" >&6; }
  13786. if test x$have_gcc_mmd_mt = xyes; then
  13787. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13788. fi
  13789. fi
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13791. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13792. have_no_undefined=no
  13793. case "$host" in
  13794. *-*-openbsd*)
  13795. ;;
  13796. *)
  13797. save_LDFLAGS="$LDFLAGS"
  13798. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. int
  13802. main ()
  13803. {
  13804. ;
  13805. return 0;
  13806. }
  13807. _ACEOF
  13808. if ac_fn_c_try_link "$LINENO"; then :
  13809. have_no_undefined=yes
  13810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13811. fi
  13812. rm -f core conftest.err conftest.$ac_objext \
  13813. conftest$ac_exeext conftest.$ac_ext
  13814. LDFLAGS="$save_LDFLAGS"
  13815. ;;
  13816. esac
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13818. $as_echo "$have_no_undefined" >&6; }
  13819. # Check whether --enable-libc was given.
  13820. if test "${enable_libc+set}" = set; then :
  13821. enableval=$enable_libc;
  13822. else
  13823. enable_libc=yes
  13824. fi
  13825. if test x$enable_libc = xyes; then
  13826. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13828. $as_echo_n "checking for ANSI C header files... " >&6; }
  13829. if ${ac_cv_header_stdc+:} false; then :
  13830. $as_echo_n "(cached) " >&6
  13831. else
  13832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13833. /* end confdefs.h. */
  13834. #include <stdlib.h>
  13835. #include <stdarg.h>
  13836. #include <string.h>
  13837. #include <float.h>
  13838. int
  13839. main ()
  13840. {
  13841. ;
  13842. return 0;
  13843. }
  13844. _ACEOF
  13845. if ac_fn_c_try_compile "$LINENO"; then :
  13846. ac_cv_header_stdc=yes
  13847. else
  13848. ac_cv_header_stdc=no
  13849. fi
  13850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13851. if test $ac_cv_header_stdc = yes; then
  13852. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. #include <string.h>
  13856. _ACEOF
  13857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13858. $EGREP "memchr" >/dev/null 2>&1; then :
  13859. else
  13860. ac_cv_header_stdc=no
  13861. fi
  13862. rm -f conftest*
  13863. fi
  13864. if test $ac_cv_header_stdc = yes; then
  13865. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13867. /* end confdefs.h. */
  13868. #include <stdlib.h>
  13869. _ACEOF
  13870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13871. $EGREP "free" >/dev/null 2>&1; then :
  13872. else
  13873. ac_cv_header_stdc=no
  13874. fi
  13875. rm -f conftest*
  13876. fi
  13877. if test $ac_cv_header_stdc = yes; then
  13878. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13879. if test "$cross_compiling" = yes; then :
  13880. :
  13881. else
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. #include <ctype.h>
  13885. #include <stdlib.h>
  13886. #if ((' ' & 0x0FF) == 0x020)
  13887. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13888. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13889. #else
  13890. # define ISLOWER(c) \
  13891. (('a' <= (c) && (c) <= 'i') \
  13892. || ('j' <= (c) && (c) <= 'r') \
  13893. || ('s' <= (c) && (c) <= 'z'))
  13894. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13895. #endif
  13896. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13897. int
  13898. main ()
  13899. {
  13900. int i;
  13901. for (i = 0; i < 256; i++)
  13902. if (XOR (islower (i), ISLOWER (i))
  13903. || toupper (i) != TOUPPER (i))
  13904. return 2;
  13905. return 0;
  13906. }
  13907. _ACEOF
  13908. if ac_fn_c_try_run "$LINENO"; then :
  13909. else
  13910. ac_cv_header_stdc=no
  13911. fi
  13912. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13913. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13914. fi
  13915. fi
  13916. fi
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13918. $as_echo "$ac_cv_header_stdc" >&6; }
  13919. if test $ac_cv_header_stdc = yes; then
  13920. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13921. fi
  13922. 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
  13923. do :
  13924. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13925. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13926. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13927. cat >>confdefs.h <<_ACEOF
  13928. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13929. _ACEOF
  13930. fi
  13931. done
  13932. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13933. if test "x$ac_cv_type_size_t" = xyes; then :
  13934. else
  13935. cat >>confdefs.h <<_ACEOF
  13936. #define size_t unsigned int
  13937. _ACEOF
  13938. fi
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13940. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13941. if ${ac_cv_define_M_PI+:} false; then :
  13942. $as_echo_n "(cached) " >&6
  13943. else
  13944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13945. /* end confdefs.h. */
  13946. #include <math.h>
  13947. #ifdef M_PI
  13948. YES_IS_DEFINED
  13949. #endif
  13950. _ACEOF
  13951. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13952. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13953. ac_cv_define_M_PI=yes
  13954. else
  13955. ac_cv_define_M_PI=no
  13956. fi
  13957. rm -f conftest*
  13958. fi
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13960. $as_echo "$ac_cv_define_M_PI" >&6; }
  13961. if test "$ac_cv_define_M_PI" = "yes" ; then
  13962. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13963. fi
  13964. case "$host" in
  13965. *-*-cygwin* | *-*-mingw32*)
  13966. ;;
  13967. *)
  13968. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13969. # for constant arguments. Useless!
  13970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13971. $as_echo_n "checking for working alloca.h... " >&6; }
  13972. if ${ac_cv_working_alloca_h+:} false; then :
  13973. $as_echo_n "(cached) " >&6
  13974. else
  13975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13976. /* end confdefs.h. */
  13977. #include <alloca.h>
  13978. int
  13979. main ()
  13980. {
  13981. char *p = (char *) alloca (2 * sizeof (int));
  13982. if (p) return 0;
  13983. ;
  13984. return 0;
  13985. }
  13986. _ACEOF
  13987. if ac_fn_c_try_link "$LINENO"; then :
  13988. ac_cv_working_alloca_h=yes
  13989. else
  13990. ac_cv_working_alloca_h=no
  13991. fi
  13992. rm -f core conftest.err conftest.$ac_objext \
  13993. conftest$ac_exeext conftest.$ac_ext
  13994. fi
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13996. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13997. if test $ac_cv_working_alloca_h = yes; then
  13998. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13999. fi
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14001. $as_echo_n "checking for alloca... " >&6; }
  14002. if ${ac_cv_func_alloca_works+:} false; then :
  14003. $as_echo_n "(cached) " >&6
  14004. else
  14005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14006. /* end confdefs.h. */
  14007. #ifdef __GNUC__
  14008. # define alloca __builtin_alloca
  14009. #else
  14010. # ifdef _MSC_VER
  14011. # include <malloc.h>
  14012. # define alloca _alloca
  14013. # else
  14014. # ifdef HAVE_ALLOCA_H
  14015. # include <alloca.h>
  14016. # else
  14017. # ifdef _AIX
  14018. #pragma alloca
  14019. # else
  14020. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14021. void *alloca (size_t);
  14022. # endif
  14023. # endif
  14024. # endif
  14025. # endif
  14026. #endif
  14027. int
  14028. main ()
  14029. {
  14030. char *p = (char *) alloca (1);
  14031. if (p) return 0;
  14032. ;
  14033. return 0;
  14034. }
  14035. _ACEOF
  14036. if ac_fn_c_try_link "$LINENO"; then :
  14037. ac_cv_func_alloca_works=yes
  14038. else
  14039. ac_cv_func_alloca_works=no
  14040. fi
  14041. rm -f core conftest.err conftest.$ac_objext \
  14042. conftest$ac_exeext conftest.$ac_ext
  14043. fi
  14044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14045. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14046. if test $ac_cv_func_alloca_works = yes; then
  14047. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14048. else
  14049. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14050. # that cause trouble. Some versions do not even contain alloca or
  14051. # contain a buggy version. If you still want to use their alloca,
  14052. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14053. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14054. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14056. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14057. if ${ac_cv_os_cray+:} false; then :
  14058. $as_echo_n "(cached) " >&6
  14059. else
  14060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14061. /* end confdefs.h. */
  14062. #if defined CRAY && ! defined CRAY2
  14063. webecray
  14064. #else
  14065. wenotbecray
  14066. #endif
  14067. _ACEOF
  14068. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14069. $EGREP "webecray" >/dev/null 2>&1; then :
  14070. ac_cv_os_cray=yes
  14071. else
  14072. ac_cv_os_cray=no
  14073. fi
  14074. rm -f conftest*
  14075. fi
  14076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14077. $as_echo "$ac_cv_os_cray" >&6; }
  14078. if test $ac_cv_os_cray = yes; then
  14079. for ac_func in _getb67 GETB67 getb67; do
  14080. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14081. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14082. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14083. cat >>confdefs.h <<_ACEOF
  14084. #define CRAY_STACKSEG_END $ac_func
  14085. _ACEOF
  14086. break
  14087. fi
  14088. done
  14089. fi
  14090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14091. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14092. if ${ac_cv_c_stack_direction+:} false; then :
  14093. $as_echo_n "(cached) " >&6
  14094. else
  14095. if test "$cross_compiling" = yes; then :
  14096. ac_cv_c_stack_direction=0
  14097. else
  14098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14099. /* end confdefs.h. */
  14100. $ac_includes_default
  14101. int
  14102. find_stack_direction (int *addr, int depth)
  14103. {
  14104. int dir, dummy = 0;
  14105. if (! addr)
  14106. addr = &dummy;
  14107. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14108. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14109. return dir + dummy;
  14110. }
  14111. int
  14112. main (int argc, char **argv)
  14113. {
  14114. return find_stack_direction (0, argc + !argv + 20) < 0;
  14115. }
  14116. _ACEOF
  14117. if ac_fn_c_try_run "$LINENO"; then :
  14118. ac_cv_c_stack_direction=1
  14119. else
  14120. ac_cv_c_stack_direction=-1
  14121. fi
  14122. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14123. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14124. fi
  14125. fi
  14126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14127. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14128. cat >>confdefs.h <<_ACEOF
  14129. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14130. _ACEOF
  14131. fi
  14132. ;;
  14133. esac
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14135. $as_echo_n "checking for working memcmp... " >&6; }
  14136. if ${ac_cv_func_memcmp_working+:} false; then :
  14137. $as_echo_n "(cached) " >&6
  14138. else
  14139. if test "$cross_compiling" = yes; then :
  14140. ac_cv_func_memcmp_working=no
  14141. else
  14142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14143. /* end confdefs.h. */
  14144. $ac_includes_default
  14145. int
  14146. main ()
  14147. {
  14148. /* Some versions of memcmp are not 8-bit clean. */
  14149. char c0 = '\100', c1 = '\200', c2 = '\201';
  14150. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14151. return 1;
  14152. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14153. or more and with at least one buffer not starting on a 4-byte boundary.
  14154. William Lewis provided this test program. */
  14155. {
  14156. char foo[21];
  14157. char bar[21];
  14158. int i;
  14159. for (i = 0; i < 4; i++)
  14160. {
  14161. char *a = foo + i;
  14162. char *b = bar + i;
  14163. strcpy (a, "--------01111111");
  14164. strcpy (b, "--------10000000");
  14165. if (memcmp (a, b, 16) >= 0)
  14166. return 1;
  14167. }
  14168. return 0;
  14169. }
  14170. ;
  14171. return 0;
  14172. }
  14173. _ACEOF
  14174. if ac_fn_c_try_run "$LINENO"; then :
  14175. ac_cv_func_memcmp_working=yes
  14176. else
  14177. ac_cv_func_memcmp_working=no
  14178. fi
  14179. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14180. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14181. fi
  14182. fi
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14184. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14185. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14186. *" memcmp.$ac_objext "* ) ;;
  14187. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14188. ;;
  14189. esac
  14190. if test x$ac_cv_func_memcmp_working = xyes; then
  14191. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14192. fi
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14194. $as_echo_n "checking for working strtod... " >&6; }
  14195. if ${ac_cv_func_strtod+:} false; then :
  14196. $as_echo_n "(cached) " >&6
  14197. else
  14198. if test "$cross_compiling" = yes; then :
  14199. ac_cv_func_strtod=no
  14200. else
  14201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14202. /* end confdefs.h. */
  14203. $ac_includes_default
  14204. #ifndef strtod
  14205. double strtod ();
  14206. #endif
  14207. int
  14208. main()
  14209. {
  14210. {
  14211. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14212. char *string = " +69";
  14213. char *term;
  14214. double value;
  14215. value = strtod (string, &term);
  14216. if (value != 69 || term != (string + 4))
  14217. return 1;
  14218. }
  14219. {
  14220. /* Under Solaris 2.4, strtod returns the wrong value for the
  14221. terminating character under some conditions. */
  14222. char *string = "NaN";
  14223. char *term;
  14224. strtod (string, &term);
  14225. if (term != string && *(term - 1) == 0)
  14226. return 1;
  14227. }
  14228. return 0;
  14229. }
  14230. _ACEOF
  14231. if ac_fn_c_try_run "$LINENO"; then :
  14232. ac_cv_func_strtod=yes
  14233. else
  14234. ac_cv_func_strtod=no
  14235. fi
  14236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14237. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14238. fi
  14239. fi
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14241. $as_echo "$ac_cv_func_strtod" >&6; }
  14242. if test $ac_cv_func_strtod = no; then
  14243. case " $LIBOBJS " in
  14244. *" strtod.$ac_objext "* ) ;;
  14245. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14246. ;;
  14247. esac
  14248. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14249. if test "x$ac_cv_func_pow" = xyes; then :
  14250. fi
  14251. if test $ac_cv_func_pow = no; then
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14253. $as_echo_n "checking for pow in -lm... " >&6; }
  14254. if ${ac_cv_lib_m_pow+:} false; then :
  14255. $as_echo_n "(cached) " >&6
  14256. else
  14257. ac_check_lib_save_LIBS=$LIBS
  14258. LIBS="-lm $LIBS"
  14259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14260. /* end confdefs.h. */
  14261. /* Override any GCC internal prototype to avoid an error.
  14262. Use char because int might match the return type of a GCC
  14263. builtin and then its argument prototype would still apply. */
  14264. #ifdef __cplusplus
  14265. extern "C"
  14266. #endif
  14267. char pow ();
  14268. int
  14269. main ()
  14270. {
  14271. return pow ();
  14272. ;
  14273. return 0;
  14274. }
  14275. _ACEOF
  14276. if ac_fn_c_try_link "$LINENO"; then :
  14277. ac_cv_lib_m_pow=yes
  14278. else
  14279. ac_cv_lib_m_pow=no
  14280. fi
  14281. rm -f core conftest.err conftest.$ac_objext \
  14282. conftest$ac_exeext conftest.$ac_ext
  14283. LIBS=$ac_check_lib_save_LIBS
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14286. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14287. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14288. POW_LIB=-lm
  14289. else
  14290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14291. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14292. fi
  14293. fi
  14294. fi
  14295. if test x$ac_cv_func_strtod = xyes; then
  14296. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14297. fi
  14298. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14299. if test "x$ac_cv_func_mprotect" = xyes; then :
  14300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14301. /* end confdefs.h. */
  14302. #include <sys/types.h>
  14303. #include <sys/mman.h>
  14304. int
  14305. main ()
  14306. {
  14307. ;
  14308. return 0;
  14309. }
  14310. _ACEOF
  14311. if ac_fn_c_try_compile "$LINENO"; then :
  14312. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14313. fi
  14314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14315. fi
  14316. 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
  14317. do :
  14318. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14319. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14320. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14321. cat >>confdefs.h <<_ACEOF
  14322. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14323. _ACEOF
  14324. fi
  14325. done
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14327. $as_echo_n "checking for pow in -lm... " >&6; }
  14328. if ${ac_cv_lib_m_pow+:} false; then :
  14329. $as_echo_n "(cached) " >&6
  14330. else
  14331. ac_check_lib_save_LIBS=$LIBS
  14332. LIBS="-lm $LIBS"
  14333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14334. /* end confdefs.h. */
  14335. /* Override any GCC internal prototype to avoid an error.
  14336. Use char because int might match the return type of a GCC
  14337. builtin and then its argument prototype would still apply. */
  14338. #ifdef __cplusplus
  14339. extern "C"
  14340. #endif
  14341. char pow ();
  14342. int
  14343. main ()
  14344. {
  14345. return pow ();
  14346. ;
  14347. return 0;
  14348. }
  14349. _ACEOF
  14350. if ac_fn_c_try_link "$LINENO"; then :
  14351. ac_cv_lib_m_pow=yes
  14352. else
  14353. ac_cv_lib_m_pow=no
  14354. fi
  14355. rm -f core conftest.err conftest.$ac_objext \
  14356. conftest$ac_exeext conftest.$ac_ext
  14357. LIBS=$ac_check_lib_save_LIBS
  14358. fi
  14359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14360. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14361. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14362. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14363. fi
  14364. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14365. do :
  14366. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14367. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14368. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14369. cat >>confdefs.h <<_ACEOF
  14370. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14371. _ACEOF
  14372. fi
  14373. done
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14375. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14376. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14377. $as_echo_n "(cached) " >&6
  14378. else
  14379. ac_check_lib_save_LIBS=$LIBS
  14380. LIBS="-liconv $LIBS"
  14381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14382. /* end confdefs.h. */
  14383. /* Override any GCC internal prototype to avoid an error.
  14384. Use char because int might match the return type of a GCC
  14385. builtin and then its argument prototype would still apply. */
  14386. #ifdef __cplusplus
  14387. extern "C"
  14388. #endif
  14389. char iconv_open ();
  14390. int
  14391. main ()
  14392. {
  14393. return iconv_open ();
  14394. ;
  14395. return 0;
  14396. }
  14397. _ACEOF
  14398. if ac_fn_c_try_link "$LINENO"; then :
  14399. ac_cv_lib_iconv_iconv_open=yes
  14400. else
  14401. ac_cv_lib_iconv_iconv_open=no
  14402. fi
  14403. rm -f core conftest.err conftest.$ac_objext \
  14404. conftest$ac_exeext conftest.$ac_ext
  14405. LIBS=$ac_check_lib_save_LIBS
  14406. fi
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14408. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14409. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14410. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14411. fi
  14412. for ac_func in iconv
  14413. do :
  14414. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14415. if test "x$ac_cv_func_iconv" = xyes; then :
  14416. cat >>confdefs.h <<_ACEOF
  14417. #define HAVE_ICONV 1
  14418. _ACEOF
  14419. fi
  14420. done
  14421. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14422. "
  14423. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14424. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14425. fi
  14426. fi
  14427. # Check whether --enable-gcc-atomics was given.
  14428. if test "${enable_gcc_atomics+set}" = set; then :
  14429. enableval=$enable_gcc_atomics;
  14430. else
  14431. enable_gcc_atomics=yes
  14432. fi
  14433. if test x$enable_gcc_atomics = xyes; then
  14434. have_gcc_atomics=no
  14435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14436. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14438. /* end confdefs.h. */
  14439. int
  14440. main ()
  14441. {
  14442. int a;
  14443. void *x, *y, *z;
  14444. __sync_lock_test_and_set(&a, 4);
  14445. __sync_lock_test_and_set(&x, y);
  14446. __sync_fetch_and_add(&a, 1);
  14447. __sync_bool_compare_and_swap(&a, 5, 10);
  14448. __sync_bool_compare_and_swap(&x, y, z);
  14449. ;
  14450. return 0;
  14451. }
  14452. _ACEOF
  14453. if ac_fn_c_try_link "$LINENO"; then :
  14454. have_gcc_atomics=yes
  14455. fi
  14456. rm -f core conftest.err conftest.$ac_objext \
  14457. conftest$ac_exeext conftest.$ac_ext
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14459. $as_echo "$have_gcc_atomics" >&6; }
  14460. if test x$have_gcc_atomics = xyes; then
  14461. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14462. else
  14463. # See if we have the minimum operation needed for GCC atomics
  14464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14465. /* end confdefs.h. */
  14466. int
  14467. main ()
  14468. {
  14469. int a;
  14470. __sync_lock_test_and_set(&a, 1);
  14471. __sync_lock_release(&a);
  14472. ;
  14473. return 0;
  14474. }
  14475. _ACEOF
  14476. if ac_fn_c_try_link "$LINENO"; then :
  14477. have_gcc_sync_lock_test_and_set=yes
  14478. fi
  14479. rm -f core conftest.err conftest.$ac_objext \
  14480. conftest$ac_exeext conftest.$ac_ext
  14481. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14482. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14483. fi
  14484. fi
  14485. fi
  14486. # Standard C sources
  14487. SOURCES="$SOURCES $srcdir/src/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14491. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14492. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14498. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14499. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14500. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14501. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14502. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14503. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14504. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14505. # Check whether --enable-atomic was given.
  14506. if test "${enable_atomic+set}" = set; then :
  14507. enableval=$enable_atomic;
  14508. else
  14509. enable_atomic=yes
  14510. fi
  14511. if test x$enable_atomic != xyes; then
  14512. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14513. else
  14514. SUMMARY_modules="${SUMMARY_modules} atomic"
  14515. fi
  14516. # Check whether --enable-audio was given.
  14517. if test "${enable_audio+set}" = set; then :
  14518. enableval=$enable_audio;
  14519. else
  14520. enable_audio=yes
  14521. fi
  14522. if test x$enable_audio != xyes; then
  14523. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14524. else
  14525. SUMMARY_modules="${SUMMARY_modules} audio"
  14526. fi
  14527. # Check whether --enable-video was given.
  14528. if test "${enable_video+set}" = set; then :
  14529. enableval=$enable_video;
  14530. else
  14531. enable_video=yes
  14532. fi
  14533. if test x$enable_video != xyes; then
  14534. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14535. else
  14536. SUMMARY_modules="${SUMMARY_modules} video"
  14537. fi
  14538. # Check whether --enable-render was given.
  14539. if test "${enable_render+set}" = set; then :
  14540. enableval=$enable_render;
  14541. else
  14542. enable_render=yes
  14543. fi
  14544. if test x$enable_render != xyes; then
  14545. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14546. else
  14547. SUMMARY_modules="${SUMMARY_modules} render"
  14548. fi
  14549. # Check whether --enable-events was given.
  14550. if test "${enable_events+set}" = set; then :
  14551. enableval=$enable_events;
  14552. else
  14553. enable_events=yes
  14554. fi
  14555. if test x$enable_events != xyes; then
  14556. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14557. else
  14558. SUMMARY_modules="${SUMMARY_modules} events"
  14559. fi
  14560. # Check whether --enable-joystick was given.
  14561. if test "${enable_joystick+set}" = set; then :
  14562. enableval=$enable_joystick;
  14563. else
  14564. enable_joystick=yes
  14565. fi
  14566. if test x$enable_joystick != xyes; then
  14567. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14568. else
  14569. SUMMARY_modules="${SUMMARY_modules} joystick"
  14570. fi
  14571. # Check whether --enable-haptic was given.
  14572. if test "${enable_haptic+set}" = set; then :
  14573. enableval=$enable_haptic;
  14574. else
  14575. enable_haptic=yes
  14576. fi
  14577. if test x$enable_haptic != xyes; then
  14578. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14579. else
  14580. SUMMARY_modules="${SUMMARY_modules} haptic"
  14581. fi
  14582. # Check whether --enable-power was given.
  14583. if test "${enable_power+set}" = set; then :
  14584. enableval=$enable_power;
  14585. else
  14586. enable_power=yes
  14587. fi
  14588. if test x$enable_power != xyes; then
  14589. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14590. else
  14591. SUMMARY_modules="${SUMMARY_modules} power"
  14592. fi
  14593. # Check whether --enable-filesystem was given.
  14594. if test "${enable_filesystem+set}" = set; then :
  14595. enableval=$enable_filesystem;
  14596. else
  14597. enable_filesystem=yes
  14598. fi
  14599. if test x$enable_filesystem != xyes; then
  14600. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14601. else
  14602. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14603. fi
  14604. # Check whether --enable-threads was given.
  14605. if test "${enable_threads+set}" = set; then :
  14606. enableval=$enable_threads;
  14607. else
  14608. enable_threads=yes
  14609. fi
  14610. if test x$enable_threads != xyes; then
  14611. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14612. else
  14613. SUMMARY_modules="${SUMMARY_modules} threads"
  14614. fi
  14615. # Check whether --enable-timers was given.
  14616. if test "${enable_timers+set}" = set; then :
  14617. enableval=$enable_timers;
  14618. else
  14619. enable_timers=yes
  14620. fi
  14621. if test x$enable_timers != xyes; then
  14622. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14623. else
  14624. SUMMARY_modules="${SUMMARY_modules} timers"
  14625. fi
  14626. # Check whether --enable-file was given.
  14627. if test "${enable_file+set}" = set; then :
  14628. enableval=$enable_file;
  14629. else
  14630. enable_file=yes
  14631. fi
  14632. if test x$enable_file != xyes; then
  14633. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14634. else
  14635. SUMMARY_modules="${SUMMARY_modules} file"
  14636. fi
  14637. # Check whether --enable-loadso was given.
  14638. if test "${enable_loadso+set}" = set; then :
  14639. enableval=$enable_loadso;
  14640. else
  14641. enable_loadso=yes
  14642. fi
  14643. if test x$enable_loadso != xyes; then
  14644. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14645. else
  14646. SUMMARY_modules="${SUMMARY_modules} loadso"
  14647. fi
  14648. # Check whether --enable-cpuinfo was given.
  14649. if test "${enable_cpuinfo+set}" = set; then :
  14650. enableval=$enable_cpuinfo;
  14651. else
  14652. enable_cpuinfo=yes
  14653. fi
  14654. if test x$enable_cpuinfo != xyes; then
  14655. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14656. else
  14657. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14658. fi
  14659. # Check whether --enable-assembly was given.
  14660. if test "${enable_assembly+set}" = set; then :
  14661. enableval=$enable_assembly;
  14662. else
  14663. enable_assembly=yes
  14664. fi
  14665. if test x$enable_assembly = xyes; then
  14666. SUMMARY_modules="${SUMMARY_modules} assembly"
  14667. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14668. # Make sure that we don't generate floating point code that would
  14669. # cause illegal instruction exceptions on older processors
  14670. case "$host" in
  14671. *-*-darwin*)
  14672. # Don't need to worry about Apple hardware, it's all SSE capable
  14673. default_ssemath=yes
  14674. ;;
  14675. *64-*-*)
  14676. # x86 64-bit architectures all have SSE instructions
  14677. default_ssemath=yes
  14678. ;;
  14679. *)
  14680. default_ssemath=no
  14681. ;;
  14682. esac
  14683. # Check whether --enable-ssemath was given.
  14684. if test "${enable_ssemath+set}" = set; then :
  14685. enableval=$enable_ssemath;
  14686. else
  14687. enable_ssemath=$default_ssemath
  14688. fi
  14689. if test x$enable_ssemath = xno; then
  14690. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14691. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14692. fi
  14693. fi
  14694. # Check whether --enable-mmx was given.
  14695. if test "${enable_mmx+set}" = set; then :
  14696. enableval=$enable_mmx;
  14697. else
  14698. enable_mmx=yes
  14699. fi
  14700. if test x$enable_mmx = xyes; then
  14701. save_CFLAGS="$CFLAGS"
  14702. have_gcc_mmx=no
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14704. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14705. mmx_CFLAGS="-mmmx"
  14706. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14708. /* end confdefs.h. */
  14709. #ifdef __MINGW32__
  14710. #include <_mingw.h>
  14711. #ifdef __MINGW64_VERSION_MAJOR
  14712. #include <intrin.h>
  14713. #else
  14714. #include <mmintrin.h>
  14715. #endif
  14716. #else
  14717. #include <mmintrin.h>
  14718. #endif
  14719. #ifndef __MMX__
  14720. #error Assembler CPP flag not enabled
  14721. #endif
  14722. int
  14723. main ()
  14724. {
  14725. ;
  14726. return 0;
  14727. }
  14728. _ACEOF
  14729. if ac_fn_c_try_compile "$LINENO"; then :
  14730. have_gcc_mmx=yes
  14731. fi
  14732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14734. $as_echo "$have_gcc_mmx" >&6; }
  14735. CFLAGS="$save_CFLAGS"
  14736. if test x$have_gcc_mmx = xyes; then
  14737. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14738. SUMMARY_math="${SUMMARY_math} mmx"
  14739. fi
  14740. fi
  14741. # Check whether --enable-3dnow was given.
  14742. if test "${enable_3dnow+set}" = set; then :
  14743. enableval=$enable_3dnow;
  14744. else
  14745. enable_3dnow=yes
  14746. fi
  14747. if test x$enable_3dnow = xyes; then
  14748. save_CFLAGS="$CFLAGS"
  14749. have_gcc_3dnow=no
  14750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14751. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14752. amd3dnow_CFLAGS="-m3dnow"
  14753. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14755. /* end confdefs.h. */
  14756. #include <mm3dnow.h>
  14757. #ifndef __3dNOW__
  14758. #error Assembler CPP flag not enabled
  14759. #endif
  14760. int
  14761. main ()
  14762. {
  14763. void *p = 0;
  14764. _m_prefetch(p);
  14765. ;
  14766. return 0;
  14767. }
  14768. _ACEOF
  14769. if ac_fn_c_try_link "$LINENO"; then :
  14770. have_gcc_3dnow=yes
  14771. fi
  14772. rm -f core conftest.err conftest.$ac_objext \
  14773. conftest$ac_exeext conftest.$ac_ext
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14775. $as_echo "$have_gcc_3dnow" >&6; }
  14776. CFLAGS="$save_CFLAGS"
  14777. if test x$have_gcc_3dnow = xyes; then
  14778. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14779. SUMMARY_math="${SUMMARY_math} 3dnow"
  14780. fi
  14781. fi
  14782. # Check whether --enable-sse was given.
  14783. if test "${enable_sse+set}" = set; then :
  14784. enableval=$enable_sse;
  14785. else
  14786. enable_sse=yes
  14787. fi
  14788. if test x$enable_sse = xyes; then
  14789. save_CFLAGS="$CFLAGS"
  14790. have_gcc_sse=no
  14791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14792. $as_echo_n "checking for GCC -msse option... " >&6; }
  14793. sse_CFLAGS="-msse"
  14794. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14796. /* end confdefs.h. */
  14797. #ifdef __MINGW32__
  14798. #include <_mingw.h>
  14799. #ifdef __MINGW64_VERSION_MAJOR
  14800. #include <intrin.h>
  14801. #else
  14802. #include <xmmintrin.h>
  14803. #endif
  14804. #else
  14805. #include <xmmintrin.h>
  14806. #endif
  14807. #ifndef __SSE__
  14808. #error Assembler CPP flag not enabled
  14809. #endif
  14810. int
  14811. main ()
  14812. {
  14813. ;
  14814. return 0;
  14815. }
  14816. _ACEOF
  14817. if ac_fn_c_try_compile "$LINENO"; then :
  14818. have_gcc_sse=yes
  14819. fi
  14820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14822. $as_echo "$have_gcc_sse" >&6; }
  14823. CFLAGS="$save_CFLAGS"
  14824. if test x$have_gcc_sse = xyes; then
  14825. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14826. SUMMARY_math="${SUMMARY_math} sse"
  14827. fi
  14828. fi
  14829. # Check whether --enable-sse2 was given.
  14830. if test "${enable_sse2+set}" = set; then :
  14831. enableval=$enable_sse2;
  14832. else
  14833. enable_sse2=$default_ssemath
  14834. fi
  14835. if test x$enable_sse2 = xyes; then
  14836. save_CFLAGS="$CFLAGS"
  14837. have_gcc_sse2=no
  14838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14839. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14840. sse2_CFLAGS="-msse2"
  14841. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14843. /* end confdefs.h. */
  14844. #ifdef __MINGW32__
  14845. #include <_mingw.h>
  14846. #ifdef __MINGW64_VERSION_MAJOR
  14847. #include <intrin.h>
  14848. #else
  14849. #include <emmintrin.h>
  14850. #endif
  14851. #else
  14852. #include <emmintrin.h>
  14853. #endif
  14854. #ifndef __SSE2__
  14855. #error Assembler CPP flag not enabled
  14856. #endif
  14857. int
  14858. main ()
  14859. {
  14860. ;
  14861. return 0;
  14862. }
  14863. _ACEOF
  14864. if ac_fn_c_try_compile "$LINENO"; then :
  14865. have_gcc_sse2=yes
  14866. fi
  14867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14869. $as_echo "$have_gcc_sse2" >&6; }
  14870. CFLAGS="$save_CFLAGS"
  14871. if test x$have_gcc_sse2 = xyes; then
  14872. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14873. SUMMARY_math="${SUMMARY_math} sse2"
  14874. fi
  14875. fi
  14876. # Check whether --enable-altivec was given.
  14877. if test "${enable_altivec+set}" = set; then :
  14878. enableval=$enable_altivec;
  14879. else
  14880. enable_altivec=yes
  14881. fi
  14882. if test x$enable_altivec = xyes; then
  14883. save_CFLAGS="$CFLAGS"
  14884. have_gcc_altivec=no
  14885. have_altivec_h_hdr=no
  14886. altivec_CFLAGS="-maltivec"
  14887. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14889. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14891. /* end confdefs.h. */
  14892. #include <altivec.h>
  14893. vector unsigned int vzero() {
  14894. return vec_splat_u32(0);
  14895. }
  14896. int
  14897. main ()
  14898. {
  14899. ;
  14900. return 0;
  14901. }
  14902. _ACEOF
  14903. if ac_fn_c_try_compile "$LINENO"; then :
  14904. have_gcc_altivec=yes
  14905. have_altivec_h_hdr=yes
  14906. fi
  14907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14909. $as_echo "$have_gcc_altivec" >&6; }
  14910. if test x$have_gcc_altivec = xno; then
  14911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14912. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14914. /* end confdefs.h. */
  14915. vector unsigned int vzero() {
  14916. return vec_splat_u32(0);
  14917. }
  14918. int
  14919. main ()
  14920. {
  14921. ;
  14922. return 0;
  14923. }
  14924. _ACEOF
  14925. if ac_fn_c_try_compile "$LINENO"; then :
  14926. have_gcc_altivec=yes
  14927. fi
  14928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14930. $as_echo "$have_gcc_altivec" >&6; }
  14931. fi
  14932. if test x$have_gcc_altivec = xno; then
  14933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14934. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14935. altivec_CFLAGS="-faltivec"
  14936. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14938. /* end confdefs.h. */
  14939. #include <altivec.h>
  14940. vector unsigned int vzero() {
  14941. return vec_splat_u32(0);
  14942. }
  14943. int
  14944. main ()
  14945. {
  14946. ;
  14947. return 0;
  14948. }
  14949. _ACEOF
  14950. if ac_fn_c_try_compile "$LINENO"; then :
  14951. have_gcc_altivec=yes
  14952. have_altivec_h_hdr=yes
  14953. fi
  14954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14956. $as_echo "$have_gcc_altivec" >&6; }
  14957. fi
  14958. if test x$have_gcc_altivec = xno; then
  14959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14960. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14962. /* end confdefs.h. */
  14963. vector unsigned int vzero() {
  14964. return vec_splat_u32(0);
  14965. }
  14966. int
  14967. main ()
  14968. {
  14969. ;
  14970. return 0;
  14971. }
  14972. _ACEOF
  14973. if ac_fn_c_try_compile "$LINENO"; then :
  14974. have_gcc_altivec=yes
  14975. fi
  14976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14978. $as_echo "$have_gcc_altivec" >&6; }
  14979. fi
  14980. CFLAGS="$save_CFLAGS"
  14981. if test x$have_gcc_altivec = xyes; then
  14982. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14983. if test x$have_altivec_h_hdr = xyes; then
  14984. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14985. fi
  14986. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14987. SUMMARY_math="${SUMMARY_math} altivec"
  14988. fi
  14989. fi
  14990. fi
  14991. CheckOSS()
  14992. {
  14993. # Check whether --enable-oss was given.
  14994. if test "${enable_oss+set}" = set; then :
  14995. enableval=$enable_oss;
  14996. else
  14997. enable_oss=maybe
  14998. fi
  14999. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15000. # use sndio instead. So on there, we default to disabled. You can force
  15001. # it on if you really want, though.
  15002. if test x$enable_oss = xmaybe; then
  15003. enable_oss=yes
  15004. case "$host" in
  15005. *-*-openbsd*)
  15006. enable_oss=no;;
  15007. esac
  15008. fi
  15009. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15011. $as_echo_n "checking for OSS audio support... " >&6; }
  15012. have_oss=no
  15013. if test x$have_oss != xyes; then
  15014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15015. /* end confdefs.h. */
  15016. #include <sys/soundcard.h>
  15017. int
  15018. main ()
  15019. {
  15020. int arg = SNDCTL_DSP_SETFRAGMENT;
  15021. ;
  15022. return 0;
  15023. }
  15024. _ACEOF
  15025. if ac_fn_c_try_compile "$LINENO"; then :
  15026. have_oss=yes
  15027. fi
  15028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15029. fi
  15030. if test x$have_oss != xyes; then
  15031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15032. /* end confdefs.h. */
  15033. #include <soundcard.h>
  15034. int
  15035. main ()
  15036. {
  15037. int arg = SNDCTL_DSP_SETFRAGMENT;
  15038. ;
  15039. return 0;
  15040. }
  15041. _ACEOF
  15042. if ac_fn_c_try_compile "$LINENO"; then :
  15043. have_oss=yes
  15044. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15045. fi
  15046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15047. fi
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15049. $as_echo "$have_oss" >&6; }
  15050. if test x$have_oss = xyes; then
  15051. SUMMARY_audio="${SUMMARY_audio} oss"
  15052. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15053. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15054. have_audio=yes
  15055. # We may need to link with ossaudio emulation library
  15056. case "$host" in
  15057. *-*-openbsd*|*-*-netbsd*)
  15058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15059. esac
  15060. fi
  15061. fi
  15062. }
  15063. CheckALSA()
  15064. {
  15065. # Check whether --enable-alsa was given.
  15066. if test "${enable_alsa+set}" = set; then :
  15067. enableval=$enable_alsa;
  15068. else
  15069. enable_alsa=yes
  15070. fi
  15071. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15072. alsa_save_CFLAGS="$CFLAGS"
  15073. alsa_save_LDFLAGS="$LDFLAGS"
  15074. alsa_save_LIBS="$LIBS"
  15075. alsa_found=yes
  15076. # Check whether --with-alsa-prefix was given.
  15077. if test "${with_alsa_prefix+set}" = set; then :
  15078. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15079. else
  15080. alsa_prefix=""
  15081. fi
  15082. # Check whether --with-alsa-inc-prefix was given.
  15083. if test "${with_alsa_inc_prefix+set}" = set; then :
  15084. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15085. else
  15086. alsa_inc_prefix=""
  15087. fi
  15088. # Check whether --enable-alsatest was given.
  15089. if test "${enable_alsatest+set}" = set; then :
  15090. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15091. else
  15092. enable_alsatest=yes
  15093. fi
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15095. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15096. if test "$alsa_inc_prefix" != "" ; then
  15097. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15098. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15099. fi
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15101. $as_echo "$ALSA_CFLAGS" >&6; }
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15103. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15104. if test "$alsa_prefix" != "" ; then
  15105. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15106. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15107. fi
  15108. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15109. LIBS=`echo $LIBS | sed 's/-lm//'`
  15110. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15111. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15112. LIBS=`echo $LIBS | sed 's/ //'`
  15113. LIBS="$ALSA_LIBS $LIBS"
  15114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15115. $as_echo "$ALSA_LIBS" >&6; }
  15116. min_alsa_version=0.9.0
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15118. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15119. no_alsa=""
  15120. alsa_min_major_version=`echo $min_alsa_version | \
  15121. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15122. alsa_min_minor_version=`echo $min_alsa_version | \
  15123. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15124. alsa_min_micro_version=`echo $min_alsa_version | \
  15125. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15126. ac_ext=c
  15127. ac_cpp='$CPP $CPPFLAGS'
  15128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15132. /* end confdefs.h. */
  15133. #include <alsa/asoundlib.h>
  15134. int
  15135. main ()
  15136. {
  15137. /* ensure backward compatibility */
  15138. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15139. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15140. #endif
  15141. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15142. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15143. #endif
  15144. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15145. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15146. #endif
  15147. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15148. exit(0);
  15149. # else
  15150. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15151. # error not present
  15152. # endif
  15153. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15154. exit(0);
  15155. # else
  15156. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15157. # error not present
  15158. # endif
  15159. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15160. # error not present
  15161. # endif
  15162. # endif
  15163. # endif
  15164. exit(0);
  15165. ;
  15166. return 0;
  15167. }
  15168. _ACEOF
  15169. if ac_fn_c_try_compile "$LINENO"; then :
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15171. $as_echo "found." >&6; }
  15172. else
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15174. $as_echo "not present." >&6; }
  15175. alsa_found=no
  15176. fi
  15177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15178. ac_ext=c
  15179. ac_cpp='$CPP $CPPFLAGS'
  15180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15183. if test "x$enable_alsatest" = "xyes"; then
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15185. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15186. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15187. $as_echo_n "(cached) " >&6
  15188. else
  15189. ac_check_lib_save_LIBS=$LIBS
  15190. LIBS="-lasound $LIBS"
  15191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15192. /* end confdefs.h. */
  15193. /* Override any GCC internal prototype to avoid an error.
  15194. Use char because int might match the return type of a GCC
  15195. builtin and then its argument prototype would still apply. */
  15196. #ifdef __cplusplus
  15197. extern "C"
  15198. #endif
  15199. char snd_ctl_open ();
  15200. int
  15201. main ()
  15202. {
  15203. return snd_ctl_open ();
  15204. ;
  15205. return 0;
  15206. }
  15207. _ACEOF
  15208. if ac_fn_c_try_link "$LINENO"; then :
  15209. ac_cv_lib_asound_snd_ctl_open=yes
  15210. else
  15211. ac_cv_lib_asound_snd_ctl_open=no
  15212. fi
  15213. rm -f core conftest.err conftest.$ac_objext \
  15214. conftest$ac_exeext conftest.$ac_ext
  15215. LIBS=$ac_check_lib_save_LIBS
  15216. fi
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15218. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15219. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15220. cat >>confdefs.h <<_ACEOF
  15221. #define HAVE_LIBASOUND 1
  15222. _ACEOF
  15223. LIBS="-lasound $LIBS"
  15224. else
  15225. alsa_found=no
  15226. fi
  15227. fi
  15228. if test "x$alsa_found" = "xyes" ; then
  15229. have_alsa=yes
  15230. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15231. LIBS=`echo $LIBS | sed 's/ //'`
  15232. LIBS="-lasound $LIBS"
  15233. fi
  15234. if test "x$alsa_found" = "xno" ; then
  15235. have_alsa=no
  15236. CFLAGS="$alsa_save_CFLAGS"
  15237. LDFLAGS="$alsa_save_LDFLAGS"
  15238. LIBS="$alsa_save_LIBS"
  15239. ALSA_CFLAGS=""
  15240. ALSA_LIBS=""
  15241. fi
  15242. # Restore all flags from before the ALSA detection runs
  15243. CFLAGS="$alsa_save_CFLAGS"
  15244. LDFLAGS="$alsa_save_LDFLAGS"
  15245. LIBS="$alsa_save_LIBS"
  15246. if test x$have_alsa = xyes; then
  15247. # Check whether --enable-alsa-shared was given.
  15248. if test "${enable_alsa_shared+set}" = set; then :
  15249. enableval=$enable_alsa_shared;
  15250. else
  15251. enable_alsa_shared=yes
  15252. fi
  15253. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15254. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15255. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15256. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15257. if test x$have_loadso != xyes && \
  15258. test x$enable_alsa_shared = xyes; then
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15260. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15261. fi
  15262. if test x$have_loadso = xyes && \
  15263. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15264. echo "-- dynamic libasound -> $alsa_lib"
  15265. cat >>confdefs.h <<_ACEOF
  15266. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15267. _ACEOF
  15268. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15269. else
  15270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15271. SUMMARY_audio="${SUMMARY_audio} alsa"
  15272. fi
  15273. have_audio=yes
  15274. fi
  15275. fi
  15276. }
  15277. CheckESD()
  15278. {
  15279. # Check whether --enable-esd was given.
  15280. if test "${enable_esd+set}" = set; then :
  15281. enableval=$enable_esd;
  15282. else
  15283. enable_esd=yes
  15284. fi
  15285. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15286. # Check whether --with-esd-prefix was given.
  15287. if test "${with_esd_prefix+set}" = set; then :
  15288. withval=$with_esd_prefix; esd_prefix="$withval"
  15289. else
  15290. esd_prefix=""
  15291. fi
  15292. # Check whether --with-esd-exec-prefix was given.
  15293. if test "${with_esd_exec_prefix+set}" = set; then :
  15294. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15295. else
  15296. esd_exec_prefix=""
  15297. fi
  15298. # Check whether --enable-esdtest was given.
  15299. if test "${enable_esdtest+set}" = set; then :
  15300. enableval=$enable_esdtest;
  15301. else
  15302. enable_esdtest=yes
  15303. fi
  15304. if test x$esd_exec_prefix != x ; then
  15305. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15306. if test x${ESD_CONFIG+set} != xset ; then
  15307. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15308. fi
  15309. fi
  15310. if test x$esd_prefix != x ; then
  15311. esd_args="$esd_args --prefix=$esd_prefix"
  15312. if test x${ESD_CONFIG+set} != xset ; then
  15313. ESD_CONFIG=$esd_prefix/bin/esd-config
  15314. fi
  15315. fi
  15316. # Extract the first word of "esd-config", so it can be a program name with args.
  15317. set dummy esd-config; ac_word=$2
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15319. $as_echo_n "checking for $ac_word... " >&6; }
  15320. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15321. $as_echo_n "(cached) " >&6
  15322. else
  15323. case $ESD_CONFIG in
  15324. [\\/]* | ?:[\\/]*)
  15325. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15326. ;;
  15327. *)
  15328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15329. for as_dir in $PATH
  15330. do
  15331. IFS=$as_save_IFS
  15332. test -z "$as_dir" && as_dir=.
  15333. for ac_exec_ext in '' $ac_executable_extensions; do
  15334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15335. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15337. break 2
  15338. fi
  15339. done
  15340. done
  15341. IFS=$as_save_IFS
  15342. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15343. ;;
  15344. esac
  15345. fi
  15346. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15347. if test -n "$ESD_CONFIG"; then
  15348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15349. $as_echo "$ESD_CONFIG" >&6; }
  15350. else
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15352. $as_echo "no" >&6; }
  15353. fi
  15354. min_esd_version=0.2.8
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15356. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15357. no_esd=""
  15358. if test "$ESD_CONFIG" = "no" ; then
  15359. no_esd=yes
  15360. else
  15361. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15362. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15363. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15364. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15365. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15366. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15367. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15368. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15369. if test "x$enable_esdtest" = "xyes" ; then
  15370. ac_save_CFLAGS="$CFLAGS"
  15371. ac_save_LIBS="$LIBS"
  15372. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15373. LIBS="$LIBS $ESD_LIBS"
  15374. rm -f conf.esdtest
  15375. if test "$cross_compiling" = yes; then :
  15376. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15377. else
  15378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15379. /* end confdefs.h. */
  15380. #include <stdio.h>
  15381. #include <stdlib.h>
  15382. #include <string.h>
  15383. #include <esd.h>
  15384. char*
  15385. my_strdup (char *str)
  15386. {
  15387. char *new_str;
  15388. if (str)
  15389. {
  15390. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15391. strcpy (new_str, str);
  15392. }
  15393. else
  15394. new_str = NULL;
  15395. return new_str;
  15396. }
  15397. int main ()
  15398. {
  15399. int major, minor, micro;
  15400. char *tmp_version;
  15401. system ("touch conf.esdtest");
  15402. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15403. tmp_version = my_strdup("$min_esd_version");
  15404. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15405. printf("%s, bad version string\n", "$min_esd_version");
  15406. exit(1);
  15407. }
  15408. if (($esd_major_version > major) ||
  15409. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15410. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15411. {
  15412. return 0;
  15413. }
  15414. else
  15415. {
  15416. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15417. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15418. printf("*** best to upgrade to the required version.\n");
  15419. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15420. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15421. printf("*** config.cache before re-running configure\n");
  15422. return 1;
  15423. }
  15424. }
  15425. _ACEOF
  15426. if ac_fn_c_try_run "$LINENO"; then :
  15427. else
  15428. no_esd=yes
  15429. fi
  15430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15431. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15432. fi
  15433. CFLAGS="$ac_save_CFLAGS"
  15434. LIBS="$ac_save_LIBS"
  15435. fi
  15436. fi
  15437. if test "x$no_esd" = x ; then
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15439. $as_echo "yes" >&6; }
  15440. have_esd=yes
  15441. else
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15443. $as_echo "no" >&6; }
  15444. if test "$ESD_CONFIG" = "no" ; then
  15445. echo "*** The esd-config script installed by ESD could not be found"
  15446. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15447. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15448. echo "*** full path to esd-config."
  15449. else
  15450. if test -f conf.esdtest ; then
  15451. :
  15452. else
  15453. echo "*** Could not run ESD test program, checking why..."
  15454. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15455. LIBS="$LIBS $ESD_LIBS"
  15456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15457. /* end confdefs.h. */
  15458. #include <stdio.h>
  15459. #include <esd.h>
  15460. int
  15461. main ()
  15462. {
  15463. return 0;
  15464. ;
  15465. return 0;
  15466. }
  15467. _ACEOF
  15468. if ac_fn_c_try_link "$LINENO"; then :
  15469. echo "*** The test program compiled, but did not run. This usually means"
  15470. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15471. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15472. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15473. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15474. echo "*** is required on your system"
  15475. echo "***"
  15476. echo "*** If you have an old version installed, it is best to remove it, although"
  15477. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15478. else
  15479. echo "*** The test program failed to compile or link. See the file config.log for the"
  15480. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15481. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15482. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15483. fi
  15484. rm -f core conftest.err conftest.$ac_objext \
  15485. conftest$ac_exeext conftest.$ac_ext
  15486. CFLAGS="$ac_save_CFLAGS"
  15487. LIBS="$ac_save_LIBS"
  15488. fi
  15489. fi
  15490. ESD_CFLAGS=""
  15491. ESD_LIBS=""
  15492. have_esd=no
  15493. fi
  15494. rm -f conf.esdtest
  15495. if test x$have_esd = xyes; then
  15496. # Check whether --enable-esd-shared was given.
  15497. if test "${enable_esd_shared+set}" = set; then :
  15498. enableval=$enable_esd_shared;
  15499. else
  15500. enable_esd_shared=yes
  15501. fi
  15502. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15503. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15504. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15505. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15506. if test x$have_loadso != xyes && \
  15507. test x$enable_esd_shared = xyes; then
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15509. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15510. fi
  15511. if test x$have_loadso = xyes && \
  15512. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15513. echo "-- dynamic libesd -> $esd_lib"
  15514. cat >>confdefs.h <<_ACEOF
  15515. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15516. _ACEOF
  15517. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15518. else
  15519. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15520. SUMMARY_audio="${SUMMARY_audio} esd"
  15521. fi
  15522. have_audio=yes
  15523. fi
  15524. fi
  15525. }
  15526. CheckPulseAudio()
  15527. {
  15528. # Check whether --enable-pulseaudio was given.
  15529. if test "${enable_pulseaudio+set}" = set; then :
  15530. enableval=$enable_pulseaudio;
  15531. else
  15532. enable_pulseaudio=yes
  15533. fi
  15534. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15535. audio_pulseaudio=no
  15536. PULSEAUDIO_REQUIRED_VERSION=0.9
  15537. # Extract the first word of "pkg-config", so it can be a program name with args.
  15538. set dummy pkg-config; ac_word=$2
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15540. $as_echo_n "checking for $ac_word... " >&6; }
  15541. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15542. $as_echo_n "(cached) " >&6
  15543. else
  15544. case $PKG_CONFIG in
  15545. [\\/]* | ?:[\\/]*)
  15546. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15547. ;;
  15548. *)
  15549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15550. for as_dir in $PATH
  15551. do
  15552. IFS=$as_save_IFS
  15553. test -z "$as_dir" && as_dir=.
  15554. for ac_exec_ext in '' $ac_executable_extensions; do
  15555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15556. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15558. break 2
  15559. fi
  15560. done
  15561. done
  15562. IFS=$as_save_IFS
  15563. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15564. ;;
  15565. esac
  15566. fi
  15567. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15568. if test -n "$PKG_CONFIG"; then
  15569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15570. $as_echo "$PKG_CONFIG" >&6; }
  15571. else
  15572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15573. $as_echo "no" >&6; }
  15574. fi
  15575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15576. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15577. if test x$PKG_CONFIG != xno; then
  15578. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15579. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15580. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15581. audio_pulseaudio=yes
  15582. fi
  15583. fi
  15584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15585. $as_echo "$audio_pulseaudio" >&6; }
  15586. if test x$audio_pulseaudio = xyes; then
  15587. # Check whether --enable-pulseaudio-shared was given.
  15588. if test "${enable_pulseaudio_shared+set}" = set; then :
  15589. enableval=$enable_pulseaudio_shared;
  15590. else
  15591. enable_pulseaudio_shared=yes
  15592. fi
  15593. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15594. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15595. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15596. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15597. if test x$have_loadso != xyes && \
  15598. test x$enable_pulseaudio_shared = xyes; then
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15600. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15601. fi
  15602. if test x$have_loadso = xyes && \
  15603. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15604. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15605. cat >>confdefs.h <<_ACEOF
  15606. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15607. _ACEOF
  15608. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15609. case "$host" in
  15610. # On Solaris, pulseaudio must be linked deferred explicitly
  15611. # to prevent undefined symbol failures.
  15612. *-*-solaris*)
  15613. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15615. esac
  15616. else
  15617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15618. SUMMARY_audio="${SUMMARY_audio} pulse"
  15619. fi
  15620. have_audio=yes
  15621. fi
  15622. fi
  15623. }
  15624. CheckARTSC()
  15625. {
  15626. # Check whether --enable-arts was given.
  15627. if test "${enable_arts+set}" = set; then :
  15628. enableval=$enable_arts;
  15629. else
  15630. enable_arts=yes
  15631. fi
  15632. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15633. # Extract the first word of "artsc-config", so it can be a program name with args.
  15634. set dummy artsc-config; ac_word=$2
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15636. $as_echo_n "checking for $ac_word... " >&6; }
  15637. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15638. $as_echo_n "(cached) " >&6
  15639. else
  15640. case $ARTSCONFIG in
  15641. [\\/]* | ?:[\\/]*)
  15642. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15643. ;;
  15644. *)
  15645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15646. for as_dir in $PATH
  15647. do
  15648. IFS=$as_save_IFS
  15649. test -z "$as_dir" && as_dir=.
  15650. for ac_exec_ext in '' $ac_executable_extensions; do
  15651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15652. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15654. break 2
  15655. fi
  15656. done
  15657. done
  15658. IFS=$as_save_IFS
  15659. ;;
  15660. esac
  15661. fi
  15662. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15663. if test -n "$ARTSCONFIG"; then
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15665. $as_echo "$ARTSCONFIG" >&6; }
  15666. else
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15668. $as_echo "no" >&6; }
  15669. fi
  15670. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15671. : # arts isn't installed
  15672. else
  15673. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15674. ARTS_LIBS=`$ARTSCONFIG --libs`
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15676. $as_echo_n "checking for aRts development environment... " >&6; }
  15677. audio_arts=no
  15678. save_CFLAGS="$CFLAGS"
  15679. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15681. /* end confdefs.h. */
  15682. #include <artsc.h>
  15683. int
  15684. main ()
  15685. {
  15686. arts_stream_t stream;
  15687. ;
  15688. return 0;
  15689. }
  15690. _ACEOF
  15691. if ac_fn_c_try_compile "$LINENO"; then :
  15692. audio_arts=yes
  15693. fi
  15694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15695. CFLAGS="$save_CFLAGS"
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15697. $as_echo "$audio_arts" >&6; }
  15698. if test x$audio_arts = xyes; then
  15699. # Check whether --enable-arts-shared was given.
  15700. if test "${enable_arts_shared+set}" = set; then :
  15701. enableval=$enable_arts_shared;
  15702. else
  15703. enable_arts_shared=yes
  15704. fi
  15705. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15706. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15707. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15708. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15709. if test x$have_loadso != xyes && \
  15710. test x$enable_arts_shared = xyes; then
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15712. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15713. fi
  15714. if test x$have_loadso = xyes && \
  15715. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15716. echo "-- dynamic libartsc -> $arts_lib"
  15717. cat >>confdefs.h <<_ACEOF
  15718. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15719. _ACEOF
  15720. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15721. else
  15722. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15723. SUMMARY_audio="${SUMMARY_audio} arts"
  15724. fi
  15725. have_audio=yes
  15726. fi
  15727. fi
  15728. fi
  15729. }
  15730. CheckNAS()
  15731. {
  15732. # Check whether --enable-nas was given.
  15733. if test "${enable_nas+set}" = set; then :
  15734. enableval=$enable_nas;
  15735. else
  15736. enable_nas=yes
  15737. fi
  15738. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15739. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15740. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15741. have_nas_hdr=yes
  15742. fi
  15743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15744. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15745. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15746. $as_echo_n "(cached) " >&6
  15747. else
  15748. ac_check_lib_save_LIBS=$LIBS
  15749. LIBS="-laudio $LIBS"
  15750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15751. /* end confdefs.h. */
  15752. /* Override any GCC internal prototype to avoid an error.
  15753. Use char because int might match the return type of a GCC
  15754. builtin and then its argument prototype would still apply. */
  15755. #ifdef __cplusplus
  15756. extern "C"
  15757. #endif
  15758. char AuOpenServer ();
  15759. int
  15760. main ()
  15761. {
  15762. return AuOpenServer ();
  15763. ;
  15764. return 0;
  15765. }
  15766. _ACEOF
  15767. if ac_fn_c_try_link "$LINENO"; then :
  15768. ac_cv_lib_audio_AuOpenServer=yes
  15769. else
  15770. ac_cv_lib_audio_AuOpenServer=no
  15771. fi
  15772. rm -f core conftest.err conftest.$ac_objext \
  15773. conftest$ac_exeext conftest.$ac_ext
  15774. LIBS=$ac_check_lib_save_LIBS
  15775. fi
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15777. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15778. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15779. have_nas_lib=yes
  15780. fi
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15782. $as_echo_n "checking for NAS audio support... " >&6; }
  15783. have_nas=no
  15784. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15785. have_nas=yes
  15786. NAS_LIBS="-laudio"
  15787. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15788. have_nas=yes
  15789. NAS_CFLAGS="-I/usr/X11R6/include/"
  15790. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15791. fi
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15793. $as_echo "$have_nas" >&6; }
  15794. if test x$have_nas = xyes; then
  15795. # Check whether --enable-nas-shared was given.
  15796. if test "${enable_nas_shared+set}" = set; then :
  15797. enableval=$enable_nas_shared;
  15798. else
  15799. enable_nas_shared=yes
  15800. fi
  15801. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15802. if test x$have_loadso != xyes && \
  15803. test x$enable_nas_shared = xyes; then
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15805. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15806. fi
  15807. if test x$have_loadso = xyes && \
  15808. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15809. echo "-- dynamic libaudio -> $nas_lib"
  15810. cat >>confdefs.h <<_ACEOF
  15811. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15812. _ACEOF
  15813. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15814. else
  15815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15816. SUMMARY_audio="${SUMMARY_audio} nas"
  15817. fi
  15818. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15819. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15820. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15821. have_audio=yes
  15822. fi
  15823. fi
  15824. }
  15825. CheckSNDIO()
  15826. {
  15827. # Check whether --enable-sndio was given.
  15828. if test "${enable_sndio+set}" = set; then :
  15829. enableval=$enable_sndio;
  15830. else
  15831. enable_sndio=yes
  15832. fi
  15833. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15834. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15835. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15836. have_sndio_hdr=yes
  15837. fi
  15838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15839. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15840. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15841. $as_echo_n "(cached) " >&6
  15842. else
  15843. ac_check_lib_save_LIBS=$LIBS
  15844. LIBS="-lsndio $LIBS"
  15845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15846. /* end confdefs.h. */
  15847. /* Override any GCC internal prototype to avoid an error.
  15848. Use char because int might match the return type of a GCC
  15849. builtin and then its argument prototype would still apply. */
  15850. #ifdef __cplusplus
  15851. extern "C"
  15852. #endif
  15853. char sio_open ();
  15854. int
  15855. main ()
  15856. {
  15857. return sio_open ();
  15858. ;
  15859. return 0;
  15860. }
  15861. _ACEOF
  15862. if ac_fn_c_try_link "$LINENO"; then :
  15863. ac_cv_lib_sndio_sio_open=yes
  15864. else
  15865. ac_cv_lib_sndio_sio_open=no
  15866. fi
  15867. rm -f core conftest.err conftest.$ac_objext \
  15868. conftest$ac_exeext conftest.$ac_ext
  15869. LIBS=$ac_check_lib_save_LIBS
  15870. fi
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15872. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15873. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15874. have_sndio_lib=yes
  15875. fi
  15876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15877. $as_echo_n "checking for sndio audio support... " >&6; }
  15878. have_sndio=no
  15879. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15880. have_sndio=yes
  15881. SNDIO_LIBS="-lsndio"
  15882. fi
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15884. $as_echo "$have_sndio" >&6; }
  15885. if test x$have_sndio = xyes; then
  15886. # Check whether --enable-sndio-shared was given.
  15887. if test "${enable_sndio_shared+set}" = set; then :
  15888. enableval=$enable_sndio_shared;
  15889. else
  15890. enable_sndio_shared=yes
  15891. fi
  15892. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15893. if test x$have_loadso != xyes && \
  15894. test x$enable_sndio_shared = xyes; then
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15896. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15897. fi
  15898. if test x$have_loadso = xyes && \
  15899. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15900. echo "-- dynamic libsndio -> $sndio_lib"
  15901. cat >>confdefs.h <<_ACEOF
  15902. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15903. _ACEOF
  15904. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15905. else
  15906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15907. SUMMARY_audio="${SUMMARY_audio} sndio"
  15908. fi
  15909. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15910. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15911. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15912. have_audio=yes
  15913. fi
  15914. fi
  15915. }
  15916. CheckDiskAudio()
  15917. {
  15918. # Check whether --enable-diskaudio was given.
  15919. if test "${enable_diskaudio+set}" = set; then :
  15920. enableval=$enable_diskaudio;
  15921. else
  15922. enable_diskaudio=yes
  15923. fi
  15924. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15925. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15926. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15927. SUMMARY_audio="${SUMMARY_audio} disk"
  15928. fi
  15929. }
  15930. CheckDummyAudio()
  15931. {
  15932. # Check whether --enable-dummyaudio was given.
  15933. if test "${enable_dummyaudio+set}" = set; then :
  15934. enableval=$enable_dummyaudio;
  15935. else
  15936. enable_dummyaudio=yes
  15937. fi
  15938. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15939. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15940. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15941. SUMMARY_audio="${SUMMARY_audio} dummy"
  15942. fi
  15943. }
  15944. CheckVisibilityHidden()
  15945. {
  15946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15947. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15948. have_gcc_fvisibility=no
  15949. visibility_CFLAGS="-fvisibility=hidden"
  15950. save_CFLAGS="$CFLAGS"
  15951. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15953. /* end confdefs.h. */
  15954. #if !defined(__GNUC__) || __GNUC__ < 4
  15955. #error SDL only uses visibility attributes in GCC 4 or newer
  15956. #endif
  15957. int
  15958. main ()
  15959. {
  15960. ;
  15961. return 0;
  15962. }
  15963. _ACEOF
  15964. if ac_fn_c_try_compile "$LINENO"; then :
  15965. have_gcc_fvisibility=yes
  15966. fi
  15967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15969. $as_echo "$have_gcc_fvisibility" >&6; }
  15970. CFLAGS="$save_CFLAGS"
  15971. if test x$have_gcc_fvisibility = xyes; then
  15972. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15973. fi
  15974. }
  15975. CheckStackBoundary()
  15976. {
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15978. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15979. have_gcc_preferred_stack_boundary=no
  15980. save_CFLAGS="$CFLAGS"
  15981. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. int x = 0;
  15985. int
  15986. main ()
  15987. {
  15988. ;
  15989. return 0;
  15990. }
  15991. _ACEOF
  15992. if ac_fn_c_try_compile "$LINENO"; then :
  15993. have_gcc_preferred_stack_boundary=yes
  15994. fi
  15995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15997. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15998. CFLAGS="$save_CFLAGS"
  15999. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16000. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16001. fi
  16002. }
  16003. CheckWarnAll()
  16004. {
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16006. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16007. have_gcc_Wall=no
  16008. save_CFLAGS="$CFLAGS"
  16009. CFLAGS="$save_CFLAGS -Wall"
  16010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16011. /* end confdefs.h. */
  16012. int x = 0;
  16013. int
  16014. main ()
  16015. {
  16016. ;
  16017. return 0;
  16018. }
  16019. _ACEOF
  16020. if ac_fn_c_try_compile "$LINENO"; then :
  16021. have_gcc_Wall=yes
  16022. fi
  16023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16025. $as_echo "$have_gcc_Wall" >&6; }
  16026. CFLAGS="$save_CFLAGS"
  16027. if test x$have_gcc_Wall = xyes; then
  16028. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16030. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16031. need_gcc_Wno_multichar=no
  16032. case "$host" in
  16033. *-*-haiku*)
  16034. need_gcc_Wno_multichar=yes
  16035. ;;
  16036. esac
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16038. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16039. if test x$need_gcc_Wno_multichar = xyes; then
  16040. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16041. fi
  16042. fi
  16043. }
  16044. CheckWarnShadow()
  16045. {
  16046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
  16047. $as_echo_n "checking for GCC -Wshadow option... " >&6; }
  16048. have_gcc_Wshadow=no
  16049. save_CFLAGS="$CFLAGS"
  16050. CFLAGS="$save_CFLAGS -Wshadow"
  16051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16052. /* end confdefs.h. */
  16053. int x = 0;
  16054. int
  16055. main ()
  16056. {
  16057. ;
  16058. return 0;
  16059. }
  16060. _ACEOF
  16061. if ac_fn_c_try_compile "$LINENO"; then :
  16062. have_gcc_Wshadow=yes
  16063. fi
  16064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wshadow" >&5
  16066. $as_echo "$have_gcc_Wshadow" >&6; }
  16067. CFLAGS="$save_CFLAGS"
  16068. if test x$have_gcc_Wshadow = xyes; then
  16069. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
  16070. fi
  16071. }
  16072. CheckWayland()
  16073. {
  16074. # Check whether --enable-video-wayland was given.
  16075. if test "${enable_video_wayland+set}" = set; then :
  16076. enableval=$enable_video_wayland;
  16077. else
  16078. enable_video_wayland=yes
  16079. fi
  16080. # Check whether --enable-video-wayland-qt-touch was given.
  16081. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16082. enableval=$enable_video_wayland_qt_touch;
  16083. else
  16084. enable_video_wayland_qt_touch=yes
  16085. fi
  16086. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16087. # Extract the first word of "pkg-config", so it can be a program name with args.
  16088. set dummy pkg-config; ac_word=$2
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16090. $as_echo_n "checking for $ac_word... " >&6; }
  16091. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16092. $as_echo_n "(cached) " >&6
  16093. else
  16094. case $PKG_CONFIG in
  16095. [\\/]* | ?:[\\/]*)
  16096. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16097. ;;
  16098. *)
  16099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16100. for as_dir in $PATH
  16101. do
  16102. IFS=$as_save_IFS
  16103. test -z "$as_dir" && as_dir=.
  16104. for ac_exec_ext in '' $ac_executable_extensions; do
  16105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16106. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16108. break 2
  16109. fi
  16110. done
  16111. done
  16112. IFS=$as_save_IFS
  16113. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16114. ;;
  16115. esac
  16116. fi
  16117. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16118. if test -n "$PKG_CONFIG"; then
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16120. $as_echo "$PKG_CONFIG" >&6; }
  16121. else
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16123. $as_echo "no" >&6; }
  16124. fi
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16126. $as_echo_n "checking for Wayland support... " >&6; }
  16127. video_wayland=no
  16128. if test x$PKG_CONFIG != xno && \
  16129. test x$video_opengl_egl = xyes && \
  16130. test x$video_opengles_v2 = xyes; then
  16131. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16132. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16133. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16134. video_wayland=yes
  16135. fi
  16136. fi
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16138. $as_echo "$video_wayland" >&6; }
  16139. if test x$video_wayland = xyes; then
  16140. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16141. if test x$enable_video_wayland_qt_touch = xyes; then
  16142. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16143. fi
  16144. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16145. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16146. # Check whether --enable-wayland-shared was given.
  16147. if test "${enable_wayland_shared+set}" = set; then :
  16148. enableval=$enable_wayland_shared;
  16149. else
  16150. enable_wayland_shared=maybe
  16151. fi
  16152. case "$host" in
  16153. *)
  16154. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16155. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16156. if test x$wayland_egl_lib = x; then
  16157. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16158. fi
  16159. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16160. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16161. ;;
  16162. esac
  16163. if test x$enable_wayland_shared = xmaybe; then
  16164. enable_wayland_shared=yes
  16165. fi
  16166. if test x$have_loadso != xyes && \
  16167. test x$enable_wayland_shared = xyes; then
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16169. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16170. enable_wayland_shared=no
  16171. fi
  16172. if test x$have_loadso = xyes && \
  16173. test x$enable_wayland_shared = xyes && \
  16174. test x$wayland_client_lib != x && \
  16175. test x$wayland_egl_lib != x && \
  16176. test x$wayland_cursor_lib != x && \
  16177. test x$xkbcommon_lib != x; then
  16178. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16179. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16180. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16181. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16182. cat >>confdefs.h <<_ACEOF
  16183. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16184. _ACEOF
  16185. cat >>confdefs.h <<_ACEOF
  16186. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16187. _ACEOF
  16188. cat >>confdefs.h <<_ACEOF
  16189. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16190. _ACEOF
  16191. cat >>confdefs.h <<_ACEOF
  16192. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16193. _ACEOF
  16194. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16195. else
  16196. enable_wayland_shared=no
  16197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16198. SUMMARY_video="${SUMMARY_video} wayland"
  16199. fi
  16200. have_video=yes
  16201. fi
  16202. fi
  16203. }
  16204. CheckMir()
  16205. {
  16206. # Check whether --enable-video-mir was given.
  16207. if test "${enable_video_mir+set}" = set; then :
  16208. enableval=$enable_video_mir;
  16209. else
  16210. enable_video_mir=yes
  16211. fi
  16212. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16213. # Extract the first word of "pkg-config", so it can be a program name with args.
  16214. set dummy pkg-config; ac_word=$2
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16216. $as_echo_n "checking for $ac_word... " >&6; }
  16217. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16218. $as_echo_n "(cached) " >&6
  16219. else
  16220. case $PKG_CONFIG in
  16221. [\\/]* | ?:[\\/]*)
  16222. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16223. ;;
  16224. *)
  16225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16226. for as_dir in $PATH
  16227. do
  16228. IFS=$as_save_IFS
  16229. test -z "$as_dir" && as_dir=.
  16230. for ac_exec_ext in '' $ac_executable_extensions; do
  16231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16232. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16234. break 2
  16235. fi
  16236. done
  16237. done
  16238. IFS=$as_save_IFS
  16239. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16240. ;;
  16241. esac
  16242. fi
  16243. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16244. if test -n "$PKG_CONFIG"; then
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16246. $as_echo "$PKG_CONFIG" >&6; }
  16247. else
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16249. $as_echo "no" >&6; }
  16250. fi
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16252. $as_echo_n "checking for Mir support... " >&6; }
  16253. video_mir=no
  16254. if test x$PKG_CONFIG != xno; then
  16255. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16256. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16257. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16258. save_CFLAGS="$CFLAGS"
  16259. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16261. /* end confdefs.h. */
  16262. #include <mir_toolkit/mir_client_library.h>
  16263. int
  16264. main ()
  16265. {
  16266. MirMotionToolType tool = mir_motion_tool_type_mouse;
  16267. ;
  16268. return 0;
  16269. }
  16270. _ACEOF
  16271. if ac_fn_c_try_compile "$LINENO"; then :
  16272. video_mir=yes
  16273. fi
  16274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16275. CFLAGS="$save_CFLAGS"
  16276. fi
  16277. fi
  16278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16279. $as_echo "$video_mir" >&6; }
  16280. if test x$video_mir = xyes; then
  16281. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16282. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16283. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16284. # Check whether --enable-mir-shared was given.
  16285. if test "${enable_mir_shared+set}" = set; then :
  16286. enableval=$enable_mir_shared;
  16287. else
  16288. enable_mir_shared=maybe
  16289. fi
  16290. case "$host" in
  16291. *)
  16292. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16293. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16294. ;;
  16295. esac
  16296. if test x$enable_mir_shared = xmaybe; then
  16297. enable_mir_shared=yes
  16298. fi
  16299. if test x$have_loadso != xyes && \
  16300. test x$enable_mir_shared = xyes; then
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16302. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16303. enable_mir_shared=no
  16304. fi
  16305. if test x$have_loadso = xyes && \
  16306. test x$enable_mir_shared = xyes && \
  16307. test x$mirclient_lib != x && \
  16308. test x$xkbcommon_lib != x; then
  16309. echo "-- dynamic libmirclient -> $mirclient_lib"
  16310. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16311. cat >>confdefs.h <<_ACEOF
  16312. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16313. _ACEOF
  16314. cat >>confdefs.h <<_ACEOF
  16315. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16316. _ACEOF
  16317. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16318. else
  16319. enable_mir_shared=no
  16320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16321. SUMMARY_video="${SUMMARY_video} mir"
  16322. fi
  16323. have_video=yes
  16324. fi
  16325. fi
  16326. }
  16327. CheckNativeClient()
  16328. {
  16329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16330. /* end confdefs.h. */
  16331. #if !defined(__native_client__)
  16332. #error "NO NACL"
  16333. #endif
  16334. int
  16335. main ()
  16336. {
  16337. ;
  16338. return 0;
  16339. }
  16340. _ACEOF
  16341. if ac_fn_c_try_compile "$LINENO"; then :
  16342. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16343. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16344. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16345. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16346. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16347. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16348. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16349. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16350. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16351. SUMMARY_audio="${SUMMARY_audio} nacl"
  16352. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16353. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16354. fi
  16355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16356. }
  16357. CheckX11()
  16358. {
  16359. # Check whether --enable-video-x11 was given.
  16360. if test "${enable_video_x11+set}" = set; then :
  16361. enableval=$enable_video_x11;
  16362. else
  16363. enable_video_x11=yes
  16364. fi
  16365. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16366. case "$host" in
  16367. *-*-darwin*)
  16368. # This isn't necessary for X11, but fixes GLX detection
  16369. if test "x$x_includes" = xNONE && \
  16370. test "x$x_libraries" = xNONE && \
  16371. test -d /usr/X11R6/include && \
  16372. test -d /usr/X11R6/lib; then
  16373. x_includes="/usr/X11R6/include"
  16374. x_libraries="/usr/X11R6/lib"
  16375. fi
  16376. ;;
  16377. esac
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16379. $as_echo_n "checking for X... " >&6; }
  16380. # Check whether --with-x was given.
  16381. if test "${with_x+set}" = set; then :
  16382. withval=$with_x;
  16383. fi
  16384. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16385. if test "x$with_x" = xno; then
  16386. # The user explicitly disabled X.
  16387. have_x=disabled
  16388. else
  16389. case $x_includes,$x_libraries in #(
  16390. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16391. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16392. $as_echo_n "(cached) " >&6
  16393. else
  16394. # One or both of the vars are not set, and there is no cached value.
  16395. ac_x_includes=no ac_x_libraries=no
  16396. rm -f -r conftest.dir
  16397. if mkdir conftest.dir; then
  16398. cd conftest.dir
  16399. cat >Imakefile <<'_ACEOF'
  16400. incroot:
  16401. @echo incroot='${INCROOT}'
  16402. usrlibdir:
  16403. @echo usrlibdir='${USRLIBDIR}'
  16404. libdir:
  16405. @echo libdir='${LIBDIR}'
  16406. _ACEOF
  16407. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16408. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16409. for ac_var in incroot usrlibdir libdir; do
  16410. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16411. done
  16412. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16413. for ac_extension in a so sl dylib la dll; do
  16414. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16415. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16416. ac_im_usrlibdir=$ac_im_libdir; break
  16417. fi
  16418. done
  16419. # Screen out bogus values from the imake configuration. They are
  16420. # bogus both because they are the default anyway, and because
  16421. # using them would break gcc on systems where it needs fixed includes.
  16422. case $ac_im_incroot in
  16423. /usr/include) ac_x_includes= ;;
  16424. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16425. esac
  16426. case $ac_im_usrlibdir in
  16427. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16428. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16429. esac
  16430. fi
  16431. cd ..
  16432. rm -f -r conftest.dir
  16433. fi
  16434. # Standard set of common directories for X headers.
  16435. # Check X11 before X11Rn because it is often a symlink to the current release.
  16436. ac_x_header_dirs='
  16437. /usr/X11/include
  16438. /usr/X11R7/include
  16439. /usr/X11R6/include
  16440. /usr/X11R5/include
  16441. /usr/X11R4/include
  16442. /usr/include/X11
  16443. /usr/include/X11R7
  16444. /usr/include/X11R6
  16445. /usr/include/X11R5
  16446. /usr/include/X11R4
  16447. /usr/local/X11/include
  16448. /usr/local/X11R7/include
  16449. /usr/local/X11R6/include
  16450. /usr/local/X11R5/include
  16451. /usr/local/X11R4/include
  16452. /usr/local/include/X11
  16453. /usr/local/include/X11R7
  16454. /usr/local/include/X11R6
  16455. /usr/local/include/X11R5
  16456. /usr/local/include/X11R4
  16457. /usr/X386/include
  16458. /usr/x386/include
  16459. /usr/XFree86/include/X11
  16460. /usr/include
  16461. /usr/local/include
  16462. /usr/unsupported/include
  16463. /usr/athena/include
  16464. /usr/local/x11r5/include
  16465. /usr/lpp/Xamples/include
  16466. /usr/openwin/include
  16467. /usr/openwin/share/include'
  16468. if test "$ac_x_includes" = no; then
  16469. # Guess where to find include files, by looking for Xlib.h.
  16470. # First, try using that file with no special directory specified.
  16471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16472. /* end confdefs.h. */
  16473. #include <X11/Xlib.h>
  16474. _ACEOF
  16475. if ac_fn_c_try_cpp "$LINENO"; then :
  16476. # We can compile using X headers with no special include directory.
  16477. ac_x_includes=
  16478. else
  16479. for ac_dir in $ac_x_header_dirs; do
  16480. if test -r "$ac_dir/X11/Xlib.h"; then
  16481. ac_x_includes=$ac_dir
  16482. break
  16483. fi
  16484. done
  16485. fi
  16486. rm -f conftest.err conftest.i conftest.$ac_ext
  16487. fi # $ac_x_includes = no
  16488. if test "$ac_x_libraries" = no; then
  16489. # Check for the libraries.
  16490. # See if we find them without any special options.
  16491. # Don't add to $LIBS permanently.
  16492. ac_save_LIBS=$LIBS
  16493. LIBS="-lX11 $LIBS"
  16494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16495. /* end confdefs.h. */
  16496. #include <X11/Xlib.h>
  16497. int
  16498. main ()
  16499. {
  16500. XrmInitialize ()
  16501. ;
  16502. return 0;
  16503. }
  16504. _ACEOF
  16505. if ac_fn_c_try_link "$LINENO"; then :
  16506. LIBS=$ac_save_LIBS
  16507. # We can link X programs with no special library path.
  16508. ac_x_libraries=
  16509. else
  16510. LIBS=$ac_save_LIBS
  16511. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16512. do
  16513. # Don't even attempt the hair of trying to link an X program!
  16514. for ac_extension in a so sl dylib la dll; do
  16515. if test -r "$ac_dir/libX11.$ac_extension"; then
  16516. ac_x_libraries=$ac_dir
  16517. break 2
  16518. fi
  16519. done
  16520. done
  16521. fi
  16522. rm -f core conftest.err conftest.$ac_objext \
  16523. conftest$ac_exeext conftest.$ac_ext
  16524. fi # $ac_x_libraries = no
  16525. case $ac_x_includes,$ac_x_libraries in #(
  16526. no,* | *,no | *\'*)
  16527. # Didn't find X, or a directory has "'" in its name.
  16528. ac_cv_have_x="have_x=no";; #(
  16529. *)
  16530. # Record where we found X for the cache.
  16531. ac_cv_have_x="have_x=yes\
  16532. ac_x_includes='$ac_x_includes'\
  16533. ac_x_libraries='$ac_x_libraries'"
  16534. esac
  16535. fi
  16536. ;; #(
  16537. *) have_x=yes;;
  16538. esac
  16539. eval "$ac_cv_have_x"
  16540. fi # $with_x != no
  16541. if test "$have_x" != yes; then
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16543. $as_echo "$have_x" >&6; }
  16544. no_x=yes
  16545. else
  16546. # If each of the values was on the command line, it overrides each guess.
  16547. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16548. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16549. # Update the cache value to reflect the command line values.
  16550. ac_cv_have_x="have_x=yes\
  16551. ac_x_includes='$x_includes'\
  16552. ac_x_libraries='$x_libraries'"
  16553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16554. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16555. fi
  16556. if test "$no_x" = yes; then
  16557. # Not all programs may use this symbol, but it does not hurt to define it.
  16558. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16559. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16560. else
  16561. if test -n "$x_includes"; then
  16562. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16563. fi
  16564. # It would also be nice to do this for all -L options, not just this one.
  16565. if test -n "$x_libraries"; then
  16566. X_LIBS="$X_LIBS -L$x_libraries"
  16567. # For Solaris; some versions of Sun CC require a space after -R and
  16568. # others require no space. Words are not sufficient . . . .
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16570. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16571. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16572. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16573. ac_c_werror_flag=yes
  16574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16575. /* end confdefs.h. */
  16576. int
  16577. main ()
  16578. {
  16579. ;
  16580. return 0;
  16581. }
  16582. _ACEOF
  16583. if ac_fn_c_try_link "$LINENO"; then :
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16585. $as_echo "no" >&6; }
  16586. X_LIBS="$X_LIBS -R$x_libraries"
  16587. else
  16588. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16590. /* end confdefs.h. */
  16591. int
  16592. main ()
  16593. {
  16594. ;
  16595. return 0;
  16596. }
  16597. _ACEOF
  16598. if ac_fn_c_try_link "$LINENO"; then :
  16599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16600. $as_echo "yes" >&6; }
  16601. X_LIBS="$X_LIBS -R $x_libraries"
  16602. else
  16603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16604. $as_echo "neither works" >&6; }
  16605. fi
  16606. rm -f core conftest.err conftest.$ac_objext \
  16607. conftest$ac_exeext conftest.$ac_ext
  16608. fi
  16609. rm -f core conftest.err conftest.$ac_objext \
  16610. conftest$ac_exeext conftest.$ac_ext
  16611. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16612. LIBS=$ac_xsave_LIBS
  16613. fi
  16614. # Check for system-dependent libraries X programs must link with.
  16615. # Do this before checking for the system-independent R6 libraries
  16616. # (-lICE), since we may need -lsocket or whatever for X linking.
  16617. if test "$ISC" = yes; then
  16618. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16619. else
  16620. # Martyn Johnson says this is needed for Ultrix, if the X
  16621. # libraries were built with DECnet support. And Karl Berry says
  16622. # the Alpha needs dnet_stub (dnet does not exist).
  16623. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16625. /* end confdefs.h. */
  16626. /* Override any GCC internal prototype to avoid an error.
  16627. Use char because int might match the return type of a GCC
  16628. builtin and then its argument prototype would still apply. */
  16629. #ifdef __cplusplus
  16630. extern "C"
  16631. #endif
  16632. char XOpenDisplay ();
  16633. int
  16634. main ()
  16635. {
  16636. return XOpenDisplay ();
  16637. ;
  16638. return 0;
  16639. }
  16640. _ACEOF
  16641. if ac_fn_c_try_link "$LINENO"; then :
  16642. else
  16643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16644. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16645. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16646. $as_echo_n "(cached) " >&6
  16647. else
  16648. ac_check_lib_save_LIBS=$LIBS
  16649. LIBS="-ldnet $LIBS"
  16650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16651. /* end confdefs.h. */
  16652. /* Override any GCC internal prototype to avoid an error.
  16653. Use char because int might match the return type of a GCC
  16654. builtin and then its argument prototype would still apply. */
  16655. #ifdef __cplusplus
  16656. extern "C"
  16657. #endif
  16658. char dnet_ntoa ();
  16659. int
  16660. main ()
  16661. {
  16662. return dnet_ntoa ();
  16663. ;
  16664. return 0;
  16665. }
  16666. _ACEOF
  16667. if ac_fn_c_try_link "$LINENO"; then :
  16668. ac_cv_lib_dnet_dnet_ntoa=yes
  16669. else
  16670. ac_cv_lib_dnet_dnet_ntoa=no
  16671. fi
  16672. rm -f core conftest.err conftest.$ac_objext \
  16673. conftest$ac_exeext conftest.$ac_ext
  16674. LIBS=$ac_check_lib_save_LIBS
  16675. fi
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16677. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16678. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16679. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16680. fi
  16681. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16683. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16684. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16685. $as_echo_n "(cached) " >&6
  16686. else
  16687. ac_check_lib_save_LIBS=$LIBS
  16688. LIBS="-ldnet_stub $LIBS"
  16689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16690. /* end confdefs.h. */
  16691. /* Override any GCC internal prototype to avoid an error.
  16692. Use char because int might match the return type of a GCC
  16693. builtin and then its argument prototype would still apply. */
  16694. #ifdef __cplusplus
  16695. extern "C"
  16696. #endif
  16697. char dnet_ntoa ();
  16698. int
  16699. main ()
  16700. {
  16701. return dnet_ntoa ();
  16702. ;
  16703. return 0;
  16704. }
  16705. _ACEOF
  16706. if ac_fn_c_try_link "$LINENO"; then :
  16707. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16708. else
  16709. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16710. fi
  16711. rm -f core conftest.err conftest.$ac_objext \
  16712. conftest$ac_exeext conftest.$ac_ext
  16713. LIBS=$ac_check_lib_save_LIBS
  16714. fi
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16716. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16717. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16718. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16719. fi
  16720. fi
  16721. fi
  16722. rm -f core conftest.err conftest.$ac_objext \
  16723. conftest$ac_exeext conftest.$ac_ext
  16724. LIBS="$ac_xsave_LIBS"
  16725. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16726. # to get the SysV transport functions.
  16727. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16728. # needs -lnsl.
  16729. # The nsl library prevents programs from opening the X display
  16730. # on Irix 5.2, according to T.E. Dickey.
  16731. # The functions gethostbyname, getservbyname, and inet_addr are
  16732. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16733. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16734. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16735. fi
  16736. if test $ac_cv_func_gethostbyname = no; then
  16737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16738. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16739. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16740. $as_echo_n "(cached) " >&6
  16741. else
  16742. ac_check_lib_save_LIBS=$LIBS
  16743. LIBS="-lnsl $LIBS"
  16744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16745. /* end confdefs.h. */
  16746. /* Override any GCC internal prototype to avoid an error.
  16747. Use char because int might match the return type of a GCC
  16748. builtin and then its argument prototype would still apply. */
  16749. #ifdef __cplusplus
  16750. extern "C"
  16751. #endif
  16752. char gethostbyname ();
  16753. int
  16754. main ()
  16755. {
  16756. return gethostbyname ();
  16757. ;
  16758. return 0;
  16759. }
  16760. _ACEOF
  16761. if ac_fn_c_try_link "$LINENO"; then :
  16762. ac_cv_lib_nsl_gethostbyname=yes
  16763. else
  16764. ac_cv_lib_nsl_gethostbyname=no
  16765. fi
  16766. rm -f core conftest.err conftest.$ac_objext \
  16767. conftest$ac_exeext conftest.$ac_ext
  16768. LIBS=$ac_check_lib_save_LIBS
  16769. fi
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16771. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16772. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16773. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16774. fi
  16775. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16777. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16778. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16779. $as_echo_n "(cached) " >&6
  16780. else
  16781. ac_check_lib_save_LIBS=$LIBS
  16782. LIBS="-lbsd $LIBS"
  16783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16784. /* end confdefs.h. */
  16785. /* Override any GCC internal prototype to avoid an error.
  16786. Use char because int might match the return type of a GCC
  16787. builtin and then its argument prototype would still apply. */
  16788. #ifdef __cplusplus
  16789. extern "C"
  16790. #endif
  16791. char gethostbyname ();
  16792. int
  16793. main ()
  16794. {
  16795. return gethostbyname ();
  16796. ;
  16797. return 0;
  16798. }
  16799. _ACEOF
  16800. if ac_fn_c_try_link "$LINENO"; then :
  16801. ac_cv_lib_bsd_gethostbyname=yes
  16802. else
  16803. ac_cv_lib_bsd_gethostbyname=no
  16804. fi
  16805. rm -f core conftest.err conftest.$ac_objext \
  16806. conftest$ac_exeext conftest.$ac_ext
  16807. LIBS=$ac_check_lib_save_LIBS
  16808. fi
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16810. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16811. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16812. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16813. fi
  16814. fi
  16815. fi
  16816. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16817. # socket/setsockopt and other routines are undefined under SCO ODT
  16818. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16819. # on later versions), says Simon Leinen: it contains gethostby*
  16820. # variants that don't use the name server (or something). -lsocket
  16821. # must be given before -lnsl if both are needed. We assume that
  16822. # if connect needs -lnsl, so does gethostbyname.
  16823. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16824. if test "x$ac_cv_func_connect" = xyes; then :
  16825. fi
  16826. if test $ac_cv_func_connect = no; then
  16827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16828. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16829. if ${ac_cv_lib_socket_connect+:} false; then :
  16830. $as_echo_n "(cached) " >&6
  16831. else
  16832. ac_check_lib_save_LIBS=$LIBS
  16833. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16835. /* end confdefs.h. */
  16836. /* Override any GCC internal prototype to avoid an error.
  16837. Use char because int might match the return type of a GCC
  16838. builtin and then its argument prototype would still apply. */
  16839. #ifdef __cplusplus
  16840. extern "C"
  16841. #endif
  16842. char connect ();
  16843. int
  16844. main ()
  16845. {
  16846. return connect ();
  16847. ;
  16848. return 0;
  16849. }
  16850. _ACEOF
  16851. if ac_fn_c_try_link "$LINENO"; then :
  16852. ac_cv_lib_socket_connect=yes
  16853. else
  16854. ac_cv_lib_socket_connect=no
  16855. fi
  16856. rm -f core conftest.err conftest.$ac_objext \
  16857. conftest$ac_exeext conftest.$ac_ext
  16858. LIBS=$ac_check_lib_save_LIBS
  16859. fi
  16860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16861. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16862. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16863. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16864. fi
  16865. fi
  16866. # Guillermo Gomez says -lposix is necessary on A/UX.
  16867. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16868. if test "x$ac_cv_func_remove" = xyes; then :
  16869. fi
  16870. if test $ac_cv_func_remove = no; then
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16872. $as_echo_n "checking for remove in -lposix... " >&6; }
  16873. if ${ac_cv_lib_posix_remove+:} false; then :
  16874. $as_echo_n "(cached) " >&6
  16875. else
  16876. ac_check_lib_save_LIBS=$LIBS
  16877. LIBS="-lposix $LIBS"
  16878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16879. /* end confdefs.h. */
  16880. /* Override any GCC internal prototype to avoid an error.
  16881. Use char because int might match the return type of a GCC
  16882. builtin and then its argument prototype would still apply. */
  16883. #ifdef __cplusplus
  16884. extern "C"
  16885. #endif
  16886. char remove ();
  16887. int
  16888. main ()
  16889. {
  16890. return remove ();
  16891. ;
  16892. return 0;
  16893. }
  16894. _ACEOF
  16895. if ac_fn_c_try_link "$LINENO"; then :
  16896. ac_cv_lib_posix_remove=yes
  16897. else
  16898. ac_cv_lib_posix_remove=no
  16899. fi
  16900. rm -f core conftest.err conftest.$ac_objext \
  16901. conftest$ac_exeext conftest.$ac_ext
  16902. LIBS=$ac_check_lib_save_LIBS
  16903. fi
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16905. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16906. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16907. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16908. fi
  16909. fi
  16910. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16911. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16912. if test "x$ac_cv_func_shmat" = xyes; then :
  16913. fi
  16914. if test $ac_cv_func_shmat = no; then
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16916. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16917. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16918. $as_echo_n "(cached) " >&6
  16919. else
  16920. ac_check_lib_save_LIBS=$LIBS
  16921. LIBS="-lipc $LIBS"
  16922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16923. /* end confdefs.h. */
  16924. /* Override any GCC internal prototype to avoid an error.
  16925. Use char because int might match the return type of a GCC
  16926. builtin and then its argument prototype would still apply. */
  16927. #ifdef __cplusplus
  16928. extern "C"
  16929. #endif
  16930. char shmat ();
  16931. int
  16932. main ()
  16933. {
  16934. return shmat ();
  16935. ;
  16936. return 0;
  16937. }
  16938. _ACEOF
  16939. if ac_fn_c_try_link "$LINENO"; then :
  16940. ac_cv_lib_ipc_shmat=yes
  16941. else
  16942. ac_cv_lib_ipc_shmat=no
  16943. fi
  16944. rm -f core conftest.err conftest.$ac_objext \
  16945. conftest$ac_exeext conftest.$ac_ext
  16946. LIBS=$ac_check_lib_save_LIBS
  16947. fi
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16949. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16950. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16951. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16952. fi
  16953. fi
  16954. fi
  16955. # Check for libraries that X11R6 Xt/Xaw programs need.
  16956. ac_save_LDFLAGS=$LDFLAGS
  16957. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16958. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16959. # check for ICE first), but we must link in the order -lSM -lICE or
  16960. # we get undefined symbols. So assume we have SM if we have ICE.
  16961. # These have to be linked with before -lX11, unlike the other
  16962. # libraries we check for below, so use a different variable.
  16963. # John Interrante, Karl Berry
  16964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16965. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16966. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16967. $as_echo_n "(cached) " >&6
  16968. else
  16969. ac_check_lib_save_LIBS=$LIBS
  16970. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16972. /* end confdefs.h. */
  16973. /* Override any GCC internal prototype to avoid an error.
  16974. Use char because int might match the return type of a GCC
  16975. builtin and then its argument prototype would still apply. */
  16976. #ifdef __cplusplus
  16977. extern "C"
  16978. #endif
  16979. char IceConnectionNumber ();
  16980. int
  16981. main ()
  16982. {
  16983. return IceConnectionNumber ();
  16984. ;
  16985. return 0;
  16986. }
  16987. _ACEOF
  16988. if ac_fn_c_try_link "$LINENO"; then :
  16989. ac_cv_lib_ICE_IceConnectionNumber=yes
  16990. else
  16991. ac_cv_lib_ICE_IceConnectionNumber=no
  16992. fi
  16993. rm -f core conftest.err conftest.$ac_objext \
  16994. conftest$ac_exeext conftest.$ac_ext
  16995. LIBS=$ac_check_lib_save_LIBS
  16996. fi
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16998. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16999. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17000. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17001. fi
  17002. LDFLAGS=$ac_save_LDFLAGS
  17003. fi
  17004. if test x$have_x = xyes; then
  17005. # Check whether --enable-x11-shared was given.
  17006. if test "${enable_x11_shared+set}" = set; then :
  17007. enableval=$enable_x11_shared;
  17008. else
  17009. enable_x11_shared=maybe
  17010. fi
  17011. case "$host" in
  17012. *-*-darwin*)
  17013. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17014. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17015. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17016. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17017. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17018. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17019. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17020. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17021. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17022. ;;
  17023. *-*-openbsd*)
  17024. x11_lib='libX11.so'
  17025. x11ext_lib='libXext.so'
  17026. xcursor_lib='libXcursor.so'
  17027. xinerama_lib='libXinerama.so'
  17028. xinput_lib='libXi.so'
  17029. xrandr_lib='libXrandr.so'
  17030. xrender_lib='libXrender.so'
  17031. xss_lib='libXss.so'
  17032. xvidmode_lib='libXxf86vm.so'
  17033. ;;
  17034. *)
  17035. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17036. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17037. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17038. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17039. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17040. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17041. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17042. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17043. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17044. ;;
  17045. esac
  17046. if test x$ac_cv_func_shmat != xyes; then
  17047. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17048. fi
  17049. CFLAGS="$CFLAGS $X_CFLAGS"
  17050. LDFLAGS="$LDFLAGS $X_LIBS"
  17051. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17052. #include <X11/Xproto.h>
  17053. "
  17054. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17055. have_xext_h_hdr=yes
  17056. else
  17057. have_xext_h_hdr=no
  17058. fi
  17059. if test x$have_xext_h_hdr != xyes; then
  17060. as_fn_error $? "
  17061. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17062. " "$LINENO" 5
  17063. fi
  17064. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17065. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17066. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17067. # Needed so SDL applications can include SDL_syswm.h
  17068. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17069. if test x$enable_x11_shared = xmaybe; then
  17070. enable_x11_shared=yes
  17071. fi
  17072. if test x$have_loadso != xyes && \
  17073. test x$enable_x11_shared = xyes; then
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17075. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17076. enable_x11_shared=no
  17077. fi
  17078. if test x$have_loadso = xyes && \
  17079. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17080. echo "-- dynamic libX11 -> $x11_lib"
  17081. echo "-- dynamic libX11ext -> $x11ext_lib"
  17082. cat >>confdefs.h <<_ACEOF
  17083. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17084. _ACEOF
  17085. cat >>confdefs.h <<_ACEOF
  17086. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17087. _ACEOF
  17088. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17089. else
  17090. enable_x11_shared=no
  17091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17092. SUMMARY_video="${SUMMARY_video} x11"
  17093. fi
  17094. have_video=yes
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17096. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17097. have_const_param_XextAddDisplay=no
  17098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17099. /* end confdefs.h. */
  17100. #include <X11/Xlib.h>
  17101. #include <X11/Xproto.h>
  17102. #include <X11/extensions/Xext.h>
  17103. #include <X11/extensions/extutil.h>
  17104. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17105. int
  17106. main ()
  17107. {
  17108. ;
  17109. return 0;
  17110. }
  17111. _ACEOF
  17112. if ac_fn_c_try_compile "$LINENO"; then :
  17113. have_const_param_XextAddDisplay=yes
  17114. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17115. fi
  17116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17118. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17120. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17121. have_const_param_xdata32=no
  17122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17123. /* end confdefs.h. */
  17124. #include <X11/Xlibint.h>
  17125. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17126. int
  17127. main ()
  17128. {
  17129. ;
  17130. return 0;
  17131. }
  17132. _ACEOF
  17133. if ac_fn_c_try_compile "$LINENO"; then :
  17134. have_const_param_xdata32=yes
  17135. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17136. fi
  17137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17139. $as_echo "$have_const_param_xdata32" >&6; }
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17141. $as_echo_n "checking for XGenericEvent... " >&6; }
  17142. have_XGenericEvent=no
  17143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17144. /* end confdefs.h. */
  17145. #include <X11/Xlib.h>
  17146. int
  17147. main ()
  17148. {
  17149. Display *display;
  17150. XEvent event;
  17151. XGenericEventCookie *cookie = &event.xcookie;
  17152. XNextEvent(display, &event);
  17153. XGetEventData(display, cookie);
  17154. XFreeEventData(display, cookie);
  17155. ;
  17156. return 0;
  17157. }
  17158. _ACEOF
  17159. if ac_fn_c_try_compile "$LINENO"; then :
  17160. have_XGenericEvent=yes
  17161. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17162. fi
  17163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17165. $as_echo "$have_XGenericEvent" >&6; }
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17167. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17168. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17169. $as_echo_n "(cached) " >&6
  17170. else
  17171. ac_check_lib_save_LIBS=$LIBS
  17172. LIBS="-lX11 $LIBS"
  17173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17174. /* end confdefs.h. */
  17175. /* Override any GCC internal prototype to avoid an error.
  17176. Use char because int might match the return type of a GCC
  17177. builtin and then its argument prototype would still apply. */
  17178. #ifdef __cplusplus
  17179. extern "C"
  17180. #endif
  17181. char XkbKeycodeToKeysym ();
  17182. int
  17183. main ()
  17184. {
  17185. return XkbKeycodeToKeysym ();
  17186. ;
  17187. return 0;
  17188. }
  17189. _ACEOF
  17190. if ac_fn_c_try_link "$LINENO"; then :
  17191. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17192. else
  17193. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17194. fi
  17195. rm -f core conftest.err conftest.$ac_objext \
  17196. conftest$ac_exeext conftest.$ac_ext
  17197. LIBS=$ac_check_lib_save_LIBS
  17198. fi
  17199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17200. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17201. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17202. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17203. fi
  17204. # Check whether --enable-video-x11-xcursor was given.
  17205. if test "${enable_video_x11_xcursor+set}" = set; then :
  17206. enableval=$enable_video_x11_xcursor;
  17207. else
  17208. enable_video_x11_xcursor=yes
  17209. fi
  17210. if test x$enable_video_x11_xcursor = xyes; then
  17211. definitely_enable_video_x11_xcursor=no
  17212. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17213. "
  17214. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17215. have_xcursor_h_hdr=yes
  17216. else
  17217. have_xcursor_h_hdr=no
  17218. fi
  17219. if test x$have_xcursor_h_hdr = xyes; then
  17220. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17221. echo "-- dynamic libXcursor -> $xcursor_lib"
  17222. cat >>confdefs.h <<_ACEOF
  17223. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17224. _ACEOF
  17225. definitely_enable_video_x11_xcursor=yes
  17226. else
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17228. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17229. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17230. $as_echo_n "(cached) " >&6
  17231. else
  17232. ac_check_lib_save_LIBS=$LIBS
  17233. LIBS="-lXcursor $LIBS"
  17234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17235. /* end confdefs.h. */
  17236. /* Override any GCC internal prototype to avoid an error.
  17237. Use char because int might match the return type of a GCC
  17238. builtin and then its argument prototype would still apply. */
  17239. #ifdef __cplusplus
  17240. extern "C"
  17241. #endif
  17242. char XcursorImageCreate ();
  17243. int
  17244. main ()
  17245. {
  17246. return XcursorImageCreate ();
  17247. ;
  17248. return 0;
  17249. }
  17250. _ACEOF
  17251. if ac_fn_c_try_link "$LINENO"; then :
  17252. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17253. else
  17254. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17255. fi
  17256. rm -f core conftest.err conftest.$ac_objext \
  17257. conftest$ac_exeext conftest.$ac_ext
  17258. LIBS=$ac_check_lib_save_LIBS
  17259. fi
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17261. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17262. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17263. have_xcursor_lib=yes
  17264. fi
  17265. if test x$have_xcursor_lib = xyes ; then
  17266. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17267. definitely_enable_video_x11_xcursor=yes
  17268. fi
  17269. fi
  17270. fi
  17271. fi
  17272. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17273. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17274. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17275. fi
  17276. # Check whether --enable-video-x11-xinerama was given.
  17277. if test "${enable_video_x11_xinerama+set}" = set; then :
  17278. enableval=$enable_video_x11_xinerama;
  17279. else
  17280. enable_video_x11_xinerama=yes
  17281. fi
  17282. if test x$enable_video_x11_xinerama = xyes; then
  17283. definitely_enable_video_x11_xinerama=no
  17284. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17285. "
  17286. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17287. have_xinerama_h_hdr=yes
  17288. else
  17289. have_xinerama_h_hdr=no
  17290. fi
  17291. if test x$have_xinerama_h_hdr = xyes; then
  17292. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17293. echo "-- dynamic libXinerama -> $xinerama_lib"
  17294. cat >>confdefs.h <<_ACEOF
  17295. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17296. _ACEOF
  17297. definitely_enable_video_x11_xinerama=yes
  17298. else
  17299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17300. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17301. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17302. $as_echo_n "(cached) " >&6
  17303. else
  17304. ac_check_lib_save_LIBS=$LIBS
  17305. LIBS="-lXinerama $LIBS"
  17306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17307. /* end confdefs.h. */
  17308. /* Override any GCC internal prototype to avoid an error.
  17309. Use char because int might match the return type of a GCC
  17310. builtin and then its argument prototype would still apply. */
  17311. #ifdef __cplusplus
  17312. extern "C"
  17313. #endif
  17314. char XineramaQueryExtension ();
  17315. int
  17316. main ()
  17317. {
  17318. return XineramaQueryExtension ();
  17319. ;
  17320. return 0;
  17321. }
  17322. _ACEOF
  17323. if ac_fn_c_try_link "$LINENO"; then :
  17324. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17325. else
  17326. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17327. fi
  17328. rm -f core conftest.err conftest.$ac_objext \
  17329. conftest$ac_exeext conftest.$ac_ext
  17330. LIBS=$ac_check_lib_save_LIBS
  17331. fi
  17332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17333. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17334. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17335. have_xinerama_lib=yes
  17336. fi
  17337. if test x$have_xinerama_lib = xyes ; then
  17338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17339. definitely_enable_video_x11_xinerama=yes
  17340. fi
  17341. fi
  17342. fi
  17343. fi
  17344. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17345. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17346. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17347. fi
  17348. # Check whether --enable-video-x11-xinput was given.
  17349. if test "${enable_video_x11_xinput+set}" = set; then :
  17350. enableval=$enable_video_x11_xinput;
  17351. else
  17352. enable_video_x11_xinput=yes
  17353. fi
  17354. if test x$enable_video_x11_xinput = xyes; then
  17355. definitely_enable_video_x11_xinput=no
  17356. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17357. "
  17358. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17359. have_xinput_h_hdr=yes
  17360. else
  17361. have_xinput_h_hdr=no
  17362. fi
  17363. if test x$have_xinput_h_hdr = xyes; then
  17364. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17365. echo "-- dynamic libXi -> $xinput_lib"
  17366. cat >>confdefs.h <<_ACEOF
  17367. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17368. _ACEOF
  17369. definitely_enable_video_x11_xinput=yes
  17370. else
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17372. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17373. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17374. $as_echo_n "(cached) " >&6
  17375. else
  17376. ac_check_lib_save_LIBS=$LIBS
  17377. LIBS="-lXi $LIBS"
  17378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17379. /* end confdefs.h. */
  17380. /* Override any GCC internal prototype to avoid an error.
  17381. Use char because int might match the return type of a GCC
  17382. builtin and then its argument prototype would still apply. */
  17383. #ifdef __cplusplus
  17384. extern "C"
  17385. #endif
  17386. char XOpenDevice ();
  17387. int
  17388. main ()
  17389. {
  17390. return XOpenDevice ();
  17391. ;
  17392. return 0;
  17393. }
  17394. _ACEOF
  17395. if ac_fn_c_try_link "$LINENO"; then :
  17396. ac_cv_lib_Xi_XOpenDevice=yes
  17397. else
  17398. ac_cv_lib_Xi_XOpenDevice=no
  17399. fi
  17400. rm -f core conftest.err conftest.$ac_objext \
  17401. conftest$ac_exeext conftest.$ac_ext
  17402. LIBS=$ac_check_lib_save_LIBS
  17403. fi
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17405. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17406. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17407. have_xinput_lib=yes
  17408. fi
  17409. if test x$have_xinput_lib = xyes ; then
  17410. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17411. definitely_enable_video_x11_xinput=yes
  17412. fi
  17413. fi
  17414. fi
  17415. fi
  17416. if test x$definitely_enable_video_x11_xinput = xyes; then
  17417. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17418. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17420. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17421. have_xinput2_multitouch=no
  17422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17423. /* end confdefs.h. */
  17424. #include <X11/Xlib.h>
  17425. #include <X11/Xproto.h>
  17426. #include <X11/extensions/XInput2.h>
  17427. int
  17428. main ()
  17429. {
  17430. int event_type = XI_TouchBegin;
  17431. XITouchClassInfo *t;
  17432. ;
  17433. return 0;
  17434. }
  17435. _ACEOF
  17436. if ac_fn_c_try_compile "$LINENO"; then :
  17437. have_xinput2_multitouch=yes
  17438. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17439. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17440. fi
  17441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17443. $as_echo "$have_xinput2_multitouch" >&6; }
  17444. fi
  17445. # Check whether --enable-video-x11-xrandr was given.
  17446. if test "${enable_video_x11_xrandr+set}" = set; then :
  17447. enableval=$enable_video_x11_xrandr;
  17448. else
  17449. enable_video_x11_xrandr=yes
  17450. fi
  17451. if test x$enable_video_x11_xrandr = xyes; then
  17452. definitely_enable_video_x11_xrandr=no
  17453. have_xrandr_h_hdr=no
  17454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17455. /* end confdefs.h. */
  17456. #include <X11/Xlib.h>
  17457. #include <X11/extensions/Xrandr.h>
  17458. int
  17459. main ()
  17460. {
  17461. XRRScreenResources *res = NULL;
  17462. ;
  17463. return 0;
  17464. }
  17465. _ACEOF
  17466. if ac_fn_c_try_compile "$LINENO"; then :
  17467. have_xrandr_h_hdr=yes
  17468. fi
  17469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17470. if test x$have_xrandr_h_hdr = xyes; then
  17471. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17472. echo "-- dynamic libXrandr -> $xrandr_lib"
  17473. cat >>confdefs.h <<_ACEOF
  17474. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17475. _ACEOF
  17476. definitely_enable_video_x11_xrandr=yes
  17477. else
  17478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17479. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17480. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17481. $as_echo_n "(cached) " >&6
  17482. else
  17483. ac_check_lib_save_LIBS=$LIBS
  17484. LIBS="-lXrandr $LIBS"
  17485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17486. /* end confdefs.h. */
  17487. /* Override any GCC internal prototype to avoid an error.
  17488. Use char because int might match the return type of a GCC
  17489. builtin and then its argument prototype would still apply. */
  17490. #ifdef __cplusplus
  17491. extern "C"
  17492. #endif
  17493. char XRRQueryExtension ();
  17494. int
  17495. main ()
  17496. {
  17497. return XRRQueryExtension ();
  17498. ;
  17499. return 0;
  17500. }
  17501. _ACEOF
  17502. if ac_fn_c_try_link "$LINENO"; then :
  17503. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17504. else
  17505. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17506. fi
  17507. rm -f core conftest.err conftest.$ac_objext \
  17508. conftest$ac_exeext conftest.$ac_ext
  17509. LIBS=$ac_check_lib_save_LIBS
  17510. fi
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17512. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17513. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17514. have_xrandr_lib=yes
  17515. fi
  17516. if test x$have_xrandr_lib = xyes ; then
  17517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17518. definitely_enable_video_x11_xrandr=yes
  17519. fi
  17520. fi
  17521. fi
  17522. fi
  17523. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17524. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17525. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17526. fi
  17527. # Check whether --enable-video-x11-scrnsaver was given.
  17528. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17529. enableval=$enable_video_x11_scrnsaver;
  17530. else
  17531. enable_video_x11_scrnsaver=yes
  17532. fi
  17533. if test x$enable_video_x11_scrnsaver = xyes; then
  17534. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17535. "
  17536. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17537. have_scrnsaver_h_hdr=yes
  17538. else
  17539. have_scrnsaver_h_hdr=no
  17540. fi
  17541. if test x$have_scrnsaver_h_hdr = xyes; then
  17542. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17543. echo "-- dynamic libXss -> $xss_lib"
  17544. cat >>confdefs.h <<_ACEOF
  17545. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17546. _ACEOF
  17547. definitely_enable_video_x11_scrnsaver=yes
  17548. else
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17550. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17551. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17552. $as_echo_n "(cached) " >&6
  17553. else
  17554. ac_check_lib_save_LIBS=$LIBS
  17555. LIBS="-lXss $LIBS"
  17556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17557. /* end confdefs.h. */
  17558. /* Override any GCC internal prototype to avoid an error.
  17559. Use char because int might match the return type of a GCC
  17560. builtin and then its argument prototype would still apply. */
  17561. #ifdef __cplusplus
  17562. extern "C"
  17563. #endif
  17564. char XScreenSaverSuspend ();
  17565. int
  17566. main ()
  17567. {
  17568. return XScreenSaverSuspend ();
  17569. ;
  17570. return 0;
  17571. }
  17572. _ACEOF
  17573. if ac_fn_c_try_link "$LINENO"; then :
  17574. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17575. else
  17576. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17577. fi
  17578. rm -f core conftest.err conftest.$ac_objext \
  17579. conftest$ac_exeext conftest.$ac_ext
  17580. LIBS=$ac_check_lib_save_LIBS
  17581. fi
  17582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17583. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17584. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17585. have_xss_lib=yes
  17586. fi
  17587. if test x$have_xss_lib = xyes ; then
  17588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17589. definitely_enable_video_x11_scrnsaver=yes
  17590. fi
  17591. fi
  17592. fi
  17593. fi
  17594. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17595. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17596. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17597. fi
  17598. # Check whether --enable-video-x11-xshape was given.
  17599. if test "${enable_video_x11_xshape+set}" = set; then :
  17600. enableval=$enable_video_x11_xshape;
  17601. else
  17602. enable_video_x11_xshape=yes
  17603. fi
  17604. if test x$enable_video_x11_xshape = xyes; then
  17605. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17606. "
  17607. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17608. have_shape_h_hdr=yes
  17609. else
  17610. have_shape_h_hdr=no
  17611. fi
  17612. if test x$have_shape_h_hdr = xyes; then
  17613. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17614. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17615. fi
  17616. fi
  17617. # Check whether --enable-video-x11-vm was given.
  17618. if test "${enable_video_x11_vm+set}" = set; then :
  17619. enableval=$enable_video_x11_vm;
  17620. else
  17621. enable_video_x11_vm=yes
  17622. fi
  17623. if test x$enable_video_x11_vm = xyes; then
  17624. definitely_enable_video_x11_vm=no
  17625. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17626. "
  17627. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17628. have_vm_h_hdr=yes
  17629. else
  17630. have_vm_h_hdr=no
  17631. fi
  17632. if test x$have_vm_h_hdr = xyes; then
  17633. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17634. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17635. cat >>confdefs.h <<_ACEOF
  17636. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17637. _ACEOF
  17638. definitely_enable_video_x11_vm=yes
  17639. else
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17641. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17642. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17643. $as_echo_n "(cached) " >&6
  17644. else
  17645. ac_check_lib_save_LIBS=$LIBS
  17646. LIBS="-lXxf86vm $LIBS"
  17647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17648. /* end confdefs.h. */
  17649. /* Override any GCC internal prototype to avoid an error.
  17650. Use char because int might match the return type of a GCC
  17651. builtin and then its argument prototype would still apply. */
  17652. #ifdef __cplusplus
  17653. extern "C"
  17654. #endif
  17655. char XF86VidModeQueryVersion ();
  17656. int
  17657. main ()
  17658. {
  17659. return XF86VidModeQueryVersion ();
  17660. ;
  17661. return 0;
  17662. }
  17663. _ACEOF
  17664. if ac_fn_c_try_link "$LINENO"; then :
  17665. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17666. else
  17667. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17668. fi
  17669. rm -f core conftest.err conftest.$ac_objext \
  17670. conftest$ac_exeext conftest.$ac_ext
  17671. LIBS=$ac_check_lib_save_LIBS
  17672. fi
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17674. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17675. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17676. have_vm_lib=yes
  17677. fi
  17678. if test x$have_vm_lib = xyes ; then
  17679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17680. definitely_enable_video_x11_vm=yes
  17681. fi
  17682. fi
  17683. fi
  17684. fi
  17685. if test x$definitely_enable_video_x11_vm = xyes; then
  17686. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17687. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17688. fi
  17689. fi
  17690. fi
  17691. }
  17692. CheckMX6Video()
  17693. {
  17694. # Check whether --enable-video-mx6 was given.
  17695. if test "${enable_video_mx6+set}" = set; then :
  17696. enableval=$enable_video_mx6;
  17697. else
  17698. enable_video_mx6=no
  17699. fi
  17700. if test x$enable_video = xyes -a x$enable_video_mx6 = xyes; then
  17701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante GPU SDK" >&5
  17702. $as_echo_n "checking for Vivante GPU SDK... " >&6; }
  17703. have_viv_sdk=no
  17704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17705. /* end confdefs.h. */
  17706. #define EGL_API_FB
  17707. #include <EGL/eglvivante.h>
  17708. int
  17709. main ()
  17710. {
  17711. ;
  17712. return 0;
  17713. }
  17714. _ACEOF
  17715. if ac_fn_c_try_compile "$LINENO"; then :
  17716. have_viv_sdk=yes
  17717. fi
  17718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_viv_sdk" >&5
  17720. $as_echo "$have_viv_sdk" >&6; }
  17721. if test x$have_viv_sdk = xyes; then
  17722. $as_echo "#define SDL_VIDEO_DRIVER_MX6 1" >>confdefs.h
  17723. SOURCES="$SOURCES $srcdir/src/video/mx6/*.c"
  17724. SUMMARY_video="${SUMMARY_video} mx6"
  17725. have_video=yes
  17726. fi
  17727. fi
  17728. }
  17729. CheckHaikuVideo()
  17730. {
  17731. if test x$enable_video = xyes; then
  17732. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17733. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17734. have_video=yes
  17735. SUMMARY_video="${SUMMARY_video} haiku"
  17736. fi
  17737. }
  17738. CheckCOCOA()
  17739. {
  17740. # Check whether --enable-video-cocoa was given.
  17741. if test "${enable_video_cocoa+set}" = set; then :
  17742. enableval=$enable_video_cocoa;
  17743. else
  17744. enable_video_cocoa=yes
  17745. fi
  17746. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17747. save_CFLAGS="$CFLAGS"
  17748. CFLAGS="$CFLAGS -x objective-c"
  17749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17750. $as_echo_n "checking for Cocoa framework... " >&6; }
  17751. have_cocoa=no
  17752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17753. /* end confdefs.h. */
  17754. #import <Cocoa/Cocoa.h>
  17755. int
  17756. main ()
  17757. {
  17758. ;
  17759. return 0;
  17760. }
  17761. _ACEOF
  17762. if ac_fn_c_try_compile "$LINENO"; then :
  17763. have_cocoa=yes
  17764. fi
  17765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17767. $as_echo "$have_cocoa" >&6; }
  17768. CFLAGS="$save_CFLAGS"
  17769. if test x$have_cocoa = xyes; then
  17770. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17771. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17772. SUMMARY_video="${SUMMARY_video} cocoa"
  17773. have_video=yes
  17774. fi
  17775. fi
  17776. }
  17777. CheckDirectFB()
  17778. {
  17779. # Check whether --enable-video-directfb was given.
  17780. if test "${enable_video_directfb+set}" = set; then :
  17781. enableval=$enable_video_directfb;
  17782. else
  17783. enable_video_directfb=no
  17784. fi
  17785. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17786. video_directfb=no
  17787. DIRECTFB_REQUIRED_VERSION=1.0.0
  17788. for ac_prog in directfb-config
  17789. do
  17790. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17791. set dummy $ac_prog; ac_word=$2
  17792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17793. $as_echo_n "checking for $ac_word... " >&6; }
  17794. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17795. $as_echo_n "(cached) " >&6
  17796. else
  17797. case $DIRECTFBCONFIG in
  17798. [\\/]* | ?:[\\/]*)
  17799. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17800. ;;
  17801. *)
  17802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17803. as_dummy="$prefix/bin:$PATH"
  17804. for as_dir in $as_dummy
  17805. do
  17806. IFS=$as_save_IFS
  17807. test -z "$as_dir" && as_dir=.
  17808. for ac_exec_ext in '' $ac_executable_extensions; do
  17809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17810. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17812. break 2
  17813. fi
  17814. done
  17815. done
  17816. IFS=$as_save_IFS
  17817. ;;
  17818. esac
  17819. fi
  17820. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17821. if test -n "$DIRECTFBCONFIG"; then
  17822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17823. $as_echo "$DIRECTFBCONFIG" >&6; }
  17824. else
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17826. $as_echo "no" >&6; }
  17827. fi
  17828. test -n "$DIRECTFBCONFIG" && break
  17829. done
  17830. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17831. if test x$DIRECTFBCONFIG = xno; then
  17832. # Extract the first word of "pkg-config", so it can be a program name with args.
  17833. set dummy pkg-config; ac_word=$2
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17835. $as_echo_n "checking for $ac_word... " >&6; }
  17836. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17837. $as_echo_n "(cached) " >&6
  17838. else
  17839. case $PKG_CONFIG in
  17840. [\\/]* | ?:[\\/]*)
  17841. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17842. ;;
  17843. *)
  17844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17845. for as_dir in $PATH
  17846. do
  17847. IFS=$as_save_IFS
  17848. test -z "$as_dir" && as_dir=.
  17849. for ac_exec_ext in '' $ac_executable_extensions; do
  17850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17851. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17853. break 2
  17854. fi
  17855. done
  17856. done
  17857. IFS=$as_save_IFS
  17858. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17859. ;;
  17860. esac
  17861. fi
  17862. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17863. if test -n "$PKG_CONFIG"; then
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17865. $as_echo "$PKG_CONFIG" >&6; }
  17866. else
  17867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17868. $as_echo "no" >&6; }
  17869. fi
  17870. if test x$PKG_CONFIG != xno; then
  17871. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17872. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17873. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17874. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17875. video_directfb=yes
  17876. fi
  17877. fi
  17878. else
  17879. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17880. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17881. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17882. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17883. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17884. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17885. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17886. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17887. video_directfb=yes
  17888. fi
  17889. fi
  17890. if test x$video_directfb = xyes; then
  17891. # SuSE 11.1 installs directfb-config without directfb-devel
  17892. save_CPPFLAGS="$CPPFLAGS"
  17893. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17894. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17895. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17896. have_directfb_hdr=yes
  17897. else
  17898. have_directfb_hdr=no
  17899. fi
  17900. CPPFLAGS="$save_CPPFLAGS"
  17901. video_directfb=$have_directfb_hdr
  17902. fi
  17903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17904. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17906. $as_echo "$video_directfb" >&6; }
  17907. if test x$video_directfb = xyes; then
  17908. # Check whether --enable-directfb-shared was given.
  17909. if test "${enable_directfb_shared+set}" = set; then :
  17910. enableval=$enable_directfb_shared;
  17911. else
  17912. enable_directfb_shared=yes
  17913. fi
  17914. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17915. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17916. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17917. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17919. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17920. directfb_shared=no
  17921. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17922. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17924. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17925. if test x$have_loadso != xyes && \
  17926. test x$enable_directfb_shared = xyes; then
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17928. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17929. fi
  17930. if test x$have_loadso = xyes && \
  17931. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17932. directfb_shared=yes
  17933. echo "-- $directfb_lib_spec -> $directfb_lib"
  17934. cat >>confdefs.h <<_ACEOF
  17935. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17936. _ACEOF
  17937. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17938. else
  17939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17940. SUMMARY_video="${SUMMARY_video} directfb"
  17941. fi
  17942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17943. $as_echo "$directfb_shared" >&6; }
  17944. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17945. have_video=yes
  17946. fi
  17947. fi
  17948. }
  17949. CheckFusionSound()
  17950. {
  17951. # Check whether --enable-fusionsound was given.
  17952. if test "${enable_fusionsound+set}" = set; then :
  17953. enableval=$enable_fusionsound;
  17954. else
  17955. enable_fusionsound=no
  17956. fi
  17957. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17958. fusionsound=no
  17959. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17960. # Extract the first word of "pkg-config", so it can be a program name with args.
  17961. set dummy pkg-config; ac_word=$2
  17962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17963. $as_echo_n "checking for $ac_word... " >&6; }
  17964. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17965. $as_echo_n "(cached) " >&6
  17966. else
  17967. case $PKG_CONFIG in
  17968. [\\/]* | ?:[\\/]*)
  17969. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17970. ;;
  17971. *)
  17972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17973. for as_dir in $PATH
  17974. do
  17975. IFS=$as_save_IFS
  17976. test -z "$as_dir" && as_dir=.
  17977. for ac_exec_ext in '' $ac_executable_extensions; do
  17978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17979. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17981. break 2
  17982. fi
  17983. done
  17984. done
  17985. IFS=$as_save_IFS
  17986. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17987. ;;
  17988. esac
  17989. fi
  17990. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17991. if test -n "$PKG_CONFIG"; then
  17992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17993. $as_echo "$PKG_CONFIG" >&6; }
  17994. else
  17995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17996. $as_echo "no" >&6; }
  17997. fi
  17998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17999. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18000. if test x$PKG_CONFIG != xno; then
  18001. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18002. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18003. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18004. fusionsound=yes
  18005. fi
  18006. fi
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18008. $as_echo "$fusionsound" >&6; }
  18009. if test x$fusionsound = xyes; then
  18010. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18011. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18012. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18013. # Check whether --enable-fusionsound-shared was given.
  18014. if test "${enable_fusionsound_shared+set}" = set; then :
  18015. enableval=$enable_fusionsound_shared;
  18016. else
  18017. enable_fusionsound_shared=yes
  18018. fi
  18019. fusionsound_shared=no
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18021. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18022. if test x$have_loadso != xyes && \
  18023. test x$enable_fusionsound_shared = xyes; then
  18024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18025. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18026. fi
  18027. if test x$have_loadso = xyes && \
  18028. test x$enable_fusionsound_shared = xyes; then
  18029. cat >>confdefs.h <<_ACEOF
  18030. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18031. _ACEOF
  18032. fusionsound_shared=yes
  18033. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18034. else
  18035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18036. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18037. fi
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18039. $as_echo "$fusionsound_shared" >&6; }
  18040. have_audio=yes
  18041. fi
  18042. fi
  18043. }
  18044. CheckDummyVideo()
  18045. {
  18046. # Check whether --enable-video-dummy was given.
  18047. if test "${enable_video_dummy+set}" = set; then :
  18048. enableval=$enable_video_dummy;
  18049. else
  18050. enable_video_dummy=yes
  18051. fi
  18052. if test x$enable_video_dummy = xyes; then
  18053. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18054. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18055. have_video=yes
  18056. SUMMARY_video="${SUMMARY_video} dummy"
  18057. fi
  18058. }
  18059. # Check whether --enable-video-opengl was given.
  18060. if test "${enable_video_opengl+set}" = set; then :
  18061. enableval=$enable_video_opengl;
  18062. else
  18063. enable_video_opengl=yes
  18064. fi
  18065. CheckOpenGLX11()
  18066. {
  18067. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18069. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18070. video_opengl=no
  18071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18072. /* end confdefs.h. */
  18073. #include <GL/gl.h>
  18074. #include <GL/glx.h>
  18075. int
  18076. main ()
  18077. {
  18078. ;
  18079. return 0;
  18080. }
  18081. _ACEOF
  18082. if ac_fn_c_try_compile "$LINENO"; then :
  18083. video_opengl=yes
  18084. fi
  18085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18087. $as_echo "$video_opengl" >&6; }
  18088. if test x$video_opengl = xyes; then
  18089. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18090. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18091. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18092. SUMMARY_video="${SUMMARY_video} opengl"
  18093. fi
  18094. fi
  18095. }
  18096. # Check whether --enable-video-opengles was given.
  18097. if test "${enable_video_opengles+set}" = set; then :
  18098. enableval=$enable_video_opengles;
  18099. else
  18100. enable_video_opengles=yes
  18101. fi
  18102. CheckOpenGLESX11()
  18103. {
  18104. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18106. $as_echo_n "checking for EGL support... " >&6; }
  18107. video_opengl_egl=no
  18108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18109. /* end confdefs.h. */
  18110. #define EGL_API_FB
  18111. #include <EGL/egl.h>
  18112. #include <EGL/eglext.h>
  18113. int
  18114. main ()
  18115. {
  18116. ;
  18117. return 0;
  18118. }
  18119. _ACEOF
  18120. if ac_fn_c_try_compile "$LINENO"; then :
  18121. video_opengl_egl=yes
  18122. fi
  18123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18125. $as_echo "$video_opengl_egl" >&6; }
  18126. if test x$video_opengl_egl = xyes; then
  18127. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18128. fi
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18130. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18131. video_opengles_v1=no
  18132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18133. /* end confdefs.h. */
  18134. #include <GLES/gl.h>
  18135. #include <GLES/glext.h>
  18136. int
  18137. main ()
  18138. {
  18139. ;
  18140. return 0;
  18141. }
  18142. _ACEOF
  18143. if ac_fn_c_try_compile "$LINENO"; then :
  18144. video_opengles_v1=yes
  18145. fi
  18146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18148. $as_echo "$video_opengles_v1" >&6; }
  18149. if test x$video_opengles_v1 = xyes; then
  18150. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18151. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18152. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18153. fi
  18154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18155. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18156. video_opengles_v2=no
  18157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18158. /* end confdefs.h. */
  18159. #include <GLES2/gl2.h>
  18160. #include <GLES2/gl2ext.h>
  18161. int
  18162. main ()
  18163. {
  18164. ;
  18165. return 0;
  18166. }
  18167. _ACEOF
  18168. if ac_fn_c_try_compile "$LINENO"; then :
  18169. video_opengles_v2=yes
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18173. $as_echo "$video_opengles_v2" >&6; }
  18174. if test x$video_opengles_v2 = xyes; then
  18175. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18176. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18177. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18178. fi
  18179. fi
  18180. }
  18181. CheckWINDOWSGL()
  18182. {
  18183. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18184. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18185. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18186. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18187. SUMMARY_video="${SUMMARY_video} opengl"
  18188. fi
  18189. }
  18190. CheckWINDOWSGLES()
  18191. {
  18192. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18194. $as_echo_n "checking for EGL support... " >&6; }
  18195. video_opengl_egl=no
  18196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18197. /* end confdefs.h. */
  18198. #include <EGL/egl.h>
  18199. int
  18200. main ()
  18201. {
  18202. ;
  18203. return 0;
  18204. }
  18205. _ACEOF
  18206. if ac_fn_c_try_compile "$LINENO"; then :
  18207. video_opengl_egl=yes
  18208. fi
  18209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18211. $as_echo "$video_opengl_egl" >&6; }
  18212. if test x$video_opengl_egl = xyes; then
  18213. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18214. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18215. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18216. fi
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18218. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18219. video_opengles_v2=no
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. #include <GLES2/gl2.h>
  18223. #include <GLES2/gl2ext.h>
  18224. int
  18225. main ()
  18226. {
  18227. ;
  18228. return 0;
  18229. }
  18230. _ACEOF
  18231. if ac_fn_c_try_compile "$LINENO"; then :
  18232. video_opengles_v2=yes
  18233. fi
  18234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18236. $as_echo "$video_opengles_v2" >&6; }
  18237. if test x$video_opengles_v2 = xyes; then
  18238. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18239. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18240. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18241. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18242. fi
  18243. fi
  18244. }
  18245. CheckHaikuGL()
  18246. {
  18247. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18248. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18249. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18250. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18252. SUMMARY_video="${SUMMARY_video} opengl"
  18253. fi
  18254. }
  18255. CheckMacGL()
  18256. {
  18257. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18258. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18259. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18260. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18261. SUMMARY_video="${SUMMARY_video} opengl"
  18262. fi
  18263. }
  18264. CheckInputEvents()
  18265. {
  18266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18267. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18268. use_input_events=no
  18269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18270. /* end confdefs.h. */
  18271. #include <linux/input.h>
  18272. int
  18273. main ()
  18274. {
  18275. #ifndef EVIOCGNAME
  18276. #error EVIOCGNAME() ioctl not available
  18277. #endif
  18278. ;
  18279. return 0;
  18280. }
  18281. _ACEOF
  18282. if ac_fn_c_try_compile "$LINENO"; then :
  18283. use_input_events=yes
  18284. fi
  18285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18287. $as_echo "$use_input_events" >&6; }
  18288. if test x$use_input_events = xyes; then
  18289. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18290. SUMMARY_input="${SUMMARY_input} linuxev"
  18291. fi
  18292. }
  18293. CheckInputKD()
  18294. {
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18296. $as_echo_n "checking for Linux kd.h... " >&6; }
  18297. use_input_kd=no
  18298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18299. /* end confdefs.h. */
  18300. #include <linux/kd.h>
  18301. #include <linux/keyboard.h>
  18302. int
  18303. main ()
  18304. {
  18305. struct kbentry kbe;
  18306. kbe.kb_table = KG_CTRL;
  18307. ioctl(0, KDGKBENT, &kbe);
  18308. ;
  18309. return 0;
  18310. }
  18311. _ACEOF
  18312. if ac_fn_c_try_compile "$LINENO"; then :
  18313. use_input_kd=yes
  18314. fi
  18315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18317. $as_echo "$use_input_kd" >&6; }
  18318. if test x$use_input_kd = xyes; then
  18319. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18320. SUMMARY_input="${SUMMARY_input} linuxkd"
  18321. fi
  18322. }
  18323. CheckLibUDev()
  18324. {
  18325. # Check whether --enable-libudev was given.
  18326. if test "${enable_libudev+set}" = set; then :
  18327. enableval=$enable_libudev;
  18328. else
  18329. enable_libudev=yes
  18330. fi
  18331. if test x$enable_libudev = xyes; then
  18332. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18333. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18334. have_libudev_h_hdr=yes
  18335. else
  18336. have_libudev_h_hdr=no
  18337. fi
  18338. if test x$have_libudev_h_hdr = xyes; then
  18339. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18340. fi
  18341. fi
  18342. }
  18343. CheckDBus()
  18344. {
  18345. # Check whether --enable-dbus was given.
  18346. if test "${enable_dbus+set}" = set; then :
  18347. enableval=$enable_dbus;
  18348. else
  18349. enable_dbus=yes
  18350. fi
  18351. if test x$enable_dbus = xyes; then
  18352. # Extract the first word of "pkg-config", so it can be a program name with args.
  18353. set dummy pkg-config; ac_word=$2
  18354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18355. $as_echo_n "checking for $ac_word... " >&6; }
  18356. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18357. $as_echo_n "(cached) " >&6
  18358. else
  18359. case $PKG_CONFIG in
  18360. [\\/]* | ?:[\\/]*)
  18361. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18362. ;;
  18363. *)
  18364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18365. for as_dir in $PATH
  18366. do
  18367. IFS=$as_save_IFS
  18368. test -z "$as_dir" && as_dir=.
  18369. for ac_exec_ext in '' $ac_executable_extensions; do
  18370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18371. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18373. break 2
  18374. fi
  18375. done
  18376. done
  18377. IFS=$as_save_IFS
  18378. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18379. ;;
  18380. esac
  18381. fi
  18382. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18383. if test -n "$PKG_CONFIG"; then
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18385. $as_echo "$PKG_CONFIG" >&6; }
  18386. else
  18387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18388. $as_echo "no" >&6; }
  18389. fi
  18390. if test x$PKG_CONFIG != xno; then
  18391. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18392. save_CFLAGS="$CFLAGS"
  18393. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18394. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18395. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18396. have_dbus_dbus_h_hdr=yes
  18397. else
  18398. have_dbus_dbus_h_hdr=no
  18399. fi
  18400. CFLAGS="$save_CFLAGS"
  18401. if test x$have_dbus_dbus_h_hdr = xyes; then
  18402. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18403. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18404. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18405. fi
  18406. fi
  18407. fi
  18408. }
  18409. CheckIBus()
  18410. {
  18411. # Check whether --enable-ibus was given.
  18412. if test "${enable_ibus+set}" = set; then :
  18413. enableval=$enable_ibus;
  18414. else
  18415. enable_ibus=yes
  18416. fi
  18417. if test x$enable_ibus = xyes; then
  18418. # Extract the first word of "pkg-config", so it can be a program name with args.
  18419. set dummy pkg-config; ac_word=$2
  18420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18421. $as_echo_n "checking for $ac_word... " >&6; }
  18422. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18423. $as_echo_n "(cached) " >&6
  18424. else
  18425. case $PKG_CONFIG in
  18426. [\\/]* | ?:[\\/]*)
  18427. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18428. ;;
  18429. *)
  18430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18431. for as_dir in $PATH
  18432. do
  18433. IFS=$as_save_IFS
  18434. test -z "$as_dir" && as_dir=.
  18435. for ac_exec_ext in '' $ac_executable_extensions; do
  18436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18437. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18439. break 2
  18440. fi
  18441. done
  18442. done
  18443. IFS=$as_save_IFS
  18444. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18445. ;;
  18446. esac
  18447. fi
  18448. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18449. if test -n "$PKG_CONFIG"; then
  18450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18451. $as_echo "$PKG_CONFIG" >&6; }
  18452. else
  18453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18454. $as_echo "no" >&6; }
  18455. fi
  18456. if test x$PKG_CONFIG != xno; then
  18457. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18458. save_CFLAGS="$CFLAGS"
  18459. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18460. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18461. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18462. have_ibus_ibus_h_hdr=yes
  18463. else
  18464. have_ibus_ibus_h_hdr=no
  18465. fi
  18466. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18467. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18468. have_inotify_inotify_h_hdr=yes
  18469. else
  18470. have_inotify_inotify_h_hdr=no
  18471. fi
  18472. CFLAGS="$save_CFLAGS"
  18473. if test x$have_ibus_ibus_h_hdr = xyes; then
  18474. if test x$enable_dbus != xyes; then
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18476. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18477. have_ibus_ibus_h_hdr=no
  18478. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18480. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18481. have_ibus_ibus_h_hdr=no
  18482. else
  18483. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18484. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18485. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18486. fi
  18487. fi
  18488. fi
  18489. fi
  18490. }
  18491. CheckTslib()
  18492. {
  18493. # Check whether --enable-input-tslib was given.
  18494. if test "${enable_input_tslib+set}" = set; then :
  18495. enableval=$enable_input_tslib;
  18496. else
  18497. enable_input_tslib=yes
  18498. fi
  18499. if test x$enable_input_tslib = xyes; then
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18501. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18502. enable_input_tslib=no
  18503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18504. /* end confdefs.h. */
  18505. #include "tslib.h"
  18506. int
  18507. main ()
  18508. {
  18509. ;
  18510. return 0;
  18511. }
  18512. _ACEOF
  18513. if ac_fn_c_try_compile "$LINENO"; then :
  18514. enable_input_tslib=yes
  18515. fi
  18516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18518. $as_echo "$enable_input_tslib" >&6; }
  18519. if test x$enable_input_tslib = xyes; then
  18520. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18522. SUMMARY_input="${SUMMARY_input} ts"
  18523. fi
  18524. fi
  18525. }
  18526. CheckPTHREAD()
  18527. {
  18528. # Check whether --enable-pthreads was given.
  18529. if test "${enable_pthreads+set}" = set; then :
  18530. enableval=$enable_pthreads;
  18531. else
  18532. enable_pthreads=yes
  18533. fi
  18534. # Check whether --enable-pthread-sem was given.
  18535. if test "${enable_pthread_sem+set}" = set; then :
  18536. enableval=$enable_pthread_sem;
  18537. else
  18538. enable_pthread_sem=yes
  18539. fi
  18540. case "$host" in
  18541. *-*-androideabi*)
  18542. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18543. pthread_lib=""
  18544. ;;
  18545. *-*-linux*|*-*-uclinux*)
  18546. pthread_cflags="-D_REENTRANT"
  18547. pthread_lib="-lpthread"
  18548. ;;
  18549. *-*-bsdi*)
  18550. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18551. pthread_lib=""
  18552. ;;
  18553. *-*-darwin*)
  18554. pthread_cflags="-D_THREAD_SAFE"
  18555. # causes Carbon.p complaints?
  18556. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18557. ;;
  18558. *-*-freebsd*|*-*-dragonfly*)
  18559. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18560. pthread_lib="-pthread"
  18561. ;;
  18562. *-*-netbsd*)
  18563. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18564. pthread_lib="-lpthread"
  18565. ;;
  18566. *-*-openbsd*)
  18567. pthread_cflags="-D_REENTRANT"
  18568. pthread_lib="-pthread"
  18569. ;;
  18570. *-*-solaris2.9)
  18571. # From Solaris 9+, posix4's preferred name is rt.
  18572. pthread_cflags="-D_REENTRANT"
  18573. pthread_lib="-lpthread -lrt"
  18574. ;;
  18575. *-*-solaris2.10)
  18576. # Solaris 10+ merged pthread into libc.
  18577. pthread_cflags="-D_REENTRANT"
  18578. pthread_lib="-lrt"
  18579. ;;
  18580. *-*-solaris*)
  18581. # Solaris 11+ merged rt into libc.
  18582. pthread_cflags="-D_REENTRANT"
  18583. pthread_lib=""
  18584. ;;
  18585. *-*-sysv5*)
  18586. pthread_cflags="-D_REENTRANT -Kthread"
  18587. pthread_lib=""
  18588. ;;
  18589. *-*-aix*)
  18590. pthread_cflags="-D_REENTRANT -mthreads"
  18591. pthread_lib="-lpthread"
  18592. ;;
  18593. *-*-hpux11*)
  18594. pthread_cflags="-D_REENTRANT"
  18595. pthread_lib="-L/usr/lib -lpthread"
  18596. ;;
  18597. *-*-haiku*)
  18598. pthread_cflags="-D_REENTRANT"
  18599. pthread_lib=""
  18600. ;;
  18601. *)
  18602. pthread_cflags="-D_REENTRANT"
  18603. pthread_lib="-lpthread"
  18604. ;;
  18605. esac
  18606. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18607. # Save the original compiler flags and libraries
  18608. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18609. # Add the pthread compiler flags and libraries
  18610. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18611. # Check to see if we have pthread support on this system
  18612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18613. $as_echo_n "checking for pthreads... " >&6; }
  18614. use_pthreads=no
  18615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18616. /* end confdefs.h. */
  18617. #include <pthread.h>
  18618. int
  18619. main ()
  18620. {
  18621. pthread_attr_t type;
  18622. pthread_attr_init(&type);
  18623. ;
  18624. return 0;
  18625. }
  18626. _ACEOF
  18627. if ac_fn_c_try_link "$LINENO"; then :
  18628. use_pthreads=yes
  18629. fi
  18630. rm -f core conftest.err conftest.$ac_objext \
  18631. conftest$ac_exeext conftest.$ac_ext
  18632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18633. $as_echo "$use_pthreads" >&6; }
  18634. # Restore the compiler flags and libraries
  18635. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18636. # Do futher testing if we have pthread support...
  18637. if test x$use_pthreads = xyes; then
  18638. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18639. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18640. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18641. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18642. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18643. # Save the original compiler flags and libraries
  18644. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18645. # Add the pthread compiler flags and libraries
  18646. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18647. # Check to see if recursive mutexes are available
  18648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18649. $as_echo_n "checking for recursive mutexes... " >&6; }
  18650. has_recursive_mutexes=no
  18651. if test x$has_recursive_mutexes = xno; then
  18652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18653. /* end confdefs.h. */
  18654. #include <pthread.h>
  18655. int
  18656. main ()
  18657. {
  18658. pthread_mutexattr_t attr;
  18659. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18660. ;
  18661. return 0;
  18662. }
  18663. _ACEOF
  18664. if ac_fn_c_try_compile "$LINENO"; then :
  18665. has_recursive_mutexes=yes
  18666. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18667. fi
  18668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18669. fi
  18670. if test x$has_recursive_mutexes = xno; then
  18671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18672. /* end confdefs.h. */
  18673. #include <pthread.h>
  18674. int
  18675. main ()
  18676. {
  18677. pthread_mutexattr_t attr;
  18678. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18679. ;
  18680. return 0;
  18681. }
  18682. _ACEOF
  18683. if ac_fn_c_try_compile "$LINENO"; then :
  18684. has_recursive_mutexes=yes
  18685. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18686. fi
  18687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18688. fi
  18689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18690. $as_echo "$has_recursive_mutexes" >&6; }
  18691. # Check to see if pthread semaphore support is missing
  18692. if test x$enable_pthread_sem = xyes; then
  18693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18694. $as_echo_n "checking for pthread semaphores... " >&6; }
  18695. have_pthread_sem=no
  18696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18697. /* end confdefs.h. */
  18698. #include <pthread.h>
  18699. #include <semaphore.h>
  18700. int
  18701. main ()
  18702. {
  18703. ;
  18704. return 0;
  18705. }
  18706. _ACEOF
  18707. if ac_fn_c_try_compile "$LINENO"; then :
  18708. have_pthread_sem=yes
  18709. fi
  18710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18712. $as_echo "$have_pthread_sem" >&6; }
  18713. fi
  18714. if test x$have_pthread_sem = xyes; then
  18715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18716. $as_echo_n "checking for sem_timedwait... " >&6; }
  18717. have_sem_timedwait=no
  18718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18719. /* end confdefs.h. */
  18720. #include <pthread.h>
  18721. #include <semaphore.h>
  18722. int
  18723. main ()
  18724. {
  18725. sem_timedwait(NULL, NULL);
  18726. ;
  18727. return 0;
  18728. }
  18729. _ACEOF
  18730. if ac_fn_c_try_link "$LINENO"; then :
  18731. have_sem_timedwait=yes
  18732. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18733. fi
  18734. rm -f core conftest.err conftest.$ac_objext \
  18735. conftest$ac_exeext conftest.$ac_ext
  18736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18737. $as_echo "$have_sem_timedwait" >&6; }
  18738. fi
  18739. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18740. "
  18741. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18742. have_pthread_np_h=yes
  18743. else
  18744. have_pthread_np_h=no
  18745. fi
  18746. if test x$have_pthread_np_h = xyes; then
  18747. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18748. fi
  18749. # Check to see if pthread naming is available
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18751. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18753. /* end confdefs.h. */
  18754. /* Override any GCC internal prototype to avoid an error.
  18755. Use char because int might match the return type of a GCC
  18756. builtin and then its argument prototype would still apply. */
  18757. #ifdef __cplusplus
  18758. extern "C"
  18759. #endif
  18760. char pthread_setname_np ();
  18761. int
  18762. main ()
  18763. {
  18764. return pthread_setname_np ();
  18765. ;
  18766. return 0;
  18767. }
  18768. _ACEOF
  18769. if ac_fn_c_try_link "$LINENO"; then :
  18770. has_pthread_setname_np=yes
  18771. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18772. else
  18773. has_pthread_setname_np=no
  18774. fi
  18775. rm -f core conftest.err conftest.$ac_objext \
  18776. conftest$ac_exeext conftest.$ac_ext
  18777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18778. $as_echo "$has_pthread_setname_np" >&6; }
  18779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18780. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18782. /* end confdefs.h. */
  18783. /* Override any GCC internal prototype to avoid an error.
  18784. Use char because int might match the return type of a GCC
  18785. builtin and then its argument prototype would still apply. */
  18786. #ifdef __cplusplus
  18787. extern "C"
  18788. #endif
  18789. char pthread_set_name_np ();
  18790. int
  18791. main ()
  18792. {
  18793. return pthread_set_name_np ();
  18794. ;
  18795. return 0;
  18796. }
  18797. _ACEOF
  18798. if ac_fn_c_try_link "$LINENO"; then :
  18799. has_pthread_set_name_np=yes
  18800. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18801. else
  18802. has_pthread_set_name_np=no
  18803. fi
  18804. rm -f core conftest.err conftest.$ac_objext \
  18805. conftest$ac_exeext conftest.$ac_ext
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18807. $as_echo "$has_pthread_set_name_np" >&6; }
  18808. # Restore the compiler flags and libraries
  18809. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18810. # Basic thread creation functions
  18811. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18812. # Semaphores
  18813. # We can fake these with mutexes and condition variables if necessary
  18814. if test x$have_pthread_sem = xyes; then
  18815. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18816. else
  18817. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18818. fi
  18819. # Mutexes
  18820. # We can fake these with semaphores if necessary
  18821. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18822. # Condition variables
  18823. # We can fake these with semaphores and mutexes if necessary
  18824. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18825. # Thread local storage
  18826. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18827. have_threads=yes
  18828. fi
  18829. fi
  18830. }
  18831. CheckWINDOWS()
  18832. {
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18834. $as_echo_n "checking Windows compiler... " >&6; }
  18835. have_win32_gcc=no
  18836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18837. /* end confdefs.h. */
  18838. #include <windows.h>
  18839. int
  18840. main ()
  18841. {
  18842. ;
  18843. return 0;
  18844. }
  18845. _ACEOF
  18846. if ac_fn_c_try_compile "$LINENO"; then :
  18847. have_win32_gcc=yes
  18848. fi
  18849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18851. $as_echo "$have_win32_gcc" >&6; }
  18852. if test x$have_win32_gcc != xyes; then
  18853. as_fn_error $? "
  18854. *** Your compiler ($CC) does not produce Windows executables!
  18855. " "$LINENO" 5
  18856. fi
  18857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18858. $as_echo_n "checking Windows CE... " >&6; }
  18859. have_wince=no
  18860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18861. /* end confdefs.h. */
  18862. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18863. #error This is not Windows CE
  18864. #endif
  18865. int
  18866. main ()
  18867. {
  18868. ;
  18869. return 0;
  18870. }
  18871. _ACEOF
  18872. if ac_fn_c_try_compile "$LINENO"; then :
  18873. have_wince=yes
  18874. as_fn_error $? "
  18875. *** Sorry, Windows CE is no longer supported.
  18876. " "$LINENO" 5
  18877. fi
  18878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18880. $as_echo "$have_wince" >&6; }
  18881. # This fixes Windows stack alignment with newer GCC
  18882. CheckStackBoundary
  18883. }
  18884. CheckDIRECTX()
  18885. {
  18886. # Check whether --enable-directx was given.
  18887. if test "${enable_directx+set}" = set; then :
  18888. enableval=$enable_directx;
  18889. else
  18890. enable_directx=yes
  18891. fi
  18892. if test x$enable_directx = xyes; then
  18893. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18894. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18895. have_d3d=yes
  18896. fi
  18897. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  18898. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  18899. have_d3d11=yes
  18900. fi
  18901. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18902. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18903. have_ddraw=yes
  18904. fi
  18905. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18906. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18907. have_dsound=yes
  18908. fi
  18909. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18910. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18911. have_dinput=yes
  18912. fi
  18913. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  18914. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  18915. have_dxgi=yes
  18916. fi
  18917. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18918. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18919. have_xaudio2=yes
  18920. fi
  18921. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  18922. if test "x$ac_cv_header_xinput_h" = xyes; then :
  18923. have_xinput=yes
  18924. fi
  18925. if test x$have_ddraw = xyes; then
  18926. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  18927. fi
  18928. if test x$have_dinput = xyes; then
  18929. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  18930. fi
  18931. if test x$have_dsound = xyes; then
  18932. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  18933. fi
  18934. if test x$have_dxgi = xyes; then
  18935. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  18936. fi
  18937. if test x$have_xinput = xyes; then
  18938. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  18939. fi
  18940. SUMMARY_video="${SUMMARY_video} directx"
  18941. SUMMARY_audio="${SUMMARY_audio} directx"
  18942. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18943. # FIXME: ...so force it off for now.
  18944. case "$host" in
  18945. *-*-cygwin*)
  18946. have_dinput=false
  18947. ;;
  18948. esac
  18949. fi
  18950. }
  18951. CheckDLOPEN()
  18952. {
  18953. # Check whether --enable-sdl-dlopen was given.
  18954. if test "${enable_sdl_dlopen+set}" = set; then :
  18955. enableval=$enable_sdl_dlopen;
  18956. else
  18957. enable_sdl_dlopen=yes
  18958. fi
  18959. if test x$enable_sdl_dlopen = xyes; then
  18960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18961. $as_echo_n "checking for dlopen... " >&6; }
  18962. have_dlopen=no
  18963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18964. /* end confdefs.h. */
  18965. #include <dlfcn.h>
  18966. int
  18967. main ()
  18968. {
  18969. void *handle = dlopen("", RTLD_NOW);
  18970. const char *loaderror = (char *) dlerror();
  18971. ;
  18972. return 0;
  18973. }
  18974. _ACEOF
  18975. if ac_fn_c_try_compile "$LINENO"; then :
  18976. have_dlopen=yes
  18977. fi
  18978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18980. $as_echo "$have_dlopen" >&6; }
  18981. if test x$have_dlopen = xyes; then
  18982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18983. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18984. if ${ac_cv_lib_c_dlopen+:} false; then :
  18985. $as_echo_n "(cached) " >&6
  18986. else
  18987. ac_check_lib_save_LIBS=$LIBS
  18988. LIBS="-lc $LIBS"
  18989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18990. /* end confdefs.h. */
  18991. /* Override any GCC internal prototype to avoid an error.
  18992. Use char because int might match the return type of a GCC
  18993. builtin and then its argument prototype would still apply. */
  18994. #ifdef __cplusplus
  18995. extern "C"
  18996. #endif
  18997. char dlopen ();
  18998. int
  18999. main ()
  19000. {
  19001. return dlopen ();
  19002. ;
  19003. return 0;
  19004. }
  19005. _ACEOF
  19006. if ac_fn_c_try_link "$LINENO"; then :
  19007. ac_cv_lib_c_dlopen=yes
  19008. else
  19009. ac_cv_lib_c_dlopen=no
  19010. fi
  19011. rm -f core conftest.err conftest.$ac_objext \
  19012. conftest$ac_exeext conftest.$ac_ext
  19013. LIBS=$ac_check_lib_save_LIBS
  19014. fi
  19015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19016. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19017. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19019. else
  19020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19021. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19022. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19023. $as_echo_n "(cached) " >&6
  19024. else
  19025. ac_check_lib_save_LIBS=$LIBS
  19026. LIBS="-ldl $LIBS"
  19027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19028. /* end confdefs.h. */
  19029. /* Override any GCC internal prototype to avoid an error.
  19030. Use char because int might match the return type of a GCC
  19031. builtin and then its argument prototype would still apply. */
  19032. #ifdef __cplusplus
  19033. extern "C"
  19034. #endif
  19035. char dlopen ();
  19036. int
  19037. main ()
  19038. {
  19039. return dlopen ();
  19040. ;
  19041. return 0;
  19042. }
  19043. _ACEOF
  19044. if ac_fn_c_try_link "$LINENO"; then :
  19045. ac_cv_lib_dl_dlopen=yes
  19046. else
  19047. ac_cv_lib_dl_dlopen=no
  19048. fi
  19049. rm -f core conftest.err conftest.$ac_objext \
  19050. conftest$ac_exeext conftest.$ac_ext
  19051. LIBS=$ac_check_lib_save_LIBS
  19052. fi
  19053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19054. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19055. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19057. else
  19058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19059. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19060. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19061. $as_echo_n "(cached) " >&6
  19062. else
  19063. ac_check_lib_save_LIBS=$LIBS
  19064. LIBS="-lltdl $LIBS"
  19065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19066. /* end confdefs.h. */
  19067. /* Override any GCC internal prototype to avoid an error.
  19068. Use char because int might match the return type of a GCC
  19069. builtin and then its argument prototype would still apply. */
  19070. #ifdef __cplusplus
  19071. extern "C"
  19072. #endif
  19073. char dlopen ();
  19074. int
  19075. main ()
  19076. {
  19077. return dlopen ();
  19078. ;
  19079. return 0;
  19080. }
  19081. _ACEOF
  19082. if ac_fn_c_try_link "$LINENO"; then :
  19083. ac_cv_lib_ltdl_dlopen=yes
  19084. else
  19085. ac_cv_lib_ltdl_dlopen=no
  19086. fi
  19087. rm -f core conftest.err conftest.$ac_objext \
  19088. conftest$ac_exeext conftest.$ac_ext
  19089. LIBS=$ac_check_lib_save_LIBS
  19090. fi
  19091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19092. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19093. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19095. fi
  19096. fi
  19097. fi
  19098. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19099. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19100. have_loadso=yes
  19101. fi
  19102. fi
  19103. }
  19104. CheckUSBHID()
  19105. {
  19106. case "$host" in
  19107. *-*-*bsd*)
  19108. if test x$enable_joystick = xyes; then
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19110. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19111. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19112. $as_echo_n "(cached) " >&6
  19113. else
  19114. ac_check_lib_save_LIBS=$LIBS
  19115. LIBS="-lusbhid $LIBS"
  19116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19117. /* end confdefs.h. */
  19118. /* Override any GCC internal prototype to avoid an error.
  19119. Use char because int might match the return type of a GCC
  19120. builtin and then its argument prototype would still apply. */
  19121. #ifdef __cplusplus
  19122. extern "C"
  19123. #endif
  19124. char hid_init ();
  19125. int
  19126. main ()
  19127. {
  19128. return hid_init ();
  19129. ;
  19130. return 0;
  19131. }
  19132. _ACEOF
  19133. if ac_fn_c_try_link "$LINENO"; then :
  19134. ac_cv_lib_usbhid_hid_init=yes
  19135. else
  19136. ac_cv_lib_usbhid_hid_init=no
  19137. fi
  19138. rm -f core conftest.err conftest.$ac_objext \
  19139. conftest$ac_exeext conftest.$ac_ext
  19140. LIBS=$ac_check_lib_save_LIBS
  19141. fi
  19142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19143. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19144. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19145. have_libusbhid=yes
  19146. fi
  19147. if test x$have_libusbhid = xyes; then
  19148. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19149. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19150. USB_CFLAGS="-DHAVE_USBHID_H"
  19151. fi
  19152. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19153. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19154. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19155. fi
  19156. USB_LIBS="$USB_LIBS -lusbhid"
  19157. else
  19158. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19159. if test "x$ac_cv_header_usb_h" = xyes; then :
  19160. USB_CFLAGS="-DHAVE_USB_H"
  19161. fi
  19162. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19163. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19164. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19165. fi
  19166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19167. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19168. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19169. $as_echo_n "(cached) " >&6
  19170. else
  19171. ac_check_lib_save_LIBS=$LIBS
  19172. LIBS="-lusb $LIBS"
  19173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19174. /* end confdefs.h. */
  19175. /* Override any GCC internal prototype to avoid an error.
  19176. Use char because int might match the return type of a GCC
  19177. builtin and then its argument prototype would still apply. */
  19178. #ifdef __cplusplus
  19179. extern "C"
  19180. #endif
  19181. char hid_init ();
  19182. int
  19183. main ()
  19184. {
  19185. return hid_init ();
  19186. ;
  19187. return 0;
  19188. }
  19189. _ACEOF
  19190. if ac_fn_c_try_link "$LINENO"; then :
  19191. ac_cv_lib_usb_hid_init=yes
  19192. else
  19193. ac_cv_lib_usb_hid_init=no
  19194. fi
  19195. rm -f core conftest.err conftest.$ac_objext \
  19196. conftest$ac_exeext conftest.$ac_ext
  19197. LIBS=$ac_check_lib_save_LIBS
  19198. fi
  19199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19200. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19201. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19202. USB_LIBS="$USB_LIBS -lusb"
  19203. fi
  19204. fi
  19205. save_CFLAGS="$CFLAGS"
  19206. CFLAGS="$CFLAGS $USB_CFLAGS"
  19207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19208. $as_echo_n "checking for usbhid... " >&6; }
  19209. have_usbhid=no
  19210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19211. /* end confdefs.h. */
  19212. #include <sys/types.h>
  19213. #if defined(HAVE_USB_H)
  19214. #include <usb.h>
  19215. #endif
  19216. #ifdef __DragonFly__
  19217. # include <bus/usb/usb.h>
  19218. # include <bus/usb/usbhid.h>
  19219. #else
  19220. # include <dev/usb/usb.h>
  19221. # include <dev/usb/usbhid.h>
  19222. #endif
  19223. #if defined(HAVE_USBHID_H)
  19224. #include <usbhid.h>
  19225. #elif defined(HAVE_LIBUSB_H)
  19226. #include <libusb.h>
  19227. #elif defined(HAVE_LIBUSBHID_H)
  19228. #include <libusbhid.h>
  19229. #endif
  19230. int
  19231. main ()
  19232. {
  19233. struct report_desc *repdesc;
  19234. struct usb_ctl_report *repbuf;
  19235. hid_kind_t hidkind;
  19236. ;
  19237. return 0;
  19238. }
  19239. _ACEOF
  19240. if ac_fn_c_try_compile "$LINENO"; then :
  19241. have_usbhid=yes
  19242. fi
  19243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19245. $as_echo "$have_usbhid" >&6; }
  19246. if test x$have_usbhid = xyes; then
  19247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19248. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19249. have_usbhid_ucr_data=no
  19250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19251. /* end confdefs.h. */
  19252. #include <sys/types.h>
  19253. #if defined(HAVE_USB_H)
  19254. #include <usb.h>
  19255. #endif
  19256. #ifdef __DragonFly__
  19257. # include <bus/usb/usb.h>
  19258. # include <bus/usb/usbhid.h>
  19259. #else
  19260. # include <dev/usb/usb.h>
  19261. # include <dev/usb/usbhid.h>
  19262. #endif
  19263. #if defined(HAVE_USBHID_H)
  19264. #include <usbhid.h>
  19265. #elif defined(HAVE_LIBUSB_H)
  19266. #include <libusb.h>
  19267. #elif defined(HAVE_LIBUSBHID_H)
  19268. #include <libusbhid.h>
  19269. #endif
  19270. int
  19271. main ()
  19272. {
  19273. struct usb_ctl_report buf;
  19274. if (buf.ucr_data) { }
  19275. ;
  19276. return 0;
  19277. }
  19278. _ACEOF
  19279. if ac_fn_c_try_compile "$LINENO"; then :
  19280. have_usbhid_ucr_data=yes
  19281. fi
  19282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19283. if test x$have_usbhid_ucr_data = xyes; then
  19284. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19285. fi
  19286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19287. $as_echo "$have_usbhid_ucr_data" >&6; }
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19289. $as_echo_n "checking for new usbhid API... " >&6; }
  19290. have_usbhid_new=no
  19291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19292. /* end confdefs.h. */
  19293. #include <sys/types.h>
  19294. #if defined(HAVE_USB_H)
  19295. #include <usb.h>
  19296. #endif
  19297. #ifdef __DragonFly__
  19298. #include <bus/usb/usb.h>
  19299. #include <bus/usb/usbhid.h>
  19300. #else
  19301. #include <dev/usb/usb.h>
  19302. #include <dev/usb/usbhid.h>
  19303. #endif
  19304. #if defined(HAVE_USBHID_H)
  19305. #include <usbhid.h>
  19306. #elif defined(HAVE_LIBUSB_H)
  19307. #include <libusb.h>
  19308. #elif defined(HAVE_LIBUSBHID_H)
  19309. #include <libusbhid.h>
  19310. #endif
  19311. int
  19312. main ()
  19313. {
  19314. report_desc_t d;
  19315. hid_start_parse(d, 1, 1);
  19316. ;
  19317. return 0;
  19318. }
  19319. _ACEOF
  19320. if ac_fn_c_try_compile "$LINENO"; then :
  19321. have_usbhid_new=yes
  19322. fi
  19323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19324. if test x$have_usbhid_new = xyes; then
  19325. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19326. fi
  19327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19328. $as_echo "$have_usbhid_new" >&6; }
  19329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19330. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19331. have_machine_joystick=no
  19332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19333. /* end confdefs.h. */
  19334. #include <machine/joystick.h>
  19335. int
  19336. main ()
  19337. {
  19338. struct joystick t;
  19339. ;
  19340. return 0;
  19341. }
  19342. _ACEOF
  19343. if ac_fn_c_try_compile "$LINENO"; then :
  19344. have_machine_joystick=yes
  19345. fi
  19346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19347. if test x$have_machine_joystick = xyes; then
  19348. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19349. fi
  19350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19351. $as_echo "$have_machine_joystick" >&6; }
  19352. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19353. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19354. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19356. have_joystick=yes
  19357. fi
  19358. CFLAGS="$save_CFLAGS"
  19359. fi
  19360. ;;
  19361. esac
  19362. }
  19363. CheckClockGettime()
  19364. {
  19365. # Check whether --enable-clock_gettime was given.
  19366. if test "${enable_clock_gettime+set}" = set; then :
  19367. enableval=$enable_clock_gettime;
  19368. else
  19369. enable_clock_gettime=yes
  19370. fi
  19371. if test x$enable_clock_gettime = xyes; then
  19372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19373. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19374. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19375. $as_echo_n "(cached) " >&6
  19376. else
  19377. ac_check_lib_save_LIBS=$LIBS
  19378. LIBS="-lrt $LIBS"
  19379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19380. /* end confdefs.h. */
  19381. /* Override any GCC internal prototype to avoid an error.
  19382. Use char because int might match the return type of a GCC
  19383. builtin and then its argument prototype would still apply. */
  19384. #ifdef __cplusplus
  19385. extern "C"
  19386. #endif
  19387. char clock_gettime ();
  19388. int
  19389. main ()
  19390. {
  19391. return clock_gettime ();
  19392. ;
  19393. return 0;
  19394. }
  19395. _ACEOF
  19396. if ac_fn_c_try_link "$LINENO"; then :
  19397. ac_cv_lib_rt_clock_gettime=yes
  19398. else
  19399. ac_cv_lib_rt_clock_gettime=no
  19400. fi
  19401. rm -f core conftest.err conftest.$ac_objext \
  19402. conftest$ac_exeext conftest.$ac_ext
  19403. LIBS=$ac_check_lib_save_LIBS
  19404. fi
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19406. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19407. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19408. have_clock_gettime=yes
  19409. fi
  19410. if test x$have_clock_gettime = xyes; then
  19411. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19412. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19413. else
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19415. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19416. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19417. $as_echo_n "(cached) " >&6
  19418. else
  19419. ac_check_lib_save_LIBS=$LIBS
  19420. LIBS="-lc $LIBS"
  19421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19422. /* end confdefs.h. */
  19423. /* Override any GCC internal prototype to avoid an error.
  19424. Use char because int might match the return type of a GCC
  19425. builtin and then its argument prototype would still apply. */
  19426. #ifdef __cplusplus
  19427. extern "C"
  19428. #endif
  19429. char clock_gettime ();
  19430. int
  19431. main ()
  19432. {
  19433. return clock_gettime ();
  19434. ;
  19435. return 0;
  19436. }
  19437. _ACEOF
  19438. if ac_fn_c_try_link "$LINENO"; then :
  19439. ac_cv_lib_c_clock_gettime=yes
  19440. else
  19441. ac_cv_lib_c_clock_gettime=no
  19442. fi
  19443. rm -f core conftest.err conftest.$ac_objext \
  19444. conftest$ac_exeext conftest.$ac_ext
  19445. LIBS=$ac_check_lib_save_LIBS
  19446. fi
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19448. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19449. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19450. have_clock_gettime=yes
  19451. fi
  19452. if test x$have_clock_gettime = xyes; then
  19453. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19454. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19455. fi
  19456. fi
  19457. fi
  19458. }
  19459. CheckLinuxVersion()
  19460. {
  19461. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19462. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19463. have_linux_version_h=yes
  19464. fi
  19465. if test x$have_linux_version_h = xyes; then
  19466. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19467. fi
  19468. }
  19469. CheckRPATH()
  19470. {
  19471. # Check whether --enable-rpath was given.
  19472. if test "${enable_rpath+set}" = set; then :
  19473. enableval=$enable_rpath;
  19474. else
  19475. enable_rpath=yes
  19476. fi
  19477. }
  19478. case "$host" in
  19479. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19480. case "$host" in
  19481. *-raspberry-linux*)
  19482. # Raspberry Pi
  19483. ARCH=linux
  19484. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19485. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19486. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19487. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19488. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19489. if test x$enable_video = xyes; then
  19490. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19491. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19492. fi
  19493. ;;
  19494. *-*-androideabi*)
  19495. # Android
  19496. ARCH=android
  19497. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19498. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19499. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19500. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19502. if test x$enable_video = xyes; then
  19503. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19504. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19505. SUMMARY_video="${SUMMARY_video} android"
  19506. fi
  19507. ;;
  19508. *-*-linux*) ARCH=linux ;;
  19509. *-*-uclinux*) ARCH=linux ;;
  19510. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19511. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19512. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19513. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19514. *-*-bsdi*) ARCH=bsdi ;;
  19515. *-*-freebsd*) ARCH=freebsd ;;
  19516. *-*-dragonfly*) ARCH=freebsd ;;
  19517. *-*-netbsd*) ARCH=netbsd ;;
  19518. *-*-openbsd*) ARCH=openbsd ;;
  19519. *-*-sysv5*) ARCH=sysv5 ;;
  19520. *-*-solaris*) ARCH=solaris ;;
  19521. *-*-hpux*) ARCH=hpux ;;
  19522. *-*-aix*) ARCH=aix ;;
  19523. *-*-minix*) ARCH=minix ;;
  19524. esac
  19525. CheckVisibilityHidden
  19526. CheckDummyVideo
  19527. CheckDiskAudio
  19528. CheckDummyAudio
  19529. CheckDLOPEN
  19530. CheckOSS
  19531. CheckALSA
  19532. CheckPulseAudio
  19533. CheckARTSC
  19534. CheckESD
  19535. CheckNAS
  19536. CheckSNDIO
  19537. CheckX11
  19538. CheckDirectFB
  19539. CheckFusionSound
  19540. CheckOpenGLX11
  19541. CheckOpenGLESX11
  19542. CheckMir
  19543. CheckWayland
  19544. CheckLibUDev
  19545. CheckDBus
  19546. CheckIBus
  19547. CheckInputEvents
  19548. CheckInputKD
  19549. CheckTslib
  19550. CheckUSBHID
  19551. CheckPTHREAD
  19552. CheckClockGettime
  19553. CheckLinuxVersion
  19554. CheckRPATH
  19555. CheckMX6Video
  19556. # Set up files for the audio library
  19557. if test x$enable_audio = xyes; then
  19558. case $ARCH in
  19559. sysv5|solaris|hpux)
  19560. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19561. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19562. have_audio=yes
  19563. ;;
  19564. netbsd) # Don't use this on OpenBSD, it's busted.
  19565. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19566. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19567. have_audio=yes
  19568. ;;
  19569. aix)
  19570. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19571. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19572. have_audio=yes
  19573. ;;
  19574. android)
  19575. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19576. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19577. SUMMARY_audio="${SUMMARY_audio} android"
  19578. have_audio=yes
  19579. ;;
  19580. esac
  19581. fi
  19582. # Set up files for the joystick library
  19583. if test x$enable_joystick = xyes; then
  19584. case $ARCH in
  19585. linux)
  19586. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19587. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19588. have_joystick=yes
  19589. ;;
  19590. android)
  19591. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19592. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19593. have_joystick=yes
  19594. ;;
  19595. esac
  19596. fi
  19597. # Set up files for the haptic library
  19598. if test x$enable_haptic = xyes; then
  19599. if test x$use_input_events = xyes; then
  19600. case $ARCH in
  19601. linux)
  19602. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19603. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19604. have_haptic=yes
  19605. ;;
  19606. esac
  19607. fi
  19608. fi
  19609. # Set up files for the power library
  19610. if test x$enable_power = xyes; then
  19611. case $ARCH in
  19612. linux)
  19613. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19614. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19615. have_power=yes
  19616. ;;
  19617. android)
  19618. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19619. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19620. have_power=yes
  19621. ;;
  19622. esac
  19623. fi
  19624. # Set up files for the filesystem library
  19625. if test x$enable_filesystem = xyes; then
  19626. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19627. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19628. have_filesystem=yes
  19629. fi
  19630. # Set up files for the timer library
  19631. if test x$enable_timers = xyes; then
  19632. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19633. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19634. have_timers=yes
  19635. fi
  19636. # Set up files for udev hotplugging support
  19637. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19638. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19639. fi
  19640. # Set up files for evdev input
  19641. if test x$use_input_events = xyes; then
  19642. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19643. fi
  19644. ;;
  19645. *-*-cygwin* | *-*-mingw32*)
  19646. ARCH=win32
  19647. if test "$build" != "$host"; then # cross-compiling
  19648. # Default cross-compile location
  19649. ac_default_prefix=/usr/local/cross-tools/$host
  19650. else
  19651. # Look for the location of the tools and install there
  19652. if test "$BUILD_PREFIX" != ""; then
  19653. ac_default_prefix=$BUILD_PREFIX
  19654. fi
  19655. fi
  19656. CheckDummyVideo
  19657. CheckDiskAudio
  19658. CheckDummyAudio
  19659. CheckWINDOWS
  19660. CheckWINDOWSGL
  19661. CheckWINDOWSGLES
  19662. CheckDIRECTX
  19663. # Set up the core platform files
  19664. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19665. # Set up files for the video library
  19666. if test x$enable_video = xyes; then
  19667. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19668. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19669. have_video=yes
  19670. # Check whether --enable-render-d3d was given.
  19671. if test "${enable_render_d3d+set}" = set; then :
  19672. enableval=$enable_render_d3d;
  19673. else
  19674. enable_render_d3d=yes
  19675. fi
  19676. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19677. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19678. fi
  19679. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19680. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19681. fi
  19682. fi
  19683. # Set up files for the audio library
  19684. if test x$enable_audio = xyes; then
  19685. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19686. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19687. if test x$have_dsound = xyes; then
  19688. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19689. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19690. fi
  19691. if test x$have_xaudio2 = xyes; then
  19692. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19693. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19694. fi
  19695. have_audio=yes
  19696. fi
  19697. # Set up files for the joystick library
  19698. if test x$enable_joystick = xyes; then
  19699. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19700. if test x$have_xinput = xyes; then
  19701. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19702. fi
  19703. if test x$have_dinput = xyes; then
  19704. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19705. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19706. fi
  19707. else
  19708. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19709. fi
  19710. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19711. have_joystick=yes
  19712. fi
  19713. if test x$enable_haptic = xyes; then
  19714. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19715. if test x$have_xinput = xyes; then
  19716. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19717. fi
  19718. if test x$have_dinput = xyes; then
  19719. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19720. fi
  19721. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19722. have_haptic=yes
  19723. fi
  19724. fi
  19725. if test x$enable_power = xyes; then
  19726. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19727. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19728. have_power=yes
  19729. fi
  19730. if test x$enable_filesystem = xyes; then
  19731. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19732. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19733. have_filesystem=yes
  19734. fi
  19735. # Set up files for the thread library
  19736. if test x$enable_threads = xyes; then
  19737. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19738. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19739. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19740. have_threads=yes
  19741. fi
  19742. # Set up files for the timer library
  19743. if test x$enable_timers = xyes; then
  19744. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19745. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19746. have_timers=yes
  19747. fi
  19748. # Set up files for the shared object loading library
  19749. if test x$enable_loadso = xyes; then
  19750. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19751. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19752. have_loadso=yes
  19753. fi
  19754. # Set up the system libraries we need
  19755. if test -f /lib/w32api/libuuid.a; then
  19756. LIBUUID=/lib/w32api/libuuid.a
  19757. else
  19758. LIBUUID=-luuid
  19759. fi
  19760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -XCClinker -static-libgcc"
  19761. # The Windows platform requires special setup
  19762. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19763. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19764. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19765. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19766. # Check to see if this is a mingw or cygwin build
  19767. have_mingw32=
  19768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19769. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19770. if ${ac_cv_lib_mingw32_main+:} false; then :
  19771. $as_echo_n "(cached) " >&6
  19772. else
  19773. ac_check_lib_save_LIBS=$LIBS
  19774. LIBS="-lmingw32 $LIBS"
  19775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19776. /* end confdefs.h. */
  19777. int
  19778. main ()
  19779. {
  19780. return main ();
  19781. ;
  19782. return 0;
  19783. }
  19784. _ACEOF
  19785. if ac_fn_c_try_link "$LINENO"; then :
  19786. ac_cv_lib_mingw32_main=yes
  19787. else
  19788. ac_cv_lib_mingw32_main=no
  19789. fi
  19790. rm -f core conftest.err conftest.$ac_objext \
  19791. conftest$ac_exeext conftest.$ac_ext
  19792. LIBS=$ac_check_lib_save_LIBS
  19793. fi
  19794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19795. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19796. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19797. have_mingw32=yes
  19798. fi
  19799. if test x$have_mingw32 = xyes; then
  19800. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19801. else
  19802. SDL_LIBS="-lcygwin $SDL_LIBS"
  19803. fi
  19804. ;;
  19805. *-*-beos*)
  19806. as_fn_error $? "
  19807. *** BeOS support has been removed as of SDL 2.0.2.
  19808. " "$LINENO" 5
  19809. ;;
  19810. *-*-haiku*)
  19811. ARCH=haiku
  19812. ac_default_prefix=/boot/system
  19813. CheckDummyVideo
  19814. CheckDiskAudio
  19815. CheckDummyAudio
  19816. CheckHaikuVideo
  19817. CheckHaikuGL
  19818. CheckPTHREAD
  19819. # Set up files for the audio library
  19820. if test x$enable_audio = xyes; then
  19821. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19822. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19823. have_audio=yes
  19824. fi
  19825. # Set up files for the joystick library
  19826. if test x$enable_joystick = xyes; then
  19827. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19828. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19829. have_joystick=yes
  19830. fi
  19831. # Set up files for the timer library
  19832. if test x$enable_timers = xyes; then
  19833. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19834. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19835. have_timers=yes
  19836. fi
  19837. # Set up files for the shared object loading library
  19838. if test x$enable_loadso = xyes; then
  19839. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19840. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19841. have_loadso=yes
  19842. fi
  19843. # Set up files for the system power library
  19844. if test x$enable_power = xyes; then
  19845. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19846. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19847. have_power=yes
  19848. fi
  19849. # Set up files for the system filesystem library
  19850. if test x$enable_filesystem = xyes; then
  19851. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19852. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19853. have_filesystem=yes
  19854. fi
  19855. # The Haiku platform requires special setup.
  19856. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19858. ;;
  19859. arm*-apple-darwin*)
  19860. # iOS - We are not writing anything to confdefs.h because you have to replace
  19861. # SDL_config.h for SDL_config_iphoneos.h anyway
  19862. ARCH=ios
  19863. CheckVisibilityHidden
  19864. CheckDummyVideo
  19865. CheckDiskAudio
  19866. CheckDummyAudio
  19867. CheckDLOPEN
  19868. CheckCOCOA
  19869. CheckPTHREAD
  19870. # Set up files for the audio library
  19871. if test x$enable_audio = xyes; then
  19872. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19873. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19874. have_audio=yes
  19875. fi
  19876. # Set up files for the joystick library
  19877. if test x$enable_joystick = xyes; then
  19878. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19879. have_joystick=yes
  19880. fi
  19881. # Set up files for the haptic library
  19882. #if test x$enable_haptic = xyes; then
  19883. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19884. # have_haptic=yes
  19885. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19886. #fi
  19887. # Set up files for the power library
  19888. if test x$enable_power = xyes; then
  19889. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19890. have_power=yes
  19891. fi
  19892. # Set up files for the filesystem library
  19893. if test x$enable_filesystem = xyes; then
  19894. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19895. have_filesystem=yes
  19896. fi
  19897. # Set up files for the timer library
  19898. if test x$enable_timers = xyes; then
  19899. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19900. have_timers=yes
  19901. fi
  19902. # Set up additional files for the file library
  19903. if test x$enable_file = xyes; then
  19904. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19905. fi
  19906. # The iOS platform requires special setup.
  19907. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19908. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19909. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19911. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19913. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19914. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19915. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19916. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19917. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  19918. ;;
  19919. *-*-darwin* )
  19920. # This could be either full "Mac OS X", or plain "Darwin" which is
  19921. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19922. # Next line is broken, and a few files below require Mac OS X (full)
  19923. ARCH=macosx
  19924. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19925. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19926. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19927. CheckVisibilityHidden
  19928. CheckDummyVideo
  19929. CheckDiskAudio
  19930. CheckDummyAudio
  19931. CheckDLOPEN
  19932. CheckCOCOA
  19933. CheckX11
  19934. CheckMacGL
  19935. CheckOpenGLX11
  19936. CheckPTHREAD
  19937. # Set up files for the audio library
  19938. if test x$enable_audio = xyes; then
  19939. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19940. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19941. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19942. have_audio=yes
  19943. fi
  19944. # Set up files for the joystick library
  19945. if test x$enable_joystick = xyes; then
  19946. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19947. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19948. have_joystick=yes
  19949. fi
  19950. # Set up files for the haptic library
  19951. if test x$enable_haptic = xyes; then
  19952. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19953. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19954. have_haptic=yes
  19955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19956. fi
  19957. # Set up files for the power library
  19958. if test x$enable_power = xyes; then
  19959. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19960. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19961. have_power=yes
  19962. fi
  19963. # Set up files for the filesystem library
  19964. if test x$enable_filesystem = xyes; then
  19965. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19966. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19967. have_filesystem=yes
  19968. fi
  19969. # Set up files for the timer library
  19970. if test x$enable_timers = xyes; then
  19971. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19972. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19973. have_timers=yes
  19974. fi
  19975. # Set up additional files for the file library
  19976. if test x$enable_file = xyes; then
  19977. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19978. fi
  19979. # The Mac OS X platform requires special setup.
  19980. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  19983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19986. # If audio is used, add the AudioUnit framework
  19987. if test x$enable_audio = xyes; then
  19988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19989. fi
  19990. ;;
  19991. *-nacl|*-pnacl)
  19992. ARCH=nacl
  19993. CheckNativeClient
  19994. CheckDummyAudio
  19995. CheckDummyVideo
  19996. CheckInputEvents
  19997. CheckPTHREAD
  19998. # Set up files for the timer library
  19999. if test x$enable_timers = xyes; then
  20000. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20001. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20002. have_timers=yes
  20003. fi
  20004. if test x$enable_filesystem = xyes; then
  20005. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20006. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20007. have_filesystem=yes
  20008. fi
  20009. ;;
  20010. *)
  20011. as_fn_error $? "
  20012. *** Unsupported host: Please add to configure.in
  20013. " "$LINENO" 5
  20014. ;;
  20015. esac
  20016. CheckWarnAll
  20017. CheckWarnShadow
  20018. # Verify that we have all the platform specific files we need
  20019. if test x$have_joystick != xyes; then
  20020. if test x$enable_joystick = xyes; then
  20021. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20022. fi
  20023. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20024. fi
  20025. if test x$have_haptic != xyes; then
  20026. if test x$enable_haptic = xyes; then
  20027. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20028. fi
  20029. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20030. fi
  20031. if test x$have_threads != xyes; then
  20032. if test x$enable_threads = xyes; then
  20033. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20034. fi
  20035. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20036. fi
  20037. if test x$have_timers != xyes; then
  20038. if test x$enable_timers = xyes; then
  20039. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20040. fi
  20041. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20042. fi
  20043. if test x$have_filesystem != xyes; then
  20044. if test x$enable_filesystem = xyes; then
  20045. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20046. fi
  20047. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20048. fi
  20049. if test x$have_loadso != xyes; then
  20050. if test x$enable_loadso = xyes; then
  20051. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20052. fi
  20053. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20054. fi
  20055. if test x$SDLMAIN_SOURCES = x; then
  20056. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20057. fi
  20058. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20059. OBJECTS=`echo $SOURCES`
  20060. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20061. for EXT in asm cc m c S; do
  20062. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20063. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20064. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20065. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20066. done
  20067. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20068. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20069. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20070. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20071. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20072. \\$(WINDRES) \\$< \\$@,g"`
  20073. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20074. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20075. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20076. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20077. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20078. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20079. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20080. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20081. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20082. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20083. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20084. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20085. # Set runtime shared library paths as needed
  20086. if test "x$enable_rpath" = "xyes"; then
  20087. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20088. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20089. fi
  20090. if test $ARCH = solaris; then
  20091. SDL_RLD_FLAGS="-R\${libdir}"
  20092. fi
  20093. else
  20094. SDL_RLD_FLAGS=""
  20095. fi
  20096. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20097. if test x$enable_shared = xyes; then
  20098. ENABLE_SHARED_TRUE=
  20099. ENABLE_SHARED_FALSE="#"
  20100. else
  20101. ENABLE_SHARED_TRUE="#"
  20102. ENABLE_SHARED_FALSE=
  20103. fi
  20104. if test x$enable_static = xyes; then
  20105. ENABLE_STATIC_TRUE=
  20106. ENABLE_STATIC_FALSE="#"
  20107. else
  20108. ENABLE_STATIC_TRUE="#"
  20109. ENABLE_STATIC_FALSE=
  20110. fi
  20111. cat >Makefile.rules <<__EOF__
  20112. # Build rules for objects
  20113. -include \$(OBJECTS:.lo=.d)
  20114. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20115. $srcdir/src/SDL.c: update-revision
  20116. $DEPENDS
  20117. $VERSION_DEPENDS
  20118. $SDLMAIN_DEPENDS
  20119. $SDLTEST_DEPENDS
  20120. __EOF__
  20121. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  20122. ac_config_commands="$ac_config_commands sdl2_config"
  20123. SUMMARY="SDL2 Configure Summary:\n"
  20124. if test x$enable_shared = xyes; then
  20125. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20126. fi
  20127. if test x$enable_static = xyes; then
  20128. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20129. fi
  20130. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20131. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20132. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20133. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20134. if test x$have_x = xyes; then
  20135. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20136. fi
  20137. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20138. if test x$enable_libudev = xyes; then
  20139. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20140. else
  20141. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20142. fi
  20143. if test x$have_dbus_dbus_h_hdr = xyes; then
  20144. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20145. else
  20146. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20147. fi
  20148. if test x$have_ibus_ibus_h_hdr = xyes; then
  20149. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20150. else
  20151. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20152. fi
  20153. ac_config_commands="$ac_config_commands summary"
  20154. cat >confcache <<\_ACEOF
  20155. # This file is a shell script that caches the results of configure
  20156. # tests run on this system so they can be shared between configure
  20157. # scripts and configure runs, see configure's option --config-cache.
  20158. # It is not useful on other systems. If it contains results you don't
  20159. # want to keep, you may remove or edit it.
  20160. #
  20161. # config.status only pays attention to the cache file if you give it
  20162. # the --recheck option to rerun configure.
  20163. #
  20164. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20165. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20166. # following values.
  20167. _ACEOF
  20168. # The following way of writing the cache mishandles newlines in values,
  20169. # but we know of no workaround that is simple, portable, and efficient.
  20170. # So, we kill variables containing newlines.
  20171. # Ultrix sh set writes to stderr and can't be redirected directly,
  20172. # and sets the high bit in the cache file unless we assign to the vars.
  20173. (
  20174. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20175. eval ac_val=\$$ac_var
  20176. case $ac_val in #(
  20177. *${as_nl}*)
  20178. case $ac_var in #(
  20179. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20180. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20181. esac
  20182. case $ac_var in #(
  20183. _ | IFS | as_nl) ;; #(
  20184. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20185. *) { eval $ac_var=; unset $ac_var;} ;;
  20186. esac ;;
  20187. esac
  20188. done
  20189. (set) 2>&1 |
  20190. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20191. *${as_nl}ac_space=\ *)
  20192. # `set' does not quote correctly, so add quotes: double-quote
  20193. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20194. sed -n \
  20195. "s/'/'\\\\''/g;
  20196. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20197. ;; #(
  20198. *)
  20199. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20200. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20201. ;;
  20202. esac |
  20203. sort
  20204. ) |
  20205. sed '
  20206. /^ac_cv_env_/b end
  20207. t clear
  20208. :clear
  20209. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20210. t end
  20211. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20212. :end' >>confcache
  20213. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20214. if test -w "$cache_file"; then
  20215. if test "x$cache_file" != "x/dev/null"; then
  20216. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20217. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20218. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20219. cat confcache >"$cache_file"
  20220. else
  20221. case $cache_file in #(
  20222. */* | ?:*)
  20223. mv -f confcache "$cache_file"$$ &&
  20224. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20225. *)
  20226. mv -f confcache "$cache_file" ;;
  20227. esac
  20228. fi
  20229. fi
  20230. else
  20231. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20232. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20233. fi
  20234. fi
  20235. rm -f confcache
  20236. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20237. # Let make expand exec_prefix.
  20238. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20239. DEFS=-DHAVE_CONFIG_H
  20240. ac_libobjs=
  20241. ac_ltlibobjs=
  20242. U=
  20243. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20244. # 1. Remove the extension, and $U if already installed.
  20245. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20246. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20247. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20248. # will be set to the directory where LIBOBJS objects are built.
  20249. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20250. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20251. done
  20252. LIBOBJS=$ac_libobjs
  20253. LTLIBOBJS=$ac_ltlibobjs
  20254. : "${CONFIG_STATUS=./config.status}"
  20255. ac_write_fail=0
  20256. ac_clean_files_save=$ac_clean_files
  20257. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20258. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20259. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20260. as_write_fail=0
  20261. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20262. #! $SHELL
  20263. # Generated by $as_me.
  20264. # Run this file to recreate the current configuration.
  20265. # Compiler output produced by configure, useful for debugging
  20266. # configure, is in config.log if it exists.
  20267. debug=false
  20268. ac_cs_recheck=false
  20269. ac_cs_silent=false
  20270. SHELL=\${CONFIG_SHELL-$SHELL}
  20271. export SHELL
  20272. _ASEOF
  20273. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20274. ## -------------------- ##
  20275. ## M4sh Initialization. ##
  20276. ## -------------------- ##
  20277. # Be more Bourne compatible
  20278. DUALCASE=1; export DUALCASE # for MKS sh
  20279. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20280. emulate sh
  20281. NULLCMD=:
  20282. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20283. # is contrary to our usage. Disable this feature.
  20284. alias -g '${1+"$@"}'='"$@"'
  20285. setopt NO_GLOB_SUBST
  20286. else
  20287. case `(set -o) 2>/dev/null` in #(
  20288. *posix*) :
  20289. set -o posix ;; #(
  20290. *) :
  20291. ;;
  20292. esac
  20293. fi
  20294. as_nl='
  20295. '
  20296. export as_nl
  20297. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20298. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20299. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20300. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20301. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20302. # but without wasting forks for bash or zsh.
  20303. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20304. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20305. as_echo='print -r --'
  20306. as_echo_n='print -rn --'
  20307. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20308. as_echo='printf %s\n'
  20309. as_echo_n='printf %s'
  20310. else
  20311. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20312. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20313. as_echo_n='/usr/ucb/echo -n'
  20314. else
  20315. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20316. as_echo_n_body='eval
  20317. arg=$1;
  20318. case $arg in #(
  20319. *"$as_nl"*)
  20320. expr "X$arg" : "X\\(.*\\)$as_nl";
  20321. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20322. esac;
  20323. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20324. '
  20325. export as_echo_n_body
  20326. as_echo_n='sh -c $as_echo_n_body as_echo'
  20327. fi
  20328. export as_echo_body
  20329. as_echo='sh -c $as_echo_body as_echo'
  20330. fi
  20331. # The user is always right.
  20332. if test "${PATH_SEPARATOR+set}" != set; then
  20333. PATH_SEPARATOR=:
  20334. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20335. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20336. PATH_SEPARATOR=';'
  20337. }
  20338. fi
  20339. # IFS
  20340. # We need space, tab and new line, in precisely that order. Quoting is
  20341. # there to prevent editors from complaining about space-tab.
  20342. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20343. # splitting by setting IFS to empty value.)
  20344. IFS=" "" $as_nl"
  20345. # Find who we are. Look in the path if we contain no directory separator.
  20346. as_myself=
  20347. case $0 in #((
  20348. *[\\/]* ) as_myself=$0 ;;
  20349. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20350. for as_dir in $PATH
  20351. do
  20352. IFS=$as_save_IFS
  20353. test -z "$as_dir" && as_dir=.
  20354. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20355. done
  20356. IFS=$as_save_IFS
  20357. ;;
  20358. esac
  20359. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20360. # in which case we are not to be found in the path.
  20361. if test "x$as_myself" = x; then
  20362. as_myself=$0
  20363. fi
  20364. if test ! -f "$as_myself"; then
  20365. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20366. exit 1
  20367. fi
  20368. # Unset variables that we do not need and which cause bugs (e.g. in
  20369. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20370. # suppresses any "Segmentation fault" message there. '((' could
  20371. # trigger a bug in pdksh 5.2.14.
  20372. for as_var in BASH_ENV ENV MAIL MAILPATH
  20373. do eval test x\${$as_var+set} = xset \
  20374. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20375. done
  20376. PS1='$ '
  20377. PS2='> '
  20378. PS4='+ '
  20379. # NLS nuisances.
  20380. LC_ALL=C
  20381. export LC_ALL
  20382. LANGUAGE=C
  20383. export LANGUAGE
  20384. # CDPATH.
  20385. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20386. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20387. # ----------------------------------------
  20388. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20389. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20390. # script with STATUS, using 1 if that was 0.
  20391. as_fn_error ()
  20392. {
  20393. as_status=$1; test $as_status -eq 0 && as_status=1
  20394. if test "$4"; then
  20395. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20396. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20397. fi
  20398. $as_echo "$as_me: error: $2" >&2
  20399. as_fn_exit $as_status
  20400. } # as_fn_error
  20401. # as_fn_set_status STATUS
  20402. # -----------------------
  20403. # Set $? to STATUS, without forking.
  20404. as_fn_set_status ()
  20405. {
  20406. return $1
  20407. } # as_fn_set_status
  20408. # as_fn_exit STATUS
  20409. # -----------------
  20410. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20411. as_fn_exit ()
  20412. {
  20413. set +e
  20414. as_fn_set_status $1
  20415. exit $1
  20416. } # as_fn_exit
  20417. # as_fn_unset VAR
  20418. # ---------------
  20419. # Portably unset VAR.
  20420. as_fn_unset ()
  20421. {
  20422. { eval $1=; unset $1;}
  20423. }
  20424. as_unset=as_fn_unset
  20425. # as_fn_append VAR VALUE
  20426. # ----------------------
  20427. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20428. # advantage of any shell optimizations that allow amortized linear growth over
  20429. # repeated appends, instead of the typical quadratic growth present in naive
  20430. # implementations.
  20431. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20432. eval 'as_fn_append ()
  20433. {
  20434. eval $1+=\$2
  20435. }'
  20436. else
  20437. as_fn_append ()
  20438. {
  20439. eval $1=\$$1\$2
  20440. }
  20441. fi # as_fn_append
  20442. # as_fn_arith ARG...
  20443. # ------------------
  20444. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20445. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20446. # must be portable across $(()) and expr.
  20447. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20448. eval 'as_fn_arith ()
  20449. {
  20450. as_val=$(( $* ))
  20451. }'
  20452. else
  20453. as_fn_arith ()
  20454. {
  20455. as_val=`expr "$@" || test $? -eq 1`
  20456. }
  20457. fi # as_fn_arith
  20458. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20459. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20460. as_expr=expr
  20461. else
  20462. as_expr=false
  20463. fi
  20464. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20465. as_basename=basename
  20466. else
  20467. as_basename=false
  20468. fi
  20469. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20470. as_dirname=dirname
  20471. else
  20472. as_dirname=false
  20473. fi
  20474. as_me=`$as_basename -- "$0" ||
  20475. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20476. X"$0" : 'X\(//\)$' \| \
  20477. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20478. $as_echo X/"$0" |
  20479. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20480. s//\1/
  20481. q
  20482. }
  20483. /^X\/\(\/\/\)$/{
  20484. s//\1/
  20485. q
  20486. }
  20487. /^X\/\(\/\).*/{
  20488. s//\1/
  20489. q
  20490. }
  20491. s/.*/./; q'`
  20492. # Avoid depending upon Character Ranges.
  20493. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20494. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20495. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20496. as_cr_digits='0123456789'
  20497. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20498. ECHO_C= ECHO_N= ECHO_T=
  20499. case `echo -n x` in #(((((
  20500. -n*)
  20501. case `echo 'xy\c'` in
  20502. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20503. xy) ECHO_C='\c';;
  20504. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20505. ECHO_T=' ';;
  20506. esac;;
  20507. *)
  20508. ECHO_N='-n';;
  20509. esac
  20510. rm -f conf$$ conf$$.exe conf$$.file
  20511. if test -d conf$$.dir; then
  20512. rm -f conf$$.dir/conf$$.file
  20513. else
  20514. rm -f conf$$.dir
  20515. mkdir conf$$.dir 2>/dev/null
  20516. fi
  20517. if (echo >conf$$.file) 2>/dev/null; then
  20518. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20519. as_ln_s='ln -s'
  20520. # ... but there are two gotchas:
  20521. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20522. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20523. # In both cases, we have to default to `cp -pR'.
  20524. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20525. as_ln_s='cp -pR'
  20526. elif ln conf$$.file conf$$ 2>/dev/null; then
  20527. as_ln_s=ln
  20528. else
  20529. as_ln_s='cp -pR'
  20530. fi
  20531. else
  20532. as_ln_s='cp -pR'
  20533. fi
  20534. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20535. rmdir conf$$.dir 2>/dev/null
  20536. # as_fn_mkdir_p
  20537. # -------------
  20538. # Create "$as_dir" as a directory, including parents if necessary.
  20539. as_fn_mkdir_p ()
  20540. {
  20541. case $as_dir in #(
  20542. -*) as_dir=./$as_dir;;
  20543. esac
  20544. test -d "$as_dir" || eval $as_mkdir_p || {
  20545. as_dirs=
  20546. while :; do
  20547. case $as_dir in #(
  20548. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20549. *) as_qdir=$as_dir;;
  20550. esac
  20551. as_dirs="'$as_qdir' $as_dirs"
  20552. as_dir=`$as_dirname -- "$as_dir" ||
  20553. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20554. X"$as_dir" : 'X\(//\)[^/]' \| \
  20555. X"$as_dir" : 'X\(//\)$' \| \
  20556. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20557. $as_echo X"$as_dir" |
  20558. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20559. s//\1/
  20560. q
  20561. }
  20562. /^X\(\/\/\)[^/].*/{
  20563. s//\1/
  20564. q
  20565. }
  20566. /^X\(\/\/\)$/{
  20567. s//\1/
  20568. q
  20569. }
  20570. /^X\(\/\).*/{
  20571. s//\1/
  20572. q
  20573. }
  20574. s/.*/./; q'`
  20575. test -d "$as_dir" && break
  20576. done
  20577. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20578. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20579. } # as_fn_mkdir_p
  20580. if mkdir -p . 2>/dev/null; then
  20581. as_mkdir_p='mkdir -p "$as_dir"'
  20582. else
  20583. test -d ./-p && rmdir ./-p
  20584. as_mkdir_p=false
  20585. fi
  20586. # as_fn_executable_p FILE
  20587. # -----------------------
  20588. # Test if FILE is an executable regular file.
  20589. as_fn_executable_p ()
  20590. {
  20591. test -f "$1" && test -x "$1"
  20592. } # as_fn_executable_p
  20593. as_test_x='test -x'
  20594. as_executable_p=as_fn_executable_p
  20595. # Sed expression to map a string onto a valid CPP name.
  20596. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20597. # Sed expression to map a string onto a valid variable name.
  20598. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20599. exec 6>&1
  20600. ## ----------------------------------- ##
  20601. ## Main body of $CONFIG_STATUS script. ##
  20602. ## ----------------------------------- ##
  20603. _ASEOF
  20604. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20605. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20606. # Save the log message, to keep $0 and so on meaningful, and to
  20607. # report actual input values of CONFIG_FILES etc. instead of their
  20608. # values after options handling.
  20609. ac_log="
  20610. This file was extended by $as_me, which was
  20611. generated by GNU Autoconf 2.69. Invocation command line was
  20612. CONFIG_FILES = $CONFIG_FILES
  20613. CONFIG_HEADERS = $CONFIG_HEADERS
  20614. CONFIG_LINKS = $CONFIG_LINKS
  20615. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20616. $ $0 $@
  20617. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20618. "
  20619. _ACEOF
  20620. case $ac_config_files in *"
  20621. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20622. esac
  20623. case $ac_config_headers in *"
  20624. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20625. esac
  20626. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20627. # Files that config.status was made for.
  20628. config_files="$ac_config_files"
  20629. config_headers="$ac_config_headers"
  20630. config_commands="$ac_config_commands"
  20631. _ACEOF
  20632. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20633. ac_cs_usage="\
  20634. \`$as_me' instantiates files and other configuration actions
  20635. from templates according to the current configuration. Unless the files
  20636. and actions are specified as TAGs, all are instantiated by default.
  20637. Usage: $0 [OPTION]... [TAG]...
  20638. -h, --help print this help, then exit
  20639. -V, --version print version number and configuration settings, then exit
  20640. --config print configuration, then exit
  20641. -q, --quiet, --silent
  20642. do not print progress messages
  20643. -d, --debug don't remove temporary files
  20644. --recheck update $as_me by reconfiguring in the same conditions
  20645. --file=FILE[:TEMPLATE]
  20646. instantiate the configuration file FILE
  20647. --header=FILE[:TEMPLATE]
  20648. instantiate the configuration header FILE
  20649. Configuration files:
  20650. $config_files
  20651. Configuration headers:
  20652. $config_headers
  20653. Configuration commands:
  20654. $config_commands
  20655. Report bugs to the package provider."
  20656. _ACEOF
  20657. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20658. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20659. ac_cs_version="\\
  20660. config.status
  20661. configured by $0, generated by GNU Autoconf 2.69,
  20662. with options \\"\$ac_cs_config\\"
  20663. Copyright (C) 2012 Free Software Foundation, Inc.
  20664. This config.status script is free software; the Free Software Foundation
  20665. gives unlimited permission to copy, distribute and modify it."
  20666. ac_pwd='$ac_pwd'
  20667. srcdir='$srcdir'
  20668. INSTALL='$INSTALL'
  20669. AWK='$AWK'
  20670. test -n "\$AWK" || AWK=awk
  20671. _ACEOF
  20672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20673. # The default lists apply if the user does not specify any file.
  20674. ac_need_defaults=:
  20675. while test $# != 0
  20676. do
  20677. case $1 in
  20678. --*=?*)
  20679. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20680. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20681. ac_shift=:
  20682. ;;
  20683. --*=)
  20684. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20685. ac_optarg=
  20686. ac_shift=:
  20687. ;;
  20688. *)
  20689. ac_option=$1
  20690. ac_optarg=$2
  20691. ac_shift=shift
  20692. ;;
  20693. esac
  20694. case $ac_option in
  20695. # Handling of the options.
  20696. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20697. ac_cs_recheck=: ;;
  20698. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20699. $as_echo "$ac_cs_version"; exit ;;
  20700. --config | --confi | --conf | --con | --co | --c )
  20701. $as_echo "$ac_cs_config"; exit ;;
  20702. --debug | --debu | --deb | --de | --d | -d )
  20703. debug=: ;;
  20704. --file | --fil | --fi | --f )
  20705. $ac_shift
  20706. case $ac_optarg in
  20707. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20708. '') as_fn_error $? "missing file argument" ;;
  20709. esac
  20710. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20711. ac_need_defaults=false;;
  20712. --header | --heade | --head | --hea )
  20713. $ac_shift
  20714. case $ac_optarg in
  20715. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20716. esac
  20717. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20718. ac_need_defaults=false;;
  20719. --he | --h)
  20720. # Conflict between --help and --header
  20721. as_fn_error $? "ambiguous option: \`$1'
  20722. Try \`$0 --help' for more information.";;
  20723. --help | --hel | -h )
  20724. $as_echo "$ac_cs_usage"; exit ;;
  20725. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20726. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20727. ac_cs_silent=: ;;
  20728. # This is an error.
  20729. -*) as_fn_error $? "unrecognized option: \`$1'
  20730. Try \`$0 --help' for more information." ;;
  20731. *) as_fn_append ac_config_targets " $1"
  20732. ac_need_defaults=false ;;
  20733. esac
  20734. shift
  20735. done
  20736. ac_configure_extra_args=
  20737. if $ac_cs_silent; then
  20738. exec 6>/dev/null
  20739. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20740. fi
  20741. _ACEOF
  20742. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20743. if \$ac_cs_recheck; then
  20744. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20745. shift
  20746. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20747. CONFIG_SHELL='$SHELL'
  20748. export CONFIG_SHELL
  20749. exec "\$@"
  20750. fi
  20751. _ACEOF
  20752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20753. exec 5>>config.log
  20754. {
  20755. echo
  20756. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20757. ## Running $as_me. ##
  20758. _ASBOX
  20759. $as_echo "$ac_log"
  20760. } >&5
  20761. _ACEOF
  20762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20763. #
  20764. # INIT-COMMANDS
  20765. #
  20766. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20767. # if CDPATH is set.
  20768. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20769. sed_quote_subst='$sed_quote_subst'
  20770. double_quote_subst='$double_quote_subst'
  20771. delay_variable_subst='$delay_variable_subst'
  20772. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20773. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20774. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20775. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20776. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20777. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20778. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20779. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20780. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20781. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20782. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20783. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20784. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20785. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20786. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20787. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20788. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20789. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20790. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20791. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20792. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20793. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20794. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20795. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20796. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20797. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20798. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20799. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20800. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20801. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20802. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20803. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20804. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20805. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20806. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20807. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20808. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20809. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20810. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20811. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20812. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20813. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20814. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20815. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20816. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20817. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20818. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20819. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20820. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20821. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20822. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20823. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20824. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20825. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20826. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20827. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20828. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20829. 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"`'
  20830. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20831. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20832. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20833. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20834. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20835. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20836. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20837. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20838. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20839. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20840. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20841. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20842. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20843. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20844. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20845. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20846. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20847. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20848. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20849. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20850. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20851. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20852. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20853. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20854. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20855. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20856. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20857. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20858. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20859. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20860. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20861. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20862. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20863. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20864. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20865. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20866. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20867. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20868. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20869. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20870. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20871. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20872. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20873. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20874. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20875. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20876. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20877. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20878. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20879. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20880. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20881. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20882. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20883. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20884. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20885. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20886. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20887. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20888. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20889. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20890. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20891. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20892. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20893. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20894. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20895. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20896. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20897. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20898. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20899. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20900. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20901. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20902. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20903. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20904. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20905. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20906. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20907. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20908. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20909. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20910. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20911. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20912. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20913. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20914. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20915. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20916. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20917. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20918. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20919. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20920. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20921. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20922. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20923. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20924. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20925. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20926. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20927. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20928. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20929. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20930. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20931. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20932. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20933. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20934. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20935. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20936. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20937. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20938. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20939. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20940. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20941. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20942. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20943. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20944. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20945. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20946. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20947. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20948. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20949. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20950. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20951. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20952. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20953. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20954. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20955. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20956. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20957. LTCC='$LTCC'
  20958. LTCFLAGS='$LTCFLAGS'
  20959. compiler='$compiler_DEFAULT'
  20960. # A function that is used when there is no print builtin or printf.
  20961. func_fallback_echo ()
  20962. {
  20963. eval 'cat <<_LTECHO_EOF
  20964. \$1
  20965. _LTECHO_EOF'
  20966. }
  20967. # Quote evaled strings.
  20968. for var in AS \
  20969. DLLTOOL \
  20970. OBJDUMP \
  20971. SHELL \
  20972. ECHO \
  20973. PATH_SEPARATOR \
  20974. SED \
  20975. GREP \
  20976. EGREP \
  20977. FGREP \
  20978. LD \
  20979. NM \
  20980. LN_S \
  20981. lt_SP2NL \
  20982. lt_NL2SP \
  20983. reload_flag \
  20984. deplibs_check_method \
  20985. file_magic_cmd \
  20986. file_magic_glob \
  20987. want_nocaseglob \
  20988. sharedlib_from_linklib_cmd \
  20989. AR \
  20990. AR_FLAGS \
  20991. archiver_list_spec \
  20992. STRIP \
  20993. RANLIB \
  20994. CC \
  20995. CFLAGS \
  20996. compiler \
  20997. lt_cv_sys_global_symbol_pipe \
  20998. lt_cv_sys_global_symbol_to_cdecl \
  20999. lt_cv_sys_global_symbol_to_c_name_address \
  21000. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21001. nm_file_list_spec \
  21002. lt_prog_compiler_no_builtin_flag \
  21003. lt_prog_compiler_pic \
  21004. lt_prog_compiler_wl \
  21005. lt_prog_compiler_static \
  21006. lt_cv_prog_compiler_c_o \
  21007. need_locks \
  21008. MANIFEST_TOOL \
  21009. DSYMUTIL \
  21010. NMEDIT \
  21011. LIPO \
  21012. OTOOL \
  21013. OTOOL64 \
  21014. shrext_cmds \
  21015. export_dynamic_flag_spec \
  21016. whole_archive_flag_spec \
  21017. compiler_needs_object \
  21018. with_gnu_ld \
  21019. allow_undefined_flag \
  21020. no_undefined_flag \
  21021. hardcode_libdir_flag_spec \
  21022. hardcode_libdir_separator \
  21023. exclude_expsyms \
  21024. include_expsyms \
  21025. file_list_spec \
  21026. variables_saved_for_relink \
  21027. libname_spec \
  21028. library_names_spec \
  21029. soname_spec \
  21030. install_override_mode \
  21031. finish_eval \
  21032. old_striplib \
  21033. striplib \
  21034. compiler_lib_search_dirs \
  21035. predep_objects \
  21036. postdep_objects \
  21037. predeps \
  21038. postdeps \
  21039. compiler_lib_search_path \
  21040. LD_CXX \
  21041. reload_flag_CXX \
  21042. compiler_CXX \
  21043. lt_prog_compiler_no_builtin_flag_CXX \
  21044. lt_prog_compiler_pic_CXX \
  21045. lt_prog_compiler_wl_CXX \
  21046. lt_prog_compiler_static_CXX \
  21047. lt_cv_prog_compiler_c_o_CXX \
  21048. export_dynamic_flag_spec_CXX \
  21049. whole_archive_flag_spec_CXX \
  21050. compiler_needs_object_CXX \
  21051. with_gnu_ld_CXX \
  21052. allow_undefined_flag_CXX \
  21053. no_undefined_flag_CXX \
  21054. hardcode_libdir_flag_spec_CXX \
  21055. hardcode_libdir_separator_CXX \
  21056. exclude_expsyms_CXX \
  21057. include_expsyms_CXX \
  21058. file_list_spec_CXX \
  21059. compiler_lib_search_dirs_CXX \
  21060. predep_objects_CXX \
  21061. postdep_objects_CXX \
  21062. predeps_CXX \
  21063. postdeps_CXX \
  21064. compiler_lib_search_path_CXX; do
  21065. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21066. *[\\\\\\\`\\"\\\$]*)
  21067. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21068. ;;
  21069. *)
  21070. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21071. ;;
  21072. esac
  21073. done
  21074. # Double-quote double-evaled strings.
  21075. for var in reload_cmds \
  21076. old_postinstall_cmds \
  21077. old_postuninstall_cmds \
  21078. old_archive_cmds \
  21079. extract_expsyms_cmds \
  21080. old_archive_from_new_cmds \
  21081. old_archive_from_expsyms_cmds \
  21082. archive_cmds \
  21083. archive_expsym_cmds \
  21084. module_cmds \
  21085. module_expsym_cmds \
  21086. export_symbols_cmds \
  21087. prelink_cmds \
  21088. postlink_cmds \
  21089. postinstall_cmds \
  21090. postuninstall_cmds \
  21091. finish_cmds \
  21092. sys_lib_search_path_spec \
  21093. sys_lib_dlsearch_path_spec \
  21094. reload_cmds_CXX \
  21095. old_archive_cmds_CXX \
  21096. old_archive_from_new_cmds_CXX \
  21097. old_archive_from_expsyms_cmds_CXX \
  21098. archive_cmds_CXX \
  21099. archive_expsym_cmds_CXX \
  21100. module_cmds_CXX \
  21101. module_expsym_cmds_CXX \
  21102. export_symbols_cmds_CXX \
  21103. prelink_cmds_CXX \
  21104. postlink_cmds_CXX; do
  21105. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21106. *[\\\\\\\`\\"\\\$]*)
  21107. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21108. ;;
  21109. *)
  21110. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21111. ;;
  21112. esac
  21113. done
  21114. ac_aux_dir='$ac_aux_dir'
  21115. xsi_shell='$xsi_shell'
  21116. lt_shell_append='$lt_shell_append'
  21117. # See if we are running on zsh, and set the options which allow our
  21118. # commands through without removal of \ escapes INIT.
  21119. if test -n "\${ZSH_VERSION+set}" ; then
  21120. setopt NO_GLOB_SUBST
  21121. fi
  21122. PACKAGE='$PACKAGE'
  21123. VERSION='$VERSION'
  21124. TIMESTAMP='$TIMESTAMP'
  21125. RM='$RM'
  21126. ofile='$ofile'
  21127. SUMMARY="$SUMMARY"
  21128. _ACEOF
  21129. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21130. # Handling of arguments.
  21131. for ac_config_target in $ac_config_targets
  21132. do
  21133. case $ac_config_target in
  21134. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21135. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21136. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21137. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21138. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21139. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21140. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21141. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21142. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21143. esac
  21144. done
  21145. # If the user did not use the arguments to specify the items to instantiate,
  21146. # then the envvar interface is used. Set only those that are not.
  21147. # We use the long form for the default assignment because of an extremely
  21148. # bizarre bug on SunOS 4.1.3.
  21149. if $ac_need_defaults; then
  21150. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21151. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21152. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21153. fi
  21154. # Have a temporary directory for convenience. Make it in the build tree
  21155. # simply because there is no reason against having it here, and in addition,
  21156. # creating and moving files from /tmp can sometimes cause problems.
  21157. # Hook for its removal unless debugging.
  21158. # Note that there is a small window in which the directory will not be cleaned:
  21159. # after its creation but before its name has been assigned to `$tmp'.
  21160. $debug ||
  21161. {
  21162. tmp= ac_tmp=
  21163. trap 'exit_status=$?
  21164. : "${ac_tmp:=$tmp}"
  21165. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21166. ' 0
  21167. trap 'as_fn_exit 1' 1 2 13 15
  21168. }
  21169. # Create a (secure) tmp directory for tmp files.
  21170. {
  21171. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21172. test -d "$tmp"
  21173. } ||
  21174. {
  21175. tmp=./conf$$-$RANDOM
  21176. (umask 077 && mkdir "$tmp")
  21177. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21178. ac_tmp=$tmp
  21179. # Set up the scripts for CONFIG_FILES section.
  21180. # No need to generate them if there are no CONFIG_FILES.
  21181. # This happens for instance with `./config.status config.h'.
  21182. if test -n "$CONFIG_FILES"; then
  21183. ac_cr=`echo X | tr X '\015'`
  21184. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21185. # But we know of no other shell where ac_cr would be empty at this
  21186. # point, so we can use a bashism as a fallback.
  21187. if test "x$ac_cr" = x; then
  21188. eval ac_cr=\$\'\\r\'
  21189. fi
  21190. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21191. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21192. ac_cs_awk_cr='\\r'
  21193. else
  21194. ac_cs_awk_cr=$ac_cr
  21195. fi
  21196. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21197. _ACEOF
  21198. {
  21199. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21200. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21201. echo "_ACEOF"
  21202. } >conf$$subs.sh ||
  21203. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21204. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21205. ac_delim='%!_!# '
  21206. for ac_last_try in false false false false false :; do
  21207. . ./conf$$subs.sh ||
  21208. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21209. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21210. if test $ac_delim_n = $ac_delim_num; then
  21211. break
  21212. elif $ac_last_try; then
  21213. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21214. else
  21215. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21216. fi
  21217. done
  21218. rm -f conf$$subs.sh
  21219. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21220. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21221. _ACEOF
  21222. sed -n '
  21223. h
  21224. s/^/S["/; s/!.*/"]=/
  21225. p
  21226. g
  21227. s/^[^!]*!//
  21228. :repl
  21229. t repl
  21230. s/'"$ac_delim"'$//
  21231. t delim
  21232. :nl
  21233. h
  21234. s/\(.\{148\}\)..*/\1/
  21235. t more1
  21236. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21237. p
  21238. n
  21239. b repl
  21240. :more1
  21241. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21242. p
  21243. g
  21244. s/.\{148\}//
  21245. t nl
  21246. :delim
  21247. h
  21248. s/\(.\{148\}\)..*/\1/
  21249. t more2
  21250. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21251. p
  21252. b
  21253. :more2
  21254. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21255. p
  21256. g
  21257. s/.\{148\}//
  21258. t delim
  21259. ' <conf$$subs.awk | sed '
  21260. /^[^""]/{
  21261. N
  21262. s/\n//
  21263. }
  21264. ' >>$CONFIG_STATUS || ac_write_fail=1
  21265. rm -f conf$$subs.awk
  21266. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21267. _ACAWK
  21268. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21269. for (key in S) S_is_set[key] = 1
  21270. FS = ""
  21271. }
  21272. {
  21273. line = $ 0
  21274. nfields = split(line, field, "@")
  21275. substed = 0
  21276. len = length(field[1])
  21277. for (i = 2; i < nfields; i++) {
  21278. key = field[i]
  21279. keylen = length(key)
  21280. if (S_is_set[key]) {
  21281. value = S[key]
  21282. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21283. len += length(value) + length(field[++i])
  21284. substed = 1
  21285. } else
  21286. len += 1 + keylen
  21287. }
  21288. print line
  21289. }
  21290. _ACAWK
  21291. _ACEOF
  21292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21293. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21294. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21295. else
  21296. cat
  21297. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21298. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21299. _ACEOF
  21300. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21301. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21302. # trailing colons and then remove the whole line if VPATH becomes empty
  21303. # (actually we leave an empty line to preserve line numbers).
  21304. if test "x$srcdir" = x.; then
  21305. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21306. h
  21307. s///
  21308. s/^/:/
  21309. s/[ ]*$/:/
  21310. s/:\$(srcdir):/:/g
  21311. s/:\${srcdir}:/:/g
  21312. s/:@srcdir@:/:/g
  21313. s/^:*//
  21314. s/:*$//
  21315. x
  21316. s/\(=[ ]*\).*/\1/
  21317. G
  21318. s/\n//
  21319. s/^[^=]*=[ ]*$//
  21320. }'
  21321. fi
  21322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21323. fi # test -n "$CONFIG_FILES"
  21324. # Set up the scripts for CONFIG_HEADERS section.
  21325. # No need to generate them if there are no CONFIG_HEADERS.
  21326. # This happens for instance with `./config.status Makefile'.
  21327. if test -n "$CONFIG_HEADERS"; then
  21328. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21329. BEGIN {
  21330. _ACEOF
  21331. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21332. # here-document in config.status, that substitutes the proper values into
  21333. # config.h.in to produce config.h.
  21334. # Create a delimiter string that does not exist in confdefs.h, to ease
  21335. # handling of long lines.
  21336. ac_delim='%!_!# '
  21337. for ac_last_try in false false :; do
  21338. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21339. if test -z "$ac_tt"; then
  21340. break
  21341. elif $ac_last_try; then
  21342. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21343. else
  21344. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21345. fi
  21346. done
  21347. # For the awk script, D is an array of macro values keyed by name,
  21348. # likewise P contains macro parameters if any. Preserve backslash
  21349. # newline sequences.
  21350. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21351. sed -n '
  21352. s/.\{148\}/&'"$ac_delim"'/g
  21353. t rset
  21354. :rset
  21355. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21356. t def
  21357. d
  21358. :def
  21359. s/\\$//
  21360. t bsnl
  21361. s/["\\]/\\&/g
  21362. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21363. D["\1"]=" \3"/p
  21364. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21365. d
  21366. :bsnl
  21367. s/["\\]/\\&/g
  21368. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21369. D["\1"]=" \3\\\\\\n"\\/p
  21370. t cont
  21371. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21372. t cont
  21373. d
  21374. :cont
  21375. n
  21376. s/.\{148\}/&'"$ac_delim"'/g
  21377. t clear
  21378. :clear
  21379. s/\\$//
  21380. t bsnlc
  21381. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21382. d
  21383. :bsnlc
  21384. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21385. b cont
  21386. ' <confdefs.h | sed '
  21387. s/'"$ac_delim"'/"\\\
  21388. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21390. for (key in D) D_is_set[key] = 1
  21391. FS = ""
  21392. }
  21393. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21394. line = \$ 0
  21395. split(line, arg, " ")
  21396. if (arg[1] == "#") {
  21397. defundef = arg[2]
  21398. mac1 = arg[3]
  21399. } else {
  21400. defundef = substr(arg[1], 2)
  21401. mac1 = arg[2]
  21402. }
  21403. split(mac1, mac2, "(") #)
  21404. macro = mac2[1]
  21405. prefix = substr(line, 1, index(line, defundef) - 1)
  21406. if (D_is_set[macro]) {
  21407. # Preserve the white space surrounding the "#".
  21408. print prefix "define", macro P[macro] D[macro]
  21409. next
  21410. } else {
  21411. # Replace #undef with comments. This is necessary, for example,
  21412. # in the case of _POSIX_SOURCE, which is predefined and required
  21413. # on some systems where configure will not decide to define it.
  21414. if (defundef == "undef") {
  21415. print "/*", prefix defundef, macro, "*/"
  21416. next
  21417. }
  21418. }
  21419. }
  21420. { print }
  21421. _ACAWK
  21422. _ACEOF
  21423. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21424. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21425. fi # test -n "$CONFIG_HEADERS"
  21426. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21427. shift
  21428. for ac_tag
  21429. do
  21430. case $ac_tag in
  21431. :[FHLC]) ac_mode=$ac_tag; continue;;
  21432. esac
  21433. case $ac_mode$ac_tag in
  21434. :[FHL]*:*);;
  21435. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21436. :[FH]-) ac_tag=-:-;;
  21437. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21438. esac
  21439. ac_save_IFS=$IFS
  21440. IFS=:
  21441. set x $ac_tag
  21442. IFS=$ac_save_IFS
  21443. shift
  21444. ac_file=$1
  21445. shift
  21446. case $ac_mode in
  21447. :L) ac_source=$1;;
  21448. :[FH])
  21449. ac_file_inputs=
  21450. for ac_f
  21451. do
  21452. case $ac_f in
  21453. -) ac_f="$ac_tmp/stdin";;
  21454. *) # Look for the file first in the build tree, then in the source tree
  21455. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21456. # because $ac_f cannot contain `:'.
  21457. test -f "$ac_f" ||
  21458. case $ac_f in
  21459. [\\/$]*) false;;
  21460. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21461. esac ||
  21462. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21463. esac
  21464. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21465. as_fn_append ac_file_inputs " '$ac_f'"
  21466. done
  21467. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21468. # use $as_me), people would be surprised to read:
  21469. # /* config.h. Generated by config.status. */
  21470. configure_input='Generated from '`
  21471. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21472. `' by configure.'
  21473. if test x"$ac_file" != x-; then
  21474. configure_input="$ac_file. $configure_input"
  21475. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21476. $as_echo "$as_me: creating $ac_file" >&6;}
  21477. fi
  21478. # Neutralize special characters interpreted by sed in replacement strings.
  21479. case $configure_input in #(
  21480. *\&* | *\|* | *\\* )
  21481. ac_sed_conf_input=`$as_echo "$configure_input" |
  21482. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21483. *) ac_sed_conf_input=$configure_input;;
  21484. esac
  21485. case $ac_tag in
  21486. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21487. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21488. esac
  21489. ;;
  21490. esac
  21491. ac_dir=`$as_dirname -- "$ac_file" ||
  21492. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21493. X"$ac_file" : 'X\(//\)[^/]' \| \
  21494. X"$ac_file" : 'X\(//\)$' \| \
  21495. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21496. $as_echo X"$ac_file" |
  21497. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21498. s//\1/
  21499. q
  21500. }
  21501. /^X\(\/\/\)[^/].*/{
  21502. s//\1/
  21503. q
  21504. }
  21505. /^X\(\/\/\)$/{
  21506. s//\1/
  21507. q
  21508. }
  21509. /^X\(\/\).*/{
  21510. s//\1/
  21511. q
  21512. }
  21513. s/.*/./; q'`
  21514. as_dir="$ac_dir"; as_fn_mkdir_p
  21515. ac_builddir=.
  21516. case "$ac_dir" in
  21517. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21518. *)
  21519. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21520. # A ".." for each directory in $ac_dir_suffix.
  21521. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21522. case $ac_top_builddir_sub in
  21523. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21524. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21525. esac ;;
  21526. esac
  21527. ac_abs_top_builddir=$ac_pwd
  21528. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21529. # for backward compatibility:
  21530. ac_top_builddir=$ac_top_build_prefix
  21531. case $srcdir in
  21532. .) # We are building in place.
  21533. ac_srcdir=.
  21534. ac_top_srcdir=$ac_top_builddir_sub
  21535. ac_abs_top_srcdir=$ac_pwd ;;
  21536. [\\/]* | ?:[\\/]* ) # Absolute name.
  21537. ac_srcdir=$srcdir$ac_dir_suffix;
  21538. ac_top_srcdir=$srcdir
  21539. ac_abs_top_srcdir=$srcdir ;;
  21540. *) # Relative name.
  21541. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21542. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21543. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21544. esac
  21545. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21546. case $ac_mode in
  21547. :F)
  21548. #
  21549. # CONFIG_FILE
  21550. #
  21551. case $INSTALL in
  21552. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21553. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21554. esac
  21555. _ACEOF
  21556. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21557. # If the template does not know about datarootdir, expand it.
  21558. # FIXME: This hack should be removed a few years after 2.60.
  21559. ac_datarootdir_hack=; ac_datarootdir_seen=
  21560. ac_sed_dataroot='
  21561. /datarootdir/ {
  21562. p
  21563. q
  21564. }
  21565. /@datadir@/p
  21566. /@docdir@/p
  21567. /@infodir@/p
  21568. /@localedir@/p
  21569. /@mandir@/p'
  21570. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21571. *datarootdir*) ac_datarootdir_seen=yes;;
  21572. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21574. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21575. _ACEOF
  21576. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21577. ac_datarootdir_hack='
  21578. s&@datadir@&$datadir&g
  21579. s&@docdir@&$docdir&g
  21580. s&@infodir@&$infodir&g
  21581. s&@localedir@&$localedir&g
  21582. s&@mandir@&$mandir&g
  21583. s&\\\${datarootdir}&$datarootdir&g' ;;
  21584. esac
  21585. _ACEOF
  21586. # Neutralize VPATH when `$srcdir' = `.'.
  21587. # Shell code in configure.ac might set extrasub.
  21588. # FIXME: do we really want to maintain this feature?
  21589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21590. ac_sed_extra="$ac_vpsub
  21591. $extrasub
  21592. _ACEOF
  21593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21594. :t
  21595. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21596. s|@configure_input@|$ac_sed_conf_input|;t t
  21597. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21598. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21599. s&@srcdir@&$ac_srcdir&;t t
  21600. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21601. s&@top_srcdir@&$ac_top_srcdir&;t t
  21602. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21603. s&@builddir@&$ac_builddir&;t t
  21604. s&@abs_builddir@&$ac_abs_builddir&;t t
  21605. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21606. s&@INSTALL@&$ac_INSTALL&;t t
  21607. $ac_datarootdir_hack
  21608. "
  21609. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21610. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21611. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21612. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21613. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21614. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21616. which seems to be undefined. Please make sure it is defined" >&5
  21617. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21618. which seems to be undefined. Please make sure it is defined" >&2;}
  21619. rm -f "$ac_tmp/stdin"
  21620. case $ac_file in
  21621. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21622. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21623. esac \
  21624. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21625. ;;
  21626. :H)
  21627. #
  21628. # CONFIG_HEADER
  21629. #
  21630. if test x"$ac_file" != x-; then
  21631. {
  21632. $as_echo "/* $configure_input */" \
  21633. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21634. } >"$ac_tmp/config.h" \
  21635. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21636. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21637. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21638. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21639. else
  21640. rm -f "$ac_file"
  21641. mv "$ac_tmp/config.h" "$ac_file" \
  21642. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21643. fi
  21644. else
  21645. $as_echo "/* $configure_input */" \
  21646. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21647. || as_fn_error $? "could not create -" "$LINENO" 5
  21648. fi
  21649. ;;
  21650. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21651. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21652. ;;
  21653. esac
  21654. case $ac_file$ac_mode in
  21655. "libtool":C)
  21656. # See if we are running on zsh, and set the options which allow our
  21657. # commands through without removal of \ escapes.
  21658. if test -n "${ZSH_VERSION+set}" ; then
  21659. setopt NO_GLOB_SUBST
  21660. fi
  21661. cfgfile="${ofile}T"
  21662. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21663. $RM "$cfgfile"
  21664. cat <<_LT_EOF >> "$cfgfile"
  21665. #! $SHELL
  21666. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21667. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21668. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21669. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21670. #
  21671. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21672. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21673. # Foundation, Inc.
  21674. # Written by Gordon Matzigkeit, 1996
  21675. #
  21676. # This file is part of GNU Libtool.
  21677. #
  21678. # GNU Libtool is free software; you can redistribute it and/or
  21679. # modify it under the terms of the GNU General Public License as
  21680. # published by the Free Software Foundation; either version 2 of
  21681. # the License, or (at your option) any later version.
  21682. #
  21683. # As a special exception to the GNU General Public License,
  21684. # if you distribute this file as part of a program or library that
  21685. # is built using GNU Libtool, you may include this file under the
  21686. # same distribution terms that you use for the rest of that program.
  21687. #
  21688. # GNU Libtool is distributed in the hope that it will be useful,
  21689. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21690. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21691. # GNU General Public License for more details.
  21692. #
  21693. # You should have received a copy of the GNU General Public License
  21694. # along with GNU Libtool; see the file COPYING. If not, a copy
  21695. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21696. # obtained by writing to the Free Software Foundation, Inc.,
  21697. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21698. # The names of the tagged configurations supported by this script.
  21699. available_tags="CXX "
  21700. # ### BEGIN LIBTOOL CONFIG
  21701. # Which release of libtool.m4 was used?
  21702. macro_version=$macro_version
  21703. macro_revision=$macro_revision
  21704. # Assembler program.
  21705. AS=$lt_AS
  21706. # DLL creation program.
  21707. DLLTOOL=$lt_DLLTOOL
  21708. # Object dumper program.
  21709. OBJDUMP=$lt_OBJDUMP
  21710. # Whether or not to build shared libraries.
  21711. build_libtool_libs=$enable_shared
  21712. # Whether or not to build static libraries.
  21713. build_old_libs=$enable_static
  21714. # What type of objects to build.
  21715. pic_mode=$pic_mode
  21716. # Whether or not to optimize for fast installation.
  21717. fast_install=$enable_fast_install
  21718. # Shell to use when invoking shell scripts.
  21719. SHELL=$lt_SHELL
  21720. # An echo program that protects backslashes.
  21721. ECHO=$lt_ECHO
  21722. # The PATH separator for the build system.
  21723. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21724. # The host system.
  21725. host_alias=$host_alias
  21726. host=$host
  21727. host_os=$host_os
  21728. # The build system.
  21729. build_alias=$build_alias
  21730. build=$build
  21731. build_os=$build_os
  21732. # A sed program that does not truncate output.
  21733. SED=$lt_SED
  21734. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21735. Xsed="\$SED -e 1s/^X//"
  21736. # A grep program that handles long lines.
  21737. GREP=$lt_GREP
  21738. # An ERE matcher.
  21739. EGREP=$lt_EGREP
  21740. # A literal string matcher.
  21741. FGREP=$lt_FGREP
  21742. # A BSD- or MS-compatible name lister.
  21743. NM=$lt_NM
  21744. # Whether we need soft or hard links.
  21745. LN_S=$lt_LN_S
  21746. # What is the maximum length of a command?
  21747. max_cmd_len=$max_cmd_len
  21748. # Object file suffix (normally "o").
  21749. objext=$ac_objext
  21750. # Executable file suffix (normally "").
  21751. exeext=$exeext
  21752. # whether the shell understands "unset".
  21753. lt_unset=$lt_unset
  21754. # turn spaces into newlines.
  21755. SP2NL=$lt_lt_SP2NL
  21756. # turn newlines into spaces.
  21757. NL2SP=$lt_lt_NL2SP
  21758. # convert \$build file names to \$host format.
  21759. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21760. # convert \$build files to toolchain format.
  21761. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21762. # Method to check whether dependent libraries are shared objects.
  21763. deplibs_check_method=$lt_deplibs_check_method
  21764. # Command to use when deplibs_check_method = "file_magic".
  21765. file_magic_cmd=$lt_file_magic_cmd
  21766. # How to find potential files when deplibs_check_method = "file_magic".
  21767. file_magic_glob=$lt_file_magic_glob
  21768. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21769. want_nocaseglob=$lt_want_nocaseglob
  21770. # Command to associate shared and link libraries.
  21771. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21772. # The archiver.
  21773. AR=$lt_AR
  21774. # Flags to create an archive.
  21775. AR_FLAGS=$lt_AR_FLAGS
  21776. # How to feed a file listing to the archiver.
  21777. archiver_list_spec=$lt_archiver_list_spec
  21778. # A symbol stripping program.
  21779. STRIP=$lt_STRIP
  21780. # Commands used to install an old-style archive.
  21781. RANLIB=$lt_RANLIB
  21782. old_postinstall_cmds=$lt_old_postinstall_cmds
  21783. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21784. # Whether to use a lock for old archive extraction.
  21785. lock_old_archive_extraction=$lock_old_archive_extraction
  21786. # A C compiler.
  21787. LTCC=$lt_CC
  21788. # LTCC compiler flags.
  21789. LTCFLAGS=$lt_CFLAGS
  21790. # Take the output of nm and produce a listing of raw symbols and C names.
  21791. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21792. # Transform the output of nm in a proper C declaration.
  21793. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21794. # Transform the output of nm in a C name address pair.
  21795. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21796. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21797. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21798. # Specify filename containing input files for \$NM.
  21799. nm_file_list_spec=$lt_nm_file_list_spec
  21800. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21801. lt_sysroot=$lt_sysroot
  21802. # The name of the directory that contains temporary libtool files.
  21803. objdir=$objdir
  21804. # Used to examine libraries when file_magic_cmd begins with "file".
  21805. MAGIC_CMD=$MAGIC_CMD
  21806. # Must we lock files when doing compilation?
  21807. need_locks=$lt_need_locks
  21808. # Manifest tool.
  21809. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21810. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21811. DSYMUTIL=$lt_DSYMUTIL
  21812. # Tool to change global to local symbols on Mac OS X.
  21813. NMEDIT=$lt_NMEDIT
  21814. # Tool to manipulate fat objects and archives on Mac OS X.
  21815. LIPO=$lt_LIPO
  21816. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21817. OTOOL=$lt_OTOOL
  21818. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21819. OTOOL64=$lt_OTOOL64
  21820. # Old archive suffix (normally "a").
  21821. libext=$libext
  21822. # Shared library suffix (normally ".so").
  21823. shrext_cmds=$lt_shrext_cmds
  21824. # The commands to extract the exported symbol list from a shared archive.
  21825. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21826. # Variables whose values should be saved in libtool wrapper scripts and
  21827. # restored at link time.
  21828. variables_saved_for_relink=$lt_variables_saved_for_relink
  21829. # Do we need the "lib" prefix for modules?
  21830. need_lib_prefix=$need_lib_prefix
  21831. # Do we need a version for libraries?
  21832. need_version=$need_version
  21833. # Library versioning type.
  21834. version_type=$version_type
  21835. # Shared library runtime path variable.
  21836. runpath_var=$runpath_var
  21837. # Shared library path variable.
  21838. shlibpath_var=$shlibpath_var
  21839. # Is shlibpath searched before the hard-coded library search path?
  21840. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21841. # Format of library name prefix.
  21842. libname_spec=$lt_libname_spec
  21843. # List of archive names. First name is the real one, the rest are links.
  21844. # The last name is the one that the linker finds with -lNAME
  21845. library_names_spec=$lt_library_names_spec
  21846. # The coded name of the library, if different from the real name.
  21847. soname_spec=$lt_soname_spec
  21848. # Permission mode override for installation of shared libraries.
  21849. install_override_mode=$lt_install_override_mode
  21850. # Command to use after installation of a shared archive.
  21851. postinstall_cmds=$lt_postinstall_cmds
  21852. # Command to use after uninstallation of a shared archive.
  21853. postuninstall_cmds=$lt_postuninstall_cmds
  21854. # Commands used to finish a libtool library installation in a directory.
  21855. finish_cmds=$lt_finish_cmds
  21856. # As "finish_cmds", except a single script fragment to be evaled but
  21857. # not shown.
  21858. finish_eval=$lt_finish_eval
  21859. # Whether we should hardcode library paths into libraries.
  21860. hardcode_into_libs=$hardcode_into_libs
  21861. # Compile-time system search path for libraries.
  21862. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21863. # Run-time system search path for libraries.
  21864. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21865. # Whether dlopen is supported.
  21866. dlopen_support=$enable_dlopen
  21867. # Whether dlopen of programs is supported.
  21868. dlopen_self=$enable_dlopen_self
  21869. # Whether dlopen of statically linked programs is supported.
  21870. dlopen_self_static=$enable_dlopen_self_static
  21871. # Commands to strip libraries.
  21872. old_striplib=$lt_old_striplib
  21873. striplib=$lt_striplib
  21874. # The linker used to build libraries.
  21875. LD=$lt_LD
  21876. # How to create reloadable object files.
  21877. reload_flag=$lt_reload_flag
  21878. reload_cmds=$lt_reload_cmds
  21879. # Commands used to build an old-style archive.
  21880. old_archive_cmds=$lt_old_archive_cmds
  21881. # A language specific compiler.
  21882. CC=$lt_compiler
  21883. # Is the compiler the GNU compiler?
  21884. with_gcc=$GCC
  21885. # Compiler flag to turn off builtin functions.
  21886. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21887. # Additional compiler flags for building library objects.
  21888. pic_flag=$lt_lt_prog_compiler_pic
  21889. # How to pass a linker flag through the compiler.
  21890. wl=$lt_lt_prog_compiler_wl
  21891. # Compiler flag to prevent dynamic linking.
  21892. link_static_flag=$lt_lt_prog_compiler_static
  21893. # Does compiler simultaneously support -c and -o options?
  21894. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21895. # Whether or not to add -lc for building shared libraries.
  21896. build_libtool_need_lc=$archive_cmds_need_lc
  21897. # Whether or not to disallow shared libs when runtime libs are static.
  21898. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21899. # Compiler flag to allow reflexive dlopens.
  21900. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21901. # Compiler flag to generate shared objects directly from archives.
  21902. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21903. # Whether the compiler copes with passing no objects directly.
  21904. compiler_needs_object=$lt_compiler_needs_object
  21905. # Create an old-style archive from a shared archive.
  21906. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21907. # Create a temporary old-style archive to link instead of a shared archive.
  21908. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21909. # Commands used to build a shared archive.
  21910. archive_cmds=$lt_archive_cmds
  21911. archive_expsym_cmds=$lt_archive_expsym_cmds
  21912. # Commands used to build a loadable module if different from building
  21913. # a shared archive.
  21914. module_cmds=$lt_module_cmds
  21915. module_expsym_cmds=$lt_module_expsym_cmds
  21916. # Whether we are building with GNU ld or not.
  21917. with_gnu_ld=$lt_with_gnu_ld
  21918. # Flag that allows shared libraries with undefined symbols to be built.
  21919. allow_undefined_flag=$lt_allow_undefined_flag
  21920. # Flag that enforces no undefined symbols.
  21921. no_undefined_flag=$lt_no_undefined_flag
  21922. # Flag to hardcode \$libdir into a binary during linking.
  21923. # This must work even if \$libdir does not exist
  21924. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21925. # Whether we need a single "-rpath" flag with a separated argument.
  21926. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21927. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21928. # DIR into the resulting binary.
  21929. hardcode_direct=$hardcode_direct
  21930. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21931. # DIR into the resulting binary and the resulting library dependency is
  21932. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21933. # library is relocated.
  21934. hardcode_direct_absolute=$hardcode_direct_absolute
  21935. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21936. # into the resulting binary.
  21937. hardcode_minus_L=$hardcode_minus_L
  21938. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21939. # into the resulting binary.
  21940. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21941. # Set to "yes" if building a shared library automatically hardcodes DIR
  21942. # into the library and all subsequent libraries and executables linked
  21943. # against it.
  21944. hardcode_automatic=$hardcode_automatic
  21945. # Set to yes if linker adds runtime paths of dependent libraries
  21946. # to runtime path list.
  21947. inherit_rpath=$inherit_rpath
  21948. # Whether libtool must link a program against all its dependency libraries.
  21949. link_all_deplibs=$link_all_deplibs
  21950. # Set to "yes" if exported symbols are required.
  21951. always_export_symbols=$always_export_symbols
  21952. # The commands to list exported symbols.
  21953. export_symbols_cmds=$lt_export_symbols_cmds
  21954. # Symbols that should not be listed in the preloaded symbols.
  21955. exclude_expsyms=$lt_exclude_expsyms
  21956. # Symbols that must always be exported.
  21957. include_expsyms=$lt_include_expsyms
  21958. # Commands necessary for linking programs (against libraries) with templates.
  21959. prelink_cmds=$lt_prelink_cmds
  21960. # Commands necessary for finishing linking programs.
  21961. postlink_cmds=$lt_postlink_cmds
  21962. # Specify filename containing input files.
  21963. file_list_spec=$lt_file_list_spec
  21964. # How to hardcode a shared library path into an executable.
  21965. hardcode_action=$hardcode_action
  21966. # The directories searched by this compiler when creating a shared library.
  21967. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21968. # Dependencies to place before and after the objects being linked to
  21969. # create a shared library.
  21970. predep_objects=$lt_predep_objects
  21971. postdep_objects=$lt_postdep_objects
  21972. predeps=$lt_predeps
  21973. postdeps=$lt_postdeps
  21974. # The library search path used internally by the compiler when linking
  21975. # a shared library.
  21976. compiler_lib_search_path=$lt_compiler_lib_search_path
  21977. # ### END LIBTOOL CONFIG
  21978. _LT_EOF
  21979. case $host_os in
  21980. aix3*)
  21981. cat <<\_LT_EOF >> "$cfgfile"
  21982. # AIX sometimes has problems with the GCC collect2 program. For some
  21983. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21984. # vanish in a puff of smoke.
  21985. if test "X${COLLECT_NAMES+set}" != Xset; then
  21986. COLLECT_NAMES=
  21987. export COLLECT_NAMES
  21988. fi
  21989. _LT_EOF
  21990. ;;
  21991. esac
  21992. ltmain="$ac_aux_dir/ltmain.sh"
  21993. # We use sed instead of cat because bash on DJGPP gets confused if
  21994. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21995. # text mode, it properly converts lines to CR/LF. This bash problem
  21996. # is reportedly fixed, but why not run on old versions too?
  21997. sed '$q' "$ltmain" >> "$cfgfile" \
  21998. || (rm -f "$cfgfile"; exit 1)
  21999. if test x"$xsi_shell" = xyes; then
  22000. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22001. func_dirname ()\
  22002. {\
  22003. \ case ${1} in\
  22004. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22005. \ * ) func_dirname_result="${3}" ;;\
  22006. \ esac\
  22007. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22008. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22009. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22010. test 0 -eq $? || _lt_function_replace_fail=:
  22011. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22012. func_basename ()\
  22013. {\
  22014. \ func_basename_result="${1##*/}"\
  22015. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22016. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22017. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22018. test 0 -eq $? || _lt_function_replace_fail=:
  22019. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22020. func_dirname_and_basename ()\
  22021. {\
  22022. \ case ${1} in\
  22023. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22024. \ * ) func_dirname_result="${3}" ;;\
  22025. \ esac\
  22026. \ func_basename_result="${1##*/}"\
  22027. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22028. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22029. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22030. test 0 -eq $? || _lt_function_replace_fail=:
  22031. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22032. func_stripname ()\
  22033. {\
  22034. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22035. \ # positional parameters, so assign one to ordinary parameter first.\
  22036. \ func_stripname_result=${3}\
  22037. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22038. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22039. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22040. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22041. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22042. test 0 -eq $? || _lt_function_replace_fail=:
  22043. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22044. func_split_long_opt ()\
  22045. {\
  22046. \ func_split_long_opt_name=${1%%=*}\
  22047. \ func_split_long_opt_arg=${1#*=}\
  22048. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22049. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22050. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22051. test 0 -eq $? || _lt_function_replace_fail=:
  22052. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22053. func_split_short_opt ()\
  22054. {\
  22055. \ func_split_short_opt_arg=${1#??}\
  22056. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22057. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22058. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22059. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22060. test 0 -eq $? || _lt_function_replace_fail=:
  22061. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22062. func_lo2o ()\
  22063. {\
  22064. \ case ${1} in\
  22065. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22066. \ *) func_lo2o_result=${1} ;;\
  22067. \ esac\
  22068. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22069. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22070. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22071. test 0 -eq $? || _lt_function_replace_fail=:
  22072. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22073. func_xform ()\
  22074. {\
  22075. func_xform_result=${1%.*}.lo\
  22076. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22077. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22078. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22079. test 0 -eq $? || _lt_function_replace_fail=:
  22080. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22081. func_arith ()\
  22082. {\
  22083. func_arith_result=$(( $* ))\
  22084. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22085. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22086. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22087. test 0 -eq $? || _lt_function_replace_fail=:
  22088. sed -e '/^func_len ()$/,/^} # func_len /c\
  22089. func_len ()\
  22090. {\
  22091. func_len_result=${#1}\
  22092. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22093. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22094. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22095. test 0 -eq $? || _lt_function_replace_fail=:
  22096. fi
  22097. if test x"$lt_shell_append" = xyes; then
  22098. sed -e '/^func_append ()$/,/^} # func_append /c\
  22099. func_append ()\
  22100. {\
  22101. eval "${1}+=\\${2}"\
  22102. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22103. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22104. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22105. test 0 -eq $? || _lt_function_replace_fail=:
  22106. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22107. func_append_quoted ()\
  22108. {\
  22109. \ func_quote_for_eval "${2}"\
  22110. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22111. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22112. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22113. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22114. test 0 -eq $? || _lt_function_replace_fail=:
  22115. # Save a `func_append' function call where possible by direct use of '+='
  22116. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22117. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22118. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22119. test 0 -eq $? || _lt_function_replace_fail=:
  22120. else
  22121. # Save a `func_append' function call even when '+=' is not available
  22122. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22123. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22124. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22125. test 0 -eq $? || _lt_function_replace_fail=:
  22126. fi
  22127. if test x"$_lt_function_replace_fail" = x":"; then
  22128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22129. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22130. fi
  22131. mv -f "$cfgfile" "$ofile" ||
  22132. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22133. chmod +x "$ofile"
  22134. cat <<_LT_EOF >> "$ofile"
  22135. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22136. # The linker used to build libraries.
  22137. LD=$lt_LD_CXX
  22138. # How to create reloadable object files.
  22139. reload_flag=$lt_reload_flag_CXX
  22140. reload_cmds=$lt_reload_cmds_CXX
  22141. # Commands used to build an old-style archive.
  22142. old_archive_cmds=$lt_old_archive_cmds_CXX
  22143. # A language specific compiler.
  22144. CC=$lt_compiler_CXX
  22145. # Is the compiler the GNU compiler?
  22146. with_gcc=$GCC_CXX
  22147. # Compiler flag to turn off builtin functions.
  22148. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22149. # Additional compiler flags for building library objects.
  22150. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22151. # How to pass a linker flag through the compiler.
  22152. wl=$lt_lt_prog_compiler_wl_CXX
  22153. # Compiler flag to prevent dynamic linking.
  22154. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22155. # Does compiler simultaneously support -c and -o options?
  22156. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22157. # Whether or not to add -lc for building shared libraries.
  22158. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22159. # Whether or not to disallow shared libs when runtime libs are static.
  22160. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22161. # Compiler flag to allow reflexive dlopens.
  22162. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22163. # Compiler flag to generate shared objects directly from archives.
  22164. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22165. # Whether the compiler copes with passing no objects directly.
  22166. compiler_needs_object=$lt_compiler_needs_object_CXX
  22167. # Create an old-style archive from a shared archive.
  22168. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22169. # Create a temporary old-style archive to link instead of a shared archive.
  22170. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22171. # Commands used to build a shared archive.
  22172. archive_cmds=$lt_archive_cmds_CXX
  22173. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22174. # Commands used to build a loadable module if different from building
  22175. # a shared archive.
  22176. module_cmds=$lt_module_cmds_CXX
  22177. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22178. # Whether we are building with GNU ld or not.
  22179. with_gnu_ld=$lt_with_gnu_ld_CXX
  22180. # Flag that allows shared libraries with undefined symbols to be built.
  22181. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22182. # Flag that enforces no undefined symbols.
  22183. no_undefined_flag=$lt_no_undefined_flag_CXX
  22184. # Flag to hardcode \$libdir into a binary during linking.
  22185. # This must work even if \$libdir does not exist
  22186. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22187. # Whether we need a single "-rpath" flag with a separated argument.
  22188. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22189. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22190. # DIR into the resulting binary.
  22191. hardcode_direct=$hardcode_direct_CXX
  22192. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22193. # DIR into the resulting binary and the resulting library dependency is
  22194. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22195. # library is relocated.
  22196. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22197. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22198. # into the resulting binary.
  22199. hardcode_minus_L=$hardcode_minus_L_CXX
  22200. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22201. # into the resulting binary.
  22202. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22203. # Set to "yes" if building a shared library automatically hardcodes DIR
  22204. # into the library and all subsequent libraries and executables linked
  22205. # against it.
  22206. hardcode_automatic=$hardcode_automatic_CXX
  22207. # Set to yes if linker adds runtime paths of dependent libraries
  22208. # to runtime path list.
  22209. inherit_rpath=$inherit_rpath_CXX
  22210. # Whether libtool must link a program against all its dependency libraries.
  22211. link_all_deplibs=$link_all_deplibs_CXX
  22212. # Set to "yes" if exported symbols are required.
  22213. always_export_symbols=$always_export_symbols_CXX
  22214. # The commands to list exported symbols.
  22215. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22216. # Symbols that should not be listed in the preloaded symbols.
  22217. exclude_expsyms=$lt_exclude_expsyms_CXX
  22218. # Symbols that must always be exported.
  22219. include_expsyms=$lt_include_expsyms_CXX
  22220. # Commands necessary for linking programs (against libraries) with templates.
  22221. prelink_cmds=$lt_prelink_cmds_CXX
  22222. # Commands necessary for finishing linking programs.
  22223. postlink_cmds=$lt_postlink_cmds_CXX
  22224. # Specify filename containing input files.
  22225. file_list_spec=$lt_file_list_spec_CXX
  22226. # How to hardcode a shared library path into an executable.
  22227. hardcode_action=$hardcode_action_CXX
  22228. # The directories searched by this compiler when creating a shared library.
  22229. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22230. # Dependencies to place before and after the objects being linked to
  22231. # create a shared library.
  22232. predep_objects=$lt_predep_objects_CXX
  22233. postdep_objects=$lt_postdep_objects_CXX
  22234. predeps=$lt_predeps_CXX
  22235. postdeps=$lt_postdeps_CXX
  22236. # The library search path used internally by the compiler when linking
  22237. # a shared library.
  22238. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22239. # ### END LIBTOOL TAG CONFIG: CXX
  22240. _LT_EOF
  22241. ;;
  22242. "sdl2_config":C) chmod a+x sdl2-config ;;
  22243. "summary":C) echo -en "$SUMMARY" ;;
  22244. esac
  22245. done # for ac_tag
  22246. as_fn_exit 0
  22247. _ACEOF
  22248. ac_clean_files=$ac_clean_files_save
  22249. test $ac_write_fail = 0 ||
  22250. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22251. # configure is writing to config.log, and then calls config.status.
  22252. # config.status does its own redirection, appending to config.log.
  22253. # Unfortunately, on DOS this fails, as config.log is still kept open
  22254. # by configure, so config.status won't be able to write to it; its
  22255. # output is simply discarded. So we exec the FD to /dev/null,
  22256. # effectively closing config.log, so it can be properly (re)opened and
  22257. # appended to by config.status. When coming back to configure, we
  22258. # need to make the FD available again.
  22259. if test "$no_create" != yes; then
  22260. ac_cs_success=:
  22261. ac_config_status_args=
  22262. test "$silent" = yes &&
  22263. ac_config_status_args="$ac_config_status_args --quiet"
  22264. exec 5>/dev/null
  22265. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22266. exec 5>>config.log
  22267. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22268. # would make configure fail if this is the last instruction.
  22269. $ac_cs_success || as_fn_exit 1
  22270. fi
  22271. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22273. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22274. fi