configure 745 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502
  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_x11
  772. with_x
  773. enable_x11_shared
  774. enable_video_x11_xcursor
  775. enable_video_x11_xinerama
  776. enable_video_x11_xinput
  777. enable_video_x11_xrandr
  778. enable_video_x11_scrnsaver
  779. enable_video_x11_xshape
  780. enable_video_x11_vm
  781. enable_video_cocoa
  782. enable_video_directfb
  783. enable_directfb_shared
  784. enable_fusionsound
  785. enable_fusionsound_shared
  786. enable_video_dummy
  787. enable_video_opengl
  788. enable_video_opengles
  789. enable_libudev
  790. enable_dbus
  791. enable_input_tslib
  792. enable_pthreads
  793. enable_pthread_sem
  794. enable_directx
  795. enable_sdl_dlopen
  796. enable_clock_gettime
  797. enable_rpath
  798. enable_render_d3d
  799. '
  800. ac_precious_vars='build_alias
  801. host_alias
  802. target_alias
  803. CC
  804. CFLAGS
  805. LDFLAGS
  806. LIBS
  807. CPPFLAGS
  808. CPP
  809. CXX
  810. CXXFLAGS
  811. CCC
  812. CXXCPP
  813. XMKMF'
  814. # Initialize some variables set by options.
  815. ac_init_help=
  816. ac_init_version=false
  817. ac_unrecognized_opts=
  818. ac_unrecognized_sep=
  819. # The variables have the same names as the options, with
  820. # dashes changed to underlines.
  821. cache_file=/dev/null
  822. exec_prefix=NONE
  823. no_create=
  824. no_recursion=
  825. prefix=NONE
  826. program_prefix=NONE
  827. program_suffix=NONE
  828. program_transform_name=s,x,x,
  829. silent=
  830. site=
  831. srcdir=
  832. verbose=
  833. x_includes=NONE
  834. x_libraries=NONE
  835. # Installation directory options.
  836. # These are left unexpanded so users can "make install exec_prefix=/foo"
  837. # and all the variables that are supposed to be based on exec_prefix
  838. # by default will actually change.
  839. # Use braces instead of parens because sh, perl, etc. also accept them.
  840. # (The list follows the same order as the GNU Coding Standards.)
  841. bindir='${exec_prefix}/bin'
  842. sbindir='${exec_prefix}/sbin'
  843. libexecdir='${exec_prefix}/libexec'
  844. datarootdir='${prefix}/share'
  845. datadir='${datarootdir}'
  846. sysconfdir='${prefix}/etc'
  847. sharedstatedir='${prefix}/com'
  848. localstatedir='${prefix}/var'
  849. includedir='${prefix}/include'
  850. oldincludedir='/usr/include'
  851. docdir='${datarootdir}/doc/${PACKAGE}'
  852. infodir='${datarootdir}/info'
  853. htmldir='${docdir}'
  854. dvidir='${docdir}'
  855. pdfdir='${docdir}'
  856. psdir='${docdir}'
  857. libdir='${exec_prefix}/lib'
  858. localedir='${datarootdir}/locale'
  859. mandir='${datarootdir}/man'
  860. ac_prev=
  861. ac_dashdash=
  862. for ac_option
  863. do
  864. # If the previous option needs an argument, assign it.
  865. if test -n "$ac_prev"; then
  866. eval $ac_prev=\$ac_option
  867. ac_prev=
  868. continue
  869. fi
  870. case $ac_option in
  871. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  872. *=) ac_optarg= ;;
  873. *) ac_optarg=yes ;;
  874. esac
  875. # Accept the important Cygnus configure options, so we can diagnose typos.
  876. case $ac_dashdash$ac_option in
  877. --)
  878. ac_dashdash=yes ;;
  879. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  880. ac_prev=bindir ;;
  881. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  882. bindir=$ac_optarg ;;
  883. -build | --build | --buil | --bui | --bu)
  884. ac_prev=build_alias ;;
  885. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  886. build_alias=$ac_optarg ;;
  887. -cache-file | --cache-file | --cache-fil | --cache-fi \
  888. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  889. ac_prev=cache_file ;;
  890. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  891. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  892. cache_file=$ac_optarg ;;
  893. --config-cache | -C)
  894. cache_file=config.cache ;;
  895. -datadir | --datadir | --datadi | --datad)
  896. ac_prev=datadir ;;
  897. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  898. datadir=$ac_optarg ;;
  899. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  900. | --dataroo | --dataro | --datar)
  901. ac_prev=datarootdir ;;
  902. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  903. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  904. datarootdir=$ac_optarg ;;
  905. -disable-* | --disable-*)
  906. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  907. # Reject names that are not valid shell variable names.
  908. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  909. as_fn_error $? "invalid feature name: $ac_useropt"
  910. ac_useropt_orig=$ac_useropt
  911. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  912. case $ac_user_opts in
  913. *"
  914. "enable_$ac_useropt"
  915. "*) ;;
  916. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  917. ac_unrecognized_sep=', ';;
  918. esac
  919. eval enable_$ac_useropt=no ;;
  920. -docdir | --docdir | --docdi | --doc | --do)
  921. ac_prev=docdir ;;
  922. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  923. docdir=$ac_optarg ;;
  924. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  925. ac_prev=dvidir ;;
  926. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  927. dvidir=$ac_optarg ;;
  928. -enable-* | --enable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=\$ac_optarg ;;
  943. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  944. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  945. | --exec | --exe | --ex)
  946. ac_prev=exec_prefix ;;
  947. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  948. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  949. | --exec=* | --exe=* | --ex=*)
  950. exec_prefix=$ac_optarg ;;
  951. -gas | --gas | --ga | --g)
  952. # Obsolete; use --with-gas.
  953. with_gas=yes ;;
  954. -help | --help | --hel | --he | -h)
  955. ac_init_help=long ;;
  956. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  957. ac_init_help=recursive ;;
  958. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  959. ac_init_help=short ;;
  960. -host | --host | --hos | --ho)
  961. ac_prev=host_alias ;;
  962. -host=* | --host=* | --hos=* | --ho=*)
  963. host_alias=$ac_optarg ;;
  964. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  965. ac_prev=htmldir ;;
  966. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  967. | --ht=*)
  968. htmldir=$ac_optarg ;;
  969. -includedir | --includedir | --includedi | --included | --include \
  970. | --includ | --inclu | --incl | --inc)
  971. ac_prev=includedir ;;
  972. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  973. | --includ=* | --inclu=* | --incl=* | --inc=*)
  974. includedir=$ac_optarg ;;
  975. -infodir | --infodir | --infodi | --infod | --info | --inf)
  976. ac_prev=infodir ;;
  977. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  978. infodir=$ac_optarg ;;
  979. -libdir | --libdir | --libdi | --libd)
  980. ac_prev=libdir ;;
  981. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  982. libdir=$ac_optarg ;;
  983. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  984. | --libexe | --libex | --libe)
  985. ac_prev=libexecdir ;;
  986. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  987. | --libexe=* | --libex=* | --libe=*)
  988. libexecdir=$ac_optarg ;;
  989. -localedir | --localedir | --localedi | --localed | --locale)
  990. ac_prev=localedir ;;
  991. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  992. localedir=$ac_optarg ;;
  993. -localstatedir | --localstatedir | --localstatedi | --localstated \
  994. | --localstate | --localstat | --localsta | --localst | --locals)
  995. ac_prev=localstatedir ;;
  996. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  997. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  998. localstatedir=$ac_optarg ;;
  999. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1000. ac_prev=mandir ;;
  1001. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1002. mandir=$ac_optarg ;;
  1003. -nfp | --nfp | --nf)
  1004. # Obsolete; use --without-fp.
  1005. with_fp=no ;;
  1006. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1007. | --no-cr | --no-c | -n)
  1008. no_create=yes ;;
  1009. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1010. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1011. no_recursion=yes ;;
  1012. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1013. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1014. | --oldin | --oldi | --old | --ol | --o)
  1015. ac_prev=oldincludedir ;;
  1016. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1017. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1018. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1019. oldincludedir=$ac_optarg ;;
  1020. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1021. ac_prev=prefix ;;
  1022. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1023. prefix=$ac_optarg ;;
  1024. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1025. | --program-pre | --program-pr | --program-p)
  1026. ac_prev=program_prefix ;;
  1027. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1028. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1029. program_prefix=$ac_optarg ;;
  1030. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1031. | --program-suf | --program-su | --program-s)
  1032. ac_prev=program_suffix ;;
  1033. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1034. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1035. program_suffix=$ac_optarg ;;
  1036. -program-transform-name | --program-transform-name \
  1037. | --program-transform-nam | --program-transform-na \
  1038. | --program-transform-n | --program-transform- \
  1039. | --program-transform | --program-transfor \
  1040. | --program-transfo | --program-transf \
  1041. | --program-trans | --program-tran \
  1042. | --progr-tra | --program-tr | --program-t)
  1043. ac_prev=program_transform_name ;;
  1044. -program-transform-name=* | --program-transform-name=* \
  1045. | --program-transform-nam=* | --program-transform-na=* \
  1046. | --program-transform-n=* | --program-transform-=* \
  1047. | --program-transform=* | --program-transfor=* \
  1048. | --program-transfo=* | --program-transf=* \
  1049. | --program-trans=* | --program-tran=* \
  1050. | --progr-tra=* | --program-tr=* | --program-t=*)
  1051. program_transform_name=$ac_optarg ;;
  1052. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1053. ac_prev=pdfdir ;;
  1054. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1055. pdfdir=$ac_optarg ;;
  1056. -psdir | --psdir | --psdi | --psd | --ps)
  1057. ac_prev=psdir ;;
  1058. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1059. psdir=$ac_optarg ;;
  1060. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1061. | -silent | --silent | --silen | --sile | --sil)
  1062. silent=yes ;;
  1063. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1064. ac_prev=sbindir ;;
  1065. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1066. | --sbi=* | --sb=*)
  1067. sbindir=$ac_optarg ;;
  1068. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1069. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1070. | --sharedst | --shareds | --shared | --share | --shar \
  1071. | --sha | --sh)
  1072. ac_prev=sharedstatedir ;;
  1073. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1074. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1075. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1076. | --sha=* | --sh=*)
  1077. sharedstatedir=$ac_optarg ;;
  1078. -site | --site | --sit)
  1079. ac_prev=site ;;
  1080. -site=* | --site=* | --sit=*)
  1081. site=$ac_optarg ;;
  1082. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1083. ac_prev=srcdir ;;
  1084. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1085. srcdir=$ac_optarg ;;
  1086. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1087. | --syscon | --sysco | --sysc | --sys | --sy)
  1088. ac_prev=sysconfdir ;;
  1089. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1090. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1091. sysconfdir=$ac_optarg ;;
  1092. -target | --target | --targe | --targ | --tar | --ta | --t)
  1093. ac_prev=target_alias ;;
  1094. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1095. target_alias=$ac_optarg ;;
  1096. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1097. verbose=yes ;;
  1098. -version | --version | --versio | --versi | --vers | -V)
  1099. ac_init_version=: ;;
  1100. -with-* | --with-*)
  1101. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1102. # Reject names that are not valid shell variable names.
  1103. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1104. as_fn_error $? "invalid package name: $ac_useropt"
  1105. ac_useropt_orig=$ac_useropt
  1106. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1107. case $ac_user_opts in
  1108. *"
  1109. "with_$ac_useropt"
  1110. "*) ;;
  1111. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1112. ac_unrecognized_sep=', ';;
  1113. esac
  1114. eval with_$ac_useropt=\$ac_optarg ;;
  1115. -without-* | --without-*)
  1116. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1117. # Reject names that are not valid shell variable names.
  1118. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1119. as_fn_error $? "invalid package name: $ac_useropt"
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=no ;;
  1130. --x)
  1131. # Obsolete; use --with-x.
  1132. with_x=yes ;;
  1133. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1134. | --x-incl | --x-inc | --x-in | --x-i)
  1135. ac_prev=x_includes ;;
  1136. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1137. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1138. x_includes=$ac_optarg ;;
  1139. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1140. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1141. ac_prev=x_libraries ;;
  1142. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1143. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1144. x_libraries=$ac_optarg ;;
  1145. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1146. Try \`$0 --help' for more information"
  1147. ;;
  1148. *=*)
  1149. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1150. # Reject names that are not valid shell variable names.
  1151. case $ac_envvar in #(
  1152. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1153. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1154. esac
  1155. eval $ac_envvar=\$ac_optarg
  1156. export $ac_envvar ;;
  1157. *)
  1158. # FIXME: should be removed in autoconf 3.0.
  1159. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1160. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1161. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1162. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1163. ;;
  1164. esac
  1165. done
  1166. if test -n "$ac_prev"; then
  1167. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1168. as_fn_error $? "missing argument to $ac_option"
  1169. fi
  1170. if test -n "$ac_unrecognized_opts"; then
  1171. case $enable_option_checking in
  1172. no) ;;
  1173. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1174. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1175. esac
  1176. fi
  1177. # Check all directory arguments for consistency.
  1178. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1179. datadir sysconfdir sharedstatedir localstatedir includedir \
  1180. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1181. libdir localedir mandir
  1182. do
  1183. eval ac_val=\$$ac_var
  1184. # Remove trailing slashes.
  1185. case $ac_val in
  1186. */ )
  1187. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1188. eval $ac_var=\$ac_val;;
  1189. esac
  1190. # Be sure to have absolute directory names.
  1191. case $ac_val in
  1192. [\\/$]* | ?:[\\/]* ) continue;;
  1193. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1194. esac
  1195. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1196. done
  1197. # There might be people who depend on the old broken behavior: `$host'
  1198. # used to hold the argument of --host etc.
  1199. # FIXME: To remove some day.
  1200. build=$build_alias
  1201. host=$host_alias
  1202. target=$target_alias
  1203. # FIXME: To remove some day.
  1204. if test "x$host_alias" != x; then
  1205. if test "x$build_alias" = x; then
  1206. cross_compiling=maybe
  1207. elif test "x$build_alias" != "x$host_alias"; then
  1208. cross_compiling=yes
  1209. fi
  1210. fi
  1211. ac_tool_prefix=
  1212. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1213. test "$silent" = yes && exec 6>/dev/null
  1214. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1215. ac_ls_di=`ls -di .` &&
  1216. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1217. as_fn_error $? "working directory cannot be determined"
  1218. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1219. as_fn_error $? "pwd does not report name of working directory"
  1220. # Find the source files, if location was not specified.
  1221. if test -z "$srcdir"; then
  1222. ac_srcdir_defaulted=yes
  1223. # Try the directory containing this script, then the parent directory.
  1224. ac_confdir=`$as_dirname -- "$as_myself" ||
  1225. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1226. X"$as_myself" : 'X\(//\)[^/]' \| \
  1227. X"$as_myself" : 'X\(//\)$' \| \
  1228. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1229. $as_echo X"$as_myself" |
  1230. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\/\)[^/].*/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\).*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. s/.*/./; q'`
  1247. srcdir=$ac_confdir
  1248. if test ! -r "$srcdir/$ac_unique_file"; then
  1249. srcdir=..
  1250. fi
  1251. else
  1252. ac_srcdir_defaulted=no
  1253. fi
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1256. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1257. fi
  1258. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1259. ac_abs_confdir=`(
  1260. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1261. pwd)`
  1262. # When building in place, set srcdir=.
  1263. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1264. srcdir=.
  1265. fi
  1266. # Remove unnecessary trailing slashes from srcdir.
  1267. # Double slashes in file names in object file debugging info
  1268. # mess up M-x gdb in Emacs.
  1269. case $srcdir in
  1270. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1271. esac
  1272. for ac_var in $ac_precious_vars; do
  1273. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1274. eval ac_env_${ac_var}_value=\$${ac_var}
  1275. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1276. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1277. done
  1278. #
  1279. # Report the --help message.
  1280. #
  1281. if test "$ac_init_help" = "long"; then
  1282. # Omit some internal or obsolete options to make the list less imposing.
  1283. # This message is too long to be a string in the A/UX 3.1 sh.
  1284. cat <<_ACEOF
  1285. \`configure' configures this package to adapt to many kinds of systems.
  1286. Usage: $0 [OPTION]... [VAR=VALUE]...
  1287. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1288. VAR=VALUE. See below for descriptions of some of the useful variables.
  1289. Defaults for the options are specified in brackets.
  1290. Configuration:
  1291. -h, --help display this help and exit
  1292. --help=short display options specific to this package
  1293. --help=recursive display the short help of all the included packages
  1294. -V, --version display version information and exit
  1295. -q, --quiet, --silent do not print \`checking ...' messages
  1296. --cache-file=FILE cache test results in FILE [disabled]
  1297. -C, --config-cache alias for \`--cache-file=config.cache'
  1298. -n, --no-create do not create output files
  1299. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1300. Installation directories:
  1301. --prefix=PREFIX install architecture-independent files in PREFIX
  1302. [$ac_default_prefix]
  1303. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1304. [PREFIX]
  1305. By default, \`make install' will install all the files in
  1306. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1307. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1308. for instance \`--prefix=\$HOME'.
  1309. For better control, use the options below.
  1310. Fine tuning of the installation directories:
  1311. --bindir=DIR user executables [EPREFIX/bin]
  1312. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1313. --libexecdir=DIR program executables [EPREFIX/libexec]
  1314. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1315. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1316. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1317. --libdir=DIR object code libraries [EPREFIX/lib]
  1318. --includedir=DIR C header files [PREFIX/include]
  1319. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1320. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1321. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1322. --infodir=DIR info documentation [DATAROOTDIR/info]
  1323. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1324. --mandir=DIR man documentation [DATAROOTDIR/man]
  1325. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1326. --htmldir=DIR html documentation [DOCDIR]
  1327. --dvidir=DIR dvi documentation [DOCDIR]
  1328. --pdfdir=DIR pdf documentation [DOCDIR]
  1329. --psdir=DIR ps documentation [DOCDIR]
  1330. _ACEOF
  1331. cat <<\_ACEOF
  1332. X features:
  1333. --x-includes=DIR X include files are in DIR
  1334. --x-libraries=DIR X library files are in DIR
  1335. System types:
  1336. --build=BUILD configure for building on BUILD [guessed]
  1337. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1338. _ACEOF
  1339. fi
  1340. if test -n "$ac_init_help"; then
  1341. cat <<\_ACEOF
  1342. Optional Features:
  1343. --disable-option-checking ignore unrecognized --enable/--with options
  1344. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1345. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1346. --enable-shared[=PKGS] build shared libraries [default=yes]
  1347. --enable-static[=PKGS] build static libraries [default=yes]
  1348. --enable-fast-install[=PKGS]
  1349. optimize for fast installation [default=yes]
  1350. --disable-libtool-lock avoid locking (might break parallel builds)
  1351. --enable-assertions Enable internal sanity checks
  1352. (auto/disabled/release/enabled/paranoid)
  1353. [[default=auto]]
  1354. --enable-dependency-tracking
  1355. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1356. --enable-libc Use the system C library [[default=yes]]
  1357. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1358. --enable-atomic Enable the atomic operations subsystem
  1359. [[default=yes]]
  1360. --enable-audio Enable the audio subsystem [[default=yes]]
  1361. --enable-video Enable the video subsystem [[default=yes]]
  1362. --enable-render Enable the render subsystem [[default=yes]]
  1363. --enable-events Enable the events subsystem [[default=yes]]
  1364. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1365. --enable-haptic Enable the haptic (force feedback) subsystem
  1366. [[default=yes]]
  1367. --enable-power Enable the power subsystem [[default=yes]]
  1368. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1369. --enable-threads Enable the threading subsystem [[default=yes]]
  1370. --enable-timers Enable the timer subsystem [[default=yes]]
  1371. --enable-file Enable the file subsystem [[default=yes]]
  1372. --enable-loadso Enable the shared object loading subsystem
  1373. [[default=yes]]
  1374. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1375. --enable-atomic Enable the atomic operations [[default=yes]]
  1376. --enable-assembly Enable assembly routines [[default=yes]]
  1377. --enable-ssemath Allow GCC to use SSE floating point math
  1378. [[default=no]]
  1379. --enable-mmx use MMX assembly routines [[default=yes]]
  1380. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1381. --enable-sse use SSE assembly routines [[default=yes]]
  1382. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1383. --enable-altivec use Altivec assembly routines [[default=yes]]
  1384. --enable-oss support the OSS audio API [[default=maybe]]
  1385. --enable-alsa support the ALSA audio API [[default=yes]]
  1386. --disable-alsatest Do not try to compile and run a test Alsa program
  1387. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1388. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1389. --disable-esdtest Do not try to compile and run a test ESD program
  1390. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1391. --enable-pulseaudio use PulseAudio [[default=yes]]
  1392. --enable-pulseaudio-shared
  1393. dynamically load PulseAudio support [[default=yes]]
  1394. --enable-arts support the Analog Real Time Synthesizer
  1395. [[default=yes]]
  1396. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1397. --enable-nas support the NAS audio API [[default=yes]]
  1398. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1399. --enable-sndio support the sndio audio API [[default=yes]]
  1400. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1401. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1402. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1403. --enable-video-wayland use Wayland video driver [[default=yes]]
  1404. --enable-video-wayland-qt-touch
  1405. QtWayland server support for Wayland video driver
  1406. [[default=yes]]
  1407. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1408. --enable-video-x11 use X11 video driver [[default=yes]]
  1409. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1410. --enable-video-x11-xcursor
  1411. enable X11 Xcursor support [[default=yes]]
  1412. --enable-video-x11-xinerama
  1413. enable X11 Xinerama support [[default=yes]]
  1414. --enable-video-x11-xinput
  1415. enable X11 XInput extension for manymouse, tablets,
  1416. etc [[default=yes]]
  1417. --enable-video-x11-xrandr
  1418. enable X11 Xrandr extension for fullscreen
  1419. [[default=yes]]
  1420. --enable-video-x11-scrnsaver
  1421. enable X11 screensaver extension [[default=yes]]
  1422. --enable-video-x11-xshape
  1423. enable X11 XShape support [[default=yes]]
  1424. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1425. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1426. --enable-video-directfb use DirectFB video driver [[default=no]]
  1427. --enable-directfb-shared
  1428. dynamically load directfb support [[default=yes]]
  1429. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1430. --enable-fusionsound-shared
  1431. dynamically load fusionsound audio support
  1432. [[default=yes]]
  1433. --enable-video-dummy use dummy video driver [[default=yes]]
  1434. --enable-video-opengl include OpenGL support [[default=yes]]
  1435. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1436. --enable-libudev enable libudev support [[default=yes]]
  1437. --enable-dbus enable D-Bus support [[default=yes]]
  1438. --enable-input-tslib use the Touchscreen library for input
  1439. [[default=yes]]
  1440. --enable-pthreads use POSIX threads for multi-threading
  1441. [[default=yes]]
  1442. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1443. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1444. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1445. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1446. UNIX [[default=yes]]
  1447. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1448. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1449. Optional Packages:
  1450. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1451. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1452. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1453. both]
  1454. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1455. --with-sysroot=DIR Search for dependent libraries within DIR
  1456. (or the compiler's sysroot if not specified).
  1457. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1458. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1459. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1460. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1461. --with-x use the X Window System
  1462. Some influential environment variables:
  1463. CC C compiler command
  1464. CFLAGS C compiler flags
  1465. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1466. nonstandard directory <lib dir>
  1467. LIBS libraries to pass to the linker, e.g. -l<library>
  1468. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1469. you have headers in a nonstandard directory <include dir>
  1470. CPP C preprocessor
  1471. CXX C++ compiler command
  1472. CXXFLAGS C++ compiler flags
  1473. CXXCPP C++ preprocessor
  1474. XMKMF Path to xmkmf, Makefile generator for X Window System
  1475. Use these variables to override the choices made by `configure' or to help
  1476. it to find libraries and programs with nonstandard names/locations.
  1477. Report bugs to the package provider.
  1478. _ACEOF
  1479. ac_status=$?
  1480. fi
  1481. if test "$ac_init_help" = "recursive"; then
  1482. # If there are subdirs, report their specific --help.
  1483. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1484. test -d "$ac_dir" ||
  1485. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1486. continue
  1487. ac_builddir=.
  1488. case "$ac_dir" in
  1489. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1490. *)
  1491. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1492. # A ".." for each directory in $ac_dir_suffix.
  1493. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1494. case $ac_top_builddir_sub in
  1495. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1496. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1497. esac ;;
  1498. esac
  1499. ac_abs_top_builddir=$ac_pwd
  1500. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1501. # for backward compatibility:
  1502. ac_top_builddir=$ac_top_build_prefix
  1503. case $srcdir in
  1504. .) # We are building in place.
  1505. ac_srcdir=.
  1506. ac_top_srcdir=$ac_top_builddir_sub
  1507. ac_abs_top_srcdir=$ac_pwd ;;
  1508. [\\/]* | ?:[\\/]* ) # Absolute name.
  1509. ac_srcdir=$srcdir$ac_dir_suffix;
  1510. ac_top_srcdir=$srcdir
  1511. ac_abs_top_srcdir=$srcdir ;;
  1512. *) # Relative name.
  1513. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1514. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1515. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1516. esac
  1517. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1518. cd "$ac_dir" || { ac_status=$?; continue; }
  1519. # Check for guested configure.
  1520. if test -f "$ac_srcdir/configure.gnu"; then
  1521. echo &&
  1522. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1523. elif test -f "$ac_srcdir/configure"; then
  1524. echo &&
  1525. $SHELL "$ac_srcdir/configure" --help=recursive
  1526. else
  1527. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1528. fi || ac_status=$?
  1529. cd "$ac_pwd" || { ac_status=$?; break; }
  1530. done
  1531. fi
  1532. test -n "$ac_init_help" && exit $ac_status
  1533. if $ac_init_version; then
  1534. cat <<\_ACEOF
  1535. configure
  1536. generated by GNU Autoconf 2.69
  1537. Copyright (C) 2012 Free Software Foundation, Inc.
  1538. This configure script is free software; the Free Software Foundation
  1539. gives unlimited permission to copy, distribute and modify it.
  1540. _ACEOF
  1541. exit
  1542. fi
  1543. ## ------------------------ ##
  1544. ## Autoconf initialization. ##
  1545. ## ------------------------ ##
  1546. # ac_fn_c_try_compile LINENO
  1547. # --------------------------
  1548. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1549. ac_fn_c_try_compile ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. rm -f conftest.$ac_objext
  1553. if { { ac_try="$ac_compile"
  1554. case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_compile") 2>conftest.err
  1561. ac_status=$?
  1562. if test -s conftest.err; then
  1563. grep -v '^ *+' conftest.err >conftest.er1
  1564. cat conftest.er1 >&5
  1565. mv -f conftest.er1 conftest.err
  1566. fi
  1567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1568. test $ac_status = 0; } && {
  1569. test -z "$ac_c_werror_flag" ||
  1570. test ! -s conftest.err
  1571. } && test -s conftest.$ac_objext; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=1
  1577. fi
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. as_fn_set_status $ac_retval
  1580. } # ac_fn_c_try_compile
  1581. # ac_fn_c_try_link LINENO
  1582. # -----------------------
  1583. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1584. ac_fn_c_try_link ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. rm -f conftest.$ac_objext conftest$ac_exeext
  1588. if { { ac_try="$ac_link"
  1589. case "(($ac_try" in
  1590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1591. *) ac_try_echo=$ac_try;;
  1592. esac
  1593. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1594. $as_echo "$ac_try_echo"; } >&5
  1595. (eval "$ac_link") 2>conftest.err
  1596. ac_status=$?
  1597. if test -s conftest.err; then
  1598. grep -v '^ *+' conftest.err >conftest.er1
  1599. cat conftest.er1 >&5
  1600. mv -f conftest.er1 conftest.err
  1601. fi
  1602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1603. test $ac_status = 0; } && {
  1604. test -z "$ac_c_werror_flag" ||
  1605. test ! -s conftest.err
  1606. } && test -s conftest$ac_exeext && {
  1607. test "$cross_compiling" = yes ||
  1608. test -x conftest$ac_exeext
  1609. }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1617. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1618. # interfere with the next link command; also delete a directory that is
  1619. # left behind by Apple's compiler. We do this before executing the actions.
  1620. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. as_fn_set_status $ac_retval
  1623. } # ac_fn_c_try_link
  1624. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1625. # -------------------------------------------------------
  1626. # Tests whether HEADER exists and can be compiled using the include files in
  1627. # INCLUDES, setting the cache variable VAR accordingly.
  1628. ac_fn_c_check_header_compile ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1632. $as_echo_n "checking for $2... " >&6; }
  1633. if eval \${$3+:} false; then :
  1634. $as_echo_n "(cached) " >&6
  1635. else
  1636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1637. /* end confdefs.h. */
  1638. $4
  1639. #include <$2>
  1640. _ACEOF
  1641. if ac_fn_c_try_compile "$LINENO"; then :
  1642. eval "$3=yes"
  1643. else
  1644. eval "$3=no"
  1645. fi
  1646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1647. fi
  1648. eval ac_res=\$$3
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1650. $as_echo "$ac_res" >&6; }
  1651. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652. } # ac_fn_c_check_header_compile
  1653. # ac_fn_c_try_cpp LINENO
  1654. # ----------------------
  1655. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1656. ac_fn_c_try_cpp ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1660. case "(($ac_try" in
  1661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1662. *) ac_try_echo=$ac_try;;
  1663. esac
  1664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1665. $as_echo "$ac_try_echo"; } >&5
  1666. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1667. ac_status=$?
  1668. if test -s conftest.err; then
  1669. grep -v '^ *+' conftest.err >conftest.er1
  1670. cat conftest.er1 >&5
  1671. mv -f conftest.er1 conftest.err
  1672. fi
  1673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1674. test $ac_status = 0; } > conftest.i && {
  1675. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1676. test ! -s conftest.err
  1677. }; then :
  1678. ac_retval=0
  1679. else
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=1
  1683. fi
  1684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1685. as_fn_set_status $ac_retval
  1686. } # ac_fn_c_try_cpp
  1687. # ac_fn_c_try_run LINENO
  1688. # ----------------------
  1689. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1690. # that executables *can* be run.
  1691. ac_fn_c_try_run ()
  1692. {
  1693. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1694. if { { ac_try="$ac_link"
  1695. case "(($ac_try" in
  1696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1697. *) ac_try_echo=$ac_try;;
  1698. esac
  1699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1700. $as_echo "$ac_try_echo"; } >&5
  1701. (eval "$ac_link") 2>&5
  1702. ac_status=$?
  1703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1704. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1705. { { case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_try") 2>&5
  1712. ac_status=$?
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; }; }; then :
  1715. ac_retval=0
  1716. else
  1717. $as_echo "$as_me: program exited with status $ac_status" >&5
  1718. $as_echo "$as_me: failed program was:" >&5
  1719. sed 's/^/| /' conftest.$ac_ext >&5
  1720. ac_retval=$ac_status
  1721. fi
  1722. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1723. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1724. as_fn_set_status $ac_retval
  1725. } # ac_fn_c_try_run
  1726. # ac_fn_c_check_func LINENO FUNC VAR
  1727. # ----------------------------------
  1728. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1729. ac_fn_c_check_func ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1733. $as_echo_n "checking for $2... " >&6; }
  1734. if eval \${$3+:} false; then :
  1735. $as_echo_n "(cached) " >&6
  1736. else
  1737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1738. /* end confdefs.h. */
  1739. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1740. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1741. #define $2 innocuous_$2
  1742. /* System header to define __stub macros and hopefully few prototypes,
  1743. which can conflict with char $2 (); below.
  1744. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1745. <limits.h> exists even on freestanding compilers. */
  1746. #ifdef __STDC__
  1747. # include <limits.h>
  1748. #else
  1749. # include <assert.h>
  1750. #endif
  1751. #undef $2
  1752. /* Override any GCC internal prototype to avoid an error.
  1753. Use char because int might match the return type of a GCC
  1754. builtin and then its argument prototype would still apply. */
  1755. #ifdef __cplusplus
  1756. extern "C"
  1757. #endif
  1758. char $2 ();
  1759. /* The GNU C library defines this for functions which it implements
  1760. to always fail with ENOSYS. Some functions are actually named
  1761. something starting with __ and the normal name is an alias. */
  1762. #if defined __stub_$2 || defined __stub___$2
  1763. choke me
  1764. #endif
  1765. int
  1766. main ()
  1767. {
  1768. return $2 ();
  1769. ;
  1770. return 0;
  1771. }
  1772. _ACEOF
  1773. if ac_fn_c_try_link "$LINENO"; then :
  1774. eval "$3=yes"
  1775. else
  1776. eval "$3=no"
  1777. fi
  1778. rm -f core conftest.err conftest.$ac_objext \
  1779. conftest$ac_exeext conftest.$ac_ext
  1780. fi
  1781. eval ac_res=\$$3
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1783. $as_echo "$ac_res" >&6; }
  1784. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1785. } # ac_fn_c_check_func
  1786. # ac_fn_cxx_try_compile LINENO
  1787. # ----------------------------
  1788. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1789. ac_fn_cxx_try_compile ()
  1790. {
  1791. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1792. rm -f conftest.$ac_objext
  1793. if { { ac_try="$ac_compile"
  1794. case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1799. $as_echo "$ac_try_echo"; } >&5
  1800. (eval "$ac_compile") 2>conftest.err
  1801. ac_status=$?
  1802. if test -s conftest.err; then
  1803. grep -v '^ *+' conftest.err >conftest.er1
  1804. cat conftest.er1 >&5
  1805. mv -f conftest.er1 conftest.err
  1806. fi
  1807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1808. test $ac_status = 0; } && {
  1809. test -z "$ac_cxx_werror_flag" ||
  1810. test ! -s conftest.err
  1811. } && test -s conftest.$ac_objext; then :
  1812. ac_retval=0
  1813. else
  1814. $as_echo "$as_me: failed program was:" >&5
  1815. sed 's/^/| /' conftest.$ac_ext >&5
  1816. ac_retval=1
  1817. fi
  1818. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1819. as_fn_set_status $ac_retval
  1820. } # ac_fn_cxx_try_compile
  1821. # ac_fn_cxx_try_cpp LINENO
  1822. # ------------------------
  1823. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1824. ac_fn_cxx_try_cpp ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1828. case "(($ac_try" in
  1829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1830. *) ac_try_echo=$ac_try;;
  1831. esac
  1832. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1833. $as_echo "$ac_try_echo"; } >&5
  1834. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1835. ac_status=$?
  1836. if test -s conftest.err; then
  1837. grep -v '^ *+' conftest.err >conftest.er1
  1838. cat conftest.er1 >&5
  1839. mv -f conftest.er1 conftest.err
  1840. fi
  1841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1842. test $ac_status = 0; } > conftest.i && {
  1843. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1844. test ! -s conftest.err
  1845. }; then :
  1846. ac_retval=0
  1847. else
  1848. $as_echo "$as_me: failed program was:" >&5
  1849. sed 's/^/| /' conftest.$ac_ext >&5
  1850. ac_retval=1
  1851. fi
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. as_fn_set_status $ac_retval
  1854. } # ac_fn_cxx_try_cpp
  1855. # ac_fn_cxx_try_link LINENO
  1856. # -------------------------
  1857. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1858. ac_fn_cxx_try_link ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. rm -f conftest.$ac_objext conftest$ac_exeext
  1862. if { { ac_try="$ac_link"
  1863. case "(($ac_try" in
  1864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1865. *) ac_try_echo=$ac_try;;
  1866. esac
  1867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1868. $as_echo "$ac_try_echo"; } >&5
  1869. (eval "$ac_link") 2>conftest.err
  1870. ac_status=$?
  1871. if test -s conftest.err; then
  1872. grep -v '^ *+' conftest.err >conftest.er1
  1873. cat conftest.er1 >&5
  1874. mv -f conftest.er1 conftest.err
  1875. fi
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; } && {
  1878. test -z "$ac_cxx_werror_flag" ||
  1879. test ! -s conftest.err
  1880. } && test -s conftest$ac_exeext && {
  1881. test "$cross_compiling" = yes ||
  1882. test -x conftest$ac_exeext
  1883. }; then :
  1884. ac_retval=0
  1885. else
  1886. $as_echo "$as_me: failed program was:" >&5
  1887. sed 's/^/| /' conftest.$ac_ext >&5
  1888. ac_retval=1
  1889. fi
  1890. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1891. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1892. # interfere with the next link command; also delete a directory that is
  1893. # left behind by Apple's compiler. We do this before executing the actions.
  1894. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1895. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1896. as_fn_set_status $ac_retval
  1897. } # ac_fn_cxx_try_link
  1898. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1899. # -------------------------------------------------------
  1900. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1901. # the include files in INCLUDES and setting the cache variable VAR
  1902. # accordingly.
  1903. ac_fn_c_check_header_mongrel ()
  1904. {
  1905. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1906. if eval \${$3+:} false; then :
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. $as_echo_n "checking for $2... " >&6; }
  1909. if eval \${$3+:} false; then :
  1910. $as_echo_n "(cached) " >&6
  1911. fi
  1912. eval ac_res=\$$3
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1914. $as_echo "$ac_res" >&6; }
  1915. else
  1916. # Is the header compilable?
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1918. $as_echo_n "checking $2 usability... " >&6; }
  1919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1920. /* end confdefs.h. */
  1921. $4
  1922. #include <$2>
  1923. _ACEOF
  1924. if ac_fn_c_try_compile "$LINENO"; then :
  1925. ac_header_compiler=yes
  1926. else
  1927. ac_header_compiler=no
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1931. $as_echo "$ac_header_compiler" >&6; }
  1932. # Is the header present?
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1934. $as_echo_n "checking $2 presence... " >&6; }
  1935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1936. /* end confdefs.h. */
  1937. #include <$2>
  1938. _ACEOF
  1939. if ac_fn_c_try_cpp "$LINENO"; then :
  1940. ac_header_preproc=yes
  1941. else
  1942. ac_header_preproc=no
  1943. fi
  1944. rm -f conftest.err conftest.i conftest.$ac_ext
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1946. $as_echo "$ac_header_preproc" >&6; }
  1947. # So? What about this header?
  1948. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1949. yes:no: )
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1951. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1953. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1954. ;;
  1955. no:yes:* )
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1957. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1959. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1961. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1963. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1965. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1966. ;;
  1967. esac
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1969. $as_echo_n "checking for $2... " >&6; }
  1970. if eval \${$3+:} false; then :
  1971. $as_echo_n "(cached) " >&6
  1972. else
  1973. eval "$3=\$ac_header_compiler"
  1974. fi
  1975. eval ac_res=\$$3
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1977. $as_echo "$ac_res" >&6; }
  1978. fi
  1979. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1980. } # ac_fn_c_check_header_mongrel
  1981. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1982. # -------------------------------------------
  1983. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1984. # variable VAR accordingly.
  1985. ac_fn_c_check_type ()
  1986. {
  1987. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1989. $as_echo_n "checking for $2... " >&6; }
  1990. if eval \${$3+:} false; then :
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. eval "$3=no"
  1994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1995. /* end confdefs.h. */
  1996. $4
  1997. int
  1998. main ()
  1999. {
  2000. if (sizeof ($2))
  2001. return 0;
  2002. ;
  2003. return 0;
  2004. }
  2005. _ACEOF
  2006. if ac_fn_c_try_compile "$LINENO"; then :
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. if (sizeof (($2)))
  2014. return 0;
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020. else
  2021. eval "$3=yes"
  2022. fi
  2023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2024. fi
  2025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. fi
  2027. eval ac_res=\$$3
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2029. $as_echo "$ac_res" >&6; }
  2030. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2031. } # ac_fn_c_check_type
  2032. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2033. # ----------------------------------------------------
  2034. # Tries to find if the field MEMBER exists in type AGGR, after including
  2035. # INCLUDES, setting cache variable VAR accordingly.
  2036. ac_fn_c_check_member ()
  2037. {
  2038. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2040. $as_echo_n "checking for $2.$3... " >&6; }
  2041. if eval \${$4+:} false; then :
  2042. $as_echo_n "(cached) " >&6
  2043. else
  2044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2045. /* end confdefs.h. */
  2046. $5
  2047. int
  2048. main ()
  2049. {
  2050. static $2 ac_aggr;
  2051. if (ac_aggr.$3)
  2052. return 0;
  2053. ;
  2054. return 0;
  2055. }
  2056. _ACEOF
  2057. if ac_fn_c_try_compile "$LINENO"; then :
  2058. eval "$4=yes"
  2059. else
  2060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2061. /* end confdefs.h. */
  2062. $5
  2063. int
  2064. main ()
  2065. {
  2066. static $2 ac_aggr;
  2067. if (sizeof ac_aggr.$3)
  2068. return 0;
  2069. ;
  2070. return 0;
  2071. }
  2072. _ACEOF
  2073. if ac_fn_c_try_compile "$LINENO"; then :
  2074. eval "$4=yes"
  2075. else
  2076. eval "$4=no"
  2077. fi
  2078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2079. fi
  2080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2081. fi
  2082. eval ac_res=\$$4
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2084. $as_echo "$ac_res" >&6; }
  2085. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2086. } # ac_fn_c_check_member
  2087. cat >config.log <<_ACEOF
  2088. This file contains any messages produced by compilers while
  2089. running configure, to aid debugging if configure makes a mistake.
  2090. It was created by $as_me, which was
  2091. generated by GNU Autoconf 2.69. Invocation command line was
  2092. $ $0 $@
  2093. _ACEOF
  2094. exec 5>>config.log
  2095. {
  2096. cat <<_ASUNAME
  2097. ## --------- ##
  2098. ## Platform. ##
  2099. ## --------- ##
  2100. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2101. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2102. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2103. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2104. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2105. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2106. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2107. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2108. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2109. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2110. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2111. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2112. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2113. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2114. _ASUNAME
  2115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2116. for as_dir in $PATH
  2117. do
  2118. IFS=$as_save_IFS
  2119. test -z "$as_dir" && as_dir=.
  2120. $as_echo "PATH: $as_dir"
  2121. done
  2122. IFS=$as_save_IFS
  2123. } >&5
  2124. cat >&5 <<_ACEOF
  2125. ## ----------- ##
  2126. ## Core tests. ##
  2127. ## ----------- ##
  2128. _ACEOF
  2129. # Keep a trace of the command line.
  2130. # Strip out --no-create and --no-recursion so they do not pile up.
  2131. # Strip out --silent because we don't want to record it for future runs.
  2132. # Also quote any args containing shell meta-characters.
  2133. # Make two passes to allow for proper duplicate-argument suppression.
  2134. ac_configure_args=
  2135. ac_configure_args0=
  2136. ac_configure_args1=
  2137. ac_must_keep_next=false
  2138. for ac_pass in 1 2
  2139. do
  2140. for ac_arg
  2141. do
  2142. case $ac_arg in
  2143. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2144. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2145. | -silent | --silent | --silen | --sile | --sil)
  2146. continue ;;
  2147. *\'*)
  2148. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2149. esac
  2150. case $ac_pass in
  2151. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2152. 2)
  2153. as_fn_append ac_configure_args1 " '$ac_arg'"
  2154. if test $ac_must_keep_next = true; then
  2155. ac_must_keep_next=false # Got value, back to normal.
  2156. else
  2157. case $ac_arg in
  2158. *=* | --config-cache | -C | -disable-* | --disable-* \
  2159. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2160. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2161. | -with-* | --with-* | -without-* | --without-* | --x)
  2162. case "$ac_configure_args0 " in
  2163. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2164. esac
  2165. ;;
  2166. -* ) ac_must_keep_next=true ;;
  2167. esac
  2168. fi
  2169. as_fn_append ac_configure_args " '$ac_arg'"
  2170. ;;
  2171. esac
  2172. done
  2173. done
  2174. { ac_configure_args0=; unset ac_configure_args0;}
  2175. { ac_configure_args1=; unset ac_configure_args1;}
  2176. # When interrupted or exit'd, cleanup temporary files, and complete
  2177. # config.log. We remove comments because anyway the quotes in there
  2178. # would cause problems or look ugly.
  2179. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2180. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2181. trap 'exit_status=$?
  2182. # Save into config.log some information that might help in debugging.
  2183. {
  2184. echo
  2185. $as_echo "## ---------------- ##
  2186. ## Cache variables. ##
  2187. ## ---------------- ##"
  2188. echo
  2189. # The following way of writing the cache mishandles newlines in values,
  2190. (
  2191. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2192. eval ac_val=\$$ac_var
  2193. case $ac_val in #(
  2194. *${as_nl}*)
  2195. case $ac_var in #(
  2196. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2197. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2198. esac
  2199. case $ac_var in #(
  2200. _ | IFS | as_nl) ;; #(
  2201. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2202. *) { eval $ac_var=; unset $ac_var;} ;;
  2203. esac ;;
  2204. esac
  2205. done
  2206. (set) 2>&1 |
  2207. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2208. *${as_nl}ac_space=\ *)
  2209. sed -n \
  2210. "s/'\''/'\''\\\\'\'''\''/g;
  2211. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2212. ;; #(
  2213. *)
  2214. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2215. ;;
  2216. esac |
  2217. sort
  2218. )
  2219. echo
  2220. $as_echo "## ----------------- ##
  2221. ## Output variables. ##
  2222. ## ----------------- ##"
  2223. echo
  2224. for ac_var in $ac_subst_vars
  2225. do
  2226. eval ac_val=\$$ac_var
  2227. case $ac_val in
  2228. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2229. esac
  2230. $as_echo "$ac_var='\''$ac_val'\''"
  2231. done | sort
  2232. echo
  2233. if test -n "$ac_subst_files"; then
  2234. $as_echo "## ------------------- ##
  2235. ## File substitutions. ##
  2236. ## ------------------- ##"
  2237. echo
  2238. for ac_var in $ac_subst_files
  2239. do
  2240. eval ac_val=\$$ac_var
  2241. case $ac_val in
  2242. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2243. esac
  2244. $as_echo "$ac_var='\''$ac_val'\''"
  2245. done | sort
  2246. echo
  2247. fi
  2248. if test -s confdefs.h; then
  2249. $as_echo "## ----------- ##
  2250. ## confdefs.h. ##
  2251. ## ----------- ##"
  2252. echo
  2253. cat confdefs.h
  2254. echo
  2255. fi
  2256. test "$ac_signal" != 0 &&
  2257. $as_echo "$as_me: caught signal $ac_signal"
  2258. $as_echo "$as_me: exit $exit_status"
  2259. } >&5
  2260. rm -f core *.core core.conftest.* &&
  2261. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2262. exit $exit_status
  2263. ' 0
  2264. for ac_signal in 1 2 13 15; do
  2265. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2266. done
  2267. ac_signal=0
  2268. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2269. rm -f -r conftest* confdefs.h
  2270. $as_echo "/* confdefs.h */" > confdefs.h
  2271. # Predefined preprocessor variables.
  2272. cat >>confdefs.h <<_ACEOF
  2273. #define PACKAGE_NAME "$PACKAGE_NAME"
  2274. _ACEOF
  2275. cat >>confdefs.h <<_ACEOF
  2276. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2277. _ACEOF
  2278. cat >>confdefs.h <<_ACEOF
  2279. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2280. _ACEOF
  2281. cat >>confdefs.h <<_ACEOF
  2282. #define PACKAGE_STRING "$PACKAGE_STRING"
  2283. _ACEOF
  2284. cat >>confdefs.h <<_ACEOF
  2285. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2286. _ACEOF
  2287. cat >>confdefs.h <<_ACEOF
  2288. #define PACKAGE_URL "$PACKAGE_URL"
  2289. _ACEOF
  2290. # Let the site file select an alternate cache file if it wants to.
  2291. # Prefer an explicitly selected file to automatically selected ones.
  2292. ac_site_file1=NONE
  2293. ac_site_file2=NONE
  2294. if test -n "$CONFIG_SITE"; then
  2295. # We do not want a PATH search for config.site.
  2296. case $CONFIG_SITE in #((
  2297. -*) ac_site_file1=./$CONFIG_SITE;;
  2298. */*) ac_site_file1=$CONFIG_SITE;;
  2299. *) ac_site_file1=./$CONFIG_SITE;;
  2300. esac
  2301. elif test "x$prefix" != xNONE; then
  2302. ac_site_file1=$prefix/share/config.site
  2303. ac_site_file2=$prefix/etc/config.site
  2304. else
  2305. ac_site_file1=$ac_default_prefix/share/config.site
  2306. ac_site_file2=$ac_default_prefix/etc/config.site
  2307. fi
  2308. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2309. do
  2310. test "x$ac_site_file" = xNONE && continue
  2311. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2313. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2314. sed 's/^/| /' "$ac_site_file" >&5
  2315. . "$ac_site_file" \
  2316. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2317. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2318. as_fn_error $? "failed to load site script $ac_site_file
  2319. See \`config.log' for more details" "$LINENO" 5; }
  2320. fi
  2321. done
  2322. if test -r "$cache_file"; then
  2323. # Some versions of bash will fail to source /dev/null (special files
  2324. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2325. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2327. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2328. case $cache_file in
  2329. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2330. *) . "./$cache_file";;
  2331. esac
  2332. fi
  2333. else
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2335. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2336. >$cache_file
  2337. fi
  2338. # Check that the precious variables saved in the cache have kept the same
  2339. # value.
  2340. ac_cache_corrupted=false
  2341. for ac_var in $ac_precious_vars; do
  2342. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2343. eval ac_new_set=\$ac_env_${ac_var}_set
  2344. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2345. eval ac_new_val=\$ac_env_${ac_var}_value
  2346. case $ac_old_set,$ac_new_set in
  2347. set,)
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2349. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2350. ac_cache_corrupted=: ;;
  2351. ,set)
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2353. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2354. ac_cache_corrupted=: ;;
  2355. ,);;
  2356. *)
  2357. if test "x$ac_old_val" != "x$ac_new_val"; then
  2358. # differences in whitespace do not lead to failure.
  2359. ac_old_val_w=`echo x $ac_old_val`
  2360. ac_new_val_w=`echo x $ac_new_val`
  2361. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2363. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2364. ac_cache_corrupted=:
  2365. else
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2367. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2368. eval $ac_var=\$ac_old_val
  2369. fi
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2371. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2373. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2374. fi;;
  2375. esac
  2376. # Pass precious variables to config.status.
  2377. if test "$ac_new_set" = set; then
  2378. case $ac_new_val in
  2379. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2380. *) ac_arg=$ac_var=$ac_new_val ;;
  2381. esac
  2382. case " $ac_configure_args " in
  2383. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2384. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2385. esac
  2386. fi
  2387. done
  2388. if $ac_cache_corrupted; then
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2390. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2392. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2393. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2394. fi
  2395. ## -------------------- ##
  2396. ## Main body of script. ##
  2397. ## -------------------- ##
  2398. ac_ext=c
  2399. ac_cpp='$CPP $CPPFLAGS'
  2400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2403. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2404. ac_aux_dir=
  2405. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2406. if test -f "$ac_dir/install-sh"; then
  2407. ac_aux_dir=$ac_dir
  2408. ac_install_sh="$ac_aux_dir/install-sh -c"
  2409. break
  2410. elif test -f "$ac_dir/install.sh"; then
  2411. ac_aux_dir=$ac_dir
  2412. ac_install_sh="$ac_aux_dir/install.sh -c"
  2413. break
  2414. elif test -f "$ac_dir/shtool"; then
  2415. ac_aux_dir=$ac_dir
  2416. ac_install_sh="$ac_aux_dir/shtool install -c"
  2417. break
  2418. fi
  2419. done
  2420. if test -z "$ac_aux_dir"; then
  2421. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2422. fi
  2423. # These three variables are undocumented and unsupported,
  2424. # and are intended to be withdrawn in a future Autoconf release.
  2425. # They can cause serious problems if a builder's source tree is in a directory
  2426. # whose full name contains unusual characters.
  2427. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2428. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2429. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2430. orig_CFLAGS="$CFLAGS"
  2431. #
  2432. # Making releases:
  2433. # Edit include/SDL_version.h and change the version, then:
  2434. # SDL_MICRO_VERSION += 1;
  2435. # SDL_INTERFACE_AGE += 1;
  2436. # SDL_BINARY_AGE += 1;
  2437. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2438. # if backwards compatibility has been broken,
  2439. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2440. #
  2441. SDL_MAJOR_VERSION=2
  2442. SDL_MINOR_VERSION=0
  2443. SDL_MICRO_VERSION=1
  2444. SDL_INTERFACE_AGE=0
  2445. SDL_BINARY_AGE=1
  2446. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2447. # libtool versioning
  2448. case `pwd` in
  2449. *\ * | *\ *)
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2451. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2452. esac
  2453. macro_version='2.4.2'
  2454. macro_revision='1.3337'
  2455. ltmain="$ac_aux_dir/ltmain.sh"
  2456. # Make sure we can run config.sub.
  2457. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2458. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2460. $as_echo_n "checking build system type... " >&6; }
  2461. if ${ac_cv_build+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. ac_build_alias=$build_alias
  2465. test "x$ac_build_alias" = x &&
  2466. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2467. test "x$ac_build_alias" = x &&
  2468. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2469. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2470. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2471. fi
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2473. $as_echo "$ac_cv_build" >&6; }
  2474. case $ac_cv_build in
  2475. *-*-*) ;;
  2476. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2477. esac
  2478. build=$ac_cv_build
  2479. ac_save_IFS=$IFS; IFS='-'
  2480. set x $ac_cv_build
  2481. shift
  2482. build_cpu=$1
  2483. build_vendor=$2
  2484. shift; shift
  2485. # Remember, the first character of IFS is used to create $*,
  2486. # except with old shells:
  2487. build_os=$*
  2488. IFS=$ac_save_IFS
  2489. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2491. $as_echo_n "checking host system type... " >&6; }
  2492. if ${ac_cv_host+:} false; then :
  2493. $as_echo_n "(cached) " >&6
  2494. else
  2495. if test "x$host_alias" = x; then
  2496. ac_cv_host=$ac_cv_build
  2497. else
  2498. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2499. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2500. fi
  2501. fi
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2503. $as_echo "$ac_cv_host" >&6; }
  2504. case $ac_cv_host in
  2505. *-*-*) ;;
  2506. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2507. esac
  2508. host=$ac_cv_host
  2509. ac_save_IFS=$IFS; IFS='-'
  2510. set x $ac_cv_host
  2511. shift
  2512. host_cpu=$1
  2513. host_vendor=$2
  2514. shift; shift
  2515. # Remember, the first character of IFS is used to create $*,
  2516. # except with old shells:
  2517. host_os=$*
  2518. IFS=$ac_save_IFS
  2519. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2520. # Backslashify metacharacters that are still active within
  2521. # double-quoted strings.
  2522. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2523. # Same as above, but do not quote variable references.
  2524. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2525. # Sed substitution to delay expansion of an escaped shell variable in a
  2526. # double_quote_subst'ed string.
  2527. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2528. # Sed substitution to delay expansion of an escaped single quote.
  2529. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2530. # Sed substitution to avoid accidental globbing in evaled expressions
  2531. no_glob_subst='s/\*/\\\*/g'
  2532. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2533. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2534. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2536. $as_echo_n "checking how to print strings... " >&6; }
  2537. # Test print first, because it will be a builtin if present.
  2538. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2539. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2540. ECHO='print -r --'
  2541. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2542. ECHO='printf %s\n'
  2543. else
  2544. # Use this function as a fallback that always works.
  2545. func_fallback_echo ()
  2546. {
  2547. eval 'cat <<_LTECHO_EOF
  2548. $1
  2549. _LTECHO_EOF'
  2550. }
  2551. ECHO='func_fallback_echo'
  2552. fi
  2553. # func_echo_all arg...
  2554. # Invoke $ECHO with all args, space-separated.
  2555. func_echo_all ()
  2556. {
  2557. $ECHO ""
  2558. }
  2559. case "$ECHO" in
  2560. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2561. $as_echo "printf" >&6; } ;;
  2562. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2563. $as_echo "print -r" >&6; } ;;
  2564. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2565. $as_echo "cat" >&6; } ;;
  2566. esac
  2567. ac_ext=c
  2568. ac_cpp='$CPP $CPPFLAGS'
  2569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2572. if test -n "$ac_tool_prefix"; then
  2573. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2574. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2576. $as_echo_n "checking for $ac_word... " >&6; }
  2577. if ${ac_cv_prog_CC+:} false; then :
  2578. $as_echo_n "(cached) " >&6
  2579. else
  2580. if test -n "$CC"; then
  2581. ac_cv_prog_CC="$CC" # Let the user override the test.
  2582. else
  2583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2584. for as_dir in $PATH
  2585. do
  2586. IFS=$as_save_IFS
  2587. test -z "$as_dir" && as_dir=.
  2588. for ac_exec_ext in '' $ac_executable_extensions; do
  2589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2590. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2592. break 2
  2593. fi
  2594. done
  2595. done
  2596. IFS=$as_save_IFS
  2597. fi
  2598. fi
  2599. CC=$ac_cv_prog_CC
  2600. if test -n "$CC"; then
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2602. $as_echo "$CC" >&6; }
  2603. else
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2605. $as_echo "no" >&6; }
  2606. fi
  2607. fi
  2608. if test -z "$ac_cv_prog_CC"; then
  2609. ac_ct_CC=$CC
  2610. # Extract the first word of "gcc", so it can be a program name with args.
  2611. set dummy gcc; ac_word=$2
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2613. $as_echo_n "checking for $ac_word... " >&6; }
  2614. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. if test -n "$ac_ct_CC"; then
  2618. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2619. else
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2627. ac_cv_prog_ac_ct_CC="gcc"
  2628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2629. break 2
  2630. fi
  2631. done
  2632. done
  2633. IFS=$as_save_IFS
  2634. fi
  2635. fi
  2636. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2637. if test -n "$ac_ct_CC"; then
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2639. $as_echo "$ac_ct_CC" >&6; }
  2640. else
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2642. $as_echo "no" >&6; }
  2643. fi
  2644. if test "x$ac_ct_CC" = x; then
  2645. CC=""
  2646. else
  2647. case $cross_compiling:$ac_tool_warned in
  2648. yes:)
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2651. ac_tool_warned=yes ;;
  2652. esac
  2653. CC=$ac_ct_CC
  2654. fi
  2655. else
  2656. CC="$ac_cv_prog_CC"
  2657. fi
  2658. if test -z "$CC"; then
  2659. if test -n "$ac_tool_prefix"; then
  2660. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2661. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. $as_echo_n "checking for $ac_word... " >&6; }
  2664. if ${ac_cv_prog_CC+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. if test -n "$CC"; then
  2668. ac_cv_prog_CC="$CC" # Let the user override the test.
  2669. else
  2670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2671. for as_dir in $PATH
  2672. do
  2673. IFS=$as_save_IFS
  2674. test -z "$as_dir" && as_dir=.
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2677. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. IFS=$as_save_IFS
  2684. fi
  2685. fi
  2686. CC=$ac_cv_prog_CC
  2687. if test -n "$CC"; then
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2689. $as_echo "$CC" >&6; }
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. fi
  2694. fi
  2695. fi
  2696. if test -z "$CC"; then
  2697. # Extract the first word of "cc", so it can be a program name with args.
  2698. set dummy cc; ac_word=$2
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2700. $as_echo_n "checking for $ac_word... " >&6; }
  2701. if ${ac_cv_prog_CC+:} false; then :
  2702. $as_echo_n "(cached) " >&6
  2703. else
  2704. if test -n "$CC"; then
  2705. ac_cv_prog_CC="$CC" # Let the user override the test.
  2706. else
  2707. ac_prog_rejected=no
  2708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2709. for as_dir in $PATH
  2710. do
  2711. IFS=$as_save_IFS
  2712. test -z "$as_dir" && as_dir=.
  2713. for ac_exec_ext in '' $ac_executable_extensions; do
  2714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2715. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2716. ac_prog_rejected=yes
  2717. continue
  2718. fi
  2719. ac_cv_prog_CC="cc"
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2721. break 2
  2722. fi
  2723. done
  2724. done
  2725. IFS=$as_save_IFS
  2726. if test $ac_prog_rejected = yes; then
  2727. # We found a bogon in the path, so make sure we never use it.
  2728. set dummy $ac_cv_prog_CC
  2729. shift
  2730. if test $# != 0; then
  2731. # We chose a different compiler from the bogus one.
  2732. # However, it has the same basename, so the bogon will be chosen
  2733. # first if we set CC to just the basename; use the full file name.
  2734. shift
  2735. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2736. fi
  2737. fi
  2738. fi
  2739. fi
  2740. CC=$ac_cv_prog_CC
  2741. if test -n "$CC"; then
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2743. $as_echo "$CC" >&6; }
  2744. else
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2746. $as_echo "no" >&6; }
  2747. fi
  2748. fi
  2749. if test -z "$CC"; then
  2750. if test -n "$ac_tool_prefix"; then
  2751. for ac_prog in cl.exe
  2752. do
  2753. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2754. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2756. $as_echo_n "checking for $ac_word... " >&6; }
  2757. if ${ac_cv_prog_CC+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. if test -n "$CC"; then
  2761. ac_cv_prog_CC="$CC" # Let the user override the test.
  2762. else
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2770. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. fi
  2778. fi
  2779. CC=$ac_cv_prog_CC
  2780. if test -n "$CC"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2782. $as_echo "$CC" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787. test -n "$CC" && break
  2788. done
  2789. fi
  2790. if test -z "$CC"; then
  2791. ac_ct_CC=$CC
  2792. for ac_prog in cl.exe
  2793. do
  2794. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2795. set dummy $ac_prog; ac_word=$2
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2797. $as_echo_n "checking for $ac_word... " >&6; }
  2798. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2799. $as_echo_n "(cached) " >&6
  2800. else
  2801. if test -n "$ac_ct_CC"; then
  2802. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2803. else
  2804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2805. for as_dir in $PATH
  2806. do
  2807. IFS=$as_save_IFS
  2808. test -z "$as_dir" && as_dir=.
  2809. for ac_exec_ext in '' $ac_executable_extensions; do
  2810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2811. ac_cv_prog_ac_ct_CC="$ac_prog"
  2812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2813. break 2
  2814. fi
  2815. done
  2816. done
  2817. IFS=$as_save_IFS
  2818. fi
  2819. fi
  2820. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2821. if test -n "$ac_ct_CC"; then
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2823. $as_echo "$ac_ct_CC" >&6; }
  2824. else
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2826. $as_echo "no" >&6; }
  2827. fi
  2828. test -n "$ac_ct_CC" && break
  2829. done
  2830. if test "x$ac_ct_CC" = x; then
  2831. CC=""
  2832. else
  2833. case $cross_compiling:$ac_tool_warned in
  2834. yes:)
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2837. ac_tool_warned=yes ;;
  2838. esac
  2839. CC=$ac_ct_CC
  2840. fi
  2841. fi
  2842. fi
  2843. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2844. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2845. as_fn_error $? "no acceptable C compiler found in \$PATH
  2846. See \`config.log' for more details" "$LINENO" 5; }
  2847. # Provide some information about the compiler.
  2848. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2849. set X $ac_compile
  2850. ac_compiler=$2
  2851. for ac_option in --version -v -V -qversion; do
  2852. { { ac_try="$ac_compiler $ac_option >&5"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2858. $as_echo "$ac_try_echo"; } >&5
  2859. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2860. ac_status=$?
  2861. if test -s conftest.err; then
  2862. sed '10a\
  2863. ... rest of stderr output deleted ...
  2864. 10q' conftest.err >conftest.er1
  2865. cat conftest.er1 >&5
  2866. fi
  2867. rm -f conftest.er1 conftest.err
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2869. test $ac_status = 0; }
  2870. done
  2871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2872. /* end confdefs.h. */
  2873. int
  2874. main ()
  2875. {
  2876. ;
  2877. return 0;
  2878. }
  2879. _ACEOF
  2880. ac_clean_files_save=$ac_clean_files
  2881. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2882. # Try to create an executable without -o first, disregard a.out.
  2883. # It will help us diagnose broken compilers, and finding out an intuition
  2884. # of exeext.
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2886. $as_echo_n "checking whether the C compiler works... " >&6; }
  2887. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2888. # The possible output files:
  2889. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2890. ac_rmfiles=
  2891. for ac_file in $ac_files
  2892. do
  2893. case $ac_file in
  2894. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2895. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2896. esac
  2897. done
  2898. rm -f $ac_rmfiles
  2899. if { { ac_try="$ac_link_default"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2905. $as_echo "$ac_try_echo"; } >&5
  2906. (eval "$ac_link_default") 2>&5
  2907. ac_status=$?
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2909. test $ac_status = 0; }; then :
  2910. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2911. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2912. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2913. # so that the user can short-circuit this test for compilers unknown to
  2914. # Autoconf.
  2915. for ac_file in $ac_files ''
  2916. do
  2917. test -f "$ac_file" || continue
  2918. case $ac_file in
  2919. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2920. ;;
  2921. [ab].out )
  2922. # We found the default executable, but exeext='' is most
  2923. # certainly right.
  2924. break;;
  2925. *.* )
  2926. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2927. then :; else
  2928. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2929. fi
  2930. # We set ac_cv_exeext here because the later test for it is not
  2931. # safe: cross compilers may not add the suffix if given an `-o'
  2932. # argument, so we may need to know it at that point already.
  2933. # Even if this section looks crufty: it has the advantage of
  2934. # actually working.
  2935. break;;
  2936. * )
  2937. break;;
  2938. esac
  2939. done
  2940. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2941. else
  2942. ac_file=''
  2943. fi
  2944. if test -z "$ac_file"; then :
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2946. $as_echo "no" >&6; }
  2947. $as_echo "$as_me: failed program was:" >&5
  2948. sed 's/^/| /' conftest.$ac_ext >&5
  2949. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2950. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2951. as_fn_error 77 "C compiler cannot create executables
  2952. See \`config.log' for more details" "$LINENO" 5; }
  2953. else
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2955. $as_echo "yes" >&6; }
  2956. fi
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2958. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2960. $as_echo "$ac_file" >&6; }
  2961. ac_exeext=$ac_cv_exeext
  2962. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2963. ac_clean_files=$ac_clean_files_save
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2965. $as_echo_n "checking for suffix of executables... " >&6; }
  2966. if { { ac_try="$ac_link"
  2967. case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2972. $as_echo "$ac_try_echo"; } >&5
  2973. (eval "$ac_link") 2>&5
  2974. ac_status=$?
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }; then :
  2977. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2978. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2979. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2980. # `rm'.
  2981. for ac_file in conftest.exe conftest conftest.*; do
  2982. test -f "$ac_file" || continue
  2983. case $ac_file in
  2984. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2985. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2986. break;;
  2987. * ) break;;
  2988. esac
  2989. done
  2990. else
  2991. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2994. See \`config.log' for more details" "$LINENO" 5; }
  2995. fi
  2996. rm -f conftest conftest$ac_cv_exeext
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2998. $as_echo "$ac_cv_exeext" >&6; }
  2999. rm -f conftest.$ac_ext
  3000. EXEEXT=$ac_cv_exeext
  3001. ac_exeext=$EXEEXT
  3002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3003. /* end confdefs.h. */
  3004. #include <stdio.h>
  3005. int
  3006. main ()
  3007. {
  3008. FILE *f = fopen ("conftest.out", "w");
  3009. return ferror (f) || fclose (f) != 0;
  3010. ;
  3011. return 0;
  3012. }
  3013. _ACEOF
  3014. ac_clean_files="$ac_clean_files conftest.out"
  3015. # Check that the compiler produces executables we can run. If not, either
  3016. # the compiler is broken, or we cross compile.
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3018. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3019. if test "$cross_compiling" != yes; then
  3020. { { ac_try="$ac_link"
  3021. case "(($ac_try" in
  3022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023. *) ac_try_echo=$ac_try;;
  3024. esac
  3025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3026. $as_echo "$ac_try_echo"; } >&5
  3027. (eval "$ac_link") 2>&5
  3028. ac_status=$?
  3029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3030. test $ac_status = 0; }
  3031. if { ac_try='./conftest$ac_cv_exeext'
  3032. { { case "(($ac_try" in
  3033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3034. *) ac_try_echo=$ac_try;;
  3035. esac
  3036. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3037. $as_echo "$ac_try_echo"; } >&5
  3038. (eval "$ac_try") 2>&5
  3039. ac_status=$?
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3041. test $ac_status = 0; }; }; then
  3042. cross_compiling=no
  3043. else
  3044. if test "$cross_compiling" = maybe; then
  3045. cross_compiling=yes
  3046. else
  3047. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3049. as_fn_error $? "cannot run C compiled programs.
  3050. If you meant to cross compile, use \`--host'.
  3051. See \`config.log' for more details" "$LINENO" 5; }
  3052. fi
  3053. fi
  3054. fi
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3056. $as_echo "$cross_compiling" >&6; }
  3057. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3058. ac_clean_files=$ac_clean_files_save
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3060. $as_echo_n "checking for suffix of object files... " >&6; }
  3061. if ${ac_cv_objext+:} false; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. rm -f conftest.o conftest.obj
  3074. if { { ac_try="$ac_compile"
  3075. case "(($ac_try" in
  3076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3077. *) ac_try_echo=$ac_try;;
  3078. esac
  3079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3080. $as_echo "$ac_try_echo"; } >&5
  3081. (eval "$ac_compile") 2>&5
  3082. ac_status=$?
  3083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3084. test $ac_status = 0; }; then :
  3085. for ac_file in conftest.o conftest.obj conftest.*; do
  3086. test -f "$ac_file" || continue;
  3087. case $ac_file in
  3088. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3089. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3090. break;;
  3091. esac
  3092. done
  3093. else
  3094. $as_echo "$as_me: failed program was:" >&5
  3095. sed 's/^/| /' conftest.$ac_ext >&5
  3096. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3098. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3099. See \`config.log' for more details" "$LINENO" 5; }
  3100. fi
  3101. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3102. fi
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3104. $as_echo "$ac_cv_objext" >&6; }
  3105. OBJEXT=$ac_cv_objext
  3106. ac_objext=$OBJEXT
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3108. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3109. if ${ac_cv_c_compiler_gnu+:} false; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3113. /* end confdefs.h. */
  3114. int
  3115. main ()
  3116. {
  3117. #ifndef __GNUC__
  3118. choke me
  3119. #endif
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. if ac_fn_c_try_compile "$LINENO"; then :
  3125. ac_compiler_gnu=yes
  3126. else
  3127. ac_compiler_gnu=no
  3128. fi
  3129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3130. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3131. fi
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3133. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3134. if test $ac_compiler_gnu = yes; then
  3135. GCC=yes
  3136. else
  3137. GCC=
  3138. fi
  3139. ac_test_CFLAGS=${CFLAGS+set}
  3140. ac_save_CFLAGS=$CFLAGS
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3142. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3143. if ${ac_cv_prog_cc_g+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. ac_save_c_werror_flag=$ac_c_werror_flag
  3147. ac_c_werror_flag=yes
  3148. ac_cv_prog_cc_g=no
  3149. CFLAGS="-g"
  3150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3151. /* end confdefs.h. */
  3152. int
  3153. main ()
  3154. {
  3155. ;
  3156. return 0;
  3157. }
  3158. _ACEOF
  3159. if ac_fn_c_try_compile "$LINENO"; then :
  3160. ac_cv_prog_cc_g=yes
  3161. else
  3162. CFLAGS=""
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. if ac_fn_c_try_compile "$LINENO"; then :
  3173. else
  3174. ac_c_werror_flag=$ac_save_c_werror_flag
  3175. CFLAGS="-g"
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. int
  3179. main ()
  3180. {
  3181. ;
  3182. return 0;
  3183. }
  3184. _ACEOF
  3185. if ac_fn_c_try_compile "$LINENO"; then :
  3186. ac_cv_prog_cc_g=yes
  3187. fi
  3188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3189. fi
  3190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3191. fi
  3192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3193. ac_c_werror_flag=$ac_save_c_werror_flag
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3196. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3197. if test "$ac_test_CFLAGS" = set; then
  3198. CFLAGS=$ac_save_CFLAGS
  3199. elif test $ac_cv_prog_cc_g = yes; then
  3200. if test "$GCC" = yes; then
  3201. CFLAGS="-g -O2"
  3202. else
  3203. CFLAGS="-g"
  3204. fi
  3205. else
  3206. if test "$GCC" = yes; then
  3207. CFLAGS="-O2"
  3208. else
  3209. CFLAGS=
  3210. fi
  3211. fi
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3213. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3214. if ${ac_cv_prog_cc_c89+:} false; then :
  3215. $as_echo_n "(cached) " >&6
  3216. else
  3217. ac_cv_prog_cc_c89=no
  3218. ac_save_CC=$CC
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. #include <stdarg.h>
  3222. #include <stdio.h>
  3223. struct stat;
  3224. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3225. struct buf { int x; };
  3226. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3227. static char *e (p, i)
  3228. char **p;
  3229. int i;
  3230. {
  3231. return p[i];
  3232. }
  3233. static char *f (char * (*g) (char **, int), char **p, ...)
  3234. {
  3235. char *s;
  3236. va_list v;
  3237. va_start (v,p);
  3238. s = g (p, va_arg (v,int));
  3239. va_end (v);
  3240. return s;
  3241. }
  3242. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3243. function prototypes and stuff, but not '\xHH' hex character constants.
  3244. These don't provoke an error unfortunately, instead are silently treated
  3245. as 'x'. The following induces an error, until -std is added to get
  3246. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3247. array size at least. It's necessary to write '\x00'==0 to get something
  3248. that's true only with -std. */
  3249. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3250. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3251. inside strings and character constants. */
  3252. #define FOO(x) 'x'
  3253. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3254. int test (int i, double x);
  3255. struct s1 {int (*f) (int a);};
  3256. struct s2 {int (*f) (double a);};
  3257. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3258. int argc;
  3259. char **argv;
  3260. int
  3261. main ()
  3262. {
  3263. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3264. ;
  3265. return 0;
  3266. }
  3267. _ACEOF
  3268. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3269. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3270. do
  3271. CC="$ac_save_CC $ac_arg"
  3272. if ac_fn_c_try_compile "$LINENO"; then :
  3273. ac_cv_prog_cc_c89=$ac_arg
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext
  3276. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3277. done
  3278. rm -f conftest.$ac_ext
  3279. CC=$ac_save_CC
  3280. fi
  3281. # AC_CACHE_VAL
  3282. case "x$ac_cv_prog_cc_c89" in
  3283. x)
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3285. $as_echo "none needed" >&6; } ;;
  3286. xno)
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3288. $as_echo "unsupported" >&6; } ;;
  3289. *)
  3290. CC="$CC $ac_cv_prog_cc_c89"
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3292. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3293. esac
  3294. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3295. fi
  3296. ac_ext=c
  3297. ac_cpp='$CPP $CPPFLAGS'
  3298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3302. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3303. if ${ac_cv_path_SED+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3307. for ac_i in 1 2 3 4 5 6 7; do
  3308. ac_script="$ac_script$as_nl$ac_script"
  3309. done
  3310. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3311. { ac_script=; unset ac_script;}
  3312. if test -z "$SED"; then
  3313. ac_path_SED_found=false
  3314. # Loop through the user's path and test for each of PROGNAME-LIST
  3315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3316. for as_dir in $PATH
  3317. do
  3318. IFS=$as_save_IFS
  3319. test -z "$as_dir" && as_dir=.
  3320. for ac_prog in sed gsed; do
  3321. for ac_exec_ext in '' $ac_executable_extensions; do
  3322. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3323. as_fn_executable_p "$ac_path_SED" || continue
  3324. # Check for GNU ac_path_SED and select it if it is found.
  3325. # Check for GNU $ac_path_SED
  3326. case `"$ac_path_SED" --version 2>&1` in
  3327. *GNU*)
  3328. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3329. *)
  3330. ac_count=0
  3331. $as_echo_n 0123456789 >"conftest.in"
  3332. while :
  3333. do
  3334. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3335. mv "conftest.tmp" "conftest.in"
  3336. cp "conftest.in" "conftest.nl"
  3337. $as_echo '' >> "conftest.nl"
  3338. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3339. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3340. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3341. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3342. # Best one so far, save it but keep looking for a better one
  3343. ac_cv_path_SED="$ac_path_SED"
  3344. ac_path_SED_max=$ac_count
  3345. fi
  3346. # 10*(2^10) chars as input seems more than enough
  3347. test $ac_count -gt 10 && break
  3348. done
  3349. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3350. esac
  3351. $ac_path_SED_found && break 3
  3352. done
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. if test -z "$ac_cv_path_SED"; then
  3357. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3358. fi
  3359. else
  3360. ac_cv_path_SED=$SED
  3361. fi
  3362. fi
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3364. $as_echo "$ac_cv_path_SED" >&6; }
  3365. SED="$ac_cv_path_SED"
  3366. rm -f conftest.sed
  3367. test -z "$SED" && SED=sed
  3368. Xsed="$SED -e 1s/^X//"
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3370. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3371. if ${ac_cv_path_GREP+:} false; then :
  3372. $as_echo_n "(cached) " >&6
  3373. else
  3374. if test -z "$GREP"; then
  3375. ac_path_GREP_found=false
  3376. # Loop through the user's path and test for each of PROGNAME-LIST
  3377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3378. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3379. do
  3380. IFS=$as_save_IFS
  3381. test -z "$as_dir" && as_dir=.
  3382. for ac_prog in grep ggrep; do
  3383. for ac_exec_ext in '' $ac_executable_extensions; do
  3384. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3385. as_fn_executable_p "$ac_path_GREP" || continue
  3386. # Check for GNU ac_path_GREP and select it if it is found.
  3387. # Check for GNU $ac_path_GREP
  3388. case `"$ac_path_GREP" --version 2>&1` in
  3389. *GNU*)
  3390. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3391. *)
  3392. ac_count=0
  3393. $as_echo_n 0123456789 >"conftest.in"
  3394. while :
  3395. do
  3396. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3397. mv "conftest.tmp" "conftest.in"
  3398. cp "conftest.in" "conftest.nl"
  3399. $as_echo 'GREP' >> "conftest.nl"
  3400. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3401. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3402. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3403. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3404. # Best one so far, save it but keep looking for a better one
  3405. ac_cv_path_GREP="$ac_path_GREP"
  3406. ac_path_GREP_max=$ac_count
  3407. fi
  3408. # 10*(2^10) chars as input seems more than enough
  3409. test $ac_count -gt 10 && break
  3410. done
  3411. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3412. esac
  3413. $ac_path_GREP_found && break 3
  3414. done
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. if test -z "$ac_cv_path_GREP"; then
  3419. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3420. fi
  3421. else
  3422. ac_cv_path_GREP=$GREP
  3423. fi
  3424. fi
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3426. $as_echo "$ac_cv_path_GREP" >&6; }
  3427. GREP="$ac_cv_path_GREP"
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3429. $as_echo_n "checking for egrep... " >&6; }
  3430. if ${ac_cv_path_EGREP+:} false; then :
  3431. $as_echo_n "(cached) " >&6
  3432. else
  3433. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3434. then ac_cv_path_EGREP="$GREP -E"
  3435. else
  3436. if test -z "$EGREP"; then
  3437. ac_path_EGREP_found=false
  3438. # Loop through the user's path and test for each of PROGNAME-LIST
  3439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3440. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3441. do
  3442. IFS=$as_save_IFS
  3443. test -z "$as_dir" && as_dir=.
  3444. for ac_prog in egrep; do
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3447. as_fn_executable_p "$ac_path_EGREP" || continue
  3448. # Check for GNU ac_path_EGREP and select it if it is found.
  3449. # Check for GNU $ac_path_EGREP
  3450. case `"$ac_path_EGREP" --version 2>&1` in
  3451. *GNU*)
  3452. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3453. *)
  3454. ac_count=0
  3455. $as_echo_n 0123456789 >"conftest.in"
  3456. while :
  3457. do
  3458. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3459. mv "conftest.tmp" "conftest.in"
  3460. cp "conftest.in" "conftest.nl"
  3461. $as_echo 'EGREP' >> "conftest.nl"
  3462. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3463. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3464. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3465. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3466. # Best one so far, save it but keep looking for a better one
  3467. ac_cv_path_EGREP="$ac_path_EGREP"
  3468. ac_path_EGREP_max=$ac_count
  3469. fi
  3470. # 10*(2^10) chars as input seems more than enough
  3471. test $ac_count -gt 10 && break
  3472. done
  3473. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3474. esac
  3475. $ac_path_EGREP_found && break 3
  3476. done
  3477. done
  3478. done
  3479. IFS=$as_save_IFS
  3480. if test -z "$ac_cv_path_EGREP"; then
  3481. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3482. fi
  3483. else
  3484. ac_cv_path_EGREP=$EGREP
  3485. fi
  3486. fi
  3487. fi
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3489. $as_echo "$ac_cv_path_EGREP" >&6; }
  3490. EGREP="$ac_cv_path_EGREP"
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3492. $as_echo_n "checking for fgrep... " >&6; }
  3493. if ${ac_cv_path_FGREP+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3497. then ac_cv_path_FGREP="$GREP -F"
  3498. else
  3499. if test -z "$FGREP"; then
  3500. ac_path_FGREP_found=false
  3501. # Loop through the user's path and test for each of PROGNAME-LIST
  3502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3504. do
  3505. IFS=$as_save_IFS
  3506. test -z "$as_dir" && as_dir=.
  3507. for ac_prog in fgrep; do
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3510. as_fn_executable_p "$ac_path_FGREP" || continue
  3511. # Check for GNU ac_path_FGREP and select it if it is found.
  3512. # Check for GNU $ac_path_FGREP
  3513. case `"$ac_path_FGREP" --version 2>&1` in
  3514. *GNU*)
  3515. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3516. *)
  3517. ac_count=0
  3518. $as_echo_n 0123456789 >"conftest.in"
  3519. while :
  3520. do
  3521. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3522. mv "conftest.tmp" "conftest.in"
  3523. cp "conftest.in" "conftest.nl"
  3524. $as_echo 'FGREP' >> "conftest.nl"
  3525. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3526. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3527. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3528. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3529. # Best one so far, save it but keep looking for a better one
  3530. ac_cv_path_FGREP="$ac_path_FGREP"
  3531. ac_path_FGREP_max=$ac_count
  3532. fi
  3533. # 10*(2^10) chars as input seems more than enough
  3534. test $ac_count -gt 10 && break
  3535. done
  3536. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3537. esac
  3538. $ac_path_FGREP_found && break 3
  3539. done
  3540. done
  3541. done
  3542. IFS=$as_save_IFS
  3543. if test -z "$ac_cv_path_FGREP"; then
  3544. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3545. fi
  3546. else
  3547. ac_cv_path_FGREP=$FGREP
  3548. fi
  3549. fi
  3550. fi
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3552. $as_echo "$ac_cv_path_FGREP" >&6; }
  3553. FGREP="$ac_cv_path_FGREP"
  3554. test -z "$GREP" && GREP=grep
  3555. # Check whether --with-gnu-ld was given.
  3556. if test "${with_gnu_ld+set}" = set; then :
  3557. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3558. else
  3559. with_gnu_ld=no
  3560. fi
  3561. ac_prog=ld
  3562. if test "$GCC" = yes; then
  3563. # Check if gcc -print-prog-name=ld gives a path.
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3565. $as_echo_n "checking for ld used by $CC... " >&6; }
  3566. case $host in
  3567. *-*-mingw*)
  3568. # gcc leaves a trailing carriage return which upsets mingw
  3569. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3570. *)
  3571. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3572. esac
  3573. case $ac_prog in
  3574. # Accept absolute paths.
  3575. [\\/]* | ?:[\\/]*)
  3576. re_direlt='/[^/][^/]*/\.\./'
  3577. # Canonicalize the pathname of ld
  3578. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3579. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3580. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3581. done
  3582. test -z "$LD" && LD="$ac_prog"
  3583. ;;
  3584. "")
  3585. # If it fails, then pretend we aren't using GCC.
  3586. ac_prog=ld
  3587. ;;
  3588. *)
  3589. # If it is relative, then search for the first ld in PATH.
  3590. with_gnu_ld=unknown
  3591. ;;
  3592. esac
  3593. elif test "$with_gnu_ld" = yes; then
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3595. $as_echo_n "checking for GNU ld... " >&6; }
  3596. else
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3598. $as_echo_n "checking for non-GNU ld... " >&6; }
  3599. fi
  3600. if ${lt_cv_path_LD+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. if test -z "$LD"; then
  3604. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3605. for ac_dir in $PATH; do
  3606. IFS="$lt_save_ifs"
  3607. test -z "$ac_dir" && ac_dir=.
  3608. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3609. lt_cv_path_LD="$ac_dir/$ac_prog"
  3610. # Check to see if the program is GNU ld. I'd rather use --version,
  3611. # but apparently some variants of GNU ld only accept -v.
  3612. # Break only if it was the GNU/non-GNU ld that we prefer.
  3613. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3614. *GNU* | *'with BFD'*)
  3615. test "$with_gnu_ld" != no && break
  3616. ;;
  3617. *)
  3618. test "$with_gnu_ld" != yes && break
  3619. ;;
  3620. esac
  3621. fi
  3622. done
  3623. IFS="$lt_save_ifs"
  3624. else
  3625. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3626. fi
  3627. fi
  3628. LD="$lt_cv_path_LD"
  3629. if test -n "$LD"; then
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3631. $as_echo "$LD" >&6; }
  3632. else
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3634. $as_echo "no" >&6; }
  3635. fi
  3636. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3638. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3639. if ${lt_cv_prog_gnu_ld+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3643. case `$LD -v 2>&1 </dev/null` in
  3644. *GNU* | *'with BFD'*)
  3645. lt_cv_prog_gnu_ld=yes
  3646. ;;
  3647. *)
  3648. lt_cv_prog_gnu_ld=no
  3649. ;;
  3650. esac
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3653. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3654. with_gnu_ld=$lt_cv_prog_gnu_ld
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3656. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3657. if ${lt_cv_path_NM+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if test -n "$NM"; then
  3661. # Let the user override the test.
  3662. lt_cv_path_NM="$NM"
  3663. else
  3664. lt_nm_to_check="${ac_tool_prefix}nm"
  3665. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3666. lt_nm_to_check="$lt_nm_to_check nm"
  3667. fi
  3668. for lt_tmp_nm in $lt_nm_to_check; do
  3669. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3670. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3671. IFS="$lt_save_ifs"
  3672. test -z "$ac_dir" && ac_dir=.
  3673. tmp_nm="$ac_dir/$lt_tmp_nm"
  3674. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3675. # Check to see if the nm accepts a BSD-compat flag.
  3676. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3677. # nm: unknown option "B" ignored
  3678. # Tru64's nm complains that /dev/null is an invalid object file
  3679. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3680. */dev/null* | *'Invalid file or object type'*)
  3681. lt_cv_path_NM="$tmp_nm -B"
  3682. break
  3683. ;;
  3684. *)
  3685. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3686. */dev/null*)
  3687. lt_cv_path_NM="$tmp_nm -p"
  3688. break
  3689. ;;
  3690. *)
  3691. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3692. continue # so that we can try to find one that supports BSD flags
  3693. ;;
  3694. esac
  3695. ;;
  3696. esac
  3697. fi
  3698. done
  3699. IFS="$lt_save_ifs"
  3700. done
  3701. : ${lt_cv_path_NM=no}
  3702. fi
  3703. fi
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3705. $as_echo "$lt_cv_path_NM" >&6; }
  3706. if test "$lt_cv_path_NM" != "no"; then
  3707. NM="$lt_cv_path_NM"
  3708. else
  3709. # Didn't find any BSD compatible name lister, look for dumpbin.
  3710. if test -n "$DUMPBIN"; then :
  3711. # Let the user override the test.
  3712. else
  3713. if test -n "$ac_tool_prefix"; then
  3714. for ac_prog in dumpbin "link -dump"
  3715. do
  3716. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3717. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3719. $as_echo_n "checking for $ac_word... " >&6; }
  3720. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3721. $as_echo_n "(cached) " >&6
  3722. else
  3723. if test -n "$DUMPBIN"; then
  3724. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3725. else
  3726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3727. for as_dir in $PATH
  3728. do
  3729. IFS=$as_save_IFS
  3730. test -z "$as_dir" && as_dir=.
  3731. for ac_exec_ext in '' $ac_executable_extensions; do
  3732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3733. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3735. break 2
  3736. fi
  3737. done
  3738. done
  3739. IFS=$as_save_IFS
  3740. fi
  3741. fi
  3742. DUMPBIN=$ac_cv_prog_DUMPBIN
  3743. if test -n "$DUMPBIN"; then
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3745. $as_echo "$DUMPBIN" >&6; }
  3746. else
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3748. $as_echo "no" >&6; }
  3749. fi
  3750. test -n "$DUMPBIN" && break
  3751. done
  3752. fi
  3753. if test -z "$DUMPBIN"; then
  3754. ac_ct_DUMPBIN=$DUMPBIN
  3755. for ac_prog in dumpbin "link -dump"
  3756. do
  3757. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3758. set dummy $ac_prog; ac_word=$2
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3760. $as_echo_n "checking for $ac_word... " >&6; }
  3761. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. if test -n "$ac_ct_DUMPBIN"; then
  3765. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3766. else
  3767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3768. for as_dir in $PATH
  3769. do
  3770. IFS=$as_save_IFS
  3771. test -z "$as_dir" && as_dir=.
  3772. for ac_exec_ext in '' $ac_executable_extensions; do
  3773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3774. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3776. break 2
  3777. fi
  3778. done
  3779. done
  3780. IFS=$as_save_IFS
  3781. fi
  3782. fi
  3783. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3784. if test -n "$ac_ct_DUMPBIN"; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3786. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. fi
  3791. test -n "$ac_ct_DUMPBIN" && break
  3792. done
  3793. if test "x$ac_ct_DUMPBIN" = x; then
  3794. DUMPBIN=":"
  3795. else
  3796. case $cross_compiling:$ac_tool_warned in
  3797. yes:)
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3800. ac_tool_warned=yes ;;
  3801. esac
  3802. DUMPBIN=$ac_ct_DUMPBIN
  3803. fi
  3804. fi
  3805. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3806. *COFF*)
  3807. DUMPBIN="$DUMPBIN -symbols"
  3808. ;;
  3809. *)
  3810. DUMPBIN=:
  3811. ;;
  3812. esac
  3813. fi
  3814. if test "$DUMPBIN" != ":"; then
  3815. NM="$DUMPBIN"
  3816. fi
  3817. fi
  3818. test -z "$NM" && NM=nm
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3820. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3821. if ${lt_cv_nm_interface+:} false; then :
  3822. $as_echo_n "(cached) " >&6
  3823. else
  3824. lt_cv_nm_interface="BSD nm"
  3825. echo "int some_variable = 0;" > conftest.$ac_ext
  3826. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3827. (eval "$ac_compile" 2>conftest.err)
  3828. cat conftest.err >&5
  3829. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3830. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3831. cat conftest.err >&5
  3832. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3833. cat conftest.out >&5
  3834. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3835. lt_cv_nm_interface="MS dumpbin"
  3836. fi
  3837. rm -f conftest*
  3838. fi
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3840. $as_echo "$lt_cv_nm_interface" >&6; }
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3842. $as_echo_n "checking whether ln -s works... " >&6; }
  3843. LN_S=$as_ln_s
  3844. if test "$LN_S" = "ln -s"; then
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3846. $as_echo "yes" >&6; }
  3847. else
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3849. $as_echo "no, using $LN_S" >&6; }
  3850. fi
  3851. # find the maximum length of command line arguments
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3853. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3854. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. i=0
  3858. teststring="ABCD"
  3859. case $build_os in
  3860. msdosdjgpp*)
  3861. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3862. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3863. # during glob expansion). Even if it were fixed, the result of this
  3864. # check would be larger than it should be.
  3865. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3866. ;;
  3867. gnu*)
  3868. # Under GNU Hurd, this test is not required because there is
  3869. # no limit to the length of command line arguments.
  3870. # Libtool will interpret -1 as no limit whatsoever
  3871. lt_cv_sys_max_cmd_len=-1;
  3872. ;;
  3873. cygwin* | mingw* | cegcc*)
  3874. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3875. # about 5 minutes as the teststring grows exponentially.
  3876. # Worse, since 9x/ME are not pre-emptively multitasking,
  3877. # you end up with a "frozen" computer, even though with patience
  3878. # the test eventually succeeds (with a max line length of 256k).
  3879. # Instead, let's just punt: use the minimum linelength reported by
  3880. # all of the supported platforms: 8192 (on NT/2K/XP).
  3881. lt_cv_sys_max_cmd_len=8192;
  3882. ;;
  3883. mint*)
  3884. # On MiNT this can take a long time and run out of memory.
  3885. lt_cv_sys_max_cmd_len=8192;
  3886. ;;
  3887. amigaos*)
  3888. # On AmigaOS with pdksh, this test takes hours, literally.
  3889. # So we just punt and use a minimum line length of 8192.
  3890. lt_cv_sys_max_cmd_len=8192;
  3891. ;;
  3892. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3893. # This has been around since 386BSD, at least. Likely further.
  3894. if test -x /sbin/sysctl; then
  3895. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3896. elif test -x /usr/sbin/sysctl; then
  3897. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3898. else
  3899. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3900. fi
  3901. # And add a safety zone
  3902. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3903. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3904. ;;
  3905. interix*)
  3906. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3907. lt_cv_sys_max_cmd_len=196608
  3908. ;;
  3909. os2*)
  3910. # The test takes a long time on OS/2.
  3911. lt_cv_sys_max_cmd_len=8192
  3912. ;;
  3913. osf*)
  3914. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3915. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3916. # nice to cause kernel panics so lets avoid the loop below.
  3917. # First set a reasonable default.
  3918. lt_cv_sys_max_cmd_len=16384
  3919. #
  3920. if test -x /sbin/sysconfig; then
  3921. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3922. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3923. esac
  3924. fi
  3925. ;;
  3926. sco3.2v5*)
  3927. lt_cv_sys_max_cmd_len=102400
  3928. ;;
  3929. sysv5* | sco5v6* | sysv4.2uw2*)
  3930. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3931. if test -n "$kargmax"; then
  3932. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3933. else
  3934. lt_cv_sys_max_cmd_len=32768
  3935. fi
  3936. ;;
  3937. *)
  3938. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3939. if test -n "$lt_cv_sys_max_cmd_len"; then
  3940. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3941. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3942. else
  3943. # Make teststring a little bigger before we do anything with it.
  3944. # a 1K string should be a reasonable start.
  3945. for i in 1 2 3 4 5 6 7 8 ; do
  3946. teststring=$teststring$teststring
  3947. done
  3948. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3949. # If test is not a shell built-in, we'll probably end up computing a
  3950. # maximum length that is only half of the actual maximum length, but
  3951. # we can't tell.
  3952. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3953. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3954. test $i != 17 # 1/2 MB should be enough
  3955. do
  3956. i=`expr $i + 1`
  3957. teststring=$teststring$teststring
  3958. done
  3959. # Only check the string length outside the loop.
  3960. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3961. teststring=
  3962. # Add a significant safety factor because C++ compilers can tack on
  3963. # massive amounts of additional arguments before passing them to the
  3964. # linker. It appears as though 1/2 is a usable value.
  3965. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3966. fi
  3967. ;;
  3968. esac
  3969. fi
  3970. if test -n $lt_cv_sys_max_cmd_len ; then
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3972. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3973. else
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3975. $as_echo "none" >&6; }
  3976. fi
  3977. max_cmd_len=$lt_cv_sys_max_cmd_len
  3978. : ${CP="cp -f"}
  3979. : ${MV="mv -f"}
  3980. : ${RM="rm -f"}
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3982. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3983. # Try some XSI features
  3984. xsi_shell=no
  3985. ( _lt_dummy="a/b/c"
  3986. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3987. = c,a/b,b/c, \
  3988. && eval 'test $(( 1 + 1 )) -eq 2 \
  3989. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3990. && xsi_shell=yes
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3992. $as_echo "$xsi_shell" >&6; }
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3994. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3995. lt_shell_append=no
  3996. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3997. >/dev/null 2>&1 \
  3998. && lt_shell_append=yes
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4000. $as_echo "$lt_shell_append" >&6; }
  4001. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4002. lt_unset=unset
  4003. else
  4004. lt_unset=false
  4005. fi
  4006. # test EBCDIC or ASCII
  4007. case `echo X|tr X '\101'` in
  4008. A) # ASCII based system
  4009. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4010. lt_SP2NL='tr \040 \012'
  4011. lt_NL2SP='tr \015\012 \040\040'
  4012. ;;
  4013. *) # EBCDIC based system
  4014. lt_SP2NL='tr \100 \n'
  4015. lt_NL2SP='tr \r\n \100\100'
  4016. ;;
  4017. esac
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4019. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4020. if ${lt_cv_to_host_file_cmd+:} false; then :
  4021. $as_echo_n "(cached) " >&6
  4022. else
  4023. case $host in
  4024. *-*-mingw* )
  4025. case $build in
  4026. *-*-mingw* ) # actually msys
  4027. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4028. ;;
  4029. *-*-cygwin* )
  4030. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4031. ;;
  4032. * ) # otherwise, assume *nix
  4033. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4034. ;;
  4035. esac
  4036. ;;
  4037. *-*-cygwin* )
  4038. case $build in
  4039. *-*-mingw* ) # actually msys
  4040. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4041. ;;
  4042. *-*-cygwin* )
  4043. lt_cv_to_host_file_cmd=func_convert_file_noop
  4044. ;;
  4045. * ) # otherwise, assume *nix
  4046. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4047. ;;
  4048. esac
  4049. ;;
  4050. * ) # unhandled hosts (and "normal" native builds)
  4051. lt_cv_to_host_file_cmd=func_convert_file_noop
  4052. ;;
  4053. esac
  4054. fi
  4055. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4057. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4059. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4060. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. #assume ordinary cross tools, or native build.
  4064. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4065. case $host in
  4066. *-*-mingw* )
  4067. case $build in
  4068. *-*-mingw* ) # actually msys
  4069. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4070. ;;
  4071. esac
  4072. ;;
  4073. esac
  4074. fi
  4075. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4077. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4079. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4080. if ${lt_cv_ld_reload_flag+:} false; then :
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. lt_cv_ld_reload_flag='-r'
  4084. fi
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4086. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4087. reload_flag=$lt_cv_ld_reload_flag
  4088. case $reload_flag in
  4089. "" | " "*) ;;
  4090. *) reload_flag=" $reload_flag" ;;
  4091. esac
  4092. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4093. case $host_os in
  4094. cygwin* | mingw* | pw32* | cegcc*)
  4095. if test "$GCC" != yes; then
  4096. reload_cmds=false
  4097. fi
  4098. ;;
  4099. darwin*)
  4100. if test "$GCC" = yes; then
  4101. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4102. else
  4103. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4104. fi
  4105. ;;
  4106. esac
  4107. if test -n "$ac_tool_prefix"; then
  4108. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4109. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4111. $as_echo_n "checking for $ac_word... " >&6; }
  4112. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. if test -n "$OBJDUMP"; then
  4116. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4117. else
  4118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4119. for as_dir in $PATH
  4120. do
  4121. IFS=$as_save_IFS
  4122. test -z "$as_dir" && as_dir=.
  4123. for ac_exec_ext in '' $ac_executable_extensions; do
  4124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4125. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4127. break 2
  4128. fi
  4129. done
  4130. done
  4131. IFS=$as_save_IFS
  4132. fi
  4133. fi
  4134. OBJDUMP=$ac_cv_prog_OBJDUMP
  4135. if test -n "$OBJDUMP"; then
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4137. $as_echo "$OBJDUMP" >&6; }
  4138. else
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4140. $as_echo "no" >&6; }
  4141. fi
  4142. fi
  4143. if test -z "$ac_cv_prog_OBJDUMP"; then
  4144. ac_ct_OBJDUMP=$OBJDUMP
  4145. # Extract the first word of "objdump", so it can be a program name with args.
  4146. set dummy objdump; ac_word=$2
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4148. $as_echo_n "checking for $ac_word... " >&6; }
  4149. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. if test -n "$ac_ct_OBJDUMP"; then
  4153. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4154. else
  4155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4156. for as_dir in $PATH
  4157. do
  4158. IFS=$as_save_IFS
  4159. test -z "$as_dir" && as_dir=.
  4160. for ac_exec_ext in '' $ac_executable_extensions; do
  4161. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4162. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4164. break 2
  4165. fi
  4166. done
  4167. done
  4168. IFS=$as_save_IFS
  4169. fi
  4170. fi
  4171. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4172. if test -n "$ac_ct_OBJDUMP"; then
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4174. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4175. else
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4177. $as_echo "no" >&6; }
  4178. fi
  4179. if test "x$ac_ct_OBJDUMP" = x; then
  4180. OBJDUMP="false"
  4181. else
  4182. case $cross_compiling:$ac_tool_warned in
  4183. yes:)
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4186. ac_tool_warned=yes ;;
  4187. esac
  4188. OBJDUMP=$ac_ct_OBJDUMP
  4189. fi
  4190. else
  4191. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4192. fi
  4193. test -z "$OBJDUMP" && OBJDUMP=objdump
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4195. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4196. if ${lt_cv_deplibs_check_method+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4200. lt_cv_file_magic_test_file=
  4201. lt_cv_deplibs_check_method='unknown'
  4202. # Need to set the preceding variable on all platforms that support
  4203. # interlibrary dependencies.
  4204. # 'none' -- dependencies not supported.
  4205. # `unknown' -- same as none, but documents that we really don't know.
  4206. # 'pass_all' -- all dependencies passed with no checks.
  4207. # 'test_compile' -- check by making test program.
  4208. # 'file_magic [[regex]]' -- check by looking for files in library path
  4209. # which responds to the $file_magic_cmd with a given extended regex.
  4210. # If you have `file' or equivalent on your system and you're not sure
  4211. # whether `pass_all' will *always* work, you probably want this one.
  4212. case $host_os in
  4213. aix[4-9]*)
  4214. lt_cv_deplibs_check_method=pass_all
  4215. ;;
  4216. beos*)
  4217. lt_cv_deplibs_check_method=pass_all
  4218. ;;
  4219. bsdi[45]*)
  4220. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4221. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4222. lt_cv_file_magic_test_file=/shlib/libc.so
  4223. ;;
  4224. cygwin*)
  4225. # func_win32_libid is a shell function defined in ltmain.sh
  4226. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4227. lt_cv_file_magic_cmd='func_win32_libid'
  4228. lt_cv_deplibs_check_method=pass_all
  4229. ;;
  4230. mingw* | pw32*)
  4231. # Base MSYS/MinGW do not provide the 'file' command needed by
  4232. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4233. # unless we find 'file', for example because we are cross-compiling.
  4234. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4235. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4236. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4237. lt_cv_file_magic_cmd='func_win32_libid'
  4238. else
  4239. # Keep this pattern in sync with the one in func_win32_libid.
  4240. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4241. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4242. fi
  4243. lt_cv_deplibs_check_method=pass_all
  4244. ;;
  4245. cegcc*)
  4246. # use the weaker test based on 'objdump'. See mingw*.
  4247. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4248. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4249. ;;
  4250. darwin* | rhapsody*)
  4251. lt_cv_deplibs_check_method=pass_all
  4252. ;;
  4253. freebsd* | dragonfly*)
  4254. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4255. case $host_cpu in
  4256. i*86 )
  4257. # Not sure whether the presence of OpenBSD here was a mistake.
  4258. # Let's accept both of them until this is cleared up.
  4259. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4260. lt_cv_file_magic_cmd=/usr/bin/file
  4261. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4262. ;;
  4263. esac
  4264. else
  4265. lt_cv_deplibs_check_method=pass_all
  4266. fi
  4267. ;;
  4268. gnu*)
  4269. lt_cv_deplibs_check_method=pass_all
  4270. ;;
  4271. haiku*)
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. hpux10.20* | hpux11*)
  4275. lt_cv_file_magic_cmd=/usr/bin/file
  4276. case $host_cpu in
  4277. ia64*)
  4278. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4279. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4280. ;;
  4281. hppa*64*)
  4282. 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]'
  4283. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4284. ;;
  4285. *)
  4286. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4287. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4288. ;;
  4289. esac
  4290. ;;
  4291. interix[3-9]*)
  4292. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4293. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4294. ;;
  4295. irix5* | irix6* | nonstopux*)
  4296. case $LD in
  4297. *-32|*"-32 ") libmagic=32-bit;;
  4298. *-n32|*"-n32 ") libmagic=N32;;
  4299. *-64|*"-64 ") libmagic=64-bit;;
  4300. *) libmagic=never-match;;
  4301. esac
  4302. lt_cv_deplibs_check_method=pass_all
  4303. ;;
  4304. # This must be glibc/ELF.
  4305. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4306. lt_cv_deplibs_check_method=pass_all
  4307. ;;
  4308. netbsd*)
  4309. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4310. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4311. else
  4312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4313. fi
  4314. ;;
  4315. newos6*)
  4316. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4317. lt_cv_file_magic_cmd=/usr/bin/file
  4318. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4319. ;;
  4320. *nto* | *qnx*)
  4321. lt_cv_deplibs_check_method=pass_all
  4322. ;;
  4323. openbsd*)
  4324. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4326. else
  4327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4328. fi
  4329. ;;
  4330. osf3* | osf4* | osf5*)
  4331. lt_cv_deplibs_check_method=pass_all
  4332. ;;
  4333. rdos*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. solaris*)
  4337. lt_cv_deplibs_check_method=pass_all
  4338. ;;
  4339. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4340. lt_cv_deplibs_check_method=pass_all
  4341. ;;
  4342. sysv4 | sysv4.3*)
  4343. case $host_vendor in
  4344. motorola)
  4345. 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]'
  4346. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4347. ;;
  4348. ncr)
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. sequent)
  4352. lt_cv_file_magic_cmd='/bin/file'
  4353. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4354. ;;
  4355. sni)
  4356. lt_cv_file_magic_cmd='/bin/file'
  4357. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4358. lt_cv_file_magic_test_file=/lib/libc.so
  4359. ;;
  4360. siemens)
  4361. lt_cv_deplibs_check_method=pass_all
  4362. ;;
  4363. pc)
  4364. lt_cv_deplibs_check_method=pass_all
  4365. ;;
  4366. esac
  4367. ;;
  4368. tpf*)
  4369. lt_cv_deplibs_check_method=pass_all
  4370. ;;
  4371. esac
  4372. fi
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4374. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4375. file_magic_glob=
  4376. want_nocaseglob=no
  4377. if test "$build" = "$host"; then
  4378. case $host_os in
  4379. mingw* | pw32*)
  4380. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4381. want_nocaseglob=yes
  4382. else
  4383. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4384. fi
  4385. ;;
  4386. esac
  4387. fi
  4388. file_magic_cmd=$lt_cv_file_magic_cmd
  4389. deplibs_check_method=$lt_cv_deplibs_check_method
  4390. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4391. if test -n "$ac_tool_prefix"; then
  4392. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4393. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$DLLTOOL"; then
  4400. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4409. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. DLLTOOL=$ac_cv_prog_DLLTOOL
  4419. if test -n "$DLLTOOL"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4421. $as_echo "$DLLTOOL" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. fi
  4427. if test -z "$ac_cv_prog_DLLTOOL"; then
  4428. ac_ct_DLLTOOL=$DLLTOOL
  4429. # Extract the first word of "dlltool", so it can be a program name with args.
  4430. set dummy dlltool; ac_word=$2
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4432. $as_echo_n "checking for $ac_word... " >&6; }
  4433. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4434. $as_echo_n "(cached) " >&6
  4435. else
  4436. if test -n "$ac_ct_DLLTOOL"; then
  4437. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4438. else
  4439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4440. for as_dir in $PATH
  4441. do
  4442. IFS=$as_save_IFS
  4443. test -z "$as_dir" && as_dir=.
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4446. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4448. break 2
  4449. fi
  4450. done
  4451. done
  4452. IFS=$as_save_IFS
  4453. fi
  4454. fi
  4455. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4456. if test -n "$ac_ct_DLLTOOL"; then
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4458. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4459. else
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4461. $as_echo "no" >&6; }
  4462. fi
  4463. if test "x$ac_ct_DLLTOOL" = x; then
  4464. DLLTOOL="false"
  4465. else
  4466. case $cross_compiling:$ac_tool_warned in
  4467. yes:)
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4470. ac_tool_warned=yes ;;
  4471. esac
  4472. DLLTOOL=$ac_ct_DLLTOOL
  4473. fi
  4474. else
  4475. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4476. fi
  4477. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4479. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4480. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4484. case $host_os in
  4485. cygwin* | mingw* | pw32* | cegcc*)
  4486. # two different shell functions defined in ltmain.sh
  4487. # decide which to use based on capabilities of $DLLTOOL
  4488. case `$DLLTOOL --help 2>&1` in
  4489. *--identify-strict*)
  4490. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4491. ;;
  4492. *)
  4493. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4494. ;;
  4495. esac
  4496. ;;
  4497. *)
  4498. # fallback: assume linklib IS sharedlib
  4499. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4500. ;;
  4501. esac
  4502. fi
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4504. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4505. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4506. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4507. if test -n "$ac_tool_prefix"; then
  4508. for ac_prog in ar
  4509. do
  4510. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4511. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4513. $as_echo_n "checking for $ac_word... " >&6; }
  4514. if ${ac_cv_prog_AR+:} false; then :
  4515. $as_echo_n "(cached) " >&6
  4516. else
  4517. if test -n "$AR"; then
  4518. ac_cv_prog_AR="$AR" # Let the user override the test.
  4519. else
  4520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4521. for as_dir in $PATH
  4522. do
  4523. IFS=$as_save_IFS
  4524. test -z "$as_dir" && as_dir=.
  4525. for ac_exec_ext in '' $ac_executable_extensions; do
  4526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4527. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4529. break 2
  4530. fi
  4531. done
  4532. done
  4533. IFS=$as_save_IFS
  4534. fi
  4535. fi
  4536. AR=$ac_cv_prog_AR
  4537. if test -n "$AR"; then
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4539. $as_echo "$AR" >&6; }
  4540. else
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4542. $as_echo "no" >&6; }
  4543. fi
  4544. test -n "$AR" && break
  4545. done
  4546. fi
  4547. if test -z "$AR"; then
  4548. ac_ct_AR=$AR
  4549. for ac_prog in ar
  4550. do
  4551. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4552. set dummy $ac_prog; ac_word=$2
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4554. $as_echo_n "checking for $ac_word... " >&6; }
  4555. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4556. $as_echo_n "(cached) " >&6
  4557. else
  4558. if test -n "$ac_ct_AR"; then
  4559. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4560. else
  4561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4562. for as_dir in $PATH
  4563. do
  4564. IFS=$as_save_IFS
  4565. test -z "$as_dir" && as_dir=.
  4566. for ac_exec_ext in '' $ac_executable_extensions; do
  4567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4568. ac_cv_prog_ac_ct_AR="$ac_prog"
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4570. break 2
  4571. fi
  4572. done
  4573. done
  4574. IFS=$as_save_IFS
  4575. fi
  4576. fi
  4577. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4578. if test -n "$ac_ct_AR"; then
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4580. $as_echo "$ac_ct_AR" >&6; }
  4581. else
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4583. $as_echo "no" >&6; }
  4584. fi
  4585. test -n "$ac_ct_AR" && break
  4586. done
  4587. if test "x$ac_ct_AR" = x; then
  4588. AR="false"
  4589. else
  4590. case $cross_compiling:$ac_tool_warned in
  4591. yes:)
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4593. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4594. ac_tool_warned=yes ;;
  4595. esac
  4596. AR=$ac_ct_AR
  4597. fi
  4598. fi
  4599. : ${AR=ar}
  4600. : ${AR_FLAGS=cru}
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4602. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4603. if ${lt_cv_ar_at_file+:} false; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. lt_cv_ar_at_file=no
  4607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4608. /* end confdefs.h. */
  4609. int
  4610. main ()
  4611. {
  4612. ;
  4613. return 0;
  4614. }
  4615. _ACEOF
  4616. if ac_fn_c_try_compile "$LINENO"; then :
  4617. echo conftest.$ac_objext > conftest.lst
  4618. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4619. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4620. (eval $lt_ar_try) 2>&5
  4621. ac_status=$?
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4623. test $ac_status = 0; }
  4624. if test "$ac_status" -eq 0; then
  4625. # Ensure the archiver fails upon bogus file names.
  4626. rm -f conftest.$ac_objext libconftest.a
  4627. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4628. (eval $lt_ar_try) 2>&5
  4629. ac_status=$?
  4630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4631. test $ac_status = 0; }
  4632. if test "$ac_status" -ne 0; then
  4633. lt_cv_ar_at_file=@
  4634. fi
  4635. fi
  4636. rm -f conftest.* libconftest.a
  4637. fi
  4638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4639. fi
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4641. $as_echo "$lt_cv_ar_at_file" >&6; }
  4642. if test "x$lt_cv_ar_at_file" = xno; then
  4643. archiver_list_spec=
  4644. else
  4645. archiver_list_spec=$lt_cv_ar_at_file
  4646. fi
  4647. if test -n "$ac_tool_prefix"; then
  4648. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4649. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. $as_echo_n "checking for $ac_word... " >&6; }
  4652. if ${ac_cv_prog_STRIP+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if test -n "$STRIP"; then
  4656. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4657. else
  4658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4659. for as_dir in $PATH
  4660. do
  4661. IFS=$as_save_IFS
  4662. test -z "$as_dir" && as_dir=.
  4663. for ac_exec_ext in '' $ac_executable_extensions; do
  4664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4665. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4667. break 2
  4668. fi
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. fi
  4673. fi
  4674. STRIP=$ac_cv_prog_STRIP
  4675. if test -n "$STRIP"; then
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4677. $as_echo "$STRIP" >&6; }
  4678. else
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4680. $as_echo "no" >&6; }
  4681. fi
  4682. fi
  4683. if test -z "$ac_cv_prog_STRIP"; then
  4684. ac_ct_STRIP=$STRIP
  4685. # Extract the first word of "strip", so it can be a program name with args.
  4686. set dummy strip; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$ac_ct_STRIP"; then
  4693. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_ac_ct_STRIP="strip"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4712. if test -n "$ac_ct_STRIP"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4714. $as_echo "$ac_ct_STRIP" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. if test "x$ac_ct_STRIP" = x; then
  4720. STRIP=":"
  4721. else
  4722. case $cross_compiling:$ac_tool_warned in
  4723. yes:)
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4726. ac_tool_warned=yes ;;
  4727. esac
  4728. STRIP=$ac_ct_STRIP
  4729. fi
  4730. else
  4731. STRIP="$ac_cv_prog_STRIP"
  4732. fi
  4733. test -z "$STRIP" && STRIP=:
  4734. if test -n "$ac_tool_prefix"; then
  4735. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4736. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4738. $as_echo_n "checking for $ac_word... " >&6; }
  4739. if ${ac_cv_prog_RANLIB+:} false; then :
  4740. $as_echo_n "(cached) " >&6
  4741. else
  4742. if test -n "$RANLIB"; then
  4743. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4744. else
  4745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4746. for as_dir in $PATH
  4747. do
  4748. IFS=$as_save_IFS
  4749. test -z "$as_dir" && as_dir=.
  4750. for ac_exec_ext in '' $ac_executable_extensions; do
  4751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4752. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4754. break 2
  4755. fi
  4756. done
  4757. done
  4758. IFS=$as_save_IFS
  4759. fi
  4760. fi
  4761. RANLIB=$ac_cv_prog_RANLIB
  4762. if test -n "$RANLIB"; then
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4764. $as_echo "$RANLIB" >&6; }
  4765. else
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4767. $as_echo "no" >&6; }
  4768. fi
  4769. fi
  4770. if test -z "$ac_cv_prog_RANLIB"; then
  4771. ac_ct_RANLIB=$RANLIB
  4772. # Extract the first word of "ranlib", so it can be a program name with args.
  4773. set dummy ranlib; ac_word=$2
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4775. $as_echo_n "checking for $ac_word... " >&6; }
  4776. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4777. $as_echo_n "(cached) " >&6
  4778. else
  4779. if test -n "$ac_ct_RANLIB"; then
  4780. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4781. else
  4782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4783. for as_dir in $PATH
  4784. do
  4785. IFS=$as_save_IFS
  4786. test -z "$as_dir" && as_dir=.
  4787. for ac_exec_ext in '' $ac_executable_extensions; do
  4788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4789. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4791. break 2
  4792. fi
  4793. done
  4794. done
  4795. IFS=$as_save_IFS
  4796. fi
  4797. fi
  4798. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4799. if test -n "$ac_ct_RANLIB"; then
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4801. $as_echo "$ac_ct_RANLIB" >&6; }
  4802. else
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4804. $as_echo "no" >&6; }
  4805. fi
  4806. if test "x$ac_ct_RANLIB" = x; then
  4807. RANLIB=":"
  4808. else
  4809. case $cross_compiling:$ac_tool_warned in
  4810. yes:)
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4813. ac_tool_warned=yes ;;
  4814. esac
  4815. RANLIB=$ac_ct_RANLIB
  4816. fi
  4817. else
  4818. RANLIB="$ac_cv_prog_RANLIB"
  4819. fi
  4820. test -z "$RANLIB" && RANLIB=:
  4821. # Determine commands to create old-style static archives.
  4822. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4823. old_postinstall_cmds='chmod 644 $oldlib'
  4824. old_postuninstall_cmds=
  4825. if test -n "$RANLIB"; then
  4826. case $host_os in
  4827. openbsd*)
  4828. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4829. ;;
  4830. *)
  4831. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4832. ;;
  4833. esac
  4834. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4835. fi
  4836. case $host_os in
  4837. darwin*)
  4838. lock_old_archive_extraction=yes ;;
  4839. *)
  4840. lock_old_archive_extraction=no ;;
  4841. esac
  4842. for ac_prog in gawk mawk nawk awk
  4843. do
  4844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4845. set dummy $ac_prog; ac_word=$2
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4847. $as_echo_n "checking for $ac_word... " >&6; }
  4848. if ${ac_cv_prog_AWK+:} false; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. if test -n "$AWK"; then
  4852. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4853. else
  4854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4855. for as_dir in $PATH
  4856. do
  4857. IFS=$as_save_IFS
  4858. test -z "$as_dir" && as_dir=.
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4861. ac_cv_prog_AWK="$ac_prog"
  4862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4863. break 2
  4864. fi
  4865. done
  4866. done
  4867. IFS=$as_save_IFS
  4868. fi
  4869. fi
  4870. AWK=$ac_cv_prog_AWK
  4871. if test -n "$AWK"; then
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4873. $as_echo "$AWK" >&6; }
  4874. else
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4876. $as_echo "no" >&6; }
  4877. fi
  4878. test -n "$AWK" && break
  4879. done
  4880. # If no C compiler was specified, use CC.
  4881. LTCC=${LTCC-"$CC"}
  4882. # If no C compiler flags were specified, use CFLAGS.
  4883. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4884. # Allow CC to be a program name with arguments.
  4885. compiler=$CC
  4886. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4888. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4889. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. # These are sane defaults that work on at least a few old systems.
  4893. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4894. # Character class describing NM global symbol codes.
  4895. symcode='[BCDEGRST]'
  4896. # Regexp to match symbols that can be accessed directly from C.
  4897. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4898. # Define system-specific variables.
  4899. case $host_os in
  4900. aix*)
  4901. symcode='[BCDT]'
  4902. ;;
  4903. cygwin* | mingw* | pw32* | cegcc*)
  4904. symcode='[ABCDGISTW]'
  4905. ;;
  4906. hpux*)
  4907. if test "$host_cpu" = ia64; then
  4908. symcode='[ABCDEGRST]'
  4909. fi
  4910. ;;
  4911. irix* | nonstopux*)
  4912. symcode='[BCDEGRST]'
  4913. ;;
  4914. osf*)
  4915. symcode='[BCDEGQRST]'
  4916. ;;
  4917. solaris*)
  4918. symcode='[BDRT]'
  4919. ;;
  4920. sco3.2v5*)
  4921. symcode='[DT]'
  4922. ;;
  4923. sysv4.2uw2*)
  4924. symcode='[DT]'
  4925. ;;
  4926. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4927. symcode='[ABDT]'
  4928. ;;
  4929. sysv4)
  4930. symcode='[DFNSTU]'
  4931. ;;
  4932. esac
  4933. # If we're using GNU nm, then use its standard symbol codes.
  4934. case `$NM -V 2>&1` in
  4935. *GNU* | *'with BFD'*)
  4936. symcode='[ABCDGIRSTW]' ;;
  4937. esac
  4938. # Transform an extracted symbol line into a proper C declaration.
  4939. # Some systems (esp. on ia64) link data and code symbols differently,
  4940. # so use this general approach.
  4941. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4942. # Transform an extracted symbol line into symbol name and symbol address
  4943. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4944. 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'"
  4945. # Handle CRLF in mingw tool chain
  4946. opt_cr=
  4947. case $build_os in
  4948. mingw*)
  4949. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4950. ;;
  4951. esac
  4952. # Try without a prefix underscore, then with it.
  4953. for ac_symprfx in "" "_"; do
  4954. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4955. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4956. # Write the raw and C identifiers.
  4957. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4958. # Fake it for dumpbin and say T for any non-static function
  4959. # and D for any global variable.
  4960. # Also find C++ and __fastcall symbols from MSVC++,
  4961. # which start with @ or ?.
  4962. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4963. " {last_section=section; section=\$ 3};"\
  4964. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4965. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4966. " \$ 0!~/External *\|/{next};"\
  4967. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4968. " {if(hide[section]) next};"\
  4969. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4970. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4971. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4972. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4973. " ' prfx=^$ac_symprfx"
  4974. else
  4975. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4976. fi
  4977. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4978. # Check to see that the pipe works correctly.
  4979. pipe_works=no
  4980. rm -f conftest*
  4981. cat > conftest.$ac_ext <<_LT_EOF
  4982. #ifdef __cplusplus
  4983. extern "C" {
  4984. #endif
  4985. char nm_test_var;
  4986. void nm_test_func(void);
  4987. void nm_test_func(void){}
  4988. #ifdef __cplusplus
  4989. }
  4990. #endif
  4991. int main(){nm_test_var='a';nm_test_func();return(0);}
  4992. _LT_EOF
  4993. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4994. (eval $ac_compile) 2>&5
  4995. ac_status=$?
  4996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4997. test $ac_status = 0; }; then
  4998. # Now try to grab the symbols.
  4999. nlist=conftest.nm
  5000. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5001. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5002. ac_status=$?
  5003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5004. test $ac_status = 0; } && test -s "$nlist"; then
  5005. # Try sorting and uniquifying the output.
  5006. if sort "$nlist" | uniq > "$nlist"T; then
  5007. mv -f "$nlist"T "$nlist"
  5008. else
  5009. rm -f "$nlist"T
  5010. fi
  5011. # Make sure that we snagged all the symbols we need.
  5012. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5013. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5014. cat <<_LT_EOF > conftest.$ac_ext
  5015. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5016. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5017. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5018. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5019. # define LT_DLSYM_CONST
  5020. #elif defined(__osf__)
  5021. /* This system does not cope well with relocations in const data. */
  5022. # define LT_DLSYM_CONST
  5023. #else
  5024. # define LT_DLSYM_CONST const
  5025. #endif
  5026. #ifdef __cplusplus
  5027. extern "C" {
  5028. #endif
  5029. _LT_EOF
  5030. # Now generate the symbol file.
  5031. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5032. cat <<_LT_EOF >> conftest.$ac_ext
  5033. /* The mapping between symbol names and symbols. */
  5034. LT_DLSYM_CONST struct {
  5035. const char *name;
  5036. void *address;
  5037. }
  5038. lt__PROGRAM__LTX_preloaded_symbols[] =
  5039. {
  5040. { "@PROGRAM@", (void *) 0 },
  5041. _LT_EOF
  5042. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5043. cat <<\_LT_EOF >> conftest.$ac_ext
  5044. {0, (void *) 0}
  5045. };
  5046. /* This works around a problem in FreeBSD linker */
  5047. #ifdef FREEBSD_WORKAROUND
  5048. static const void *lt_preloaded_setup() {
  5049. return lt__PROGRAM__LTX_preloaded_symbols;
  5050. }
  5051. #endif
  5052. #ifdef __cplusplus
  5053. }
  5054. #endif
  5055. _LT_EOF
  5056. # Now try linking the two files.
  5057. mv conftest.$ac_objext conftstm.$ac_objext
  5058. lt_globsym_save_LIBS=$LIBS
  5059. lt_globsym_save_CFLAGS=$CFLAGS
  5060. LIBS="conftstm.$ac_objext"
  5061. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5062. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5063. (eval $ac_link) 2>&5
  5064. ac_status=$?
  5065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5066. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5067. pipe_works=yes
  5068. fi
  5069. LIBS=$lt_globsym_save_LIBS
  5070. CFLAGS=$lt_globsym_save_CFLAGS
  5071. else
  5072. echo "cannot find nm_test_func in $nlist" >&5
  5073. fi
  5074. else
  5075. echo "cannot find nm_test_var in $nlist" >&5
  5076. fi
  5077. else
  5078. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5079. fi
  5080. else
  5081. echo "$progname: failed program was:" >&5
  5082. cat conftest.$ac_ext >&5
  5083. fi
  5084. rm -rf conftest* conftst*
  5085. # Do not use the global_symbol_pipe unless it works.
  5086. if test "$pipe_works" = yes; then
  5087. break
  5088. else
  5089. lt_cv_sys_global_symbol_pipe=
  5090. fi
  5091. done
  5092. fi
  5093. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5094. lt_cv_sys_global_symbol_to_cdecl=
  5095. fi
  5096. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5098. $as_echo "failed" >&6; }
  5099. else
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5101. $as_echo "ok" >&6; }
  5102. fi
  5103. # Response file support.
  5104. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5105. nm_file_list_spec='@'
  5106. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5107. nm_file_list_spec='@'
  5108. fi
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5110. $as_echo_n "checking for sysroot... " >&6; }
  5111. # Check whether --with-sysroot was given.
  5112. if test "${with_sysroot+set}" = set; then :
  5113. withval=$with_sysroot;
  5114. else
  5115. with_sysroot=no
  5116. fi
  5117. lt_sysroot=
  5118. case ${with_sysroot} in #(
  5119. yes)
  5120. if test "$GCC" = yes; then
  5121. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5122. fi
  5123. ;; #(
  5124. /*)
  5125. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5126. ;; #(
  5127. no|'')
  5128. ;; #(
  5129. *)
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5131. $as_echo "${with_sysroot}" >&6; }
  5132. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5133. ;;
  5134. esac
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5136. $as_echo "${lt_sysroot:-no}" >&6; }
  5137. # Check whether --enable-libtool-lock was given.
  5138. if test "${enable_libtool_lock+set}" = set; then :
  5139. enableval=$enable_libtool_lock;
  5140. fi
  5141. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5142. # Some flags need to be propagated to the compiler or linker for good
  5143. # libtool support.
  5144. case $host in
  5145. ia64-*-hpux*)
  5146. # Find out which ABI we are using.
  5147. echo 'int i;' > conftest.$ac_ext
  5148. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5149. (eval $ac_compile) 2>&5
  5150. ac_status=$?
  5151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5152. test $ac_status = 0; }; then
  5153. case `/usr/bin/file conftest.$ac_objext` in
  5154. *ELF-32*)
  5155. HPUX_IA64_MODE="32"
  5156. ;;
  5157. *ELF-64*)
  5158. HPUX_IA64_MODE="64"
  5159. ;;
  5160. esac
  5161. fi
  5162. rm -rf conftest*
  5163. ;;
  5164. *-*-irix6*)
  5165. # Find out which ABI we are using.
  5166. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5167. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5168. (eval $ac_compile) 2>&5
  5169. ac_status=$?
  5170. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5171. test $ac_status = 0; }; then
  5172. if test "$lt_cv_prog_gnu_ld" = yes; then
  5173. case `/usr/bin/file conftest.$ac_objext` in
  5174. *32-bit*)
  5175. LD="${LD-ld} -melf32bsmip"
  5176. ;;
  5177. *N32*)
  5178. LD="${LD-ld} -melf32bmipn32"
  5179. ;;
  5180. *64-bit*)
  5181. LD="${LD-ld} -melf64bmip"
  5182. ;;
  5183. esac
  5184. else
  5185. case `/usr/bin/file conftest.$ac_objext` in
  5186. *32-bit*)
  5187. LD="${LD-ld} -32"
  5188. ;;
  5189. *N32*)
  5190. LD="${LD-ld} -n32"
  5191. ;;
  5192. *64-bit*)
  5193. LD="${LD-ld} -64"
  5194. ;;
  5195. esac
  5196. fi
  5197. fi
  5198. rm -rf conftest*
  5199. ;;
  5200. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5201. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5202. # Find out which ABI we are using.
  5203. echo 'int i;' > conftest.$ac_ext
  5204. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5205. (eval $ac_compile) 2>&5
  5206. ac_status=$?
  5207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5208. test $ac_status = 0; }; then
  5209. case `/usr/bin/file conftest.o` in
  5210. *32-bit*)
  5211. case $host in
  5212. x86_64-*kfreebsd*-gnu)
  5213. LD="${LD-ld} -m elf_i386_fbsd"
  5214. ;;
  5215. x86_64-*linux*)
  5216. LD="${LD-ld} -m elf_i386"
  5217. ;;
  5218. ppc64-*linux*|powerpc64-*linux*)
  5219. LD="${LD-ld} -m elf32ppclinux"
  5220. ;;
  5221. s390x-*linux*)
  5222. LD="${LD-ld} -m elf_s390"
  5223. ;;
  5224. sparc64-*linux*)
  5225. LD="${LD-ld} -m elf32_sparc"
  5226. ;;
  5227. esac
  5228. ;;
  5229. *64-bit*)
  5230. case $host in
  5231. x86_64-*kfreebsd*-gnu)
  5232. LD="${LD-ld} -m elf_x86_64_fbsd"
  5233. ;;
  5234. x86_64-*linux*)
  5235. LD="${LD-ld} -m elf_x86_64"
  5236. ;;
  5237. ppc*-*linux*|powerpc*-*linux*)
  5238. LD="${LD-ld} -m elf64ppc"
  5239. ;;
  5240. s390*-*linux*|s390*-*tpf*)
  5241. LD="${LD-ld} -m elf64_s390"
  5242. ;;
  5243. sparc*-*linux*)
  5244. LD="${LD-ld} -m elf64_sparc"
  5245. ;;
  5246. esac
  5247. ;;
  5248. esac
  5249. fi
  5250. rm -rf conftest*
  5251. ;;
  5252. *-*-sco3.2v5*)
  5253. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5254. SAVE_CFLAGS="$CFLAGS"
  5255. CFLAGS="$CFLAGS -belf"
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5257. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5258. if ${lt_cv_cc_needs_belf+:} false; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. ac_ext=c
  5262. ac_cpp='$CPP $CPPFLAGS'
  5263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5267. /* end confdefs.h. */
  5268. int
  5269. main ()
  5270. {
  5271. ;
  5272. return 0;
  5273. }
  5274. _ACEOF
  5275. if ac_fn_c_try_link "$LINENO"; then :
  5276. lt_cv_cc_needs_belf=yes
  5277. else
  5278. lt_cv_cc_needs_belf=no
  5279. fi
  5280. rm -f core conftest.err conftest.$ac_objext \
  5281. conftest$ac_exeext conftest.$ac_ext
  5282. ac_ext=c
  5283. ac_cpp='$CPP $CPPFLAGS'
  5284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5287. fi
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5289. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5290. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5291. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5292. CFLAGS="$SAVE_CFLAGS"
  5293. fi
  5294. ;;
  5295. *-*solaris*)
  5296. # Find out which ABI we are using.
  5297. echo 'int i;' > conftest.$ac_ext
  5298. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5299. (eval $ac_compile) 2>&5
  5300. ac_status=$?
  5301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5302. test $ac_status = 0; }; then
  5303. case `/usr/bin/file conftest.o` in
  5304. *64-bit*)
  5305. case $lt_cv_prog_gnu_ld in
  5306. yes*)
  5307. case $host in
  5308. i?86-*-solaris*)
  5309. LD="${LD-ld} -m elf_x86_64"
  5310. ;;
  5311. sparc*-*-solaris*)
  5312. LD="${LD-ld} -m elf64_sparc"
  5313. ;;
  5314. esac
  5315. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5316. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5317. LD="${LD-ld}_sol2"
  5318. fi
  5319. ;;
  5320. *)
  5321. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5322. LD="${LD-ld} -64"
  5323. fi
  5324. ;;
  5325. esac
  5326. ;;
  5327. esac
  5328. fi
  5329. rm -rf conftest*
  5330. ;;
  5331. esac
  5332. need_locks="$enable_libtool_lock"
  5333. if test -n "$ac_tool_prefix"; then
  5334. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5335. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5337. $as_echo_n "checking for $ac_word... " >&6; }
  5338. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5339. $as_echo_n "(cached) " >&6
  5340. else
  5341. if test -n "$MANIFEST_TOOL"; then
  5342. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5343. else
  5344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345. for as_dir in $PATH
  5346. do
  5347. IFS=$as_save_IFS
  5348. test -z "$as_dir" && as_dir=.
  5349. for ac_exec_ext in '' $ac_executable_extensions; do
  5350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5351. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5353. break 2
  5354. fi
  5355. done
  5356. done
  5357. IFS=$as_save_IFS
  5358. fi
  5359. fi
  5360. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5361. if test -n "$MANIFEST_TOOL"; then
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5363. $as_echo "$MANIFEST_TOOL" >&6; }
  5364. else
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5366. $as_echo "no" >&6; }
  5367. fi
  5368. fi
  5369. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5370. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5371. # Extract the first word of "mt", so it can be a program name with args.
  5372. set dummy mt; ac_word=$2
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5374. $as_echo_n "checking for $ac_word... " >&6; }
  5375. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5376. $as_echo_n "(cached) " >&6
  5377. else
  5378. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5379. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5380. else
  5381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5382. for as_dir in $PATH
  5383. do
  5384. IFS=$as_save_IFS
  5385. test -z "$as_dir" && as_dir=.
  5386. for ac_exec_ext in '' $ac_executable_extensions; do
  5387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5388. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5390. break 2
  5391. fi
  5392. done
  5393. done
  5394. IFS=$as_save_IFS
  5395. fi
  5396. fi
  5397. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5398. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5400. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5401. else
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5403. $as_echo "no" >&6; }
  5404. fi
  5405. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5406. MANIFEST_TOOL=":"
  5407. else
  5408. case $cross_compiling:$ac_tool_warned in
  5409. yes:)
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5412. ac_tool_warned=yes ;;
  5413. esac
  5414. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5415. fi
  5416. else
  5417. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5418. fi
  5419. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5421. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5422. if ${lt_cv_path_mainfest_tool+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. lt_cv_path_mainfest_tool=no
  5426. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5427. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5428. cat conftest.err >&5
  5429. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5430. lt_cv_path_mainfest_tool=yes
  5431. fi
  5432. rm -f conftest*
  5433. fi
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5435. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5436. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5437. MANIFEST_TOOL=:
  5438. fi
  5439. case $host_os in
  5440. rhapsody* | darwin*)
  5441. if test -n "$ac_tool_prefix"; then
  5442. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5443. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5445. $as_echo_n "checking for $ac_word... " >&6; }
  5446. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if test -n "$DSYMUTIL"; then
  5450. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5451. else
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5459. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5469. if test -n "$DSYMUTIL"; then
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5471. $as_echo "$DSYMUTIL" >&6; }
  5472. else
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. fi
  5477. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5478. ac_ct_DSYMUTIL=$DSYMUTIL
  5479. # Extract the first word of "dsymutil", so it can be a program name with args.
  5480. set dummy dsymutil; ac_word=$2
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5482. $as_echo_n "checking for $ac_word... " >&6; }
  5483. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. if test -n "$ac_ct_DSYMUTIL"; then
  5487. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5488. else
  5489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5490. for as_dir in $PATH
  5491. do
  5492. IFS=$as_save_IFS
  5493. test -z "$as_dir" && as_dir=.
  5494. for ac_exec_ext in '' $ac_executable_extensions; do
  5495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5496. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5498. break 2
  5499. fi
  5500. done
  5501. done
  5502. IFS=$as_save_IFS
  5503. fi
  5504. fi
  5505. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5506. if test -n "$ac_ct_DSYMUTIL"; then
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5508. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5509. else
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5511. $as_echo "no" >&6; }
  5512. fi
  5513. if test "x$ac_ct_DSYMUTIL" = x; then
  5514. DSYMUTIL=":"
  5515. else
  5516. case $cross_compiling:$ac_tool_warned in
  5517. yes:)
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5520. ac_tool_warned=yes ;;
  5521. esac
  5522. DSYMUTIL=$ac_ct_DSYMUTIL
  5523. fi
  5524. else
  5525. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5526. fi
  5527. if test -n "$ac_tool_prefix"; then
  5528. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5529. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_NMEDIT+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$NMEDIT"; then
  5536. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5545. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. NMEDIT=$ac_cv_prog_NMEDIT
  5555. if test -n "$NMEDIT"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5557. $as_echo "$NMEDIT" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. fi
  5563. if test -z "$ac_cv_prog_NMEDIT"; then
  5564. ac_ct_NMEDIT=$NMEDIT
  5565. # Extract the first word of "nmedit", so it can be a program name with args.
  5566. set dummy nmedit; ac_word=$2
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5568. $as_echo_n "checking for $ac_word... " >&6; }
  5569. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test -n "$ac_ct_NMEDIT"; then
  5573. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. test -z "$as_dir" && as_dir=.
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5582. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5584. break 2
  5585. fi
  5586. done
  5587. done
  5588. IFS=$as_save_IFS
  5589. fi
  5590. fi
  5591. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5592. if test -n "$ac_ct_NMEDIT"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5594. $as_echo "$ac_ct_NMEDIT" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5597. $as_echo "no" >&6; }
  5598. fi
  5599. if test "x$ac_ct_NMEDIT" = x; then
  5600. NMEDIT=":"
  5601. else
  5602. case $cross_compiling:$ac_tool_warned in
  5603. yes:)
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5605. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5606. ac_tool_warned=yes ;;
  5607. esac
  5608. NMEDIT=$ac_ct_NMEDIT
  5609. fi
  5610. else
  5611. NMEDIT="$ac_cv_prog_NMEDIT"
  5612. fi
  5613. if test -n "$ac_tool_prefix"; then
  5614. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5615. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5617. $as_echo_n "checking for $ac_word... " >&6; }
  5618. if ${ac_cv_prog_LIPO+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. if test -n "$LIPO"; then
  5622. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5623. else
  5624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5625. for as_dir in $PATH
  5626. do
  5627. IFS=$as_save_IFS
  5628. test -z "$as_dir" && as_dir=.
  5629. for ac_exec_ext in '' $ac_executable_extensions; do
  5630. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5631. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5633. break 2
  5634. fi
  5635. done
  5636. done
  5637. IFS=$as_save_IFS
  5638. fi
  5639. fi
  5640. LIPO=$ac_cv_prog_LIPO
  5641. if test -n "$LIPO"; then
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5643. $as_echo "$LIPO" >&6; }
  5644. else
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5646. $as_echo "no" >&6; }
  5647. fi
  5648. fi
  5649. if test -z "$ac_cv_prog_LIPO"; then
  5650. ac_ct_LIPO=$LIPO
  5651. # Extract the first word of "lipo", so it can be a program name with args.
  5652. set dummy lipo; ac_word=$2
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5654. $as_echo_n "checking for $ac_word... " >&6; }
  5655. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. if test -n "$ac_ct_LIPO"; then
  5659. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5660. else
  5661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5662. for as_dir in $PATH
  5663. do
  5664. IFS=$as_save_IFS
  5665. test -z "$as_dir" && as_dir=.
  5666. for ac_exec_ext in '' $ac_executable_extensions; do
  5667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5668. ac_cv_prog_ac_ct_LIPO="lipo"
  5669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5670. break 2
  5671. fi
  5672. done
  5673. done
  5674. IFS=$as_save_IFS
  5675. fi
  5676. fi
  5677. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5678. if test -n "$ac_ct_LIPO"; then
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5680. $as_echo "$ac_ct_LIPO" >&6; }
  5681. else
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5683. $as_echo "no" >&6; }
  5684. fi
  5685. if test "x$ac_ct_LIPO" = x; then
  5686. LIPO=":"
  5687. else
  5688. case $cross_compiling:$ac_tool_warned in
  5689. yes:)
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5692. ac_tool_warned=yes ;;
  5693. esac
  5694. LIPO=$ac_ct_LIPO
  5695. fi
  5696. else
  5697. LIPO="$ac_cv_prog_LIPO"
  5698. fi
  5699. if test -n "$ac_tool_prefix"; then
  5700. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5701. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. $as_echo_n "checking for $ac_word... " >&6; }
  5704. if ${ac_cv_prog_OTOOL+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test -n "$OTOOL"; then
  5708. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. OTOOL=$ac_cv_prog_OTOOL
  5727. if test -n "$OTOOL"; then
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5729. $as_echo "$OTOOL" >&6; }
  5730. else
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. $as_echo "no" >&6; }
  5733. fi
  5734. fi
  5735. if test -z "$ac_cv_prog_OTOOL"; then
  5736. ac_ct_OTOOL=$OTOOL
  5737. # Extract the first word of "otool", so it can be a program name with args.
  5738. set dummy otool; ac_word=$2
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. $as_echo_n "checking for $ac_word... " >&6; }
  5741. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5742. $as_echo_n "(cached) " >&6
  5743. else
  5744. if test -n "$ac_ct_OTOOL"; then
  5745. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5754. ac_cv_prog_ac_ct_OTOOL="otool"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. fi
  5762. fi
  5763. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5764. if test -n "$ac_ct_OTOOL"; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5766. $as_echo "$ac_ct_OTOOL" >&6; }
  5767. else
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5769. $as_echo "no" >&6; }
  5770. fi
  5771. if test "x$ac_ct_OTOOL" = x; then
  5772. OTOOL=":"
  5773. else
  5774. case $cross_compiling:$ac_tool_warned in
  5775. yes:)
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5778. ac_tool_warned=yes ;;
  5779. esac
  5780. OTOOL=$ac_ct_OTOOL
  5781. fi
  5782. else
  5783. OTOOL="$ac_cv_prog_OTOOL"
  5784. fi
  5785. if test -n "$ac_tool_prefix"; then
  5786. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5787. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5789. $as_echo_n "checking for $ac_word... " >&6; }
  5790. if ${ac_cv_prog_OTOOL64+:} false; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. if test -n "$OTOOL64"; then
  5794. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5795. else
  5796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5797. for as_dir in $PATH
  5798. do
  5799. IFS=$as_save_IFS
  5800. test -z "$as_dir" && as_dir=.
  5801. for ac_exec_ext in '' $ac_executable_extensions; do
  5802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5803. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5805. break 2
  5806. fi
  5807. done
  5808. done
  5809. IFS=$as_save_IFS
  5810. fi
  5811. fi
  5812. OTOOL64=$ac_cv_prog_OTOOL64
  5813. if test -n "$OTOOL64"; then
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5815. $as_echo "$OTOOL64" >&6; }
  5816. else
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. $as_echo "no" >&6; }
  5819. fi
  5820. fi
  5821. if test -z "$ac_cv_prog_OTOOL64"; then
  5822. ac_ct_OTOOL64=$OTOOL64
  5823. # Extract the first word of "otool64", so it can be a program name with args.
  5824. set dummy otool64; ac_word=$2
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5826. $as_echo_n "checking for $ac_word... " >&6; }
  5827. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5828. $as_echo_n "(cached) " >&6
  5829. else
  5830. if test -n "$ac_ct_OTOOL64"; then
  5831. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5832. else
  5833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5834. for as_dir in $PATH
  5835. do
  5836. IFS=$as_save_IFS
  5837. test -z "$as_dir" && as_dir=.
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5840. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. fi
  5848. fi
  5849. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5850. if test -n "$ac_ct_OTOOL64"; then
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5852. $as_echo "$ac_ct_OTOOL64" >&6; }
  5853. else
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5855. $as_echo "no" >&6; }
  5856. fi
  5857. if test "x$ac_ct_OTOOL64" = x; then
  5858. OTOOL64=":"
  5859. else
  5860. case $cross_compiling:$ac_tool_warned in
  5861. yes:)
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5864. ac_tool_warned=yes ;;
  5865. esac
  5866. OTOOL64=$ac_ct_OTOOL64
  5867. fi
  5868. else
  5869. OTOOL64="$ac_cv_prog_OTOOL64"
  5870. fi
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5872. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5873. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5874. $as_echo_n "(cached) " >&6
  5875. else
  5876. lt_cv_apple_cc_single_mod=no
  5877. if test -z "${LT_MULTI_MODULE}"; then
  5878. # By default we will add the -single_module flag. You can override
  5879. # by either setting the environment variable LT_MULTI_MODULE
  5880. # non-empty at configure time, or by adding -multi_module to the
  5881. # link flags.
  5882. rm -rf libconftest.dylib*
  5883. echo "int foo(void){return 1;}" > conftest.c
  5884. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5885. -dynamiclib -Wl,-single_module conftest.c" >&5
  5886. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5887. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5888. _lt_result=$?
  5889. # If there is a non-empty error log, and "single_module"
  5890. # appears in it, assume the flag caused a linker warning
  5891. if test -s conftest.err && $GREP single_module conftest.err; then
  5892. cat conftest.err >&5
  5893. # Otherwise, if the output was created with a 0 exit code from
  5894. # the compiler, it worked.
  5895. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5896. lt_cv_apple_cc_single_mod=yes
  5897. else
  5898. cat conftest.err >&5
  5899. fi
  5900. rm -rf libconftest.dylib*
  5901. rm -f conftest.*
  5902. fi
  5903. fi
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5905. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5907. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5908. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. lt_cv_ld_exported_symbols_list=no
  5912. save_LDFLAGS=$LDFLAGS
  5913. echo "_main" > conftest.sym
  5914. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5916. /* end confdefs.h. */
  5917. int
  5918. main ()
  5919. {
  5920. ;
  5921. return 0;
  5922. }
  5923. _ACEOF
  5924. if ac_fn_c_try_link "$LINENO"; then :
  5925. lt_cv_ld_exported_symbols_list=yes
  5926. else
  5927. lt_cv_ld_exported_symbols_list=no
  5928. fi
  5929. rm -f core conftest.err conftest.$ac_objext \
  5930. conftest$ac_exeext conftest.$ac_ext
  5931. LDFLAGS="$save_LDFLAGS"
  5932. fi
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5934. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5936. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5937. if ${lt_cv_ld_force_load+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. lt_cv_ld_force_load=no
  5941. cat > conftest.c << _LT_EOF
  5942. int forced_loaded() { return 2;}
  5943. _LT_EOF
  5944. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5945. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5946. echo "$AR cru libconftest.a conftest.o" >&5
  5947. $AR cru libconftest.a conftest.o 2>&5
  5948. echo "$RANLIB libconftest.a" >&5
  5949. $RANLIB libconftest.a 2>&5
  5950. cat > conftest.c << _LT_EOF
  5951. int main() { return 0;}
  5952. _LT_EOF
  5953. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5954. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5955. _lt_result=$?
  5956. if test -s conftest.err && $GREP force_load conftest.err; then
  5957. cat conftest.err >&5
  5958. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5959. lt_cv_ld_force_load=yes
  5960. else
  5961. cat conftest.err >&5
  5962. fi
  5963. rm -f conftest.err libconftest.a conftest conftest.c
  5964. rm -rf conftest.dSYM
  5965. fi
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5967. $as_echo "$lt_cv_ld_force_load" >&6; }
  5968. case $host_os in
  5969. rhapsody* | darwin1.[012])
  5970. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5971. darwin1.*)
  5972. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5973. darwin*) # darwin 5.x on
  5974. # if running on 10.5 or later, the deployment target defaults
  5975. # to the OS version, if on x86, and 10.4, the deployment
  5976. # target defaults to 10.4. Don't you love it?
  5977. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5978. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5979. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5980. 10.[012]*)
  5981. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5982. 10.*)
  5983. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5984. esac
  5985. ;;
  5986. esac
  5987. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5988. _lt_dar_single_mod='$single_module'
  5989. fi
  5990. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5991. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5992. else
  5993. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5994. fi
  5995. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5996. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5997. else
  5998. _lt_dsymutil=
  5999. fi
  6000. ;;
  6001. esac
  6002. ac_ext=c
  6003. ac_cpp='$CPP $CPPFLAGS'
  6004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6008. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6009. # On Suns, sometimes $CPP names a directory.
  6010. if test -n "$CPP" && test -d "$CPP"; then
  6011. CPP=
  6012. fi
  6013. if test -z "$CPP"; then
  6014. if ${ac_cv_prog_CPP+:} false; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. # Double quotes because CPP needs to be expanded
  6018. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6019. do
  6020. ac_preproc_ok=false
  6021. for ac_c_preproc_warn_flag in '' yes
  6022. do
  6023. # Use a header file that comes with gcc, so configuring glibc
  6024. # with a fresh cross-compiler works.
  6025. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6026. # <limits.h> exists even on freestanding compilers.
  6027. # On the NeXT, cc -E runs the code through the compiler's parser,
  6028. # not just through cpp. "Syntax error" is here to catch this case.
  6029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6030. /* end confdefs.h. */
  6031. #ifdef __STDC__
  6032. # include <limits.h>
  6033. #else
  6034. # include <assert.h>
  6035. #endif
  6036. Syntax error
  6037. _ACEOF
  6038. if ac_fn_c_try_cpp "$LINENO"; then :
  6039. else
  6040. # Broken: fails on valid input.
  6041. continue
  6042. fi
  6043. rm -f conftest.err conftest.i conftest.$ac_ext
  6044. # OK, works on sane cases. Now check whether nonexistent headers
  6045. # can be detected and how.
  6046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6047. /* end confdefs.h. */
  6048. #include <ac_nonexistent.h>
  6049. _ACEOF
  6050. if ac_fn_c_try_cpp "$LINENO"; then :
  6051. # Broken: success on invalid input.
  6052. continue
  6053. else
  6054. # Passes both tests.
  6055. ac_preproc_ok=:
  6056. break
  6057. fi
  6058. rm -f conftest.err conftest.i conftest.$ac_ext
  6059. done
  6060. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6061. rm -f conftest.i conftest.err conftest.$ac_ext
  6062. if $ac_preproc_ok; then :
  6063. break
  6064. fi
  6065. done
  6066. ac_cv_prog_CPP=$CPP
  6067. fi
  6068. CPP=$ac_cv_prog_CPP
  6069. else
  6070. ac_cv_prog_CPP=$CPP
  6071. fi
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6073. $as_echo "$CPP" >&6; }
  6074. ac_preproc_ok=false
  6075. for ac_c_preproc_warn_flag in '' yes
  6076. do
  6077. # Use a header file that comes with gcc, so configuring glibc
  6078. # with a fresh cross-compiler works.
  6079. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6080. # <limits.h> exists even on freestanding compilers.
  6081. # On the NeXT, cc -E runs the code through the compiler's parser,
  6082. # not just through cpp. "Syntax error" is here to catch this case.
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. #ifdef __STDC__
  6086. # include <limits.h>
  6087. #else
  6088. # include <assert.h>
  6089. #endif
  6090. Syntax error
  6091. _ACEOF
  6092. if ac_fn_c_try_cpp "$LINENO"; then :
  6093. else
  6094. # Broken: fails on valid input.
  6095. continue
  6096. fi
  6097. rm -f conftest.err conftest.i conftest.$ac_ext
  6098. # OK, works on sane cases. Now check whether nonexistent headers
  6099. # can be detected and how.
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. #include <ac_nonexistent.h>
  6103. _ACEOF
  6104. if ac_fn_c_try_cpp "$LINENO"; then :
  6105. # Broken: success on invalid input.
  6106. continue
  6107. else
  6108. # Passes both tests.
  6109. ac_preproc_ok=:
  6110. break
  6111. fi
  6112. rm -f conftest.err conftest.i conftest.$ac_ext
  6113. done
  6114. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6115. rm -f conftest.i conftest.err conftest.$ac_ext
  6116. if $ac_preproc_ok; then :
  6117. else
  6118. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6119. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6120. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6121. See \`config.log' for more details" "$LINENO" 5; }
  6122. fi
  6123. ac_ext=c
  6124. ac_cpp='$CPP $CPPFLAGS'
  6125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6129. $as_echo_n "checking for ANSI C header files... " >&6; }
  6130. if ${ac_cv_header_stdc+:} false; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6134. /* end confdefs.h. */
  6135. #include <stdlib.h>
  6136. #include <stdarg.h>
  6137. #include <string.h>
  6138. #include <float.h>
  6139. int
  6140. main ()
  6141. {
  6142. ;
  6143. return 0;
  6144. }
  6145. _ACEOF
  6146. if ac_fn_c_try_compile "$LINENO"; then :
  6147. ac_cv_header_stdc=yes
  6148. else
  6149. ac_cv_header_stdc=no
  6150. fi
  6151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6152. if test $ac_cv_header_stdc = yes; then
  6153. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. #include <string.h>
  6157. _ACEOF
  6158. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6159. $EGREP "memchr" >/dev/null 2>&1; then :
  6160. else
  6161. ac_cv_header_stdc=no
  6162. fi
  6163. rm -f conftest*
  6164. fi
  6165. if test $ac_cv_header_stdc = yes; then
  6166. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h. */
  6169. #include <stdlib.h>
  6170. _ACEOF
  6171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6172. $EGREP "free" >/dev/null 2>&1; then :
  6173. else
  6174. ac_cv_header_stdc=no
  6175. fi
  6176. rm -f conftest*
  6177. fi
  6178. if test $ac_cv_header_stdc = yes; then
  6179. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6180. if test "$cross_compiling" = yes; then :
  6181. :
  6182. else
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. #include <ctype.h>
  6186. #include <stdlib.h>
  6187. #if ((' ' & 0x0FF) == 0x020)
  6188. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6189. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6190. #else
  6191. # define ISLOWER(c) \
  6192. (('a' <= (c) && (c) <= 'i') \
  6193. || ('j' <= (c) && (c) <= 'r') \
  6194. || ('s' <= (c) && (c) <= 'z'))
  6195. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6196. #endif
  6197. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6198. int
  6199. main ()
  6200. {
  6201. int i;
  6202. for (i = 0; i < 256; i++)
  6203. if (XOR (islower (i), ISLOWER (i))
  6204. || toupper (i) != TOUPPER (i))
  6205. return 2;
  6206. return 0;
  6207. }
  6208. _ACEOF
  6209. if ac_fn_c_try_run "$LINENO"; then :
  6210. else
  6211. ac_cv_header_stdc=no
  6212. fi
  6213. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6214. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6215. fi
  6216. fi
  6217. fi
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6219. $as_echo "$ac_cv_header_stdc" >&6; }
  6220. if test $ac_cv_header_stdc = yes; then
  6221. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6222. fi
  6223. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6224. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6225. inttypes.h stdint.h unistd.h
  6226. do :
  6227. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6228. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6229. "
  6230. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6231. cat >>confdefs.h <<_ACEOF
  6232. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6233. _ACEOF
  6234. fi
  6235. done
  6236. for ac_header in dlfcn.h
  6237. do :
  6238. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6239. "
  6240. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6241. cat >>confdefs.h <<_ACEOF
  6242. #define HAVE_DLFCN_H 1
  6243. _ACEOF
  6244. fi
  6245. done
  6246. # Set options
  6247. enable_win32_dll=yes
  6248. case $host in
  6249. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6250. if test -n "$ac_tool_prefix"; then
  6251. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6252. set dummy ${ac_tool_prefix}as; ac_word=$2
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6254. $as_echo_n "checking for $ac_word... " >&6; }
  6255. if ${ac_cv_prog_AS+:} false; then :
  6256. $as_echo_n "(cached) " >&6
  6257. else
  6258. if test -n "$AS"; then
  6259. ac_cv_prog_AS="$AS" # Let the user override the test.
  6260. else
  6261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6262. for as_dir in $PATH
  6263. do
  6264. IFS=$as_save_IFS
  6265. test -z "$as_dir" && as_dir=.
  6266. for ac_exec_ext in '' $ac_executable_extensions; do
  6267. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6268. ac_cv_prog_AS="${ac_tool_prefix}as"
  6269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6270. break 2
  6271. fi
  6272. done
  6273. done
  6274. IFS=$as_save_IFS
  6275. fi
  6276. fi
  6277. AS=$ac_cv_prog_AS
  6278. if test -n "$AS"; then
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6280. $as_echo "$AS" >&6; }
  6281. else
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6283. $as_echo "no" >&6; }
  6284. fi
  6285. fi
  6286. if test -z "$ac_cv_prog_AS"; then
  6287. ac_ct_AS=$AS
  6288. # Extract the first word of "as", so it can be a program name with args.
  6289. set dummy as; ac_word=$2
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6291. $as_echo_n "checking for $ac_word... " >&6; }
  6292. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. if test -n "$ac_ct_AS"; then
  6296. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6297. else
  6298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6299. for as_dir in $PATH
  6300. do
  6301. IFS=$as_save_IFS
  6302. test -z "$as_dir" && as_dir=.
  6303. for ac_exec_ext in '' $ac_executable_extensions; do
  6304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6305. ac_cv_prog_ac_ct_AS="as"
  6306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6307. break 2
  6308. fi
  6309. done
  6310. done
  6311. IFS=$as_save_IFS
  6312. fi
  6313. fi
  6314. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6315. if test -n "$ac_ct_AS"; then
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6317. $as_echo "$ac_ct_AS" >&6; }
  6318. else
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6320. $as_echo "no" >&6; }
  6321. fi
  6322. if test "x$ac_ct_AS" = x; then
  6323. AS="false"
  6324. else
  6325. case $cross_compiling:$ac_tool_warned in
  6326. yes:)
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6328. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6329. ac_tool_warned=yes ;;
  6330. esac
  6331. AS=$ac_ct_AS
  6332. fi
  6333. else
  6334. AS="$ac_cv_prog_AS"
  6335. fi
  6336. if test -n "$ac_tool_prefix"; then
  6337. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6338. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6340. $as_echo_n "checking for $ac_word... " >&6; }
  6341. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6342. $as_echo_n "(cached) " >&6
  6343. else
  6344. if test -n "$DLLTOOL"; then
  6345. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6346. else
  6347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6348. for as_dir in $PATH
  6349. do
  6350. IFS=$as_save_IFS
  6351. test -z "$as_dir" && as_dir=.
  6352. for ac_exec_ext in '' $ac_executable_extensions; do
  6353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6354. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6356. break 2
  6357. fi
  6358. done
  6359. done
  6360. IFS=$as_save_IFS
  6361. fi
  6362. fi
  6363. DLLTOOL=$ac_cv_prog_DLLTOOL
  6364. if test -n "$DLLTOOL"; then
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6366. $as_echo "$DLLTOOL" >&6; }
  6367. else
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6369. $as_echo "no" >&6; }
  6370. fi
  6371. fi
  6372. if test -z "$ac_cv_prog_DLLTOOL"; then
  6373. ac_ct_DLLTOOL=$DLLTOOL
  6374. # Extract the first word of "dlltool", so it can be a program name with args.
  6375. set dummy dlltool; ac_word=$2
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6377. $as_echo_n "checking for $ac_word... " >&6; }
  6378. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. if test -n "$ac_ct_DLLTOOL"; then
  6382. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6383. else
  6384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6385. for as_dir in $PATH
  6386. do
  6387. IFS=$as_save_IFS
  6388. test -z "$as_dir" && as_dir=.
  6389. for ac_exec_ext in '' $ac_executable_extensions; do
  6390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6391. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6393. break 2
  6394. fi
  6395. done
  6396. done
  6397. IFS=$as_save_IFS
  6398. fi
  6399. fi
  6400. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6401. if test -n "$ac_ct_DLLTOOL"; then
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6403. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6404. else
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6406. $as_echo "no" >&6; }
  6407. fi
  6408. if test "x$ac_ct_DLLTOOL" = x; then
  6409. DLLTOOL="false"
  6410. else
  6411. case $cross_compiling:$ac_tool_warned in
  6412. yes:)
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6415. ac_tool_warned=yes ;;
  6416. esac
  6417. DLLTOOL=$ac_ct_DLLTOOL
  6418. fi
  6419. else
  6420. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6421. fi
  6422. if test -n "$ac_tool_prefix"; then
  6423. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6424. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6426. $as_echo_n "checking for $ac_word... " >&6; }
  6427. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6428. $as_echo_n "(cached) " >&6
  6429. else
  6430. if test -n "$OBJDUMP"; then
  6431. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6432. else
  6433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6434. for as_dir in $PATH
  6435. do
  6436. IFS=$as_save_IFS
  6437. test -z "$as_dir" && as_dir=.
  6438. for ac_exec_ext in '' $ac_executable_extensions; do
  6439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6440. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6442. break 2
  6443. fi
  6444. done
  6445. done
  6446. IFS=$as_save_IFS
  6447. fi
  6448. fi
  6449. OBJDUMP=$ac_cv_prog_OBJDUMP
  6450. if test -n "$OBJDUMP"; then
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6452. $as_echo "$OBJDUMP" >&6; }
  6453. else
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6455. $as_echo "no" >&6; }
  6456. fi
  6457. fi
  6458. if test -z "$ac_cv_prog_OBJDUMP"; then
  6459. ac_ct_OBJDUMP=$OBJDUMP
  6460. # Extract the first word of "objdump", so it can be a program name with args.
  6461. set dummy objdump; ac_word=$2
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6463. $as_echo_n "checking for $ac_word... " >&6; }
  6464. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. if test -n "$ac_ct_OBJDUMP"; then
  6468. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6469. else
  6470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6471. for as_dir in $PATH
  6472. do
  6473. IFS=$as_save_IFS
  6474. test -z "$as_dir" && as_dir=.
  6475. for ac_exec_ext in '' $ac_executable_extensions; do
  6476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6477. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6479. break 2
  6480. fi
  6481. done
  6482. done
  6483. IFS=$as_save_IFS
  6484. fi
  6485. fi
  6486. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6487. if test -n "$ac_ct_OBJDUMP"; then
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6489. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6490. else
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6492. $as_echo "no" >&6; }
  6493. fi
  6494. if test "x$ac_ct_OBJDUMP" = x; then
  6495. OBJDUMP="false"
  6496. else
  6497. case $cross_compiling:$ac_tool_warned in
  6498. yes:)
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6501. ac_tool_warned=yes ;;
  6502. esac
  6503. OBJDUMP=$ac_ct_OBJDUMP
  6504. fi
  6505. else
  6506. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6507. fi
  6508. ;;
  6509. esac
  6510. test -z "$AS" && AS=as
  6511. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6512. test -z "$OBJDUMP" && OBJDUMP=objdump
  6513. enable_dlopen=no
  6514. # Check whether --enable-shared was given.
  6515. if test "${enable_shared+set}" = set; then :
  6516. enableval=$enable_shared; p=${PACKAGE-default}
  6517. case $enableval in
  6518. yes) enable_shared=yes ;;
  6519. no) enable_shared=no ;;
  6520. *)
  6521. enable_shared=no
  6522. # Look at the argument we got. We use all the common list separators.
  6523. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6524. for pkg in $enableval; do
  6525. IFS="$lt_save_ifs"
  6526. if test "X$pkg" = "X$p"; then
  6527. enable_shared=yes
  6528. fi
  6529. done
  6530. IFS="$lt_save_ifs"
  6531. ;;
  6532. esac
  6533. else
  6534. enable_shared=yes
  6535. fi
  6536. # Check whether --enable-static was given.
  6537. if test "${enable_static+set}" = set; then :
  6538. enableval=$enable_static; p=${PACKAGE-default}
  6539. case $enableval in
  6540. yes) enable_static=yes ;;
  6541. no) enable_static=no ;;
  6542. *)
  6543. enable_static=no
  6544. # Look at the argument we got. We use all the common list separators.
  6545. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6546. for pkg in $enableval; do
  6547. IFS="$lt_save_ifs"
  6548. if test "X$pkg" = "X$p"; then
  6549. enable_static=yes
  6550. fi
  6551. done
  6552. IFS="$lt_save_ifs"
  6553. ;;
  6554. esac
  6555. else
  6556. enable_static=yes
  6557. fi
  6558. # Check whether --with-pic was given.
  6559. if test "${with_pic+set}" = set; then :
  6560. withval=$with_pic; lt_p=${PACKAGE-default}
  6561. case $withval in
  6562. yes|no) pic_mode=$withval ;;
  6563. *)
  6564. pic_mode=default
  6565. # Look at the argument we got. We use all the common list separators.
  6566. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6567. for lt_pkg in $withval; do
  6568. IFS="$lt_save_ifs"
  6569. if test "X$lt_pkg" = "X$lt_p"; then
  6570. pic_mode=yes
  6571. fi
  6572. done
  6573. IFS="$lt_save_ifs"
  6574. ;;
  6575. esac
  6576. else
  6577. pic_mode=default
  6578. fi
  6579. test -z "$pic_mode" && pic_mode=default
  6580. # Check whether --enable-fast-install was given.
  6581. if test "${enable_fast_install+set}" = set; then :
  6582. enableval=$enable_fast_install; p=${PACKAGE-default}
  6583. case $enableval in
  6584. yes) enable_fast_install=yes ;;
  6585. no) enable_fast_install=no ;;
  6586. *)
  6587. enable_fast_install=no
  6588. # Look at the argument we got. We use all the common list separators.
  6589. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6590. for pkg in $enableval; do
  6591. IFS="$lt_save_ifs"
  6592. if test "X$pkg" = "X$p"; then
  6593. enable_fast_install=yes
  6594. fi
  6595. done
  6596. IFS="$lt_save_ifs"
  6597. ;;
  6598. esac
  6599. else
  6600. enable_fast_install=yes
  6601. fi
  6602. # This can be used to rebuild libtool when needed
  6603. LIBTOOL_DEPS="$ltmain"
  6604. # Always use our own libtool.
  6605. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6606. test -z "$LN_S" && LN_S="ln -s"
  6607. if test -n "${ZSH_VERSION+set}" ; then
  6608. setopt NO_GLOB_SUBST
  6609. fi
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6611. $as_echo_n "checking for objdir... " >&6; }
  6612. if ${lt_cv_objdir+:} false; then :
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. rm -f .libs 2>/dev/null
  6616. mkdir .libs 2>/dev/null
  6617. if test -d .libs; then
  6618. lt_cv_objdir=.libs
  6619. else
  6620. # MS-DOS does not allow filenames that begin with a dot.
  6621. lt_cv_objdir=_libs
  6622. fi
  6623. rmdir .libs 2>/dev/null
  6624. fi
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6626. $as_echo "$lt_cv_objdir" >&6; }
  6627. objdir=$lt_cv_objdir
  6628. cat >>confdefs.h <<_ACEOF
  6629. #define LT_OBJDIR "$lt_cv_objdir/"
  6630. _ACEOF
  6631. case $host_os in
  6632. aix3*)
  6633. # AIX sometimes has problems with the GCC collect2 program. For some
  6634. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6635. # vanish in a puff of smoke.
  6636. if test "X${COLLECT_NAMES+set}" != Xset; then
  6637. COLLECT_NAMES=
  6638. export COLLECT_NAMES
  6639. fi
  6640. ;;
  6641. esac
  6642. # Global variables:
  6643. ofile=libtool
  6644. can_build_shared=yes
  6645. # All known linkers require a `.a' archive for static linking (except MSVC,
  6646. # which needs '.lib').
  6647. libext=a
  6648. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6649. old_CC="$CC"
  6650. old_CFLAGS="$CFLAGS"
  6651. # Set sane defaults for various variables
  6652. test -z "$CC" && CC=cc
  6653. test -z "$LTCC" && LTCC=$CC
  6654. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6655. test -z "$LD" && LD=ld
  6656. test -z "$ac_objext" && ac_objext=o
  6657. for cc_temp in $compiler""; do
  6658. case $cc_temp in
  6659. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6660. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6661. \-*) ;;
  6662. *) break;;
  6663. esac
  6664. done
  6665. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6666. # Only perform the check for file, if the check method requires it
  6667. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6668. case $deplibs_check_method in
  6669. file_magic*)
  6670. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6672. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6673. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. case $MAGIC_CMD in
  6677. [\\/*] | ?:[\\/]*)
  6678. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6679. ;;
  6680. *)
  6681. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6682. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6683. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6684. for ac_dir in $ac_dummy; do
  6685. IFS="$lt_save_ifs"
  6686. test -z "$ac_dir" && ac_dir=.
  6687. if test -f $ac_dir/${ac_tool_prefix}file; then
  6688. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6689. if test -n "$file_magic_test_file"; then
  6690. case $deplibs_check_method in
  6691. "file_magic "*)
  6692. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6693. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6694. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6695. $EGREP "$file_magic_regex" > /dev/null; then
  6696. :
  6697. else
  6698. cat <<_LT_EOF 1>&2
  6699. *** Warning: the command libtool uses to detect shared libraries,
  6700. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6701. *** The result is that libtool may fail to recognize shared libraries
  6702. *** as such. This will affect the creation of libtool libraries that
  6703. *** depend on shared libraries, but programs linked with such libtool
  6704. *** libraries will work regardless of this problem. Nevertheless, you
  6705. *** may want to report the problem to your system manager and/or to
  6706. *** bug-libtool@gnu.org
  6707. _LT_EOF
  6708. fi ;;
  6709. esac
  6710. fi
  6711. break
  6712. fi
  6713. done
  6714. IFS="$lt_save_ifs"
  6715. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6716. ;;
  6717. esac
  6718. fi
  6719. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6720. if test -n "$MAGIC_CMD"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6722. $as_echo "$MAGIC_CMD" >&6; }
  6723. else
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. $as_echo "no" >&6; }
  6726. fi
  6727. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6728. if test -n "$ac_tool_prefix"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6730. $as_echo_n "checking for file... " >&6; }
  6731. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. case $MAGIC_CMD in
  6735. [\\/*] | ?:[\\/]*)
  6736. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6737. ;;
  6738. *)
  6739. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6740. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6741. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6742. for ac_dir in $ac_dummy; do
  6743. IFS="$lt_save_ifs"
  6744. test -z "$ac_dir" && ac_dir=.
  6745. if test -f $ac_dir/file; then
  6746. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6747. if test -n "$file_magic_test_file"; then
  6748. case $deplibs_check_method in
  6749. "file_magic "*)
  6750. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6751. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6752. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6753. $EGREP "$file_magic_regex" > /dev/null; then
  6754. :
  6755. else
  6756. cat <<_LT_EOF 1>&2
  6757. *** Warning: the command libtool uses to detect shared libraries,
  6758. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6759. *** The result is that libtool may fail to recognize shared libraries
  6760. *** as such. This will affect the creation of libtool libraries that
  6761. *** depend on shared libraries, but programs linked with such libtool
  6762. *** libraries will work regardless of this problem. Nevertheless, you
  6763. *** may want to report the problem to your system manager and/or to
  6764. *** bug-libtool@gnu.org
  6765. _LT_EOF
  6766. fi ;;
  6767. esac
  6768. fi
  6769. break
  6770. fi
  6771. done
  6772. IFS="$lt_save_ifs"
  6773. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6774. ;;
  6775. esac
  6776. fi
  6777. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6778. if test -n "$MAGIC_CMD"; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6780. $as_echo "$MAGIC_CMD" >&6; }
  6781. else
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6783. $as_echo "no" >&6; }
  6784. fi
  6785. else
  6786. MAGIC_CMD=:
  6787. fi
  6788. fi
  6789. fi
  6790. ;;
  6791. esac
  6792. # Use C for the default configuration in the libtool script
  6793. lt_save_CC="$CC"
  6794. ac_ext=c
  6795. ac_cpp='$CPP $CPPFLAGS'
  6796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6799. # Source file extension for C test sources.
  6800. ac_ext=c
  6801. # Object file extension for compiled C test sources.
  6802. objext=o
  6803. objext=$objext
  6804. # Code to be used in simple compile tests
  6805. lt_simple_compile_test_code="int some_variable = 0;"
  6806. # Code to be used in simple link tests
  6807. lt_simple_link_test_code='int main(){return(0);}'
  6808. # If no C compiler was specified, use CC.
  6809. LTCC=${LTCC-"$CC"}
  6810. # If no C compiler flags were specified, use CFLAGS.
  6811. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6812. # Allow CC to be a program name with arguments.
  6813. compiler=$CC
  6814. # Save the default compiler, since it gets overwritten when the other
  6815. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6816. compiler_DEFAULT=$CC
  6817. # save warnings/boilerplate of simple test code
  6818. ac_outfile=conftest.$ac_objext
  6819. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6820. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6821. _lt_compiler_boilerplate=`cat conftest.err`
  6822. $RM conftest*
  6823. ac_outfile=conftest.$ac_objext
  6824. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6825. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6826. _lt_linker_boilerplate=`cat conftest.err`
  6827. $RM -r conftest*
  6828. ## CAVEAT EMPTOR:
  6829. ## There is no encapsulation within the following macros, do not change
  6830. ## the running order or otherwise move them around unless you know exactly
  6831. ## what you are doing...
  6832. if test -n "$compiler"; then
  6833. lt_prog_compiler_no_builtin_flag=
  6834. if test "$GCC" = yes; then
  6835. case $cc_basename in
  6836. nvcc*)
  6837. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6838. *)
  6839. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6840. esac
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6842. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6843. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. lt_cv_prog_compiler_rtti_exceptions=no
  6847. ac_outfile=conftest.$ac_objext
  6848. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6849. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6850. # Insert the option either (1) after the last *FLAGS variable, or
  6851. # (2) before a word containing "conftest.", or (3) at the end.
  6852. # Note that $ac_compile itself does not contain backslashes and begins
  6853. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6854. # The option is referenced via a variable to avoid confusing sed.
  6855. lt_compile=`echo "$ac_compile" | $SED \
  6856. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6857. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6858. -e 's:$: $lt_compiler_flag:'`
  6859. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6860. (eval "$lt_compile" 2>conftest.err)
  6861. ac_status=$?
  6862. cat conftest.err >&5
  6863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6864. if (exit $ac_status) && test -s "$ac_outfile"; then
  6865. # The compiler can only warn and ignore the option if not recognized
  6866. # So say no if there are warnings other than the usual output.
  6867. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6868. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6869. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6870. lt_cv_prog_compiler_rtti_exceptions=yes
  6871. fi
  6872. fi
  6873. $RM conftest*
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6876. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6877. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6878. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6879. else
  6880. :
  6881. fi
  6882. fi
  6883. lt_prog_compiler_wl=
  6884. lt_prog_compiler_pic=
  6885. lt_prog_compiler_static=
  6886. if test "$GCC" = yes; then
  6887. lt_prog_compiler_wl='-Wl,'
  6888. lt_prog_compiler_static='-static'
  6889. case $host_os in
  6890. aix*)
  6891. # All AIX code is PIC.
  6892. if test "$host_cpu" = ia64; then
  6893. # AIX 5 now supports IA64 processor
  6894. lt_prog_compiler_static='-Bstatic'
  6895. fi
  6896. ;;
  6897. amigaos*)
  6898. case $host_cpu in
  6899. powerpc)
  6900. # see comment about AmigaOS4 .so support
  6901. lt_prog_compiler_pic='-fPIC'
  6902. ;;
  6903. m68k)
  6904. # FIXME: we need at least 68020 code to build shared libraries, but
  6905. # adding the `-m68020' flag to GCC prevents building anything better,
  6906. # like `-m68040'.
  6907. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6908. ;;
  6909. esac
  6910. ;;
  6911. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6912. # PIC is the default for these OSes.
  6913. ;;
  6914. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6915. # This hack is so that the source file can tell whether it is being
  6916. # built for inclusion in a dll (and should export symbols for example).
  6917. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6918. # (--disable-auto-import) libraries
  6919. lt_prog_compiler_pic='-DDLL_EXPORT'
  6920. ;;
  6921. darwin* | rhapsody*)
  6922. # PIC is the default on this platform
  6923. # Common symbols not allowed in MH_DYLIB files
  6924. lt_prog_compiler_pic='-fno-common'
  6925. ;;
  6926. haiku*)
  6927. # PIC is the default for Haiku.
  6928. # The "-static" flag exists, but is broken.
  6929. lt_prog_compiler_static=
  6930. ;;
  6931. hpux*)
  6932. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6933. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6934. # sets the default TLS model and affects inlining.
  6935. case $host_cpu in
  6936. hppa*64*)
  6937. # +Z the default
  6938. ;;
  6939. *)
  6940. lt_prog_compiler_pic='-fPIC'
  6941. ;;
  6942. esac
  6943. ;;
  6944. interix[3-9]*)
  6945. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6946. # Instead, we relocate shared libraries at runtime.
  6947. ;;
  6948. msdosdjgpp*)
  6949. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6950. # on systems that don't support them.
  6951. lt_prog_compiler_can_build_shared=no
  6952. enable_shared=no
  6953. ;;
  6954. *nto* | *qnx*)
  6955. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6956. # it will coredump.
  6957. lt_prog_compiler_pic='-fPIC -shared'
  6958. ;;
  6959. sysv4*MP*)
  6960. if test -d /usr/nec; then
  6961. lt_prog_compiler_pic=-Kconform_pic
  6962. fi
  6963. ;;
  6964. *)
  6965. lt_prog_compiler_pic='-fPIC'
  6966. ;;
  6967. esac
  6968. case $cc_basename in
  6969. nvcc*) # Cuda Compiler Driver 2.2
  6970. lt_prog_compiler_wl='-Xlinker '
  6971. if test -n "$lt_prog_compiler_pic"; then
  6972. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6973. fi
  6974. ;;
  6975. esac
  6976. else
  6977. # PORTME Check for flag to pass linker flags through the system compiler.
  6978. case $host_os in
  6979. aix*)
  6980. lt_prog_compiler_wl='-Wl,'
  6981. if test "$host_cpu" = ia64; then
  6982. # AIX 5 now supports IA64 processor
  6983. lt_prog_compiler_static='-Bstatic'
  6984. else
  6985. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6986. fi
  6987. ;;
  6988. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6989. # This hack is so that the source file can tell whether it is being
  6990. # built for inclusion in a dll (and should export symbols for example).
  6991. lt_prog_compiler_pic='-DDLL_EXPORT'
  6992. ;;
  6993. hpux9* | hpux10* | hpux11*)
  6994. lt_prog_compiler_wl='-Wl,'
  6995. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6996. # not for PA HP-UX.
  6997. case $host_cpu in
  6998. hppa*64*|ia64*)
  6999. # +Z the default
  7000. ;;
  7001. *)
  7002. lt_prog_compiler_pic='+Z'
  7003. ;;
  7004. esac
  7005. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7006. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7007. ;;
  7008. irix5* | irix6* | nonstopux*)
  7009. lt_prog_compiler_wl='-Wl,'
  7010. # PIC (with -KPIC) is the default.
  7011. lt_prog_compiler_static='-non_shared'
  7012. ;;
  7013. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7014. case $cc_basename in
  7015. # old Intel for x86_64 which still supported -KPIC.
  7016. ecc*)
  7017. lt_prog_compiler_wl='-Wl,'
  7018. lt_prog_compiler_pic='-KPIC'
  7019. lt_prog_compiler_static='-static'
  7020. ;;
  7021. # icc used to be incompatible with GCC.
  7022. # ICC 10 doesn't accept -KPIC any more.
  7023. icc* | ifort*)
  7024. lt_prog_compiler_wl='-Wl,'
  7025. lt_prog_compiler_pic='-fPIC'
  7026. lt_prog_compiler_static='-static'
  7027. ;;
  7028. # Lahey Fortran 8.1.
  7029. lf95*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. lt_prog_compiler_pic='--shared'
  7032. lt_prog_compiler_static='--static'
  7033. ;;
  7034. nagfor*)
  7035. # NAG Fortran compiler
  7036. lt_prog_compiler_wl='-Wl,-Wl,,'
  7037. lt_prog_compiler_pic='-PIC'
  7038. lt_prog_compiler_static='-Bstatic'
  7039. ;;
  7040. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7041. # Portland Group compilers (*not* the Pentium gcc compiler,
  7042. # which looks to be a dead project)
  7043. lt_prog_compiler_wl='-Wl,'
  7044. lt_prog_compiler_pic='-fpic'
  7045. lt_prog_compiler_static='-Bstatic'
  7046. ;;
  7047. ccc*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. # All Alpha code is PIC.
  7050. lt_prog_compiler_static='-non_shared'
  7051. ;;
  7052. xl* | bgxl* | bgf* | mpixl*)
  7053. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_pic='-qpic'
  7056. lt_prog_compiler_static='-qstaticlink'
  7057. ;;
  7058. *)
  7059. case `$CC -V 2>&1 | sed 5q` in
  7060. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7061. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7062. lt_prog_compiler_pic='-KPIC'
  7063. lt_prog_compiler_static='-Bstatic'
  7064. lt_prog_compiler_wl=''
  7065. ;;
  7066. *Sun\ F* | *Sun*Fortran*)
  7067. lt_prog_compiler_pic='-KPIC'
  7068. lt_prog_compiler_static='-Bstatic'
  7069. lt_prog_compiler_wl='-Qoption ld '
  7070. ;;
  7071. *Sun\ C*)
  7072. # Sun C 5.9
  7073. lt_prog_compiler_pic='-KPIC'
  7074. lt_prog_compiler_static='-Bstatic'
  7075. lt_prog_compiler_wl='-Wl,'
  7076. ;;
  7077. *Intel*\ [CF]*Compiler*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='-fPIC'
  7080. lt_prog_compiler_static='-static'
  7081. ;;
  7082. *Portland\ Group*)
  7083. lt_prog_compiler_wl='-Wl,'
  7084. lt_prog_compiler_pic='-fpic'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. ;;
  7087. esac
  7088. ;;
  7089. esac
  7090. ;;
  7091. newsos6)
  7092. lt_prog_compiler_pic='-KPIC'
  7093. lt_prog_compiler_static='-Bstatic'
  7094. ;;
  7095. *nto* | *qnx*)
  7096. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7097. # it will coredump.
  7098. lt_prog_compiler_pic='-fPIC -shared'
  7099. ;;
  7100. osf3* | osf4* | osf5*)
  7101. lt_prog_compiler_wl='-Wl,'
  7102. # All OSF/1 code is PIC.
  7103. lt_prog_compiler_static='-non_shared'
  7104. ;;
  7105. rdos*)
  7106. lt_prog_compiler_static='-non_shared'
  7107. ;;
  7108. solaris*)
  7109. lt_prog_compiler_pic='-KPIC'
  7110. lt_prog_compiler_static='-Bstatic'
  7111. case $cc_basename in
  7112. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7113. lt_prog_compiler_wl='-Qoption ld ';;
  7114. *)
  7115. lt_prog_compiler_wl='-Wl,';;
  7116. esac
  7117. ;;
  7118. sunos4*)
  7119. lt_prog_compiler_wl='-Qoption ld '
  7120. lt_prog_compiler_pic='-PIC'
  7121. lt_prog_compiler_static='-Bstatic'
  7122. ;;
  7123. sysv4 | sysv4.2uw2* | sysv4.3*)
  7124. lt_prog_compiler_wl='-Wl,'
  7125. lt_prog_compiler_pic='-KPIC'
  7126. lt_prog_compiler_static='-Bstatic'
  7127. ;;
  7128. sysv4*MP*)
  7129. if test -d /usr/nec ;then
  7130. lt_prog_compiler_pic='-Kconform_pic'
  7131. lt_prog_compiler_static='-Bstatic'
  7132. fi
  7133. ;;
  7134. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7135. lt_prog_compiler_wl='-Wl,'
  7136. lt_prog_compiler_pic='-KPIC'
  7137. lt_prog_compiler_static='-Bstatic'
  7138. ;;
  7139. unicos*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. lt_prog_compiler_can_build_shared=no
  7142. ;;
  7143. uts4*)
  7144. lt_prog_compiler_pic='-pic'
  7145. lt_prog_compiler_static='-Bstatic'
  7146. ;;
  7147. *)
  7148. lt_prog_compiler_can_build_shared=no
  7149. ;;
  7150. esac
  7151. fi
  7152. case $host_os in
  7153. # For platforms which do not support PIC, -DPIC is meaningless:
  7154. *djgpp*)
  7155. lt_prog_compiler_pic=
  7156. ;;
  7157. *)
  7158. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7159. ;;
  7160. esac
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7162. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7163. if ${lt_cv_prog_compiler_pic+:} false; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7167. fi
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7169. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7170. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7171. #
  7172. # Check to make sure the PIC flag actually works.
  7173. #
  7174. if test -n "$lt_prog_compiler_pic"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7176. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7177. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7178. $as_echo_n "(cached) " >&6
  7179. else
  7180. lt_cv_prog_compiler_pic_works=no
  7181. ac_outfile=conftest.$ac_objext
  7182. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7183. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7184. # Insert the option either (1) after the last *FLAGS variable, or
  7185. # (2) before a word containing "conftest.", or (3) at the end.
  7186. # Note that $ac_compile itself does not contain backslashes and begins
  7187. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7188. # The option is referenced via a variable to avoid confusing sed.
  7189. lt_compile=`echo "$ac_compile" | $SED \
  7190. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7191. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7192. -e 's:$: $lt_compiler_flag:'`
  7193. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7194. (eval "$lt_compile" 2>conftest.err)
  7195. ac_status=$?
  7196. cat conftest.err >&5
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. if (exit $ac_status) && test -s "$ac_outfile"; then
  7199. # The compiler can only warn and ignore the option if not recognized
  7200. # So say no if there are warnings other than the usual output.
  7201. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7202. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7203. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7204. lt_cv_prog_compiler_pic_works=yes
  7205. fi
  7206. fi
  7207. $RM conftest*
  7208. fi
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7210. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7211. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7212. case $lt_prog_compiler_pic in
  7213. "" | " "*) ;;
  7214. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7215. esac
  7216. else
  7217. lt_prog_compiler_pic=
  7218. lt_prog_compiler_can_build_shared=no
  7219. fi
  7220. fi
  7221. #
  7222. # Check to make sure the static flag actually works.
  7223. #
  7224. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7226. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7227. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. lt_cv_prog_compiler_static_works=no
  7231. save_LDFLAGS="$LDFLAGS"
  7232. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7233. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7234. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7235. # The linker can only warn and ignore the option if not recognized
  7236. # So say no if there are warnings
  7237. if test -s conftest.err; then
  7238. # Append any errors to the config.log.
  7239. cat conftest.err 1>&5
  7240. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7241. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7242. if diff conftest.exp conftest.er2 >/dev/null; then
  7243. lt_cv_prog_compiler_static_works=yes
  7244. fi
  7245. else
  7246. lt_cv_prog_compiler_static_works=yes
  7247. fi
  7248. fi
  7249. $RM -r conftest*
  7250. LDFLAGS="$save_LDFLAGS"
  7251. fi
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7253. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7254. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7255. :
  7256. else
  7257. lt_prog_compiler_static=
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7260. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7261. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7262. $as_echo_n "(cached) " >&6
  7263. else
  7264. lt_cv_prog_compiler_c_o=no
  7265. $RM -r conftest 2>/dev/null
  7266. mkdir conftest
  7267. cd conftest
  7268. mkdir out
  7269. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7270. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7271. # Insert the option either (1) after the last *FLAGS variable, or
  7272. # (2) before a word containing "conftest.", or (3) at the end.
  7273. # Note that $ac_compile itself does not contain backslashes and begins
  7274. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7275. lt_compile=`echo "$ac_compile" | $SED \
  7276. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7277. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7278. -e 's:$: $lt_compiler_flag:'`
  7279. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7280. (eval "$lt_compile" 2>out/conftest.err)
  7281. ac_status=$?
  7282. cat out/conftest.err >&5
  7283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7284. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7285. then
  7286. # The compiler can only warn and ignore the option if not recognized
  7287. # So say no if there are warnings
  7288. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7289. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7290. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7291. lt_cv_prog_compiler_c_o=yes
  7292. fi
  7293. fi
  7294. chmod u+w . 2>&5
  7295. $RM conftest*
  7296. # SGI C++ compiler will create directory out/ii_files/ for
  7297. # template instantiation
  7298. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7299. $RM out/* && rmdir out
  7300. cd ..
  7301. $RM -r conftest
  7302. $RM conftest*
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7305. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7307. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7308. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. lt_cv_prog_compiler_c_o=no
  7312. $RM -r conftest 2>/dev/null
  7313. mkdir conftest
  7314. cd conftest
  7315. mkdir out
  7316. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7317. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7318. # Insert the option either (1) after the last *FLAGS variable, or
  7319. # (2) before a word containing "conftest.", or (3) at the end.
  7320. # Note that $ac_compile itself does not contain backslashes and begins
  7321. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7322. lt_compile=`echo "$ac_compile" | $SED \
  7323. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7324. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7325. -e 's:$: $lt_compiler_flag:'`
  7326. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7327. (eval "$lt_compile" 2>out/conftest.err)
  7328. ac_status=$?
  7329. cat out/conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7332. then
  7333. # The compiler can only warn and ignore the option if not recognized
  7334. # So say no if there are warnings
  7335. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7336. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7337. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7338. lt_cv_prog_compiler_c_o=yes
  7339. fi
  7340. fi
  7341. chmod u+w . 2>&5
  7342. $RM conftest*
  7343. # SGI C++ compiler will create directory out/ii_files/ for
  7344. # template instantiation
  7345. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7346. $RM out/* && rmdir out
  7347. cd ..
  7348. $RM -r conftest
  7349. $RM conftest*
  7350. fi
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7352. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7353. hard_links="nottested"
  7354. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7355. # do not overwrite the value of need_locks provided by the user
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7357. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7358. hard_links=yes
  7359. $RM conftest*
  7360. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7361. touch conftest.a
  7362. ln conftest.a conftest.b 2>&5 || hard_links=no
  7363. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7365. $as_echo "$hard_links" >&6; }
  7366. if test "$hard_links" = no; then
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7368. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7369. need_locks=warn
  7370. fi
  7371. else
  7372. need_locks=no
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7375. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7376. runpath_var=
  7377. allow_undefined_flag=
  7378. always_export_symbols=no
  7379. archive_cmds=
  7380. archive_expsym_cmds=
  7381. compiler_needs_object=no
  7382. enable_shared_with_static_runtimes=no
  7383. export_dynamic_flag_spec=
  7384. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7385. hardcode_automatic=no
  7386. hardcode_direct=no
  7387. hardcode_direct_absolute=no
  7388. hardcode_libdir_flag_spec=
  7389. hardcode_libdir_separator=
  7390. hardcode_minus_L=no
  7391. hardcode_shlibpath_var=unsupported
  7392. inherit_rpath=no
  7393. link_all_deplibs=unknown
  7394. module_cmds=
  7395. module_expsym_cmds=
  7396. old_archive_from_new_cmds=
  7397. old_archive_from_expsyms_cmds=
  7398. thread_safe_flag_spec=
  7399. whole_archive_flag_spec=
  7400. # include_expsyms should be a list of space-separated symbols to be *always*
  7401. # included in the symbol list
  7402. include_expsyms=
  7403. # exclude_expsyms can be an extended regexp of symbols to exclude
  7404. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7405. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7406. # as well as any symbol that contains `d'.
  7407. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7408. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7409. # platforms (ab)use it in PIC code, but their linkers get confused if
  7410. # the symbol is explicitly referenced. Since portable code cannot
  7411. # rely on this symbol name, it's probably fine to never include it in
  7412. # preloaded symbol tables.
  7413. # Exclude shared library initialization/finalization symbols.
  7414. extract_expsyms_cmds=
  7415. case $host_os in
  7416. cygwin* | mingw* | pw32* | cegcc*)
  7417. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7418. # When not using gcc, we currently assume that we are using
  7419. # Microsoft Visual C++.
  7420. if test "$GCC" != yes; then
  7421. with_gnu_ld=no
  7422. fi
  7423. ;;
  7424. interix*)
  7425. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7426. with_gnu_ld=yes
  7427. ;;
  7428. openbsd*)
  7429. with_gnu_ld=no
  7430. ;;
  7431. esac
  7432. ld_shlibs=yes
  7433. # On some targets, GNU ld is compatible enough with the native linker
  7434. # that we're better off using the native interface for both.
  7435. lt_use_gnu_ld_interface=no
  7436. if test "$with_gnu_ld" = yes; then
  7437. case $host_os in
  7438. aix*)
  7439. # The AIX port of GNU ld has always aspired to compatibility
  7440. # with the native linker. However, as the warning in the GNU ld
  7441. # block says, versions before 2.19.5* couldn't really create working
  7442. # shared libraries, regardless of the interface used.
  7443. case `$LD -v 2>&1` in
  7444. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7445. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7446. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7447. *)
  7448. lt_use_gnu_ld_interface=yes
  7449. ;;
  7450. esac
  7451. ;;
  7452. *)
  7453. lt_use_gnu_ld_interface=yes
  7454. ;;
  7455. esac
  7456. fi
  7457. if test "$lt_use_gnu_ld_interface" = yes; then
  7458. # If archive_cmds runs LD, not CC, wlarc should be empty
  7459. wlarc='${wl}'
  7460. # Set some defaults for GNU ld with shared library support. These
  7461. # are reset later if shared libraries are not supported. Putting them
  7462. # here allows them to be overridden if necessary.
  7463. runpath_var=LD_RUN_PATH
  7464. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7465. export_dynamic_flag_spec='${wl}--export-dynamic'
  7466. # ancient GNU ld didn't support --whole-archive et. al.
  7467. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7468. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7469. else
  7470. whole_archive_flag_spec=
  7471. fi
  7472. supports_anon_versioning=no
  7473. case `$LD -v 2>&1` in
  7474. *GNU\ gold*) supports_anon_versioning=yes ;;
  7475. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7476. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7477. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7478. *\ 2.11.*) ;; # other 2.11 versions
  7479. *) supports_anon_versioning=yes ;;
  7480. esac
  7481. # See if GNU ld supports shared libraries.
  7482. case $host_os in
  7483. aix[3-9]*)
  7484. # On AIX/PPC, the GNU linker is very broken
  7485. if test "$host_cpu" != ia64; then
  7486. ld_shlibs=no
  7487. cat <<_LT_EOF 1>&2
  7488. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7489. *** to be unable to reliably create shared libraries on AIX.
  7490. *** Therefore, libtool is disabling shared libraries support. If you
  7491. *** really care for shared libraries, you may want to install binutils
  7492. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7493. *** You will then need to restart the configuration process.
  7494. _LT_EOF
  7495. fi
  7496. ;;
  7497. amigaos*)
  7498. case $host_cpu in
  7499. powerpc)
  7500. # see comment about AmigaOS4 .so support
  7501. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7502. archive_expsym_cmds=''
  7503. ;;
  7504. m68k)
  7505. 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)'
  7506. hardcode_libdir_flag_spec='-L$libdir'
  7507. hardcode_minus_L=yes
  7508. ;;
  7509. esac
  7510. ;;
  7511. beos*)
  7512. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7513. allow_undefined_flag=unsupported
  7514. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7515. # support --undefined. This deserves some investigation. FIXME
  7516. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7517. else
  7518. ld_shlibs=no
  7519. fi
  7520. ;;
  7521. cygwin* | mingw* | pw32* | cegcc*)
  7522. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7523. # as there is no search path for DLLs.
  7524. hardcode_libdir_flag_spec='-L$libdir'
  7525. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7526. allow_undefined_flag=unsupported
  7527. always_export_symbols=no
  7528. enable_shared_with_static_runtimes=yes
  7529. 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'
  7530. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7531. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7533. # If the export-symbols file already is a .def file (1st line
  7534. # is EXPORTS), use it as is; otherwise, prepend...
  7535. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7536. cp $export_symbols $output_objdir/$soname.def;
  7537. else
  7538. echo EXPORTS > $output_objdir/$soname.def;
  7539. cat $export_symbols >> $output_objdir/$soname.def;
  7540. fi~
  7541. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7542. else
  7543. ld_shlibs=no
  7544. fi
  7545. ;;
  7546. haiku*)
  7547. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7548. link_all_deplibs=yes
  7549. ;;
  7550. interix[3-9]*)
  7551. hardcode_direct=no
  7552. hardcode_shlibpath_var=no
  7553. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7554. export_dynamic_flag_spec='${wl}-E'
  7555. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7556. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7557. # default) and relocated if they conflict, which is a slow very memory
  7558. # consuming and fragmenting process. To avoid this, we pick a random,
  7559. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7560. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7561. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7562. 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'
  7563. ;;
  7564. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7565. tmp_diet=no
  7566. if test "$host_os" = linux-dietlibc; then
  7567. case $cc_basename in
  7568. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7569. esac
  7570. fi
  7571. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7572. && test "$tmp_diet" = no
  7573. then
  7574. tmp_addflag=' $pic_flag'
  7575. tmp_sharedflag='-shared'
  7576. case $cc_basename,$host_cpu in
  7577. pgcc*) # Portland Group C compiler
  7578. 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'
  7579. tmp_addflag=' $pic_flag'
  7580. ;;
  7581. pgf77* | pgf90* | pgf95* | pgfortran*)
  7582. # Portland Group f77 and f90 compilers
  7583. 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'
  7584. tmp_addflag=' $pic_flag -Mnomain' ;;
  7585. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7586. tmp_addflag=' -i_dynamic' ;;
  7587. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7588. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7589. ifc* | ifort*) # Intel Fortran compiler
  7590. tmp_addflag=' -nofor_main' ;;
  7591. lf95*) # Lahey Fortran 8.1
  7592. whole_archive_flag_spec=
  7593. tmp_sharedflag='--shared' ;;
  7594. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7595. tmp_sharedflag='-qmkshrobj'
  7596. tmp_addflag= ;;
  7597. nvcc*) # Cuda Compiler Driver 2.2
  7598. 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'
  7599. compiler_needs_object=yes
  7600. ;;
  7601. esac
  7602. case `$CC -V 2>&1 | sed 5q` in
  7603. *Sun\ C*) # Sun C 5.9
  7604. 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'
  7605. compiler_needs_object=yes
  7606. tmp_sharedflag='-G' ;;
  7607. *Sun\ F*) # Sun Fortran 8.3
  7608. tmp_sharedflag='-G' ;;
  7609. esac
  7610. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7611. if test "x$supports_anon_versioning" = xyes; then
  7612. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7613. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7614. echo "local: *; };" >> $output_objdir/$libname.ver~
  7615. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7616. fi
  7617. case $cc_basename in
  7618. xlf* | bgf* | bgxlf* | mpixlf*)
  7619. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7620. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7621. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7622. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7623. if test "x$supports_anon_versioning" = xyes; then
  7624. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7625. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7626. echo "local: *; };" >> $output_objdir/$libname.ver~
  7627. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7628. fi
  7629. ;;
  7630. esac
  7631. else
  7632. ld_shlibs=no
  7633. fi
  7634. ;;
  7635. netbsd*)
  7636. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7637. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7638. wlarc=
  7639. else
  7640. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7641. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7642. fi
  7643. ;;
  7644. solaris*)
  7645. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7646. ld_shlibs=no
  7647. cat <<_LT_EOF 1>&2
  7648. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7649. *** create shared libraries on Solaris systems. Therefore, libtool
  7650. *** is disabling shared libraries support. We urge you to upgrade GNU
  7651. *** binutils to release 2.9.1 or newer. Another option is to modify
  7652. *** your PATH or compiler configuration so that the native linker is
  7653. *** used, and then restart.
  7654. _LT_EOF
  7655. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7656. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7657. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7658. else
  7659. ld_shlibs=no
  7660. fi
  7661. ;;
  7662. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7663. case `$LD -v 2>&1` in
  7664. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7665. ld_shlibs=no
  7666. cat <<_LT_EOF 1>&2
  7667. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7668. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7669. *** is disabling shared libraries support. We urge you to upgrade GNU
  7670. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7671. *** your PATH or compiler configuration so that the native linker is
  7672. *** used, and then restart.
  7673. _LT_EOF
  7674. ;;
  7675. *)
  7676. # For security reasons, it is highly recommended that you always
  7677. # use absolute paths for naming shared libraries, and exclude the
  7678. # DT_RUNPATH tag from executables and libraries. But doing so
  7679. # requires that you compile everything twice, which is a pain.
  7680. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7681. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7682. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7683. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7684. else
  7685. ld_shlibs=no
  7686. fi
  7687. ;;
  7688. esac
  7689. ;;
  7690. sunos4*)
  7691. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7692. wlarc=
  7693. hardcode_direct=yes
  7694. hardcode_shlibpath_var=no
  7695. ;;
  7696. *)
  7697. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7698. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7699. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7700. else
  7701. ld_shlibs=no
  7702. fi
  7703. ;;
  7704. esac
  7705. if test "$ld_shlibs" = no; then
  7706. runpath_var=
  7707. hardcode_libdir_flag_spec=
  7708. export_dynamic_flag_spec=
  7709. whole_archive_flag_spec=
  7710. fi
  7711. else
  7712. # PORTME fill in a description of your system's linker (not GNU ld)
  7713. case $host_os in
  7714. aix3*)
  7715. allow_undefined_flag=unsupported
  7716. always_export_symbols=yes
  7717. 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'
  7718. # Note: this linker hardcodes the directories in LIBPATH if there
  7719. # are no directories specified by -L.
  7720. hardcode_minus_L=yes
  7721. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7722. # Neither direct hardcoding nor static linking is supported with a
  7723. # broken collect2.
  7724. hardcode_direct=unsupported
  7725. fi
  7726. ;;
  7727. aix[4-9]*)
  7728. if test "$host_cpu" = ia64; then
  7729. # On IA64, the linker does run time linking by default, so we don't
  7730. # have to do anything special.
  7731. aix_use_runtimelinking=no
  7732. exp_sym_flag='-Bexport'
  7733. no_entry_flag=""
  7734. else
  7735. # If we're using GNU nm, then we don't want the "-C" option.
  7736. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7737. # Also, AIX nm treats weak defined symbols like other global
  7738. # defined symbols, whereas GNU nm marks them as "W".
  7739. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7740. 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'
  7741. else
  7742. 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'
  7743. fi
  7744. aix_use_runtimelinking=no
  7745. # Test if we are trying to use run time linking or normal
  7746. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7747. # need to do runtime linking.
  7748. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7749. for ld_flag in $LDFLAGS; do
  7750. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7751. aix_use_runtimelinking=yes
  7752. break
  7753. fi
  7754. done
  7755. ;;
  7756. esac
  7757. exp_sym_flag='-bexport'
  7758. no_entry_flag='-bnoentry'
  7759. fi
  7760. # When large executables or shared objects are built, AIX ld can
  7761. # have problems creating the table of contents. If linking a library
  7762. # or program results in "error TOC overflow" add -mminimal-toc to
  7763. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7764. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7765. archive_cmds=''
  7766. hardcode_direct=yes
  7767. hardcode_direct_absolute=yes
  7768. hardcode_libdir_separator=':'
  7769. link_all_deplibs=yes
  7770. file_list_spec='${wl}-f,'
  7771. if test "$GCC" = yes; then
  7772. case $host_os in aix4.[012]|aix4.[012].*)
  7773. # We only want to do this on AIX 4.2 and lower, the check
  7774. # below for broken collect2 doesn't work under 4.3+
  7775. collect2name=`${CC} -print-prog-name=collect2`
  7776. if test -f "$collect2name" &&
  7777. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7778. then
  7779. # We have reworked collect2
  7780. :
  7781. else
  7782. # We have old collect2
  7783. hardcode_direct=unsupported
  7784. # It fails to find uninstalled libraries when the uninstalled
  7785. # path is not listed in the libpath. Setting hardcode_minus_L
  7786. # to unsupported forces relinking
  7787. hardcode_minus_L=yes
  7788. hardcode_libdir_flag_spec='-L$libdir'
  7789. hardcode_libdir_separator=
  7790. fi
  7791. ;;
  7792. esac
  7793. shared_flag='-shared'
  7794. if test "$aix_use_runtimelinking" = yes; then
  7795. shared_flag="$shared_flag "'${wl}-G'
  7796. fi
  7797. else
  7798. # not using gcc
  7799. if test "$host_cpu" = ia64; then
  7800. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7801. # chokes on -Wl,-G. The following line is correct:
  7802. shared_flag='-G'
  7803. else
  7804. if test "$aix_use_runtimelinking" = yes; then
  7805. shared_flag='${wl}-G'
  7806. else
  7807. shared_flag='${wl}-bM:SRE'
  7808. fi
  7809. fi
  7810. fi
  7811. export_dynamic_flag_spec='${wl}-bexpall'
  7812. # It seems that -bexpall does not export symbols beginning with
  7813. # underscore (_), so it is better to generate a list of symbols to export.
  7814. always_export_symbols=yes
  7815. if test "$aix_use_runtimelinking" = yes; then
  7816. # Warning - without using the other runtime loading flags (-brtl),
  7817. # -berok will link without error, but may produce a broken library.
  7818. allow_undefined_flag='-berok'
  7819. # Determine the default libpath from the value encoded in an
  7820. # empty executable.
  7821. if test "${lt_cv_aix_libpath+set}" = set; then
  7822. aix_libpath=$lt_cv_aix_libpath
  7823. else
  7824. if ${lt_cv_aix_libpath_+:} false; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7828. /* end confdefs.h. */
  7829. int
  7830. main ()
  7831. {
  7832. ;
  7833. return 0;
  7834. }
  7835. _ACEOF
  7836. if ac_fn_c_try_link "$LINENO"; then :
  7837. lt_aix_libpath_sed='
  7838. /Import File Strings/,/^$/ {
  7839. /^0/ {
  7840. s/^0 *\([^ ]*\) *$/\1/
  7841. p
  7842. }
  7843. }'
  7844. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7845. # Check for a 64-bit object if we didn't find anything.
  7846. if test -z "$lt_cv_aix_libpath_"; then
  7847. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7848. fi
  7849. fi
  7850. rm -f core conftest.err conftest.$ac_objext \
  7851. conftest$ac_exeext conftest.$ac_ext
  7852. if test -z "$lt_cv_aix_libpath_"; then
  7853. lt_cv_aix_libpath_="/usr/lib:/lib"
  7854. fi
  7855. fi
  7856. aix_libpath=$lt_cv_aix_libpath_
  7857. fi
  7858. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7859. 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"
  7860. else
  7861. if test "$host_cpu" = ia64; then
  7862. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7863. allow_undefined_flag="-z nodefs"
  7864. 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"
  7865. else
  7866. # Determine the default libpath from the value encoded in an
  7867. # empty executable.
  7868. if test "${lt_cv_aix_libpath+set}" = set; then
  7869. aix_libpath=$lt_cv_aix_libpath
  7870. else
  7871. if ${lt_cv_aix_libpath_+:} false; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7875. /* end confdefs.h. */
  7876. int
  7877. main ()
  7878. {
  7879. ;
  7880. return 0;
  7881. }
  7882. _ACEOF
  7883. if ac_fn_c_try_link "$LINENO"; then :
  7884. lt_aix_libpath_sed='
  7885. /Import File Strings/,/^$/ {
  7886. /^0/ {
  7887. s/^0 *\([^ ]*\) *$/\1/
  7888. p
  7889. }
  7890. }'
  7891. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7892. # Check for a 64-bit object if we didn't find anything.
  7893. if test -z "$lt_cv_aix_libpath_"; then
  7894. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7895. fi
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext \
  7898. conftest$ac_exeext conftest.$ac_ext
  7899. if test -z "$lt_cv_aix_libpath_"; then
  7900. lt_cv_aix_libpath_="/usr/lib:/lib"
  7901. fi
  7902. fi
  7903. aix_libpath=$lt_cv_aix_libpath_
  7904. fi
  7905. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7906. # Warning - without using the other run time loading flags,
  7907. # -berok will link without error, but may produce a broken library.
  7908. no_undefined_flag=' ${wl}-bernotok'
  7909. allow_undefined_flag=' ${wl}-berok'
  7910. if test "$with_gnu_ld" = yes; then
  7911. # We only use this code for GNU lds that support --whole-archive.
  7912. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7913. else
  7914. # Exported symbols can be pulled into shared objects from archives
  7915. whole_archive_flag_spec='$convenience'
  7916. fi
  7917. archive_cmds_need_lc=yes
  7918. # This is similar to how AIX traditionally builds its shared libraries.
  7919. 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'
  7920. fi
  7921. fi
  7922. ;;
  7923. amigaos*)
  7924. case $host_cpu in
  7925. powerpc)
  7926. # see comment about AmigaOS4 .so support
  7927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7928. archive_expsym_cmds=''
  7929. ;;
  7930. m68k)
  7931. 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)'
  7932. hardcode_libdir_flag_spec='-L$libdir'
  7933. hardcode_minus_L=yes
  7934. ;;
  7935. esac
  7936. ;;
  7937. bsdi[45]*)
  7938. export_dynamic_flag_spec=-rdynamic
  7939. ;;
  7940. cygwin* | mingw* | pw32* | cegcc*)
  7941. # When not using gcc, we currently assume that we are using
  7942. # Microsoft Visual C++.
  7943. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7944. # no search path for DLLs.
  7945. case $cc_basename in
  7946. cl*)
  7947. # Native MSVC
  7948. hardcode_libdir_flag_spec=' '
  7949. allow_undefined_flag=unsupported
  7950. always_export_symbols=yes
  7951. file_list_spec='@'
  7952. # Tell ltmain to make .lib files, not .a files.
  7953. libext=lib
  7954. # Tell ltmain to make .dll files, not .so files.
  7955. shrext_cmds=".dll"
  7956. # FIXME: Setting linknames here is a bad hack.
  7957. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7958. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7959. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7960. else
  7961. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7962. fi~
  7963. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7964. linknames='
  7965. # The linker will not automatically build a static lib if we build a DLL.
  7966. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7967. enable_shared_with_static_runtimes=yes
  7968. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7969. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7970. # Don't use ranlib
  7971. old_postinstall_cmds='chmod 644 $oldlib'
  7972. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7973. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7974. case $lt_outputfile in
  7975. *.exe|*.EXE) ;;
  7976. *)
  7977. lt_outputfile="$lt_outputfile.exe"
  7978. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7979. ;;
  7980. esac~
  7981. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7982. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7983. $RM "$lt_outputfile.manifest";
  7984. fi'
  7985. ;;
  7986. *)
  7987. # Assume MSVC wrapper
  7988. hardcode_libdir_flag_spec=' '
  7989. allow_undefined_flag=unsupported
  7990. # Tell ltmain to make .lib files, not .a files.
  7991. libext=lib
  7992. # Tell ltmain to make .dll files, not .so files.
  7993. shrext_cmds=".dll"
  7994. # FIXME: Setting linknames here is a bad hack.
  7995. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7996. # The linker will automatically build a .lib file if we build a DLL.
  7997. old_archive_from_new_cmds='true'
  7998. # FIXME: Should let the user specify the lib program.
  7999. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8000. enable_shared_with_static_runtimes=yes
  8001. ;;
  8002. esac
  8003. ;;
  8004. darwin* | rhapsody*)
  8005. archive_cmds_need_lc=no
  8006. hardcode_direct=no
  8007. hardcode_automatic=yes
  8008. hardcode_shlibpath_var=unsupported
  8009. if test "$lt_cv_ld_force_load" = "yes"; then
  8010. 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\"`'
  8011. else
  8012. whole_archive_flag_spec=''
  8013. fi
  8014. link_all_deplibs=yes
  8015. allow_undefined_flag="$_lt_dar_allow_undefined"
  8016. case $cc_basename in
  8017. ifort*) _lt_dar_can_shared=yes ;;
  8018. *) _lt_dar_can_shared=$GCC ;;
  8019. esac
  8020. if test "$_lt_dar_can_shared" = "yes"; then
  8021. output_verbose_link_cmd=func_echo_all
  8022. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8023. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8024. 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}"
  8025. 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}"
  8026. else
  8027. ld_shlibs=no
  8028. fi
  8029. ;;
  8030. dgux*)
  8031. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8032. hardcode_libdir_flag_spec='-L$libdir'
  8033. hardcode_shlibpath_var=no
  8034. ;;
  8035. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8036. # support. Future versions do this automatically, but an explicit c++rt0.o
  8037. # does not break anything, and helps significantly (at the cost of a little
  8038. # extra space).
  8039. freebsd2.2*)
  8040. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8041. hardcode_libdir_flag_spec='-R$libdir'
  8042. hardcode_direct=yes
  8043. hardcode_shlibpath_var=no
  8044. ;;
  8045. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8046. freebsd2.*)
  8047. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8048. hardcode_direct=yes
  8049. hardcode_minus_L=yes
  8050. hardcode_shlibpath_var=no
  8051. ;;
  8052. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8053. freebsd* | dragonfly*)
  8054. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8055. hardcode_libdir_flag_spec='-R$libdir'
  8056. hardcode_direct=yes
  8057. hardcode_shlibpath_var=no
  8058. ;;
  8059. hpux9*)
  8060. if test "$GCC" = yes; then
  8061. 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'
  8062. else
  8063. 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'
  8064. fi
  8065. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8066. hardcode_libdir_separator=:
  8067. hardcode_direct=yes
  8068. # hardcode_minus_L: Not really in the search PATH,
  8069. # but as the default location of the library.
  8070. hardcode_minus_L=yes
  8071. export_dynamic_flag_spec='${wl}-E'
  8072. ;;
  8073. hpux10*)
  8074. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8075. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8076. else
  8077. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8078. fi
  8079. if test "$with_gnu_ld" = no; then
  8080. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8081. hardcode_libdir_separator=:
  8082. hardcode_direct=yes
  8083. hardcode_direct_absolute=yes
  8084. export_dynamic_flag_spec='${wl}-E'
  8085. # hardcode_minus_L: Not really in the search PATH,
  8086. # but as the default location of the library.
  8087. hardcode_minus_L=yes
  8088. fi
  8089. ;;
  8090. hpux11*)
  8091. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8092. case $host_cpu in
  8093. hppa*64*)
  8094. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8095. ;;
  8096. ia64*)
  8097. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8098. ;;
  8099. *)
  8100. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8101. ;;
  8102. esac
  8103. else
  8104. case $host_cpu in
  8105. hppa*64*)
  8106. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8107. ;;
  8108. ia64*)
  8109. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8110. ;;
  8111. *)
  8112. # Older versions of the 11.00 compiler do not understand -b yet
  8113. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8115. $as_echo_n "checking if $CC understands -b... " >&6; }
  8116. if ${lt_cv_prog_compiler__b+:} false; then :
  8117. $as_echo_n "(cached) " >&6
  8118. else
  8119. lt_cv_prog_compiler__b=no
  8120. save_LDFLAGS="$LDFLAGS"
  8121. LDFLAGS="$LDFLAGS -b"
  8122. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8123. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8124. # The linker can only warn and ignore the option if not recognized
  8125. # So say no if there are warnings
  8126. if test -s conftest.err; then
  8127. # Append any errors to the config.log.
  8128. cat conftest.err 1>&5
  8129. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8130. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8131. if diff conftest.exp conftest.er2 >/dev/null; then
  8132. lt_cv_prog_compiler__b=yes
  8133. fi
  8134. else
  8135. lt_cv_prog_compiler__b=yes
  8136. fi
  8137. fi
  8138. $RM -r conftest*
  8139. LDFLAGS="$save_LDFLAGS"
  8140. fi
  8141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8142. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8143. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8144. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8145. else
  8146. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8147. fi
  8148. ;;
  8149. esac
  8150. fi
  8151. if test "$with_gnu_ld" = no; then
  8152. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8153. hardcode_libdir_separator=:
  8154. case $host_cpu in
  8155. hppa*64*|ia64*)
  8156. hardcode_direct=no
  8157. hardcode_shlibpath_var=no
  8158. ;;
  8159. *)
  8160. hardcode_direct=yes
  8161. hardcode_direct_absolute=yes
  8162. export_dynamic_flag_spec='${wl}-E'
  8163. # hardcode_minus_L: Not really in the search PATH,
  8164. # but as the default location of the library.
  8165. hardcode_minus_L=yes
  8166. ;;
  8167. esac
  8168. fi
  8169. ;;
  8170. irix5* | irix6* | nonstopux*)
  8171. if test "$GCC" = yes; then
  8172. 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'
  8173. # Try to use the -exported_symbol ld option, if it does not
  8174. # work, assume that -exports_file does not work either and
  8175. # implicitly export all symbols.
  8176. # This should be the same for all languages, so no per-tag cache variable.
  8177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8178. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8179. if ${lt_cv_irix_exported_symbol+:} false; then :
  8180. $as_echo_n "(cached) " >&6
  8181. else
  8182. save_LDFLAGS="$LDFLAGS"
  8183. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8185. /* end confdefs.h. */
  8186. int foo (void) { return 0; }
  8187. _ACEOF
  8188. if ac_fn_c_try_link "$LINENO"; then :
  8189. lt_cv_irix_exported_symbol=yes
  8190. else
  8191. lt_cv_irix_exported_symbol=no
  8192. fi
  8193. rm -f core conftest.err conftest.$ac_objext \
  8194. conftest$ac_exeext conftest.$ac_ext
  8195. LDFLAGS="$save_LDFLAGS"
  8196. fi
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8198. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8199. if test "$lt_cv_irix_exported_symbol" = yes; then
  8200. 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'
  8201. fi
  8202. else
  8203. 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'
  8204. 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'
  8205. fi
  8206. archive_cmds_need_lc='no'
  8207. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8208. hardcode_libdir_separator=:
  8209. inherit_rpath=yes
  8210. link_all_deplibs=yes
  8211. ;;
  8212. netbsd*)
  8213. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8214. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8215. else
  8216. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8217. fi
  8218. hardcode_libdir_flag_spec='-R$libdir'
  8219. hardcode_direct=yes
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. newsos6)
  8223. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8224. hardcode_direct=yes
  8225. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8226. hardcode_libdir_separator=:
  8227. hardcode_shlibpath_var=no
  8228. ;;
  8229. *nto* | *qnx*)
  8230. ;;
  8231. openbsd*)
  8232. if test -f /usr/libexec/ld.so; then
  8233. hardcode_direct=yes
  8234. hardcode_shlibpath_var=no
  8235. hardcode_direct_absolute=yes
  8236. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8237. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8238. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8239. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8240. export_dynamic_flag_spec='${wl}-E'
  8241. else
  8242. case $host_os in
  8243. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8244. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8245. hardcode_libdir_flag_spec='-R$libdir'
  8246. ;;
  8247. *)
  8248. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8249. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8250. ;;
  8251. esac
  8252. fi
  8253. else
  8254. ld_shlibs=no
  8255. fi
  8256. ;;
  8257. os2*)
  8258. hardcode_libdir_flag_spec='-L$libdir'
  8259. hardcode_minus_L=yes
  8260. allow_undefined_flag=unsupported
  8261. 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'
  8262. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8263. ;;
  8264. osf3*)
  8265. if test "$GCC" = yes; then
  8266. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8267. 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'
  8268. else
  8269. allow_undefined_flag=' -expect_unresolved \*'
  8270. 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'
  8271. fi
  8272. archive_cmds_need_lc='no'
  8273. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8274. hardcode_libdir_separator=:
  8275. ;;
  8276. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8277. if test "$GCC" = yes; then
  8278. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8279. 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'
  8280. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8281. else
  8282. allow_undefined_flag=' -expect_unresolved \*'
  8283. 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'
  8284. 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~
  8285. $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'
  8286. # Both c and cxx compiler support -rpath directly
  8287. hardcode_libdir_flag_spec='-rpath $libdir'
  8288. fi
  8289. archive_cmds_need_lc='no'
  8290. hardcode_libdir_separator=:
  8291. ;;
  8292. solaris*)
  8293. no_undefined_flag=' -z defs'
  8294. if test "$GCC" = yes; then
  8295. wlarc='${wl}'
  8296. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8297. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8298. $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'
  8299. else
  8300. case `$CC -V 2>&1` in
  8301. *"Compilers 5.0"*)
  8302. wlarc=''
  8303. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8304. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8305. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8306. ;;
  8307. *)
  8308. wlarc='${wl}'
  8309. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8310. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8311. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8312. ;;
  8313. esac
  8314. fi
  8315. hardcode_libdir_flag_spec='-R$libdir'
  8316. hardcode_shlibpath_var=no
  8317. case $host_os in
  8318. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8319. *)
  8320. # The compiler driver will combine and reorder linker options,
  8321. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8322. # but is careful enough not to reorder.
  8323. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8324. if test "$GCC" = yes; then
  8325. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8326. else
  8327. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8328. fi
  8329. ;;
  8330. esac
  8331. link_all_deplibs=yes
  8332. ;;
  8333. sunos4*)
  8334. if test "x$host_vendor" = xsequent; then
  8335. # Use $CC to link under sequent, because it throws in some extra .o
  8336. # files that make .init and .fini sections work.
  8337. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8338. else
  8339. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8340. fi
  8341. hardcode_libdir_flag_spec='-L$libdir'
  8342. hardcode_direct=yes
  8343. hardcode_minus_L=yes
  8344. hardcode_shlibpath_var=no
  8345. ;;
  8346. sysv4)
  8347. case $host_vendor in
  8348. sni)
  8349. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8350. hardcode_direct=yes # is this really true???
  8351. ;;
  8352. siemens)
  8353. ## LD is ld it makes a PLAMLIB
  8354. ## CC just makes a GrossModule.
  8355. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8356. reload_cmds='$CC -r -o $output$reload_objs'
  8357. hardcode_direct=no
  8358. ;;
  8359. motorola)
  8360. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8361. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8362. ;;
  8363. esac
  8364. runpath_var='LD_RUN_PATH'
  8365. hardcode_shlibpath_var=no
  8366. ;;
  8367. sysv4.3*)
  8368. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8369. hardcode_shlibpath_var=no
  8370. export_dynamic_flag_spec='-Bexport'
  8371. ;;
  8372. sysv4*MP*)
  8373. if test -d /usr/nec; then
  8374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8375. hardcode_shlibpath_var=no
  8376. runpath_var=LD_RUN_PATH
  8377. hardcode_runpath_var=yes
  8378. ld_shlibs=yes
  8379. fi
  8380. ;;
  8381. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8382. no_undefined_flag='${wl}-z,text'
  8383. archive_cmds_need_lc=no
  8384. hardcode_shlibpath_var=no
  8385. runpath_var='LD_RUN_PATH'
  8386. if test "$GCC" = yes; then
  8387. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8389. else
  8390. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8391. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. fi
  8393. ;;
  8394. sysv5* | sco3.2v5* | sco5v6*)
  8395. # Note: We can NOT use -z defs as we might desire, because we do not
  8396. # link with -lc, and that would cause any symbols used from libc to
  8397. # always be unresolved, which means just about no library would
  8398. # ever link correctly. If we're not using GNU ld we use -z text
  8399. # though, which does catch some bad symbols but isn't as heavy-handed
  8400. # as -z defs.
  8401. no_undefined_flag='${wl}-z,text'
  8402. allow_undefined_flag='${wl}-z,nodefs'
  8403. archive_cmds_need_lc=no
  8404. hardcode_shlibpath_var=no
  8405. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8406. hardcode_libdir_separator=':'
  8407. link_all_deplibs=yes
  8408. export_dynamic_flag_spec='${wl}-Bexport'
  8409. runpath_var='LD_RUN_PATH'
  8410. if test "$GCC" = yes; then
  8411. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8412. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. else
  8414. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8415. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8416. fi
  8417. ;;
  8418. uts4*)
  8419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8420. hardcode_libdir_flag_spec='-L$libdir'
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. *)
  8424. ld_shlibs=no
  8425. ;;
  8426. esac
  8427. if test x$host_vendor = xsni; then
  8428. case $host in
  8429. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8430. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8431. ;;
  8432. esac
  8433. fi
  8434. fi
  8435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8436. $as_echo "$ld_shlibs" >&6; }
  8437. test "$ld_shlibs" = no && can_build_shared=no
  8438. with_gnu_ld=$with_gnu_ld
  8439. #
  8440. # Do we need to explicitly link libc?
  8441. #
  8442. case "x$archive_cmds_need_lc" in
  8443. x|xyes)
  8444. # Assume -lc should be added
  8445. archive_cmds_need_lc=yes
  8446. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8447. case $archive_cmds in
  8448. *'~'*)
  8449. # FIXME: we may have to deal with multi-command sequences.
  8450. ;;
  8451. '$CC '*)
  8452. # Test whether the compiler implicitly links with -lc since on some
  8453. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8454. # to ld, don't add -lc before -lgcc.
  8455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8456. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8457. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8458. $as_echo_n "(cached) " >&6
  8459. else
  8460. $RM conftest*
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8463. (eval $ac_compile) 2>&5
  8464. ac_status=$?
  8465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8466. test $ac_status = 0; } 2>conftest.err; then
  8467. soname=conftest
  8468. lib=conftest
  8469. libobjs=conftest.$ac_objext
  8470. deplibs=
  8471. wl=$lt_prog_compiler_wl
  8472. pic_flag=$lt_prog_compiler_pic
  8473. compiler_flags=-v
  8474. linker_flags=-v
  8475. verstring=
  8476. output_objdir=.
  8477. libname=conftest
  8478. lt_save_allow_undefined_flag=$allow_undefined_flag
  8479. allow_undefined_flag=
  8480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8481. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8482. ac_status=$?
  8483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8484. test $ac_status = 0; }
  8485. then
  8486. lt_cv_archive_cmds_need_lc=no
  8487. else
  8488. lt_cv_archive_cmds_need_lc=yes
  8489. fi
  8490. allow_undefined_flag=$lt_save_allow_undefined_flag
  8491. else
  8492. cat conftest.err 1>&5
  8493. fi
  8494. $RM conftest*
  8495. fi
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8497. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8498. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8499. ;;
  8500. esac
  8501. fi
  8502. ;;
  8503. esac
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8505. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8506. if test "$GCC" = yes; then
  8507. case $host_os in
  8508. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8509. *) lt_awk_arg="/^libraries:/" ;;
  8510. esac
  8511. case $host_os in
  8512. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8513. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8514. esac
  8515. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8516. case $lt_search_path_spec in
  8517. *\;*)
  8518. # if the path contains ";" then we assume it to be the separator
  8519. # otherwise default to the standard path separator (i.e. ":") - it is
  8520. # assumed that no part of a normal pathname contains ";" but that should
  8521. # okay in the real world where ";" in dirpaths is itself problematic.
  8522. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8523. ;;
  8524. *)
  8525. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8526. ;;
  8527. esac
  8528. # Ok, now we have the path, separated by spaces, we can step through it
  8529. # and add multilib dir if necessary.
  8530. lt_tmp_lt_search_path_spec=
  8531. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8532. for lt_sys_path in $lt_search_path_spec; do
  8533. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8534. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8535. else
  8536. test -d "$lt_sys_path" && \
  8537. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8538. fi
  8539. done
  8540. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8541. BEGIN {RS=" "; FS="/|\n";} {
  8542. lt_foo="";
  8543. lt_count=0;
  8544. for (lt_i = NF; lt_i > 0; lt_i--) {
  8545. if ($lt_i != "" && $lt_i != ".") {
  8546. if ($lt_i == "..") {
  8547. lt_count++;
  8548. } else {
  8549. if (lt_count == 0) {
  8550. lt_foo="/" $lt_i lt_foo;
  8551. } else {
  8552. lt_count--;
  8553. }
  8554. }
  8555. }
  8556. }
  8557. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8558. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8559. }'`
  8560. # AWK program above erroneously prepends '/' to C:/dos/paths
  8561. # for these hosts.
  8562. case $host_os in
  8563. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8564. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8565. esac
  8566. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8567. else
  8568. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8569. fi
  8570. library_names_spec=
  8571. libname_spec='lib$name'
  8572. soname_spec=
  8573. shrext_cmds=".so"
  8574. postinstall_cmds=
  8575. postuninstall_cmds=
  8576. finish_cmds=
  8577. finish_eval=
  8578. shlibpath_var=
  8579. shlibpath_overrides_runpath=unknown
  8580. version_type=none
  8581. dynamic_linker="$host_os ld.so"
  8582. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8583. need_lib_prefix=unknown
  8584. hardcode_into_libs=no
  8585. # when you set need_version to no, make sure it does not cause -set_version
  8586. # flags to be left without arguments
  8587. need_version=unknown
  8588. case $host_os in
  8589. aix3*)
  8590. version_type=linux # correct to gnu/linux during the next big refactor
  8591. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8592. shlibpath_var=LIBPATH
  8593. # AIX 3 has no versioning support, so we append a major version to the name.
  8594. soname_spec='${libname}${release}${shared_ext}$major'
  8595. ;;
  8596. aix[4-9]*)
  8597. version_type=linux # correct to gnu/linux during the next big refactor
  8598. need_lib_prefix=no
  8599. need_version=no
  8600. hardcode_into_libs=yes
  8601. if test "$host_cpu" = ia64; then
  8602. # AIX 5 supports IA64
  8603. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8604. shlibpath_var=LD_LIBRARY_PATH
  8605. else
  8606. # With GCC up to 2.95.x, collect2 would create an import file
  8607. # for dependence libraries. The import file would start with
  8608. # the line `#! .'. This would cause the generated library to
  8609. # depend on `.', always an invalid library. This was fixed in
  8610. # development snapshots of GCC prior to 3.0.
  8611. case $host_os in
  8612. aix4 | aix4.[01] | aix4.[01].*)
  8613. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8614. echo ' yes '
  8615. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8616. :
  8617. else
  8618. can_build_shared=no
  8619. fi
  8620. ;;
  8621. esac
  8622. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8623. # soname into executable. Probably we can add versioning support to
  8624. # collect2, so additional links can be useful in future.
  8625. if test "$aix_use_runtimelinking" = yes; then
  8626. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8627. # instead of lib<name>.a to let people know that these are not
  8628. # typical AIX shared libraries.
  8629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8630. else
  8631. # We preserve .a as extension for shared libraries through AIX4.2
  8632. # and later when we are not doing run time linking.
  8633. library_names_spec='${libname}${release}.a $libname.a'
  8634. soname_spec='${libname}${release}${shared_ext}$major'
  8635. fi
  8636. shlibpath_var=LIBPATH
  8637. fi
  8638. ;;
  8639. amigaos*)
  8640. case $host_cpu in
  8641. powerpc)
  8642. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8643. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8645. ;;
  8646. m68k)
  8647. library_names_spec='$libname.ixlibrary $libname.a'
  8648. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8649. 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'
  8650. ;;
  8651. esac
  8652. ;;
  8653. beos*)
  8654. library_names_spec='${libname}${shared_ext}'
  8655. dynamic_linker="$host_os ld.so"
  8656. shlibpath_var=LIBRARY_PATH
  8657. ;;
  8658. bsdi[45]*)
  8659. version_type=linux # correct to gnu/linux during the next big refactor
  8660. need_version=no
  8661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8662. soname_spec='${libname}${release}${shared_ext}$major'
  8663. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8664. shlibpath_var=LD_LIBRARY_PATH
  8665. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8666. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8667. # the default ld.so.conf also contains /usr/contrib/lib and
  8668. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8669. # libtool to hard-code these into programs
  8670. ;;
  8671. cygwin* | mingw* | pw32* | cegcc*)
  8672. version_type=windows
  8673. shrext_cmds=".dll"
  8674. need_version=no
  8675. need_lib_prefix=no
  8676. case $GCC,$cc_basename in
  8677. yes,*)
  8678. # gcc
  8679. library_names_spec='$libname.dll.a'
  8680. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8681. postinstall_cmds='base_file=`basename \${file}`~
  8682. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8683. dldir=$destdir/`dirname \$dlpath`~
  8684. test -d \$dldir || mkdir -p \$dldir~
  8685. $install_prog $dir/$dlname \$dldir/$dlname~
  8686. chmod a+x \$dldir/$dlname~
  8687. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8688. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8689. fi'
  8690. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8691. dlpath=$dir/\$dldll~
  8692. $RM \$dlpath'
  8693. shlibpath_overrides_runpath=yes
  8694. case $host_os in
  8695. cygwin*)
  8696. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8697. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8698. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8699. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8700. ;;
  8701. mingw* | cegcc*)
  8702. # MinGW DLLs use traditional 'lib' prefix
  8703. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8704. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8705. ;;
  8706. pw32*)
  8707. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8708. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8709. ;;
  8710. esac
  8711. dynamic_linker='Win32 ld.exe'
  8712. ;;
  8713. *,cl*)
  8714. # Native MSVC
  8715. libname_spec='$name'
  8716. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8717. library_names_spec='${libname}.dll.lib'
  8718. case $build_os in
  8719. mingw*)
  8720. sys_lib_search_path_spec=
  8721. lt_save_ifs=$IFS
  8722. IFS=';'
  8723. for lt_path in $LIB
  8724. do
  8725. IFS=$lt_save_ifs
  8726. # Let DOS variable expansion print the short 8.3 style file name.
  8727. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8728. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8729. done
  8730. IFS=$lt_save_ifs
  8731. # Convert to MSYS style.
  8732. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8733. ;;
  8734. cygwin*)
  8735. # Convert to unix form, then to dos form, then back to unix form
  8736. # but this time dos style (no spaces!) so that the unix form looks
  8737. # like /cygdrive/c/PROGRA~1:/cygdr...
  8738. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8739. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8740. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8741. ;;
  8742. *)
  8743. sys_lib_search_path_spec="$LIB"
  8744. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8745. # It is most probably a Windows format PATH.
  8746. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8747. else
  8748. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8749. fi
  8750. # FIXME: find the short name or the path components, as spaces are
  8751. # common. (e.g. "Program Files" -> "PROGRA~1")
  8752. ;;
  8753. esac
  8754. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8755. postinstall_cmds='base_file=`basename \${file}`~
  8756. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8757. dldir=$destdir/`dirname \$dlpath`~
  8758. test -d \$dldir || mkdir -p \$dldir~
  8759. $install_prog $dir/$dlname \$dldir/$dlname'
  8760. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8761. dlpath=$dir/\$dldll~
  8762. $RM \$dlpath'
  8763. shlibpath_overrides_runpath=yes
  8764. dynamic_linker='Win32 link.exe'
  8765. ;;
  8766. *)
  8767. # Assume MSVC wrapper
  8768. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8769. dynamic_linker='Win32 ld.exe'
  8770. ;;
  8771. esac
  8772. # FIXME: first we should search . and the directory the executable is in
  8773. shlibpath_var=PATH
  8774. ;;
  8775. darwin* | rhapsody*)
  8776. dynamic_linker="$host_os dyld"
  8777. version_type=darwin
  8778. need_lib_prefix=no
  8779. need_version=no
  8780. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8781. soname_spec='${libname}${release}${major}$shared_ext'
  8782. shlibpath_overrides_runpath=yes
  8783. shlibpath_var=DYLD_LIBRARY_PATH
  8784. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8785. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8786. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8787. ;;
  8788. dgux*)
  8789. version_type=linux # correct to gnu/linux during the next big refactor
  8790. need_lib_prefix=no
  8791. need_version=no
  8792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8793. soname_spec='${libname}${release}${shared_ext}$major'
  8794. shlibpath_var=LD_LIBRARY_PATH
  8795. ;;
  8796. freebsd* | dragonfly*)
  8797. # DragonFly does not have aout. When/if they implement a new
  8798. # versioning mechanism, adjust this.
  8799. if test -x /usr/bin/objformat; then
  8800. objformat=`/usr/bin/objformat`
  8801. else
  8802. case $host_os in
  8803. freebsd[23].*) objformat=aout ;;
  8804. *) objformat=elf ;;
  8805. esac
  8806. fi
  8807. version_type=freebsd-$objformat
  8808. case $version_type in
  8809. freebsd-elf*)
  8810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8811. need_version=no
  8812. need_lib_prefix=no
  8813. ;;
  8814. freebsd-*)
  8815. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8816. need_version=yes
  8817. ;;
  8818. esac
  8819. shlibpath_var=LD_LIBRARY_PATH
  8820. case $host_os in
  8821. freebsd2.*)
  8822. shlibpath_overrides_runpath=yes
  8823. ;;
  8824. freebsd3.[01]* | freebsdelf3.[01]*)
  8825. shlibpath_overrides_runpath=yes
  8826. hardcode_into_libs=yes
  8827. ;;
  8828. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8829. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8830. shlibpath_overrides_runpath=no
  8831. hardcode_into_libs=yes
  8832. ;;
  8833. *) # from 4.6 on, and DragonFly
  8834. shlibpath_overrides_runpath=yes
  8835. hardcode_into_libs=yes
  8836. ;;
  8837. esac
  8838. ;;
  8839. gnu*)
  8840. version_type=linux # correct to gnu/linux during the next big refactor
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8844. soname_spec='${libname}${release}${shared_ext}$major'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. shlibpath_overrides_runpath=no
  8847. hardcode_into_libs=yes
  8848. ;;
  8849. haiku*)
  8850. version_type=linux # correct to gnu/linux during the next big refactor
  8851. need_lib_prefix=no
  8852. need_version=no
  8853. dynamic_linker="$host_os runtime_loader"
  8854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8855. soname_spec='${libname}${release}${shared_ext}$major'
  8856. shlibpath_var=LIBRARY_PATH
  8857. shlibpath_overrides_runpath=yes
  8858. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8859. hardcode_into_libs=yes
  8860. ;;
  8861. hpux9* | hpux10* | hpux11*)
  8862. # Give a soname corresponding to the major version so that dld.sl refuses to
  8863. # link against other versions.
  8864. version_type=sunos
  8865. need_lib_prefix=no
  8866. need_version=no
  8867. case $host_cpu in
  8868. ia64*)
  8869. shrext_cmds='.so'
  8870. hardcode_into_libs=yes
  8871. dynamic_linker="$host_os dld.so"
  8872. shlibpath_var=LD_LIBRARY_PATH
  8873. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. if test "X$HPUX_IA64_MODE" = X32; then
  8877. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8878. else
  8879. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8880. fi
  8881. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8882. ;;
  8883. hppa*64*)
  8884. shrext_cmds='.sl'
  8885. hardcode_into_libs=yes
  8886. dynamic_linker="$host_os dld.sl"
  8887. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8888. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8890. soname_spec='${libname}${release}${shared_ext}$major'
  8891. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8892. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8893. ;;
  8894. *)
  8895. shrext_cmds='.sl'
  8896. dynamic_linker="$host_os dld.sl"
  8897. shlibpath_var=SHLIB_PATH
  8898. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8900. soname_spec='${libname}${release}${shared_ext}$major'
  8901. ;;
  8902. esac
  8903. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8904. postinstall_cmds='chmod 555 $lib'
  8905. # or fails outright, so override atomically:
  8906. install_override_mode=555
  8907. ;;
  8908. interix[3-9]*)
  8909. version_type=linux # correct to gnu/linux during the next big refactor
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8915. shlibpath_var=LD_LIBRARY_PATH
  8916. shlibpath_overrides_runpath=no
  8917. hardcode_into_libs=yes
  8918. ;;
  8919. irix5* | irix6* | nonstopux*)
  8920. case $host_os in
  8921. nonstopux*) version_type=nonstopux ;;
  8922. *)
  8923. if test "$lt_cv_prog_gnu_ld" = yes; then
  8924. version_type=linux # correct to gnu/linux during the next big refactor
  8925. else
  8926. version_type=irix
  8927. fi ;;
  8928. esac
  8929. need_lib_prefix=no
  8930. need_version=no
  8931. soname_spec='${libname}${release}${shared_ext}$major'
  8932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8933. case $host_os in
  8934. irix5* | nonstopux*)
  8935. libsuff= shlibsuff=
  8936. ;;
  8937. *)
  8938. case $LD in # libtool.m4 will add one of these switches to LD
  8939. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8940. libsuff= shlibsuff= libmagic=32-bit;;
  8941. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8942. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8943. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8944. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8945. *) libsuff= shlibsuff= libmagic=never-match;;
  8946. esac
  8947. ;;
  8948. esac
  8949. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8950. shlibpath_overrides_runpath=no
  8951. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8952. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8953. hardcode_into_libs=yes
  8954. ;;
  8955. # No shared lib support for Linux oldld, aout, or coff.
  8956. linux*oldld* | linux*aout* | linux*coff*)
  8957. dynamic_linker=no
  8958. ;;
  8959. # This must be glibc/ELF.
  8960. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8961. version_type=linux # correct to gnu/linux during the next big refactor
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. shlibpath_overrides_runpath=no
  8969. # Some binutils ld are patched to set DT_RUNPATH
  8970. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8971. $as_echo_n "(cached) " >&6
  8972. else
  8973. lt_cv_shlibpath_overrides_runpath=no
  8974. save_LDFLAGS=$LDFLAGS
  8975. save_libdir=$libdir
  8976. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8977. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8979. /* end confdefs.h. */
  8980. int
  8981. main ()
  8982. {
  8983. ;
  8984. return 0;
  8985. }
  8986. _ACEOF
  8987. if ac_fn_c_try_link "$LINENO"; then :
  8988. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8989. lt_cv_shlibpath_overrides_runpath=yes
  8990. fi
  8991. fi
  8992. rm -f core conftest.err conftest.$ac_objext \
  8993. conftest$ac_exeext conftest.$ac_ext
  8994. LDFLAGS=$save_LDFLAGS
  8995. libdir=$save_libdir
  8996. fi
  8997. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8998. # This implies no fast_install, which is unacceptable.
  8999. # Some rework will be needed to allow for fast_install
  9000. # before this can be enabled.
  9001. hardcode_into_libs=yes
  9002. # Append ld.so.conf contents to the search path
  9003. if test -f /etc/ld.so.conf; then
  9004. 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' ' '`
  9005. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9006. fi
  9007. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9008. # powerpc, because MkLinux only supported shared libraries with the
  9009. # GNU dynamic linker. Since this was broken with cross compilers,
  9010. # most powerpc-linux boxes support dynamic linking these days and
  9011. # people can always --disable-shared, the test was removed, and we
  9012. # assume the GNU/Linux dynamic linker is in use.
  9013. dynamic_linker='GNU/Linux ld.so'
  9014. ;;
  9015. netbsd*)
  9016. version_type=sunos
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9022. dynamic_linker='NetBSD (a.out) ld.so'
  9023. else
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9025. soname_spec='${libname}${release}${shared_ext}$major'
  9026. dynamic_linker='NetBSD ld.elf_so'
  9027. fi
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=yes
  9030. hardcode_into_libs=yes
  9031. ;;
  9032. newsos6)
  9033. version_type=linux # correct to gnu/linux during the next big refactor
  9034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. shlibpath_overrides_runpath=yes
  9037. ;;
  9038. *nto* | *qnx*)
  9039. version_type=qnx
  9040. need_lib_prefix=no
  9041. need_version=no
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. soname_spec='${libname}${release}${shared_ext}$major'
  9044. shlibpath_var=LD_LIBRARY_PATH
  9045. shlibpath_overrides_runpath=no
  9046. hardcode_into_libs=yes
  9047. dynamic_linker='ldqnx.so'
  9048. ;;
  9049. openbsd*)
  9050. version_type=sunos
  9051. sys_lib_dlsearch_path_spec="/usr/lib"
  9052. need_lib_prefix=no
  9053. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9054. case $host_os in
  9055. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9056. *) need_version=no ;;
  9057. esac
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9059. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9060. shlibpath_var=LD_LIBRARY_PATH
  9061. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9062. case $host_os in
  9063. openbsd2.[89] | openbsd2.[89].*)
  9064. shlibpath_overrides_runpath=no
  9065. ;;
  9066. *)
  9067. shlibpath_overrides_runpath=yes
  9068. ;;
  9069. esac
  9070. else
  9071. shlibpath_overrides_runpath=yes
  9072. fi
  9073. ;;
  9074. os2*)
  9075. libname_spec='$name'
  9076. shrext_cmds=".dll"
  9077. need_lib_prefix=no
  9078. library_names_spec='$libname${shared_ext} $libname.a'
  9079. dynamic_linker='OS/2 ld.exe'
  9080. shlibpath_var=LIBPATH
  9081. ;;
  9082. osf3* | osf4* | osf5*)
  9083. version_type=osf
  9084. need_lib_prefix=no
  9085. need_version=no
  9086. soname_spec='${libname}${release}${shared_ext}$major'
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9088. shlibpath_var=LD_LIBRARY_PATH
  9089. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9090. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9091. ;;
  9092. rdos*)
  9093. dynamic_linker=no
  9094. ;;
  9095. solaris*)
  9096. version_type=linux # correct to gnu/linux during the next big refactor
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9100. soname_spec='${libname}${release}${shared_ext}$major'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. shlibpath_overrides_runpath=yes
  9103. hardcode_into_libs=yes
  9104. # ldd complains unless libraries are executable
  9105. postinstall_cmds='chmod +x $lib'
  9106. ;;
  9107. sunos4*)
  9108. version_type=sunos
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9110. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9111. shlibpath_var=LD_LIBRARY_PATH
  9112. shlibpath_overrides_runpath=yes
  9113. if test "$with_gnu_ld" = yes; then
  9114. need_lib_prefix=no
  9115. fi
  9116. need_version=yes
  9117. ;;
  9118. sysv4 | sysv4.3*)
  9119. version_type=linux # correct to gnu/linux during the next big refactor
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. shlibpath_var=LD_LIBRARY_PATH
  9123. case $host_vendor in
  9124. sni)
  9125. shlibpath_overrides_runpath=no
  9126. need_lib_prefix=no
  9127. runpath_var=LD_RUN_PATH
  9128. ;;
  9129. siemens)
  9130. need_lib_prefix=no
  9131. ;;
  9132. motorola)
  9133. need_lib_prefix=no
  9134. need_version=no
  9135. shlibpath_overrides_runpath=no
  9136. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9137. ;;
  9138. esac
  9139. ;;
  9140. sysv4*MP*)
  9141. if test -d /usr/nec ;then
  9142. version_type=linux # correct to gnu/linux during the next big refactor
  9143. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9144. soname_spec='$libname${shared_ext}.$major'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. fi
  9147. ;;
  9148. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9149. version_type=freebsd-elf
  9150. need_lib_prefix=no
  9151. need_version=no
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9153. soname_spec='${libname}${release}${shared_ext}$major'
  9154. shlibpath_var=LD_LIBRARY_PATH
  9155. shlibpath_overrides_runpath=yes
  9156. hardcode_into_libs=yes
  9157. if test "$with_gnu_ld" = yes; then
  9158. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9159. else
  9160. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9161. case $host_os in
  9162. sco3.2v5*)
  9163. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9164. ;;
  9165. esac
  9166. fi
  9167. sys_lib_dlsearch_path_spec='/usr/lib'
  9168. ;;
  9169. tpf*)
  9170. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9171. version_type=linux # correct to gnu/linux during the next big refactor
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9175. shlibpath_var=LD_LIBRARY_PATH
  9176. shlibpath_overrides_runpath=no
  9177. hardcode_into_libs=yes
  9178. ;;
  9179. uts4*)
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. ;;
  9185. *)
  9186. dynamic_linker=no
  9187. ;;
  9188. esac
  9189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9190. $as_echo "$dynamic_linker" >&6; }
  9191. test "$dynamic_linker" = no && can_build_shared=no
  9192. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9193. if test "$GCC" = yes; then
  9194. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9195. fi
  9196. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9197. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9198. fi
  9199. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9200. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9201. fi
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9203. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9204. hardcode_action=
  9205. if test -n "$hardcode_libdir_flag_spec" ||
  9206. test -n "$runpath_var" ||
  9207. test "X$hardcode_automatic" = "Xyes" ; then
  9208. # We can hardcode non-existent directories.
  9209. if test "$hardcode_direct" != no &&
  9210. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9211. # have to relink, otherwise we might link with an installed library
  9212. # when we should be linking with a yet-to-be-installed one
  9213. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9214. test "$hardcode_minus_L" != no; then
  9215. # Linking always hardcodes the temporary library directory.
  9216. hardcode_action=relink
  9217. else
  9218. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9219. hardcode_action=immediate
  9220. fi
  9221. else
  9222. # We cannot hardcode anything, or else we can only hardcode existing
  9223. # directories.
  9224. hardcode_action=unsupported
  9225. fi
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9227. $as_echo "$hardcode_action" >&6; }
  9228. if test "$hardcode_action" = relink ||
  9229. test "$inherit_rpath" = yes; then
  9230. # Fast installation is not supported
  9231. enable_fast_install=no
  9232. elif test "$shlibpath_overrides_runpath" = yes ||
  9233. test "$enable_shared" = no; then
  9234. # Fast installation is not necessary
  9235. enable_fast_install=needless
  9236. fi
  9237. if test "x$enable_dlopen" != xyes; then
  9238. enable_dlopen=unknown
  9239. enable_dlopen_self=unknown
  9240. enable_dlopen_self_static=unknown
  9241. else
  9242. lt_cv_dlopen=no
  9243. lt_cv_dlopen_libs=
  9244. case $host_os in
  9245. beos*)
  9246. lt_cv_dlopen="load_add_on"
  9247. lt_cv_dlopen_libs=
  9248. lt_cv_dlopen_self=yes
  9249. ;;
  9250. mingw* | pw32* | cegcc*)
  9251. lt_cv_dlopen="LoadLibrary"
  9252. lt_cv_dlopen_libs=
  9253. ;;
  9254. cygwin*)
  9255. lt_cv_dlopen="dlopen"
  9256. lt_cv_dlopen_libs=
  9257. ;;
  9258. darwin*)
  9259. # if libdl is installed we need to link against it
  9260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9261. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9262. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9263. $as_echo_n "(cached) " >&6
  9264. else
  9265. ac_check_lib_save_LIBS=$LIBS
  9266. LIBS="-ldl $LIBS"
  9267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9268. /* end confdefs.h. */
  9269. /* Override any GCC internal prototype to avoid an error.
  9270. Use char because int might match the return type of a GCC
  9271. builtin and then its argument prototype would still apply. */
  9272. #ifdef __cplusplus
  9273. extern "C"
  9274. #endif
  9275. char dlopen ();
  9276. int
  9277. main ()
  9278. {
  9279. return dlopen ();
  9280. ;
  9281. return 0;
  9282. }
  9283. _ACEOF
  9284. if ac_fn_c_try_link "$LINENO"; then :
  9285. ac_cv_lib_dl_dlopen=yes
  9286. else
  9287. ac_cv_lib_dl_dlopen=no
  9288. fi
  9289. rm -f core conftest.err conftest.$ac_objext \
  9290. conftest$ac_exeext conftest.$ac_ext
  9291. LIBS=$ac_check_lib_save_LIBS
  9292. fi
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9294. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9295. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9296. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9297. else
  9298. lt_cv_dlopen="dyld"
  9299. lt_cv_dlopen_libs=
  9300. lt_cv_dlopen_self=yes
  9301. fi
  9302. ;;
  9303. *)
  9304. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9305. if test "x$ac_cv_func_shl_load" = xyes; then :
  9306. lt_cv_dlopen="shl_load"
  9307. else
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9309. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9310. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9311. $as_echo_n "(cached) " >&6
  9312. else
  9313. ac_check_lib_save_LIBS=$LIBS
  9314. LIBS="-ldld $LIBS"
  9315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9316. /* end confdefs.h. */
  9317. /* Override any GCC internal prototype to avoid an error.
  9318. Use char because int might match the return type of a GCC
  9319. builtin and then its argument prototype would still apply. */
  9320. #ifdef __cplusplus
  9321. extern "C"
  9322. #endif
  9323. char shl_load ();
  9324. int
  9325. main ()
  9326. {
  9327. return shl_load ();
  9328. ;
  9329. return 0;
  9330. }
  9331. _ACEOF
  9332. if ac_fn_c_try_link "$LINENO"; then :
  9333. ac_cv_lib_dld_shl_load=yes
  9334. else
  9335. ac_cv_lib_dld_shl_load=no
  9336. fi
  9337. rm -f core conftest.err conftest.$ac_objext \
  9338. conftest$ac_exeext conftest.$ac_ext
  9339. LIBS=$ac_check_lib_save_LIBS
  9340. fi
  9341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9342. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9343. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9344. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9345. else
  9346. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9347. if test "x$ac_cv_func_dlopen" = xyes; then :
  9348. lt_cv_dlopen="dlopen"
  9349. else
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9351. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9352. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9353. $as_echo_n "(cached) " >&6
  9354. else
  9355. ac_check_lib_save_LIBS=$LIBS
  9356. LIBS="-ldl $LIBS"
  9357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9358. /* end confdefs.h. */
  9359. /* Override any GCC internal prototype to avoid an error.
  9360. Use char because int might match the return type of a GCC
  9361. builtin and then its argument prototype would still apply. */
  9362. #ifdef __cplusplus
  9363. extern "C"
  9364. #endif
  9365. char dlopen ();
  9366. int
  9367. main ()
  9368. {
  9369. return dlopen ();
  9370. ;
  9371. return 0;
  9372. }
  9373. _ACEOF
  9374. if ac_fn_c_try_link "$LINENO"; then :
  9375. ac_cv_lib_dl_dlopen=yes
  9376. else
  9377. ac_cv_lib_dl_dlopen=no
  9378. fi
  9379. rm -f core conftest.err conftest.$ac_objext \
  9380. conftest$ac_exeext conftest.$ac_ext
  9381. LIBS=$ac_check_lib_save_LIBS
  9382. fi
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9384. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9385. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9386. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9387. else
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9389. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9390. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_check_lib_save_LIBS=$LIBS
  9394. LIBS="-lsvld $LIBS"
  9395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h. */
  9397. /* Override any GCC internal prototype to avoid an error.
  9398. Use char because int might match the return type of a GCC
  9399. builtin and then its argument prototype would still apply. */
  9400. #ifdef __cplusplus
  9401. extern "C"
  9402. #endif
  9403. char dlopen ();
  9404. int
  9405. main ()
  9406. {
  9407. return dlopen ();
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. if ac_fn_c_try_link "$LINENO"; then :
  9413. ac_cv_lib_svld_dlopen=yes
  9414. else
  9415. ac_cv_lib_svld_dlopen=no
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext \
  9418. conftest$ac_exeext conftest.$ac_ext
  9419. LIBS=$ac_check_lib_save_LIBS
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9422. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9423. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9424. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9425. else
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9427. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9428. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. ac_check_lib_save_LIBS=$LIBS
  9432. LIBS="-ldld $LIBS"
  9433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9434. /* end confdefs.h. */
  9435. /* Override any GCC internal prototype to avoid an error.
  9436. Use char because int might match the return type of a GCC
  9437. builtin and then its argument prototype would still apply. */
  9438. #ifdef __cplusplus
  9439. extern "C"
  9440. #endif
  9441. char dld_link ();
  9442. int
  9443. main ()
  9444. {
  9445. return dld_link ();
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. if ac_fn_c_try_link "$LINENO"; then :
  9451. ac_cv_lib_dld_dld_link=yes
  9452. else
  9453. ac_cv_lib_dld_dld_link=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext \
  9456. conftest$ac_exeext conftest.$ac_ext
  9457. LIBS=$ac_check_lib_save_LIBS
  9458. fi
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9460. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9461. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9462. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9463. fi
  9464. fi
  9465. fi
  9466. fi
  9467. fi
  9468. fi
  9469. ;;
  9470. esac
  9471. if test "x$lt_cv_dlopen" != xno; then
  9472. enable_dlopen=yes
  9473. else
  9474. enable_dlopen=no
  9475. fi
  9476. case $lt_cv_dlopen in
  9477. dlopen)
  9478. save_CPPFLAGS="$CPPFLAGS"
  9479. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9480. save_LDFLAGS="$LDFLAGS"
  9481. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9482. save_LIBS="$LIBS"
  9483. LIBS="$lt_cv_dlopen_libs $LIBS"
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9485. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9486. if ${lt_cv_dlopen_self+:} false; then :
  9487. $as_echo_n "(cached) " >&6
  9488. else
  9489. if test "$cross_compiling" = yes; then :
  9490. lt_cv_dlopen_self=cross
  9491. else
  9492. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9493. lt_status=$lt_dlunknown
  9494. cat > conftest.$ac_ext <<_LT_EOF
  9495. #line $LINENO "configure"
  9496. #include "confdefs.h"
  9497. #if HAVE_DLFCN_H
  9498. #include <dlfcn.h>
  9499. #endif
  9500. #include <stdio.h>
  9501. #ifdef RTLD_GLOBAL
  9502. # define LT_DLGLOBAL RTLD_GLOBAL
  9503. #else
  9504. # ifdef DL_GLOBAL
  9505. # define LT_DLGLOBAL DL_GLOBAL
  9506. # else
  9507. # define LT_DLGLOBAL 0
  9508. # endif
  9509. #endif
  9510. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9511. find out it does not work in some platform. */
  9512. #ifndef LT_DLLAZY_OR_NOW
  9513. # ifdef RTLD_LAZY
  9514. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9515. # else
  9516. # ifdef DL_LAZY
  9517. # define LT_DLLAZY_OR_NOW DL_LAZY
  9518. # else
  9519. # ifdef RTLD_NOW
  9520. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9521. # else
  9522. # ifdef DL_NOW
  9523. # define LT_DLLAZY_OR_NOW DL_NOW
  9524. # else
  9525. # define LT_DLLAZY_OR_NOW 0
  9526. # endif
  9527. # endif
  9528. # endif
  9529. # endif
  9530. #endif
  9531. /* When -fvisbility=hidden is used, assume the code has been annotated
  9532. correspondingly for the symbols needed. */
  9533. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9534. int fnord () __attribute__((visibility("default")));
  9535. #endif
  9536. int fnord () { return 42; }
  9537. int main ()
  9538. {
  9539. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9540. int status = $lt_dlunknown;
  9541. if (self)
  9542. {
  9543. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9544. else
  9545. {
  9546. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9547. else puts (dlerror ());
  9548. }
  9549. /* dlclose (self); */
  9550. }
  9551. else
  9552. puts (dlerror ());
  9553. return status;
  9554. }
  9555. _LT_EOF
  9556. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9557. (eval $ac_link) 2>&5
  9558. ac_status=$?
  9559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9560. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9561. (./conftest; exit; ) >&5 2>/dev/null
  9562. lt_status=$?
  9563. case x$lt_status in
  9564. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9565. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9566. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9567. esac
  9568. else :
  9569. # compilation failed
  9570. lt_cv_dlopen_self=no
  9571. fi
  9572. fi
  9573. rm -fr conftest*
  9574. fi
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9576. $as_echo "$lt_cv_dlopen_self" >&6; }
  9577. if test "x$lt_cv_dlopen_self" = xyes; then
  9578. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9580. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9581. if ${lt_cv_dlopen_self_static+:} false; then :
  9582. $as_echo_n "(cached) " >&6
  9583. else
  9584. if test "$cross_compiling" = yes; then :
  9585. lt_cv_dlopen_self_static=cross
  9586. else
  9587. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9588. lt_status=$lt_dlunknown
  9589. cat > conftest.$ac_ext <<_LT_EOF
  9590. #line $LINENO "configure"
  9591. #include "confdefs.h"
  9592. #if HAVE_DLFCN_H
  9593. #include <dlfcn.h>
  9594. #endif
  9595. #include <stdio.h>
  9596. #ifdef RTLD_GLOBAL
  9597. # define LT_DLGLOBAL RTLD_GLOBAL
  9598. #else
  9599. # ifdef DL_GLOBAL
  9600. # define LT_DLGLOBAL DL_GLOBAL
  9601. # else
  9602. # define LT_DLGLOBAL 0
  9603. # endif
  9604. #endif
  9605. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9606. find out it does not work in some platform. */
  9607. #ifndef LT_DLLAZY_OR_NOW
  9608. # ifdef RTLD_LAZY
  9609. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9610. # else
  9611. # ifdef DL_LAZY
  9612. # define LT_DLLAZY_OR_NOW DL_LAZY
  9613. # else
  9614. # ifdef RTLD_NOW
  9615. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9616. # else
  9617. # ifdef DL_NOW
  9618. # define LT_DLLAZY_OR_NOW DL_NOW
  9619. # else
  9620. # define LT_DLLAZY_OR_NOW 0
  9621. # endif
  9622. # endif
  9623. # endif
  9624. # endif
  9625. #endif
  9626. /* When -fvisbility=hidden is used, assume the code has been annotated
  9627. correspondingly for the symbols needed. */
  9628. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9629. int fnord () __attribute__((visibility("default")));
  9630. #endif
  9631. int fnord () { return 42; }
  9632. int main ()
  9633. {
  9634. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9635. int status = $lt_dlunknown;
  9636. if (self)
  9637. {
  9638. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9639. else
  9640. {
  9641. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9642. else puts (dlerror ());
  9643. }
  9644. /* dlclose (self); */
  9645. }
  9646. else
  9647. puts (dlerror ());
  9648. return status;
  9649. }
  9650. _LT_EOF
  9651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9652. (eval $ac_link) 2>&5
  9653. ac_status=$?
  9654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9655. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9656. (./conftest; exit; ) >&5 2>/dev/null
  9657. lt_status=$?
  9658. case x$lt_status in
  9659. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9660. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9661. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9662. esac
  9663. else :
  9664. # compilation failed
  9665. lt_cv_dlopen_self_static=no
  9666. fi
  9667. fi
  9668. rm -fr conftest*
  9669. fi
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9671. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9672. fi
  9673. CPPFLAGS="$save_CPPFLAGS"
  9674. LDFLAGS="$save_LDFLAGS"
  9675. LIBS="$save_LIBS"
  9676. ;;
  9677. esac
  9678. case $lt_cv_dlopen_self in
  9679. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9680. *) enable_dlopen_self=unknown ;;
  9681. esac
  9682. case $lt_cv_dlopen_self_static in
  9683. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9684. *) enable_dlopen_self_static=unknown ;;
  9685. esac
  9686. fi
  9687. striplib=
  9688. old_striplib=
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9690. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9691. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9692. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9693. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9695. $as_echo "yes" >&6; }
  9696. else
  9697. # FIXME - insert some real tests, host_os isn't really good enough
  9698. case $host_os in
  9699. darwin*)
  9700. if test -n "$STRIP" ; then
  9701. striplib="$STRIP -x"
  9702. old_striplib="$STRIP -S"
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9704. $as_echo "yes" >&6; }
  9705. else
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9707. $as_echo "no" >&6; }
  9708. fi
  9709. ;;
  9710. *)
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9712. $as_echo "no" >&6; }
  9713. ;;
  9714. esac
  9715. fi
  9716. # Report which library types will actually be built
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9718. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9720. $as_echo "$can_build_shared" >&6; }
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9722. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9723. test "$can_build_shared" = "no" && enable_shared=no
  9724. # On AIX, shared libraries and static libraries use the same namespace, and
  9725. # are all built from PIC.
  9726. case $host_os in
  9727. aix3*)
  9728. test "$enable_shared" = yes && enable_static=no
  9729. if test -n "$RANLIB"; then
  9730. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9731. postinstall_cmds='$RANLIB $lib'
  9732. fi
  9733. ;;
  9734. aix[4-9]*)
  9735. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9736. test "$enable_shared" = yes && enable_static=no
  9737. fi
  9738. ;;
  9739. esac
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9741. $as_echo "$enable_shared" >&6; }
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9743. $as_echo_n "checking whether to build static libraries... " >&6; }
  9744. # Make sure either enable_shared or enable_static is yes.
  9745. test "$enable_shared" = yes || enable_static=yes
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9747. $as_echo "$enable_static" >&6; }
  9748. fi
  9749. ac_ext=c
  9750. ac_cpp='$CPP $CPPFLAGS'
  9751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9754. CC="$lt_save_CC"
  9755. ac_config_commands="$ac_config_commands libtool"
  9756. # Only expand once:
  9757. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9758. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9759. LT_REVISION=$SDL_INTERFACE_AGE
  9760. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9761. ac_ext=c
  9762. ac_cpp='$CPP $CPPFLAGS'
  9763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9766. if test -n "$ac_tool_prefix"; then
  9767. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9768. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9770. $as_echo_n "checking for $ac_word... " >&6; }
  9771. if ${ac_cv_prog_CC+:} false; then :
  9772. $as_echo_n "(cached) " >&6
  9773. else
  9774. if test -n "$CC"; then
  9775. ac_cv_prog_CC="$CC" # Let the user override the test.
  9776. else
  9777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9778. for as_dir in $PATH
  9779. do
  9780. IFS=$as_save_IFS
  9781. test -z "$as_dir" && as_dir=.
  9782. for ac_exec_ext in '' $ac_executable_extensions; do
  9783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9784. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9786. break 2
  9787. fi
  9788. done
  9789. done
  9790. IFS=$as_save_IFS
  9791. fi
  9792. fi
  9793. CC=$ac_cv_prog_CC
  9794. if test -n "$CC"; then
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9796. $as_echo "$CC" >&6; }
  9797. else
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9799. $as_echo "no" >&6; }
  9800. fi
  9801. fi
  9802. if test -z "$ac_cv_prog_CC"; then
  9803. ac_ct_CC=$CC
  9804. # Extract the first word of "gcc", so it can be a program name with args.
  9805. set dummy gcc; ac_word=$2
  9806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9807. $as_echo_n "checking for $ac_word... " >&6; }
  9808. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9809. $as_echo_n "(cached) " >&6
  9810. else
  9811. if test -n "$ac_ct_CC"; then
  9812. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9813. else
  9814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9815. for as_dir in $PATH
  9816. do
  9817. IFS=$as_save_IFS
  9818. test -z "$as_dir" && as_dir=.
  9819. for ac_exec_ext in '' $ac_executable_extensions; do
  9820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9821. ac_cv_prog_ac_ct_CC="gcc"
  9822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9823. break 2
  9824. fi
  9825. done
  9826. done
  9827. IFS=$as_save_IFS
  9828. fi
  9829. fi
  9830. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9831. if test -n "$ac_ct_CC"; then
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9833. $as_echo "$ac_ct_CC" >&6; }
  9834. else
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9836. $as_echo "no" >&6; }
  9837. fi
  9838. if test "x$ac_ct_CC" = x; then
  9839. CC=""
  9840. else
  9841. case $cross_compiling:$ac_tool_warned in
  9842. yes:)
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9845. ac_tool_warned=yes ;;
  9846. esac
  9847. CC=$ac_ct_CC
  9848. fi
  9849. else
  9850. CC="$ac_cv_prog_CC"
  9851. fi
  9852. if test -z "$CC"; then
  9853. if test -n "$ac_tool_prefix"; then
  9854. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9855. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9857. $as_echo_n "checking for $ac_word... " >&6; }
  9858. if ${ac_cv_prog_CC+:} false; then :
  9859. $as_echo_n "(cached) " >&6
  9860. else
  9861. if test -n "$CC"; then
  9862. ac_cv_prog_CC="$CC" # Let the user override the test.
  9863. else
  9864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9865. for as_dir in $PATH
  9866. do
  9867. IFS=$as_save_IFS
  9868. test -z "$as_dir" && as_dir=.
  9869. for ac_exec_ext in '' $ac_executable_extensions; do
  9870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9871. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9873. break 2
  9874. fi
  9875. done
  9876. done
  9877. IFS=$as_save_IFS
  9878. fi
  9879. fi
  9880. CC=$ac_cv_prog_CC
  9881. if test -n "$CC"; then
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9883. $as_echo "$CC" >&6; }
  9884. else
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9886. $as_echo "no" >&6; }
  9887. fi
  9888. fi
  9889. fi
  9890. if test -z "$CC"; then
  9891. # Extract the first word of "cc", so it can be a program name with args.
  9892. set dummy cc; ac_word=$2
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9894. $as_echo_n "checking for $ac_word... " >&6; }
  9895. if ${ac_cv_prog_CC+:} false; then :
  9896. $as_echo_n "(cached) " >&6
  9897. else
  9898. if test -n "$CC"; then
  9899. ac_cv_prog_CC="$CC" # Let the user override the test.
  9900. else
  9901. ac_prog_rejected=no
  9902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9903. for as_dir in $PATH
  9904. do
  9905. IFS=$as_save_IFS
  9906. test -z "$as_dir" && as_dir=.
  9907. for ac_exec_ext in '' $ac_executable_extensions; do
  9908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9909. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9910. ac_prog_rejected=yes
  9911. continue
  9912. fi
  9913. ac_cv_prog_CC="cc"
  9914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9915. break 2
  9916. fi
  9917. done
  9918. done
  9919. IFS=$as_save_IFS
  9920. if test $ac_prog_rejected = yes; then
  9921. # We found a bogon in the path, so make sure we never use it.
  9922. set dummy $ac_cv_prog_CC
  9923. shift
  9924. if test $# != 0; then
  9925. # We chose a different compiler from the bogus one.
  9926. # However, it has the same basename, so the bogon will be chosen
  9927. # first if we set CC to just the basename; use the full file name.
  9928. shift
  9929. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9930. fi
  9931. fi
  9932. fi
  9933. fi
  9934. CC=$ac_cv_prog_CC
  9935. if test -n "$CC"; then
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9937. $as_echo "$CC" >&6; }
  9938. else
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9940. $as_echo "no" >&6; }
  9941. fi
  9942. fi
  9943. if test -z "$CC"; then
  9944. if test -n "$ac_tool_prefix"; then
  9945. for ac_prog in cl.exe
  9946. do
  9947. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9948. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9950. $as_echo_n "checking for $ac_word... " >&6; }
  9951. if ${ac_cv_prog_CC+:} false; then :
  9952. $as_echo_n "(cached) " >&6
  9953. else
  9954. if test -n "$CC"; then
  9955. ac_cv_prog_CC="$CC" # Let the user override the test.
  9956. else
  9957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9958. for as_dir in $PATH
  9959. do
  9960. IFS=$as_save_IFS
  9961. test -z "$as_dir" && as_dir=.
  9962. for ac_exec_ext in '' $ac_executable_extensions; do
  9963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9964. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9966. break 2
  9967. fi
  9968. done
  9969. done
  9970. IFS=$as_save_IFS
  9971. fi
  9972. fi
  9973. CC=$ac_cv_prog_CC
  9974. if test -n "$CC"; then
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9976. $as_echo "$CC" >&6; }
  9977. else
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9979. $as_echo "no" >&6; }
  9980. fi
  9981. test -n "$CC" && break
  9982. done
  9983. fi
  9984. if test -z "$CC"; then
  9985. ac_ct_CC=$CC
  9986. for ac_prog in cl.exe
  9987. do
  9988. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9989. set dummy $ac_prog; ac_word=$2
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9991. $as_echo_n "checking for $ac_word... " >&6; }
  9992. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9993. $as_echo_n "(cached) " >&6
  9994. else
  9995. if test -n "$ac_ct_CC"; then
  9996. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9997. else
  9998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9999. for as_dir in $PATH
  10000. do
  10001. IFS=$as_save_IFS
  10002. test -z "$as_dir" && as_dir=.
  10003. for ac_exec_ext in '' $ac_executable_extensions; do
  10004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10005. ac_cv_prog_ac_ct_CC="$ac_prog"
  10006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10007. break 2
  10008. fi
  10009. done
  10010. done
  10011. IFS=$as_save_IFS
  10012. fi
  10013. fi
  10014. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10015. if test -n "$ac_ct_CC"; then
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10017. $as_echo "$ac_ct_CC" >&6; }
  10018. else
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10020. $as_echo "no" >&6; }
  10021. fi
  10022. test -n "$ac_ct_CC" && break
  10023. done
  10024. if test "x$ac_ct_CC" = x; then
  10025. CC=""
  10026. else
  10027. case $cross_compiling:$ac_tool_warned in
  10028. yes:)
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10031. ac_tool_warned=yes ;;
  10032. esac
  10033. CC=$ac_ct_CC
  10034. fi
  10035. fi
  10036. fi
  10037. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10039. as_fn_error $? "no acceptable C compiler found in \$PATH
  10040. See \`config.log' for more details" "$LINENO" 5; }
  10041. # Provide some information about the compiler.
  10042. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10043. set X $ac_compile
  10044. ac_compiler=$2
  10045. for ac_option in --version -v -V -qversion; do
  10046. { { ac_try="$ac_compiler $ac_option >&5"
  10047. case "(($ac_try" in
  10048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10049. *) ac_try_echo=$ac_try;;
  10050. esac
  10051. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10052. $as_echo "$ac_try_echo"; } >&5
  10053. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10054. ac_status=$?
  10055. if test -s conftest.err; then
  10056. sed '10a\
  10057. ... rest of stderr output deleted ...
  10058. 10q' conftest.err >conftest.er1
  10059. cat conftest.er1 >&5
  10060. fi
  10061. rm -f conftest.er1 conftest.err
  10062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10063. test $ac_status = 0; }
  10064. done
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10066. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10067. if ${ac_cv_c_compiler_gnu+:} false; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10071. /* end confdefs.h. */
  10072. int
  10073. main ()
  10074. {
  10075. #ifndef __GNUC__
  10076. choke me
  10077. #endif
  10078. ;
  10079. return 0;
  10080. }
  10081. _ACEOF
  10082. if ac_fn_c_try_compile "$LINENO"; then :
  10083. ac_compiler_gnu=yes
  10084. else
  10085. ac_compiler_gnu=no
  10086. fi
  10087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10088. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10089. fi
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10091. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10092. if test $ac_compiler_gnu = yes; then
  10093. GCC=yes
  10094. else
  10095. GCC=
  10096. fi
  10097. ac_test_CFLAGS=${CFLAGS+set}
  10098. ac_save_CFLAGS=$CFLAGS
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10100. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10101. if ${ac_cv_prog_cc_g+:} false; then :
  10102. $as_echo_n "(cached) " >&6
  10103. else
  10104. ac_save_c_werror_flag=$ac_c_werror_flag
  10105. ac_c_werror_flag=yes
  10106. ac_cv_prog_cc_g=no
  10107. CFLAGS="-g"
  10108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10109. /* end confdefs.h. */
  10110. int
  10111. main ()
  10112. {
  10113. ;
  10114. return 0;
  10115. }
  10116. _ACEOF
  10117. if ac_fn_c_try_compile "$LINENO"; then :
  10118. ac_cv_prog_cc_g=yes
  10119. else
  10120. CFLAGS=""
  10121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10122. /* end confdefs.h. */
  10123. int
  10124. main ()
  10125. {
  10126. ;
  10127. return 0;
  10128. }
  10129. _ACEOF
  10130. if ac_fn_c_try_compile "$LINENO"; then :
  10131. else
  10132. ac_c_werror_flag=$ac_save_c_werror_flag
  10133. CFLAGS="-g"
  10134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10135. /* end confdefs.h. */
  10136. int
  10137. main ()
  10138. {
  10139. ;
  10140. return 0;
  10141. }
  10142. _ACEOF
  10143. if ac_fn_c_try_compile "$LINENO"; then :
  10144. ac_cv_prog_cc_g=yes
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10147. fi
  10148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10149. fi
  10150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10151. ac_c_werror_flag=$ac_save_c_werror_flag
  10152. fi
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10154. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10155. if test "$ac_test_CFLAGS" = set; then
  10156. CFLAGS=$ac_save_CFLAGS
  10157. elif test $ac_cv_prog_cc_g = yes; then
  10158. if test "$GCC" = yes; then
  10159. CFLAGS="-g -O2"
  10160. else
  10161. CFLAGS="-g"
  10162. fi
  10163. else
  10164. if test "$GCC" = yes; then
  10165. CFLAGS="-O2"
  10166. else
  10167. CFLAGS=
  10168. fi
  10169. fi
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10171. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10172. if ${ac_cv_prog_cc_c89+:} false; then :
  10173. $as_echo_n "(cached) " >&6
  10174. else
  10175. ac_cv_prog_cc_c89=no
  10176. ac_save_CC=$CC
  10177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10178. /* end confdefs.h. */
  10179. #include <stdarg.h>
  10180. #include <stdio.h>
  10181. struct stat;
  10182. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10183. struct buf { int x; };
  10184. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10185. static char *e (p, i)
  10186. char **p;
  10187. int i;
  10188. {
  10189. return p[i];
  10190. }
  10191. static char *f (char * (*g) (char **, int), char **p, ...)
  10192. {
  10193. char *s;
  10194. va_list v;
  10195. va_start (v,p);
  10196. s = g (p, va_arg (v,int));
  10197. va_end (v);
  10198. return s;
  10199. }
  10200. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10201. function prototypes and stuff, but not '\xHH' hex character constants.
  10202. These don't provoke an error unfortunately, instead are silently treated
  10203. as 'x'. The following induces an error, until -std is added to get
  10204. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10205. array size at least. It's necessary to write '\x00'==0 to get something
  10206. that's true only with -std. */
  10207. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10208. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10209. inside strings and character constants. */
  10210. #define FOO(x) 'x'
  10211. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10212. int test (int i, double x);
  10213. struct s1 {int (*f) (int a);};
  10214. struct s2 {int (*f) (double a);};
  10215. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10216. int argc;
  10217. char **argv;
  10218. int
  10219. main ()
  10220. {
  10221. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10222. ;
  10223. return 0;
  10224. }
  10225. _ACEOF
  10226. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10227. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10228. do
  10229. CC="$ac_save_CC $ac_arg"
  10230. if ac_fn_c_try_compile "$LINENO"; then :
  10231. ac_cv_prog_cc_c89=$ac_arg
  10232. fi
  10233. rm -f core conftest.err conftest.$ac_objext
  10234. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10235. done
  10236. rm -f conftest.$ac_ext
  10237. CC=$ac_save_CC
  10238. fi
  10239. # AC_CACHE_VAL
  10240. case "x$ac_cv_prog_cc_c89" in
  10241. x)
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10243. $as_echo "none needed" >&6; } ;;
  10244. xno)
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10246. $as_echo "unsupported" >&6; } ;;
  10247. *)
  10248. CC="$CC $ac_cv_prog_cc_c89"
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10250. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10251. esac
  10252. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10253. fi
  10254. ac_ext=c
  10255. ac_cpp='$CPP $CPPFLAGS'
  10256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10259. ac_ext=cpp
  10260. ac_cpp='$CXXCPP $CPPFLAGS'
  10261. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10262. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10263. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10264. if test -z "$CXX"; then
  10265. if test -n "$CCC"; then
  10266. CXX=$CCC
  10267. else
  10268. if test -n "$ac_tool_prefix"; then
  10269. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10270. do
  10271. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10272. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10274. $as_echo_n "checking for $ac_word... " >&6; }
  10275. if ${ac_cv_prog_CXX+:} false; then :
  10276. $as_echo_n "(cached) " >&6
  10277. else
  10278. if test -n "$CXX"; then
  10279. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10280. else
  10281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10282. for as_dir in $PATH
  10283. do
  10284. IFS=$as_save_IFS
  10285. test -z "$as_dir" && as_dir=.
  10286. for ac_exec_ext in '' $ac_executable_extensions; do
  10287. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10288. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10290. break 2
  10291. fi
  10292. done
  10293. done
  10294. IFS=$as_save_IFS
  10295. fi
  10296. fi
  10297. CXX=$ac_cv_prog_CXX
  10298. if test -n "$CXX"; then
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10300. $as_echo "$CXX" >&6; }
  10301. else
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10303. $as_echo "no" >&6; }
  10304. fi
  10305. test -n "$CXX" && break
  10306. done
  10307. fi
  10308. if test -z "$CXX"; then
  10309. ac_ct_CXX=$CXX
  10310. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10311. do
  10312. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10313. set dummy $ac_prog; ac_word=$2
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10315. $as_echo_n "checking for $ac_word... " >&6; }
  10316. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10317. $as_echo_n "(cached) " >&6
  10318. else
  10319. if test -n "$ac_ct_CXX"; then
  10320. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10321. else
  10322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10323. for as_dir in $PATH
  10324. do
  10325. IFS=$as_save_IFS
  10326. test -z "$as_dir" && as_dir=.
  10327. for ac_exec_ext in '' $ac_executable_extensions; do
  10328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10329. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10331. break 2
  10332. fi
  10333. done
  10334. done
  10335. IFS=$as_save_IFS
  10336. fi
  10337. fi
  10338. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10339. if test -n "$ac_ct_CXX"; then
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10341. $as_echo "$ac_ct_CXX" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. test -n "$ac_ct_CXX" && break
  10347. done
  10348. if test "x$ac_ct_CXX" = x; then
  10349. CXX="g++"
  10350. else
  10351. case $cross_compiling:$ac_tool_warned in
  10352. yes:)
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10354. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10355. ac_tool_warned=yes ;;
  10356. esac
  10357. CXX=$ac_ct_CXX
  10358. fi
  10359. fi
  10360. fi
  10361. fi
  10362. # Provide some information about the compiler.
  10363. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10364. set X $ac_compile
  10365. ac_compiler=$2
  10366. for ac_option in --version -v -V -qversion; do
  10367. { { ac_try="$ac_compiler $ac_option >&5"
  10368. case "(($ac_try" in
  10369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10370. *) ac_try_echo=$ac_try;;
  10371. esac
  10372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10373. $as_echo "$ac_try_echo"; } >&5
  10374. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10375. ac_status=$?
  10376. if test -s conftest.err; then
  10377. sed '10a\
  10378. ... rest of stderr output deleted ...
  10379. 10q' conftest.err >conftest.er1
  10380. cat conftest.er1 >&5
  10381. fi
  10382. rm -f conftest.er1 conftest.err
  10383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10384. test $ac_status = 0; }
  10385. done
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10387. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10388. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10389. $as_echo_n "(cached) " >&6
  10390. else
  10391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10392. /* end confdefs.h. */
  10393. int
  10394. main ()
  10395. {
  10396. #ifndef __GNUC__
  10397. choke me
  10398. #endif
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. if ac_fn_cxx_try_compile "$LINENO"; then :
  10404. ac_compiler_gnu=yes
  10405. else
  10406. ac_compiler_gnu=no
  10407. fi
  10408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10409. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10410. fi
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10412. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10413. if test $ac_compiler_gnu = yes; then
  10414. GXX=yes
  10415. else
  10416. GXX=
  10417. fi
  10418. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10419. ac_save_CXXFLAGS=$CXXFLAGS
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10421. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10422. if ${ac_cv_prog_cxx_g+:} false; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10426. ac_cxx_werror_flag=yes
  10427. ac_cv_prog_cxx_g=no
  10428. CXXFLAGS="-g"
  10429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10430. /* end confdefs.h. */
  10431. int
  10432. main ()
  10433. {
  10434. ;
  10435. return 0;
  10436. }
  10437. _ACEOF
  10438. if ac_fn_cxx_try_compile "$LINENO"; then :
  10439. ac_cv_prog_cxx_g=yes
  10440. else
  10441. CXXFLAGS=""
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. int
  10445. main ()
  10446. {
  10447. ;
  10448. return 0;
  10449. }
  10450. _ACEOF
  10451. if ac_fn_cxx_try_compile "$LINENO"; then :
  10452. else
  10453. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10454. CXXFLAGS="-g"
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. int
  10458. main ()
  10459. {
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. if ac_fn_cxx_try_compile "$LINENO"; then :
  10465. ac_cv_prog_cxx_g=yes
  10466. fi
  10467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. fi
  10471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10472. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10473. fi
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10475. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10476. if test "$ac_test_CXXFLAGS" = set; then
  10477. CXXFLAGS=$ac_save_CXXFLAGS
  10478. elif test $ac_cv_prog_cxx_g = yes; then
  10479. if test "$GXX" = yes; then
  10480. CXXFLAGS="-g -O2"
  10481. else
  10482. CXXFLAGS="-g"
  10483. fi
  10484. else
  10485. if test "$GXX" = yes; then
  10486. CXXFLAGS="-O2"
  10487. else
  10488. CXXFLAGS=
  10489. fi
  10490. fi
  10491. ac_ext=c
  10492. ac_cpp='$CPP $CPPFLAGS'
  10493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10496. func_stripname_cnf ()
  10497. {
  10498. case ${2} in
  10499. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10500. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10501. esac
  10502. } # func_stripname_cnf
  10503. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10504. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10505. (test "X$CXX" != "Xg++"))) ; then
  10506. ac_ext=cpp
  10507. ac_cpp='$CXXCPP $CPPFLAGS'
  10508. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10509. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10510. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10512. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10513. if test -z "$CXXCPP"; then
  10514. if ${ac_cv_prog_CXXCPP+:} false; then :
  10515. $as_echo_n "(cached) " >&6
  10516. else
  10517. # Double quotes because CXXCPP needs to be expanded
  10518. for CXXCPP in "$CXX -E" "/lib/cpp"
  10519. do
  10520. ac_preproc_ok=false
  10521. for ac_cxx_preproc_warn_flag in '' yes
  10522. do
  10523. # Use a header file that comes with gcc, so configuring glibc
  10524. # with a fresh cross-compiler works.
  10525. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10526. # <limits.h> exists even on freestanding compilers.
  10527. # On the NeXT, cc -E runs the code through the compiler's parser,
  10528. # not just through cpp. "Syntax error" is here to catch this case.
  10529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10530. /* end confdefs.h. */
  10531. #ifdef __STDC__
  10532. # include <limits.h>
  10533. #else
  10534. # include <assert.h>
  10535. #endif
  10536. Syntax error
  10537. _ACEOF
  10538. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10539. else
  10540. # Broken: fails on valid input.
  10541. continue
  10542. fi
  10543. rm -f conftest.err conftest.i conftest.$ac_ext
  10544. # OK, works on sane cases. Now check whether nonexistent headers
  10545. # can be detected and how.
  10546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10547. /* end confdefs.h. */
  10548. #include <ac_nonexistent.h>
  10549. _ACEOF
  10550. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10551. # Broken: success on invalid input.
  10552. continue
  10553. else
  10554. # Passes both tests.
  10555. ac_preproc_ok=:
  10556. break
  10557. fi
  10558. rm -f conftest.err conftest.i conftest.$ac_ext
  10559. done
  10560. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10561. rm -f conftest.i conftest.err conftest.$ac_ext
  10562. if $ac_preproc_ok; then :
  10563. break
  10564. fi
  10565. done
  10566. ac_cv_prog_CXXCPP=$CXXCPP
  10567. fi
  10568. CXXCPP=$ac_cv_prog_CXXCPP
  10569. else
  10570. ac_cv_prog_CXXCPP=$CXXCPP
  10571. fi
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10573. $as_echo "$CXXCPP" >&6; }
  10574. ac_preproc_ok=false
  10575. for ac_cxx_preproc_warn_flag in '' yes
  10576. do
  10577. # Use a header file that comes with gcc, so configuring glibc
  10578. # with a fresh cross-compiler works.
  10579. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10580. # <limits.h> exists even on freestanding compilers.
  10581. # On the NeXT, cc -E runs the code through the compiler's parser,
  10582. # not just through cpp. "Syntax error" is here to catch this case.
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. #ifdef __STDC__
  10586. # include <limits.h>
  10587. #else
  10588. # include <assert.h>
  10589. #endif
  10590. Syntax error
  10591. _ACEOF
  10592. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10593. else
  10594. # Broken: fails on valid input.
  10595. continue
  10596. fi
  10597. rm -f conftest.err conftest.i conftest.$ac_ext
  10598. # OK, works on sane cases. Now check whether nonexistent headers
  10599. # can be detected and how.
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #include <ac_nonexistent.h>
  10603. _ACEOF
  10604. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10605. # Broken: success on invalid input.
  10606. continue
  10607. else
  10608. # Passes both tests.
  10609. ac_preproc_ok=:
  10610. break
  10611. fi
  10612. rm -f conftest.err conftest.i conftest.$ac_ext
  10613. done
  10614. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10615. rm -f conftest.i conftest.err conftest.$ac_ext
  10616. if $ac_preproc_ok; then :
  10617. else
  10618. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10619. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10620. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10621. See \`config.log' for more details" "$LINENO" 5; }
  10622. fi
  10623. ac_ext=c
  10624. ac_cpp='$CPP $CPPFLAGS'
  10625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10628. else
  10629. _lt_caught_CXX_error=yes
  10630. fi
  10631. ac_ext=cpp
  10632. ac_cpp='$CXXCPP $CPPFLAGS'
  10633. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10634. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10635. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10636. archive_cmds_need_lc_CXX=no
  10637. allow_undefined_flag_CXX=
  10638. always_export_symbols_CXX=no
  10639. archive_expsym_cmds_CXX=
  10640. compiler_needs_object_CXX=no
  10641. export_dynamic_flag_spec_CXX=
  10642. hardcode_direct_CXX=no
  10643. hardcode_direct_absolute_CXX=no
  10644. hardcode_libdir_flag_spec_CXX=
  10645. hardcode_libdir_separator_CXX=
  10646. hardcode_minus_L_CXX=no
  10647. hardcode_shlibpath_var_CXX=unsupported
  10648. hardcode_automatic_CXX=no
  10649. inherit_rpath_CXX=no
  10650. module_cmds_CXX=
  10651. module_expsym_cmds_CXX=
  10652. link_all_deplibs_CXX=unknown
  10653. old_archive_cmds_CXX=$old_archive_cmds
  10654. reload_flag_CXX=$reload_flag
  10655. reload_cmds_CXX=$reload_cmds
  10656. no_undefined_flag_CXX=
  10657. whole_archive_flag_spec_CXX=
  10658. enable_shared_with_static_runtimes_CXX=no
  10659. # Source file extension for C++ test sources.
  10660. ac_ext=cpp
  10661. # Object file extension for compiled C++ test sources.
  10662. objext=o
  10663. objext_CXX=$objext
  10664. # No sense in running all these tests if we already determined that
  10665. # the CXX compiler isn't working. Some variables (like enable_shared)
  10666. # are currently assumed to apply to all compilers on this platform,
  10667. # and will be corrupted by setting them based on a non-working compiler.
  10668. if test "$_lt_caught_CXX_error" != yes; then
  10669. # Code to be used in simple compile tests
  10670. lt_simple_compile_test_code="int some_variable = 0;"
  10671. # Code to be used in simple link tests
  10672. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10673. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10674. # If no C compiler was specified, use CC.
  10675. LTCC=${LTCC-"$CC"}
  10676. # If no C compiler flags were specified, use CFLAGS.
  10677. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10678. # Allow CC to be a program name with arguments.
  10679. compiler=$CC
  10680. # save warnings/boilerplate of simple test code
  10681. ac_outfile=conftest.$ac_objext
  10682. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10683. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10684. _lt_compiler_boilerplate=`cat conftest.err`
  10685. $RM conftest*
  10686. ac_outfile=conftest.$ac_objext
  10687. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10688. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10689. _lt_linker_boilerplate=`cat conftest.err`
  10690. $RM -r conftest*
  10691. # Allow CC to be a program name with arguments.
  10692. lt_save_CC=$CC
  10693. lt_save_CFLAGS=$CFLAGS
  10694. lt_save_LD=$LD
  10695. lt_save_GCC=$GCC
  10696. GCC=$GXX
  10697. lt_save_with_gnu_ld=$with_gnu_ld
  10698. lt_save_path_LD=$lt_cv_path_LD
  10699. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10700. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10701. else
  10702. $as_unset lt_cv_prog_gnu_ld
  10703. fi
  10704. if test -n "${lt_cv_path_LDCXX+set}"; then
  10705. lt_cv_path_LD=$lt_cv_path_LDCXX
  10706. else
  10707. $as_unset lt_cv_path_LD
  10708. fi
  10709. test -z "${LDCXX+set}" || LD=$LDCXX
  10710. CC=${CXX-"c++"}
  10711. CFLAGS=$CXXFLAGS
  10712. compiler=$CC
  10713. compiler_CXX=$CC
  10714. for cc_temp in $compiler""; do
  10715. case $cc_temp in
  10716. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10717. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10718. \-*) ;;
  10719. *) break;;
  10720. esac
  10721. done
  10722. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10723. if test -n "$compiler"; then
  10724. # We don't want -fno-exception when compiling C++ code, so set the
  10725. # no_builtin_flag separately
  10726. if test "$GXX" = yes; then
  10727. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10728. else
  10729. lt_prog_compiler_no_builtin_flag_CXX=
  10730. fi
  10731. if test "$GXX" = yes; then
  10732. # Set up default GNU C++ configuration
  10733. # Check whether --with-gnu-ld was given.
  10734. if test "${with_gnu_ld+set}" = set; then :
  10735. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10736. else
  10737. with_gnu_ld=no
  10738. fi
  10739. ac_prog=ld
  10740. if test "$GCC" = yes; then
  10741. # Check if gcc -print-prog-name=ld gives a path.
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10743. $as_echo_n "checking for ld used by $CC... " >&6; }
  10744. case $host in
  10745. *-*-mingw*)
  10746. # gcc leaves a trailing carriage return which upsets mingw
  10747. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10748. *)
  10749. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10750. esac
  10751. case $ac_prog in
  10752. # Accept absolute paths.
  10753. [\\/]* | ?:[\\/]*)
  10754. re_direlt='/[^/][^/]*/\.\./'
  10755. # Canonicalize the pathname of ld
  10756. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10757. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10758. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10759. done
  10760. test -z "$LD" && LD="$ac_prog"
  10761. ;;
  10762. "")
  10763. # If it fails, then pretend we aren't using GCC.
  10764. ac_prog=ld
  10765. ;;
  10766. *)
  10767. # If it is relative, then search for the first ld in PATH.
  10768. with_gnu_ld=unknown
  10769. ;;
  10770. esac
  10771. elif test "$with_gnu_ld" = yes; then
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10773. $as_echo_n "checking for GNU ld... " >&6; }
  10774. else
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10776. $as_echo_n "checking for non-GNU ld... " >&6; }
  10777. fi
  10778. if ${lt_cv_path_LD+:} false; then :
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. if test -z "$LD"; then
  10782. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10783. for ac_dir in $PATH; do
  10784. IFS="$lt_save_ifs"
  10785. test -z "$ac_dir" && ac_dir=.
  10786. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10787. lt_cv_path_LD="$ac_dir/$ac_prog"
  10788. # Check to see if the program is GNU ld. I'd rather use --version,
  10789. # but apparently some variants of GNU ld only accept -v.
  10790. # Break only if it was the GNU/non-GNU ld that we prefer.
  10791. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10792. *GNU* | *'with BFD'*)
  10793. test "$with_gnu_ld" != no && break
  10794. ;;
  10795. *)
  10796. test "$with_gnu_ld" != yes && break
  10797. ;;
  10798. esac
  10799. fi
  10800. done
  10801. IFS="$lt_save_ifs"
  10802. else
  10803. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10804. fi
  10805. fi
  10806. LD="$lt_cv_path_LD"
  10807. if test -n "$LD"; then
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10809. $as_echo "$LD" >&6; }
  10810. else
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10812. $as_echo "no" >&6; }
  10813. fi
  10814. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10816. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10817. if ${lt_cv_prog_gnu_ld+:} false; then :
  10818. $as_echo_n "(cached) " >&6
  10819. else
  10820. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10821. case `$LD -v 2>&1 </dev/null` in
  10822. *GNU* | *'with BFD'*)
  10823. lt_cv_prog_gnu_ld=yes
  10824. ;;
  10825. *)
  10826. lt_cv_prog_gnu_ld=no
  10827. ;;
  10828. esac
  10829. fi
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10831. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10832. with_gnu_ld=$lt_cv_prog_gnu_ld
  10833. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10834. # archiving commands below assume that GNU ld is being used.
  10835. if test "$with_gnu_ld" = yes; then
  10836. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10837. 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'
  10838. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10839. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10840. # If archive_cmds runs LD, not CC, wlarc should be empty
  10841. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10842. # investigate it a little bit more. (MM)
  10843. wlarc='${wl}'
  10844. # ancient GNU ld didn't support --whole-archive et. al.
  10845. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10846. $GREP 'no-whole-archive' > /dev/null; then
  10847. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10848. else
  10849. whole_archive_flag_spec_CXX=
  10850. fi
  10851. else
  10852. with_gnu_ld=no
  10853. wlarc=
  10854. # A generic and very simple default shared library creation
  10855. # command for GNU C++ for the case where it uses the native
  10856. # linker, instead of GNU ld. If possible, this setting should
  10857. # overridden to take advantage of the native linker features on
  10858. # the platform it is being used on.
  10859. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10860. fi
  10861. # Commands to make compiler produce verbose output that lists
  10862. # what "hidden" libraries, object files and flags are used when
  10863. # linking a shared library.
  10864. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10865. else
  10866. GXX=no
  10867. with_gnu_ld=no
  10868. wlarc=
  10869. fi
  10870. # PORTME: fill in a description of your system's C++ link characteristics
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10872. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10873. ld_shlibs_CXX=yes
  10874. case $host_os in
  10875. aix3*)
  10876. # FIXME: insert proper C++ library support
  10877. ld_shlibs_CXX=no
  10878. ;;
  10879. aix[4-9]*)
  10880. if test "$host_cpu" = ia64; then
  10881. # On IA64, the linker does run time linking by default, so we don't
  10882. # have to do anything special.
  10883. aix_use_runtimelinking=no
  10884. exp_sym_flag='-Bexport'
  10885. no_entry_flag=""
  10886. else
  10887. aix_use_runtimelinking=no
  10888. # Test if we are trying to use run time linking or normal
  10889. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10890. # need to do runtime linking.
  10891. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10892. for ld_flag in $LDFLAGS; do
  10893. case $ld_flag in
  10894. *-brtl*)
  10895. aix_use_runtimelinking=yes
  10896. break
  10897. ;;
  10898. esac
  10899. done
  10900. ;;
  10901. esac
  10902. exp_sym_flag='-bexport'
  10903. no_entry_flag='-bnoentry'
  10904. fi
  10905. # When large executables or shared objects are built, AIX ld can
  10906. # have problems creating the table of contents. If linking a library
  10907. # or program results in "error TOC overflow" add -mminimal-toc to
  10908. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10909. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10910. archive_cmds_CXX=''
  10911. hardcode_direct_CXX=yes
  10912. hardcode_direct_absolute_CXX=yes
  10913. hardcode_libdir_separator_CXX=':'
  10914. link_all_deplibs_CXX=yes
  10915. file_list_spec_CXX='${wl}-f,'
  10916. if test "$GXX" = yes; then
  10917. case $host_os in aix4.[012]|aix4.[012].*)
  10918. # We only want to do this on AIX 4.2 and lower, the check
  10919. # below for broken collect2 doesn't work under 4.3+
  10920. collect2name=`${CC} -print-prog-name=collect2`
  10921. if test -f "$collect2name" &&
  10922. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10923. then
  10924. # We have reworked collect2
  10925. :
  10926. else
  10927. # We have old collect2
  10928. hardcode_direct_CXX=unsupported
  10929. # It fails to find uninstalled libraries when the uninstalled
  10930. # path is not listed in the libpath. Setting hardcode_minus_L
  10931. # to unsupported forces relinking
  10932. hardcode_minus_L_CXX=yes
  10933. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10934. hardcode_libdir_separator_CXX=
  10935. fi
  10936. esac
  10937. shared_flag='-shared'
  10938. if test "$aix_use_runtimelinking" = yes; then
  10939. shared_flag="$shared_flag "'${wl}-G'
  10940. fi
  10941. else
  10942. # not using gcc
  10943. if test "$host_cpu" = ia64; then
  10944. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10945. # chokes on -Wl,-G. The following line is correct:
  10946. shared_flag='-G'
  10947. else
  10948. if test "$aix_use_runtimelinking" = yes; then
  10949. shared_flag='${wl}-G'
  10950. else
  10951. shared_flag='${wl}-bM:SRE'
  10952. fi
  10953. fi
  10954. fi
  10955. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10956. # It seems that -bexpall does not export symbols beginning with
  10957. # underscore (_), so it is better to generate a list of symbols to
  10958. # export.
  10959. always_export_symbols_CXX=yes
  10960. if test "$aix_use_runtimelinking" = yes; then
  10961. # Warning - without using the other runtime loading flags (-brtl),
  10962. # -berok will link without error, but may produce a broken library.
  10963. allow_undefined_flag_CXX='-berok'
  10964. # Determine the default libpath from the value encoded in an empty
  10965. # executable.
  10966. if test "${lt_cv_aix_libpath+set}" = set; then
  10967. aix_libpath=$lt_cv_aix_libpath
  10968. else
  10969. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10970. $as_echo_n "(cached) " >&6
  10971. else
  10972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10973. /* end confdefs.h. */
  10974. int
  10975. main ()
  10976. {
  10977. ;
  10978. return 0;
  10979. }
  10980. _ACEOF
  10981. if ac_fn_cxx_try_link "$LINENO"; then :
  10982. lt_aix_libpath_sed='
  10983. /Import File Strings/,/^$/ {
  10984. /^0/ {
  10985. s/^0 *\([^ ]*\) *$/\1/
  10986. p
  10987. }
  10988. }'
  10989. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10990. # Check for a 64-bit object if we didn't find anything.
  10991. if test -z "$lt_cv_aix_libpath__CXX"; then
  10992. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10993. fi
  10994. fi
  10995. rm -f core conftest.err conftest.$ac_objext \
  10996. conftest$ac_exeext conftest.$ac_ext
  10997. if test -z "$lt_cv_aix_libpath__CXX"; then
  10998. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10999. fi
  11000. fi
  11001. aix_libpath=$lt_cv_aix_libpath__CXX
  11002. fi
  11003. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11004. 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"
  11005. else
  11006. if test "$host_cpu" = ia64; then
  11007. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11008. allow_undefined_flag_CXX="-z nodefs"
  11009. 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"
  11010. else
  11011. # Determine the default libpath from the value encoded in an
  11012. # empty executable.
  11013. if test "${lt_cv_aix_libpath+set}" = set; then
  11014. aix_libpath=$lt_cv_aix_libpath
  11015. else
  11016. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11017. $as_echo_n "(cached) " >&6
  11018. else
  11019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11020. /* end confdefs.h. */
  11021. int
  11022. main ()
  11023. {
  11024. ;
  11025. return 0;
  11026. }
  11027. _ACEOF
  11028. if ac_fn_cxx_try_link "$LINENO"; then :
  11029. lt_aix_libpath_sed='
  11030. /Import File Strings/,/^$/ {
  11031. /^0/ {
  11032. s/^0 *\([^ ]*\) *$/\1/
  11033. p
  11034. }
  11035. }'
  11036. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11037. # Check for a 64-bit object if we didn't find anything.
  11038. if test -z "$lt_cv_aix_libpath__CXX"; then
  11039. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11040. fi
  11041. fi
  11042. rm -f core conftest.err conftest.$ac_objext \
  11043. conftest$ac_exeext conftest.$ac_ext
  11044. if test -z "$lt_cv_aix_libpath__CXX"; then
  11045. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11046. fi
  11047. fi
  11048. aix_libpath=$lt_cv_aix_libpath__CXX
  11049. fi
  11050. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11051. # Warning - without using the other run time loading flags,
  11052. # -berok will link without error, but may produce a broken library.
  11053. no_undefined_flag_CXX=' ${wl}-bernotok'
  11054. allow_undefined_flag_CXX=' ${wl}-berok'
  11055. if test "$with_gnu_ld" = yes; then
  11056. # We only use this code for GNU lds that support --whole-archive.
  11057. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11058. else
  11059. # Exported symbols can be pulled into shared objects from archives
  11060. whole_archive_flag_spec_CXX='$convenience'
  11061. fi
  11062. archive_cmds_need_lc_CXX=yes
  11063. # This is similar to how AIX traditionally builds its shared
  11064. # libraries.
  11065. 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'
  11066. fi
  11067. fi
  11068. ;;
  11069. beos*)
  11070. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11071. allow_undefined_flag_CXX=unsupported
  11072. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11073. # support --undefined. This deserves some investigation. FIXME
  11074. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11075. else
  11076. ld_shlibs_CXX=no
  11077. fi
  11078. ;;
  11079. chorus*)
  11080. case $cc_basename in
  11081. *)
  11082. # FIXME: insert proper C++ library support
  11083. ld_shlibs_CXX=no
  11084. ;;
  11085. esac
  11086. ;;
  11087. cygwin* | mingw* | pw32* | cegcc*)
  11088. case $GXX,$cc_basename in
  11089. ,cl* | no,cl*)
  11090. # Native MSVC
  11091. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11092. # no search path for DLLs.
  11093. hardcode_libdir_flag_spec_CXX=' '
  11094. allow_undefined_flag_CXX=unsupported
  11095. always_export_symbols_CXX=yes
  11096. file_list_spec_CXX='@'
  11097. # Tell ltmain to make .lib files, not .a files.
  11098. libext=lib
  11099. # Tell ltmain to make .dll files, not .so files.
  11100. shrext_cmds=".dll"
  11101. # FIXME: Setting linknames here is a bad hack.
  11102. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11103. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11104. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11105. else
  11106. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11107. fi~
  11108. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11109. linknames='
  11110. # The linker will not automatically build a static lib if we build a DLL.
  11111. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11112. enable_shared_with_static_runtimes_CXX=yes
  11113. # Don't use ranlib
  11114. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11115. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11116. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11117. case $lt_outputfile in
  11118. *.exe|*.EXE) ;;
  11119. *)
  11120. lt_outputfile="$lt_outputfile.exe"
  11121. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11122. ;;
  11123. esac~
  11124. func_to_tool_file "$lt_outputfile"~
  11125. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11126. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11127. $RM "$lt_outputfile.manifest";
  11128. fi'
  11129. ;;
  11130. *)
  11131. # g++
  11132. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11133. # as there is no search path for DLLs.
  11134. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11135. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11136. allow_undefined_flag_CXX=unsupported
  11137. always_export_symbols_CXX=no
  11138. enable_shared_with_static_runtimes_CXX=yes
  11139. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11140. 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'
  11141. # If the export-symbols file already is a .def file (1st line
  11142. # is EXPORTS), use it as is; otherwise, prepend...
  11143. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11144. cp $export_symbols $output_objdir/$soname.def;
  11145. else
  11146. echo EXPORTS > $output_objdir/$soname.def;
  11147. cat $export_symbols >> $output_objdir/$soname.def;
  11148. fi~
  11149. $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'
  11150. else
  11151. ld_shlibs_CXX=no
  11152. fi
  11153. ;;
  11154. esac
  11155. ;;
  11156. darwin* | rhapsody*)
  11157. archive_cmds_need_lc_CXX=no
  11158. hardcode_direct_CXX=no
  11159. hardcode_automatic_CXX=yes
  11160. hardcode_shlibpath_var_CXX=unsupported
  11161. if test "$lt_cv_ld_force_load" = "yes"; then
  11162. 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\"`'
  11163. else
  11164. whole_archive_flag_spec_CXX=''
  11165. fi
  11166. link_all_deplibs_CXX=yes
  11167. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11168. case $cc_basename in
  11169. ifort*) _lt_dar_can_shared=yes ;;
  11170. *) _lt_dar_can_shared=$GCC ;;
  11171. esac
  11172. if test "$_lt_dar_can_shared" = "yes"; then
  11173. output_verbose_link_cmd=func_echo_all
  11174. 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}"
  11175. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11176. 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}"
  11177. 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}"
  11178. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11179. 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}"
  11180. 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}"
  11181. fi
  11182. else
  11183. ld_shlibs_CXX=no
  11184. fi
  11185. ;;
  11186. dgux*)
  11187. case $cc_basename in
  11188. ec++*)
  11189. # FIXME: insert proper C++ library support
  11190. ld_shlibs_CXX=no
  11191. ;;
  11192. ghcx*)
  11193. # Green Hills C++ Compiler
  11194. # FIXME: insert proper C++ library support
  11195. ld_shlibs_CXX=no
  11196. ;;
  11197. *)
  11198. # FIXME: insert proper C++ library support
  11199. ld_shlibs_CXX=no
  11200. ;;
  11201. esac
  11202. ;;
  11203. freebsd2.*)
  11204. # C++ shared libraries reported to be fairly broken before
  11205. # switch to ELF
  11206. ld_shlibs_CXX=no
  11207. ;;
  11208. freebsd-elf*)
  11209. archive_cmds_need_lc_CXX=no
  11210. ;;
  11211. freebsd* | dragonfly*)
  11212. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11213. # conventions
  11214. ld_shlibs_CXX=yes
  11215. ;;
  11216. gnu*)
  11217. ;;
  11218. haiku*)
  11219. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11220. link_all_deplibs_CXX=yes
  11221. ;;
  11222. hpux9*)
  11223. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11224. hardcode_libdir_separator_CXX=:
  11225. export_dynamic_flag_spec_CXX='${wl}-E'
  11226. hardcode_direct_CXX=yes
  11227. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11228. # but as the default
  11229. # location of the library.
  11230. case $cc_basename in
  11231. CC*)
  11232. # FIXME: insert proper C++ library support
  11233. ld_shlibs_CXX=no
  11234. ;;
  11235. aCC*)
  11236. 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'
  11237. # Commands to make compiler produce verbose output that lists
  11238. # what "hidden" libraries, object files and flags are used when
  11239. # linking a shared library.
  11240. #
  11241. # There doesn't appear to be a way to prevent this compiler from
  11242. # explicitly linking system object files so we need to strip them
  11243. # from the output so that they don't get included in the library
  11244. # dependencies.
  11245. 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"'
  11246. ;;
  11247. *)
  11248. if test "$GXX" = yes; then
  11249. 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'
  11250. else
  11251. # FIXME: insert proper C++ library support
  11252. ld_shlibs_CXX=no
  11253. fi
  11254. ;;
  11255. esac
  11256. ;;
  11257. hpux10*|hpux11*)
  11258. if test $with_gnu_ld = no; then
  11259. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11260. hardcode_libdir_separator_CXX=:
  11261. case $host_cpu in
  11262. hppa*64*|ia64*)
  11263. ;;
  11264. *)
  11265. export_dynamic_flag_spec_CXX='${wl}-E'
  11266. ;;
  11267. esac
  11268. fi
  11269. case $host_cpu in
  11270. hppa*64*|ia64*)
  11271. hardcode_direct_CXX=no
  11272. hardcode_shlibpath_var_CXX=no
  11273. ;;
  11274. *)
  11275. hardcode_direct_CXX=yes
  11276. hardcode_direct_absolute_CXX=yes
  11277. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11278. # but as the default
  11279. # location of the library.
  11280. ;;
  11281. esac
  11282. case $cc_basename in
  11283. CC*)
  11284. # FIXME: insert proper C++ library support
  11285. ld_shlibs_CXX=no
  11286. ;;
  11287. aCC*)
  11288. case $host_cpu in
  11289. hppa*64*)
  11290. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11291. ;;
  11292. ia64*)
  11293. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11294. ;;
  11295. *)
  11296. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11297. ;;
  11298. esac
  11299. # Commands to make compiler produce verbose output that lists
  11300. # what "hidden" libraries, object files and flags are used when
  11301. # linking a shared library.
  11302. #
  11303. # There doesn't appear to be a way to prevent this compiler from
  11304. # explicitly linking system object files so we need to strip them
  11305. # from the output so that they don't get included in the library
  11306. # dependencies.
  11307. 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"'
  11308. ;;
  11309. *)
  11310. if test "$GXX" = yes; then
  11311. if test $with_gnu_ld = no; then
  11312. case $host_cpu in
  11313. hppa*64*)
  11314. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11315. ;;
  11316. ia64*)
  11317. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11318. ;;
  11319. *)
  11320. 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'
  11321. ;;
  11322. esac
  11323. fi
  11324. else
  11325. # FIXME: insert proper C++ library support
  11326. ld_shlibs_CXX=no
  11327. fi
  11328. ;;
  11329. esac
  11330. ;;
  11331. interix[3-9]*)
  11332. hardcode_direct_CXX=no
  11333. hardcode_shlibpath_var_CXX=no
  11334. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11335. export_dynamic_flag_spec_CXX='${wl}-E'
  11336. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11337. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11338. # default) and relocated if they conflict, which is a slow very memory
  11339. # consuming and fragmenting process. To avoid this, we pick a random,
  11340. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11341. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11342. 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'
  11343. 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'
  11344. ;;
  11345. irix5* | irix6*)
  11346. case $cc_basename in
  11347. CC*)
  11348. # SGI C++
  11349. 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'
  11350. # Archives containing C++ object files must be created using
  11351. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11352. # necessary to make sure instantiated templates are included
  11353. # in the archive.
  11354. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11355. ;;
  11356. *)
  11357. if test "$GXX" = yes; then
  11358. if test "$with_gnu_ld" = no; then
  11359. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11360. else
  11361. 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'
  11362. fi
  11363. fi
  11364. link_all_deplibs_CXX=yes
  11365. ;;
  11366. esac
  11367. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11368. hardcode_libdir_separator_CXX=:
  11369. inherit_rpath_CXX=yes
  11370. ;;
  11371. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11372. case $cc_basename in
  11373. KCC*)
  11374. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11375. # KCC will only create a shared library if the output file
  11376. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11377. # to its proper name (with version) after linking.
  11378. 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'
  11379. 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'
  11380. # Commands to make compiler produce verbose output that lists
  11381. # what "hidden" libraries, object files and flags are used when
  11382. # linking a shared library.
  11383. #
  11384. # There doesn't appear to be a way to prevent this compiler from
  11385. # explicitly linking system object files so we need to strip them
  11386. # from the output so that they don't get included in the library
  11387. # dependencies.
  11388. 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"'
  11389. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11390. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11391. # Archives containing C++ object files must be created using
  11392. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11393. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11394. ;;
  11395. icpc* | ecpc* )
  11396. # Intel C++
  11397. with_gnu_ld=yes
  11398. # version 8.0 and above of icpc choke on multiply defined symbols
  11399. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11400. # earlier do not add the objects themselves.
  11401. case `$CC -V 2>&1` in
  11402. *"Version 7."*)
  11403. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11404. 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'
  11405. ;;
  11406. *) # Version 8.0 or newer
  11407. tmp_idyn=
  11408. case $host_cpu in
  11409. ia64*) tmp_idyn=' -i_dynamic';;
  11410. esac
  11411. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11412. 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'
  11413. ;;
  11414. esac
  11415. archive_cmds_need_lc_CXX=no
  11416. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11417. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11418. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11419. ;;
  11420. pgCC* | pgcpp*)
  11421. # Portland Group C++ compiler
  11422. case `$CC -V` in
  11423. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11424. prelink_cmds_CXX='tpldir=Template.dir~
  11425. rm -rf $tpldir~
  11426. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11427. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11428. old_archive_cmds_CXX='tpldir=Template.dir~
  11429. rm -rf $tpldir~
  11430. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11431. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11432. $RANLIB $oldlib'
  11433. archive_cmds_CXX='tpldir=Template.dir~
  11434. rm -rf $tpldir~
  11435. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11436. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11437. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11438. rm -rf $tpldir~
  11439. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11440. $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'
  11441. ;;
  11442. *) # Version 6 and above use weak symbols
  11443. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11444. 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'
  11445. ;;
  11446. esac
  11447. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11448. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11449. 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'
  11450. ;;
  11451. cxx*)
  11452. # Compaq C++
  11453. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11454. 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'
  11455. runpath_var=LD_RUN_PATH
  11456. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11457. hardcode_libdir_separator_CXX=:
  11458. # Commands to make compiler produce verbose output that lists
  11459. # what "hidden" libraries, object files and flags are used when
  11460. # linking a shared library.
  11461. #
  11462. # There doesn't appear to be a way to prevent this compiler from
  11463. # explicitly linking system object files so we need to strip them
  11464. # from the output so that they don't get included in the library
  11465. # dependencies.
  11466. 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'
  11467. ;;
  11468. xl* | mpixl* | bgxl*)
  11469. # IBM XL 8.0 on PPC, with GNU ld
  11470. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11471. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11472. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11473. if test "x$supports_anon_versioning" = xyes; then
  11474. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11475. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11476. echo "local: *; };" >> $output_objdir/$libname.ver~
  11477. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11478. fi
  11479. ;;
  11480. *)
  11481. case `$CC -V 2>&1 | sed 5q` in
  11482. *Sun\ C*)
  11483. # Sun C++ 5.9
  11484. no_undefined_flag_CXX=' -zdefs'
  11485. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11486. 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'
  11487. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11488. 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'
  11489. compiler_needs_object_CXX=yes
  11490. # Not sure whether something based on
  11491. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11492. # would be better.
  11493. output_verbose_link_cmd='func_echo_all'
  11494. # Archives containing C++ object files must be created using
  11495. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11496. # necessary to make sure instantiated templates are included
  11497. # in the archive.
  11498. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11499. ;;
  11500. esac
  11501. ;;
  11502. esac
  11503. ;;
  11504. lynxos*)
  11505. # FIXME: insert proper C++ library support
  11506. ld_shlibs_CXX=no
  11507. ;;
  11508. m88k*)
  11509. # FIXME: insert proper C++ library support
  11510. ld_shlibs_CXX=no
  11511. ;;
  11512. mvs*)
  11513. case $cc_basename in
  11514. cxx*)
  11515. # FIXME: insert proper C++ library support
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. *)
  11519. # FIXME: insert proper C++ library support
  11520. ld_shlibs_CXX=no
  11521. ;;
  11522. esac
  11523. ;;
  11524. netbsd*)
  11525. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11526. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11527. wlarc=
  11528. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11529. hardcode_direct_CXX=yes
  11530. hardcode_shlibpath_var_CXX=no
  11531. fi
  11532. # Workaround some broken pre-1.5 toolchains
  11533. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11534. ;;
  11535. *nto* | *qnx*)
  11536. ld_shlibs_CXX=yes
  11537. ;;
  11538. openbsd2*)
  11539. # C++ shared libraries are fairly broken
  11540. ld_shlibs_CXX=no
  11541. ;;
  11542. openbsd*)
  11543. if test -f /usr/libexec/ld.so; then
  11544. hardcode_direct_CXX=yes
  11545. hardcode_shlibpath_var_CXX=no
  11546. hardcode_direct_absolute_CXX=yes
  11547. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11548. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11549. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11550. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11551. export_dynamic_flag_spec_CXX='${wl}-E'
  11552. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11553. fi
  11554. output_verbose_link_cmd=func_echo_all
  11555. else
  11556. ld_shlibs_CXX=no
  11557. fi
  11558. ;;
  11559. osf3* | osf4* | osf5*)
  11560. case $cc_basename in
  11561. KCC*)
  11562. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11563. # KCC will only create a shared library if the output file
  11564. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11565. # to its proper name (with version) after linking.
  11566. 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'
  11567. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11568. hardcode_libdir_separator_CXX=:
  11569. # Archives containing C++ object files must be created using
  11570. # the KAI C++ compiler.
  11571. case $host in
  11572. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11573. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11574. esac
  11575. ;;
  11576. RCC*)
  11577. # Rational C++ 2.4.1
  11578. # FIXME: insert proper C++ library support
  11579. ld_shlibs_CXX=no
  11580. ;;
  11581. cxx*)
  11582. case $host in
  11583. osf3*)
  11584. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11585. 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'
  11586. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11587. ;;
  11588. *)
  11589. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11590. 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'
  11591. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11592. echo "-hidden">> $lib.exp~
  11593. $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~
  11594. $RM $lib.exp'
  11595. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11596. ;;
  11597. esac
  11598. hardcode_libdir_separator_CXX=:
  11599. # Commands to make compiler produce verbose output that lists
  11600. # what "hidden" libraries, object files and flags are used when
  11601. # linking a shared library.
  11602. #
  11603. # There doesn't appear to be a way to prevent this compiler from
  11604. # explicitly linking system object files so we need to strip them
  11605. # from the output so that they don't get included in the library
  11606. # dependencies.
  11607. 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"'
  11608. ;;
  11609. *)
  11610. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11611. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11612. case $host in
  11613. osf3*)
  11614. 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'
  11615. ;;
  11616. *)
  11617. 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'
  11618. ;;
  11619. esac
  11620. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11621. hardcode_libdir_separator_CXX=:
  11622. # Commands to make compiler produce verbose output that lists
  11623. # what "hidden" libraries, object files and flags are used when
  11624. # linking a shared library.
  11625. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11626. else
  11627. # FIXME: insert proper C++ library support
  11628. ld_shlibs_CXX=no
  11629. fi
  11630. ;;
  11631. esac
  11632. ;;
  11633. psos*)
  11634. # FIXME: insert proper C++ library support
  11635. ld_shlibs_CXX=no
  11636. ;;
  11637. sunos4*)
  11638. case $cc_basename in
  11639. CC*)
  11640. # Sun C++ 4.x
  11641. # FIXME: insert proper C++ library support
  11642. ld_shlibs_CXX=no
  11643. ;;
  11644. lcc*)
  11645. # Lucid
  11646. # FIXME: insert proper C++ library support
  11647. ld_shlibs_CXX=no
  11648. ;;
  11649. *)
  11650. # FIXME: insert proper C++ library support
  11651. ld_shlibs_CXX=no
  11652. ;;
  11653. esac
  11654. ;;
  11655. solaris*)
  11656. case $cc_basename in
  11657. CC* | sunCC*)
  11658. # Sun C++ 4.2, 5.x and Centerline C++
  11659. archive_cmds_need_lc_CXX=yes
  11660. no_undefined_flag_CXX=' -zdefs'
  11661. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11662. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11663. $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'
  11664. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11665. hardcode_shlibpath_var_CXX=no
  11666. case $host_os in
  11667. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11668. *)
  11669. # The compiler driver will combine and reorder linker options,
  11670. # but understands `-z linker_flag'.
  11671. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11672. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11673. ;;
  11674. esac
  11675. link_all_deplibs_CXX=yes
  11676. output_verbose_link_cmd='func_echo_all'
  11677. # Archives containing C++ object files must be created using
  11678. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11679. # necessary to make sure instantiated templates are included
  11680. # in the archive.
  11681. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11682. ;;
  11683. gcx*)
  11684. # Green Hills C++ Compiler
  11685. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11686. # The C++ compiler must be used to create the archive.
  11687. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11688. ;;
  11689. *)
  11690. # GNU C++ compiler with Solaris linker
  11691. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11692. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11693. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11694. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11695. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11696. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11697. # Commands to make compiler produce verbose output that lists
  11698. # what "hidden" libraries, object files and flags are used when
  11699. # linking a shared library.
  11700. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11701. else
  11702. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11703. # platform.
  11704. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11705. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11706. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11707. # Commands to make compiler produce verbose output that lists
  11708. # what "hidden" libraries, object files and flags are used when
  11709. # linking a shared library.
  11710. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11711. fi
  11712. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11713. case $host_os in
  11714. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11715. *)
  11716. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11717. ;;
  11718. esac
  11719. fi
  11720. ;;
  11721. esac
  11722. ;;
  11723. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11724. no_undefined_flag_CXX='${wl}-z,text'
  11725. archive_cmds_need_lc_CXX=no
  11726. hardcode_shlibpath_var_CXX=no
  11727. runpath_var='LD_RUN_PATH'
  11728. case $cc_basename in
  11729. CC*)
  11730. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11731. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11732. ;;
  11733. *)
  11734. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11735. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11736. ;;
  11737. esac
  11738. ;;
  11739. sysv5* | sco3.2v5* | sco5v6*)
  11740. # Note: We can NOT use -z defs as we might desire, because we do not
  11741. # link with -lc, and that would cause any symbols used from libc to
  11742. # always be unresolved, which means just about no library would
  11743. # ever link correctly. If we're not using GNU ld we use -z text
  11744. # though, which does catch some bad symbols but isn't as heavy-handed
  11745. # as -z defs.
  11746. no_undefined_flag_CXX='${wl}-z,text'
  11747. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11748. archive_cmds_need_lc_CXX=no
  11749. hardcode_shlibpath_var_CXX=no
  11750. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11751. hardcode_libdir_separator_CXX=':'
  11752. link_all_deplibs_CXX=yes
  11753. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11754. runpath_var='LD_RUN_PATH'
  11755. case $cc_basename in
  11756. CC*)
  11757. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11758. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11759. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11760. '"$old_archive_cmds_CXX"
  11761. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11762. '"$reload_cmds_CXX"
  11763. ;;
  11764. *)
  11765. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11766. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11767. ;;
  11768. esac
  11769. ;;
  11770. tandem*)
  11771. case $cc_basename in
  11772. NCC*)
  11773. # NonStop-UX NCC 3.20
  11774. # FIXME: insert proper C++ library support
  11775. ld_shlibs_CXX=no
  11776. ;;
  11777. *)
  11778. # FIXME: insert proper C++ library support
  11779. ld_shlibs_CXX=no
  11780. ;;
  11781. esac
  11782. ;;
  11783. vxworks*)
  11784. # FIXME: insert proper C++ library support
  11785. ld_shlibs_CXX=no
  11786. ;;
  11787. *)
  11788. # FIXME: insert proper C++ library support
  11789. ld_shlibs_CXX=no
  11790. ;;
  11791. esac
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11793. $as_echo "$ld_shlibs_CXX" >&6; }
  11794. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11795. GCC_CXX="$GXX"
  11796. LD_CXX="$LD"
  11797. ## CAVEAT EMPTOR:
  11798. ## There is no encapsulation within the following macros, do not change
  11799. ## the running order or otherwise move them around unless you know exactly
  11800. ## what you are doing...
  11801. # Dependencies to place before and after the object being linked:
  11802. predep_objects_CXX=
  11803. postdep_objects_CXX=
  11804. predeps_CXX=
  11805. postdeps_CXX=
  11806. compiler_lib_search_path_CXX=
  11807. cat > conftest.$ac_ext <<_LT_EOF
  11808. class Foo
  11809. {
  11810. public:
  11811. Foo (void) { a = 0; }
  11812. private:
  11813. int a;
  11814. };
  11815. _LT_EOF
  11816. _lt_libdeps_save_CFLAGS=$CFLAGS
  11817. case "$CC $CFLAGS " in #(
  11818. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11819. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11820. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11821. esac
  11822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11823. (eval $ac_compile) 2>&5
  11824. ac_status=$?
  11825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11826. test $ac_status = 0; }; then
  11827. # Parse the compiler output and extract the necessary
  11828. # objects, libraries and library flags.
  11829. # Sentinel used to keep track of whether or not we are before
  11830. # the conftest object file.
  11831. pre_test_object_deps_done=no
  11832. for p in `eval "$output_verbose_link_cmd"`; do
  11833. case ${prev}${p} in
  11834. -L* | -R* | -l*)
  11835. # Some compilers place space between "-{L,R}" and the path.
  11836. # Remove the space.
  11837. if test $p = "-L" ||
  11838. test $p = "-R"; then
  11839. prev=$p
  11840. continue
  11841. fi
  11842. # Expand the sysroot to ease extracting the directories later.
  11843. if test -z "$prev"; then
  11844. case $p in
  11845. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11846. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11847. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11848. esac
  11849. fi
  11850. case $p in
  11851. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11852. esac
  11853. if test "$pre_test_object_deps_done" = no; then
  11854. case ${prev} in
  11855. -L | -R)
  11856. # Internal compiler library paths should come after those
  11857. # provided the user. The postdeps already come after the
  11858. # user supplied libs so there is no need to process them.
  11859. if test -z "$compiler_lib_search_path_CXX"; then
  11860. compiler_lib_search_path_CXX="${prev}${p}"
  11861. else
  11862. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11863. fi
  11864. ;;
  11865. # The "-l" case would never come before the object being
  11866. # linked, so don't bother handling this case.
  11867. esac
  11868. else
  11869. if test -z "$postdeps_CXX"; then
  11870. postdeps_CXX="${prev}${p}"
  11871. else
  11872. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11873. fi
  11874. fi
  11875. prev=
  11876. ;;
  11877. *.lto.$objext) ;; # Ignore GCC LTO objects
  11878. *.$objext)
  11879. # This assumes that the test object file only shows up
  11880. # once in the compiler output.
  11881. if test "$p" = "conftest.$objext"; then
  11882. pre_test_object_deps_done=yes
  11883. continue
  11884. fi
  11885. if test "$pre_test_object_deps_done" = no; then
  11886. if test -z "$predep_objects_CXX"; then
  11887. predep_objects_CXX="$p"
  11888. else
  11889. predep_objects_CXX="$predep_objects_CXX $p"
  11890. fi
  11891. else
  11892. if test -z "$postdep_objects_CXX"; then
  11893. postdep_objects_CXX="$p"
  11894. else
  11895. postdep_objects_CXX="$postdep_objects_CXX $p"
  11896. fi
  11897. fi
  11898. ;;
  11899. *) ;; # Ignore the rest.
  11900. esac
  11901. done
  11902. # Clean up.
  11903. rm -f a.out a.exe
  11904. else
  11905. echo "libtool.m4: error: problem compiling CXX test program"
  11906. fi
  11907. $RM -f confest.$objext
  11908. CFLAGS=$_lt_libdeps_save_CFLAGS
  11909. # PORTME: override above test on systems where it is broken
  11910. case $host_os in
  11911. interix[3-9]*)
  11912. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11913. # hack all around it, let's just trust "g++" to DTRT.
  11914. predep_objects_CXX=
  11915. postdep_objects_CXX=
  11916. postdeps_CXX=
  11917. ;;
  11918. linux*)
  11919. case `$CC -V 2>&1 | sed 5q` in
  11920. *Sun\ C*)
  11921. # Sun C++ 5.9
  11922. # The more standards-conforming stlport4 library is
  11923. # incompatible with the Cstd library. Avoid specifying
  11924. # it if it's in CXXFLAGS. Ignore libCrun as
  11925. # -library=stlport4 depends on it.
  11926. case " $CXX $CXXFLAGS " in
  11927. *" -library=stlport4 "*)
  11928. solaris_use_stlport4=yes
  11929. ;;
  11930. esac
  11931. if test "$solaris_use_stlport4" != yes; then
  11932. postdeps_CXX='-library=Cstd -library=Crun'
  11933. fi
  11934. ;;
  11935. esac
  11936. ;;
  11937. solaris*)
  11938. case $cc_basename in
  11939. CC* | sunCC*)
  11940. # The more standards-conforming stlport4 library is
  11941. # incompatible with the Cstd library. Avoid specifying
  11942. # it if it's in CXXFLAGS. Ignore libCrun as
  11943. # -library=stlport4 depends on it.
  11944. case " $CXX $CXXFLAGS " in
  11945. *" -library=stlport4 "*)
  11946. solaris_use_stlport4=yes
  11947. ;;
  11948. esac
  11949. # Adding this requires a known-good setup of shared libraries for
  11950. # Sun compiler versions before 5.6, else PIC objects from an old
  11951. # archive will be linked into the output, leading to subtle bugs.
  11952. if test "$solaris_use_stlport4" != yes; then
  11953. postdeps_CXX='-library=Cstd -library=Crun'
  11954. fi
  11955. ;;
  11956. esac
  11957. ;;
  11958. esac
  11959. case " $postdeps_CXX " in
  11960. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11961. esac
  11962. compiler_lib_search_dirs_CXX=
  11963. if test -n "${compiler_lib_search_path_CXX}"; then
  11964. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11965. fi
  11966. lt_prog_compiler_wl_CXX=
  11967. lt_prog_compiler_pic_CXX=
  11968. lt_prog_compiler_static_CXX=
  11969. # C++ specific cases for pic, static, wl, etc.
  11970. if test "$GXX" = yes; then
  11971. lt_prog_compiler_wl_CXX='-Wl,'
  11972. lt_prog_compiler_static_CXX='-static'
  11973. case $host_os in
  11974. aix*)
  11975. # All AIX code is PIC.
  11976. if test "$host_cpu" = ia64; then
  11977. # AIX 5 now supports IA64 processor
  11978. lt_prog_compiler_static_CXX='-Bstatic'
  11979. fi
  11980. ;;
  11981. amigaos*)
  11982. case $host_cpu in
  11983. powerpc)
  11984. # see comment about AmigaOS4 .so support
  11985. lt_prog_compiler_pic_CXX='-fPIC'
  11986. ;;
  11987. m68k)
  11988. # FIXME: we need at least 68020 code to build shared libraries, but
  11989. # adding the `-m68020' flag to GCC prevents building anything better,
  11990. # like `-m68040'.
  11991. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11992. ;;
  11993. esac
  11994. ;;
  11995. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11996. # PIC is the default for these OSes.
  11997. ;;
  11998. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11999. # This hack is so that the source file can tell whether it is being
  12000. # built for inclusion in a dll (and should export symbols for example).
  12001. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12002. # (--disable-auto-import) libraries
  12003. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12004. ;;
  12005. darwin* | rhapsody*)
  12006. # PIC is the default on this platform
  12007. # Common symbols not allowed in MH_DYLIB files
  12008. lt_prog_compiler_pic_CXX='-fno-common'
  12009. ;;
  12010. *djgpp*)
  12011. # DJGPP does not support shared libraries at all
  12012. lt_prog_compiler_pic_CXX=
  12013. ;;
  12014. haiku*)
  12015. # PIC is the default for Haiku.
  12016. # The "-static" flag exists, but is broken.
  12017. lt_prog_compiler_static_CXX=
  12018. ;;
  12019. interix[3-9]*)
  12020. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12021. # Instead, we relocate shared libraries at runtime.
  12022. ;;
  12023. sysv4*MP*)
  12024. if test -d /usr/nec; then
  12025. lt_prog_compiler_pic_CXX=-Kconform_pic
  12026. fi
  12027. ;;
  12028. hpux*)
  12029. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12030. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12031. # sets the default TLS model and affects inlining.
  12032. case $host_cpu in
  12033. hppa*64*)
  12034. ;;
  12035. *)
  12036. lt_prog_compiler_pic_CXX='-fPIC'
  12037. ;;
  12038. esac
  12039. ;;
  12040. *qnx* | *nto*)
  12041. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12042. # it will coredump.
  12043. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12044. ;;
  12045. *)
  12046. lt_prog_compiler_pic_CXX='-fPIC'
  12047. ;;
  12048. esac
  12049. else
  12050. case $host_os in
  12051. aix[4-9]*)
  12052. # All AIX code is PIC.
  12053. if test "$host_cpu" = ia64; then
  12054. # AIX 5 now supports IA64 processor
  12055. lt_prog_compiler_static_CXX='-Bstatic'
  12056. else
  12057. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12058. fi
  12059. ;;
  12060. chorus*)
  12061. case $cc_basename in
  12062. cxch68*)
  12063. # Green Hills C++ Compiler
  12064. # _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"
  12065. ;;
  12066. esac
  12067. ;;
  12068. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12069. # This hack is so that the source file can tell whether it is being
  12070. # built for inclusion in a dll (and should export symbols for example).
  12071. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12072. ;;
  12073. dgux*)
  12074. case $cc_basename in
  12075. ec++*)
  12076. lt_prog_compiler_pic_CXX='-KPIC'
  12077. ;;
  12078. ghcx*)
  12079. # Green Hills C++ Compiler
  12080. lt_prog_compiler_pic_CXX='-pic'
  12081. ;;
  12082. *)
  12083. ;;
  12084. esac
  12085. ;;
  12086. freebsd* | dragonfly*)
  12087. # FreeBSD uses GNU C++
  12088. ;;
  12089. hpux9* | hpux10* | hpux11*)
  12090. case $cc_basename in
  12091. CC*)
  12092. lt_prog_compiler_wl_CXX='-Wl,'
  12093. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12094. if test "$host_cpu" != ia64; then
  12095. lt_prog_compiler_pic_CXX='+Z'
  12096. fi
  12097. ;;
  12098. aCC*)
  12099. lt_prog_compiler_wl_CXX='-Wl,'
  12100. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12101. case $host_cpu in
  12102. hppa*64*|ia64*)
  12103. # +Z the default
  12104. ;;
  12105. *)
  12106. lt_prog_compiler_pic_CXX='+Z'
  12107. ;;
  12108. esac
  12109. ;;
  12110. *)
  12111. ;;
  12112. esac
  12113. ;;
  12114. interix*)
  12115. # This is c89, which is MS Visual C++ (no shared libs)
  12116. # Anyone wants to do a port?
  12117. ;;
  12118. irix5* | irix6* | nonstopux*)
  12119. case $cc_basename in
  12120. CC*)
  12121. lt_prog_compiler_wl_CXX='-Wl,'
  12122. lt_prog_compiler_static_CXX='-non_shared'
  12123. # CC pic flag -KPIC is the default.
  12124. ;;
  12125. *)
  12126. ;;
  12127. esac
  12128. ;;
  12129. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12130. case $cc_basename in
  12131. KCC*)
  12132. # KAI C++ Compiler
  12133. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12134. lt_prog_compiler_pic_CXX='-fPIC'
  12135. ;;
  12136. ecpc* )
  12137. # old Intel C++ for x86_64 which still supported -KPIC.
  12138. lt_prog_compiler_wl_CXX='-Wl,'
  12139. lt_prog_compiler_pic_CXX='-KPIC'
  12140. lt_prog_compiler_static_CXX='-static'
  12141. ;;
  12142. icpc* )
  12143. # Intel C++, used to be incompatible with GCC.
  12144. # ICC 10 doesn't accept -KPIC any more.
  12145. lt_prog_compiler_wl_CXX='-Wl,'
  12146. lt_prog_compiler_pic_CXX='-fPIC'
  12147. lt_prog_compiler_static_CXX='-static'
  12148. ;;
  12149. pgCC* | pgcpp*)
  12150. # Portland Group C++ compiler
  12151. lt_prog_compiler_wl_CXX='-Wl,'
  12152. lt_prog_compiler_pic_CXX='-fpic'
  12153. lt_prog_compiler_static_CXX='-Bstatic'
  12154. ;;
  12155. cxx*)
  12156. # Compaq C++
  12157. # Make sure the PIC flag is empty. It appears that all Alpha
  12158. # Linux and Compaq Tru64 Unix objects are PIC.
  12159. lt_prog_compiler_pic_CXX=
  12160. lt_prog_compiler_static_CXX='-non_shared'
  12161. ;;
  12162. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12163. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12164. lt_prog_compiler_wl_CXX='-Wl,'
  12165. lt_prog_compiler_pic_CXX='-qpic'
  12166. lt_prog_compiler_static_CXX='-qstaticlink'
  12167. ;;
  12168. *)
  12169. case `$CC -V 2>&1 | sed 5q` in
  12170. *Sun\ C*)
  12171. # Sun C++ 5.9
  12172. lt_prog_compiler_pic_CXX='-KPIC'
  12173. lt_prog_compiler_static_CXX='-Bstatic'
  12174. lt_prog_compiler_wl_CXX='-Qoption ld '
  12175. ;;
  12176. esac
  12177. ;;
  12178. esac
  12179. ;;
  12180. lynxos*)
  12181. ;;
  12182. m88k*)
  12183. ;;
  12184. mvs*)
  12185. case $cc_basename in
  12186. cxx*)
  12187. lt_prog_compiler_pic_CXX='-W c,exportall'
  12188. ;;
  12189. *)
  12190. ;;
  12191. esac
  12192. ;;
  12193. netbsd*)
  12194. ;;
  12195. *qnx* | *nto*)
  12196. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12197. # it will coredump.
  12198. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12199. ;;
  12200. osf3* | osf4* | osf5*)
  12201. case $cc_basename in
  12202. KCC*)
  12203. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12204. ;;
  12205. RCC*)
  12206. # Rational C++ 2.4.1
  12207. lt_prog_compiler_pic_CXX='-pic'
  12208. ;;
  12209. cxx*)
  12210. # Digital/Compaq C++
  12211. lt_prog_compiler_wl_CXX='-Wl,'
  12212. # Make sure the PIC flag is empty. It appears that all Alpha
  12213. # Linux and Compaq Tru64 Unix objects are PIC.
  12214. lt_prog_compiler_pic_CXX=
  12215. lt_prog_compiler_static_CXX='-non_shared'
  12216. ;;
  12217. *)
  12218. ;;
  12219. esac
  12220. ;;
  12221. psos*)
  12222. ;;
  12223. solaris*)
  12224. case $cc_basename in
  12225. CC* | sunCC*)
  12226. # Sun C++ 4.2, 5.x and Centerline C++
  12227. lt_prog_compiler_pic_CXX='-KPIC'
  12228. lt_prog_compiler_static_CXX='-Bstatic'
  12229. lt_prog_compiler_wl_CXX='-Qoption ld '
  12230. ;;
  12231. gcx*)
  12232. # Green Hills C++ Compiler
  12233. lt_prog_compiler_pic_CXX='-PIC'
  12234. ;;
  12235. *)
  12236. ;;
  12237. esac
  12238. ;;
  12239. sunos4*)
  12240. case $cc_basename in
  12241. CC*)
  12242. # Sun C++ 4.x
  12243. lt_prog_compiler_pic_CXX='-pic'
  12244. lt_prog_compiler_static_CXX='-Bstatic'
  12245. ;;
  12246. lcc*)
  12247. # Lucid
  12248. lt_prog_compiler_pic_CXX='-pic'
  12249. ;;
  12250. *)
  12251. ;;
  12252. esac
  12253. ;;
  12254. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12255. case $cc_basename in
  12256. CC*)
  12257. lt_prog_compiler_wl_CXX='-Wl,'
  12258. lt_prog_compiler_pic_CXX='-KPIC'
  12259. lt_prog_compiler_static_CXX='-Bstatic'
  12260. ;;
  12261. esac
  12262. ;;
  12263. tandem*)
  12264. case $cc_basename in
  12265. NCC*)
  12266. # NonStop-UX NCC 3.20
  12267. lt_prog_compiler_pic_CXX='-KPIC'
  12268. ;;
  12269. *)
  12270. ;;
  12271. esac
  12272. ;;
  12273. vxworks*)
  12274. ;;
  12275. *)
  12276. lt_prog_compiler_can_build_shared_CXX=no
  12277. ;;
  12278. esac
  12279. fi
  12280. case $host_os in
  12281. # For platforms which do not support PIC, -DPIC is meaningless:
  12282. *djgpp*)
  12283. lt_prog_compiler_pic_CXX=
  12284. ;;
  12285. *)
  12286. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12287. ;;
  12288. esac
  12289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12290. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12291. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12292. $as_echo_n "(cached) " >&6
  12293. else
  12294. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12295. fi
  12296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12297. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12298. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12299. #
  12300. # Check to make sure the PIC flag actually works.
  12301. #
  12302. if test -n "$lt_prog_compiler_pic_CXX"; then
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12304. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12305. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12306. $as_echo_n "(cached) " >&6
  12307. else
  12308. lt_cv_prog_compiler_pic_works_CXX=no
  12309. ac_outfile=conftest.$ac_objext
  12310. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12311. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12312. # Insert the option either (1) after the last *FLAGS variable, or
  12313. # (2) before a word containing "conftest.", or (3) at the end.
  12314. # Note that $ac_compile itself does not contain backslashes and begins
  12315. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12316. # The option is referenced via a variable to avoid confusing sed.
  12317. lt_compile=`echo "$ac_compile" | $SED \
  12318. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12319. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12320. -e 's:$: $lt_compiler_flag:'`
  12321. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12322. (eval "$lt_compile" 2>conftest.err)
  12323. ac_status=$?
  12324. cat conftest.err >&5
  12325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12326. if (exit $ac_status) && test -s "$ac_outfile"; then
  12327. # The compiler can only warn and ignore the option if not recognized
  12328. # So say no if there are warnings other than the usual output.
  12329. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12330. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12331. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12332. lt_cv_prog_compiler_pic_works_CXX=yes
  12333. fi
  12334. fi
  12335. $RM conftest*
  12336. fi
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12338. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12339. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12340. case $lt_prog_compiler_pic_CXX in
  12341. "" | " "*) ;;
  12342. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12343. esac
  12344. else
  12345. lt_prog_compiler_pic_CXX=
  12346. lt_prog_compiler_can_build_shared_CXX=no
  12347. fi
  12348. fi
  12349. #
  12350. # Check to make sure the static flag actually works.
  12351. #
  12352. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12354. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12355. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12356. $as_echo_n "(cached) " >&6
  12357. else
  12358. lt_cv_prog_compiler_static_works_CXX=no
  12359. save_LDFLAGS="$LDFLAGS"
  12360. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12361. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12362. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12363. # The linker can only warn and ignore the option if not recognized
  12364. # So say no if there are warnings
  12365. if test -s conftest.err; then
  12366. # Append any errors to the config.log.
  12367. cat conftest.err 1>&5
  12368. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12369. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12370. if diff conftest.exp conftest.er2 >/dev/null; then
  12371. lt_cv_prog_compiler_static_works_CXX=yes
  12372. fi
  12373. else
  12374. lt_cv_prog_compiler_static_works_CXX=yes
  12375. fi
  12376. fi
  12377. $RM -r conftest*
  12378. LDFLAGS="$save_LDFLAGS"
  12379. fi
  12380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12381. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12382. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12383. :
  12384. else
  12385. lt_prog_compiler_static_CXX=
  12386. fi
  12387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12388. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12389. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12390. $as_echo_n "(cached) " >&6
  12391. else
  12392. lt_cv_prog_compiler_c_o_CXX=no
  12393. $RM -r conftest 2>/dev/null
  12394. mkdir conftest
  12395. cd conftest
  12396. mkdir out
  12397. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12398. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12399. # Insert the option either (1) after the last *FLAGS variable, or
  12400. # (2) before a word containing "conftest.", or (3) at the end.
  12401. # Note that $ac_compile itself does not contain backslashes and begins
  12402. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12403. lt_compile=`echo "$ac_compile" | $SED \
  12404. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12405. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12406. -e 's:$: $lt_compiler_flag:'`
  12407. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12408. (eval "$lt_compile" 2>out/conftest.err)
  12409. ac_status=$?
  12410. cat out/conftest.err >&5
  12411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12412. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12413. then
  12414. # The compiler can only warn and ignore the option if not recognized
  12415. # So say no if there are warnings
  12416. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12417. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12418. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12419. lt_cv_prog_compiler_c_o_CXX=yes
  12420. fi
  12421. fi
  12422. chmod u+w . 2>&5
  12423. $RM conftest*
  12424. # SGI C++ compiler will create directory out/ii_files/ for
  12425. # template instantiation
  12426. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12427. $RM out/* && rmdir out
  12428. cd ..
  12429. $RM -r conftest
  12430. $RM conftest*
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12433. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12435. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12436. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12437. $as_echo_n "(cached) " >&6
  12438. else
  12439. lt_cv_prog_compiler_c_o_CXX=no
  12440. $RM -r conftest 2>/dev/null
  12441. mkdir conftest
  12442. cd conftest
  12443. mkdir out
  12444. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12445. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12446. # Insert the option either (1) after the last *FLAGS variable, or
  12447. # (2) before a word containing "conftest.", or (3) at the end.
  12448. # Note that $ac_compile itself does not contain backslashes and begins
  12449. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12450. lt_compile=`echo "$ac_compile" | $SED \
  12451. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12452. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12453. -e 's:$: $lt_compiler_flag:'`
  12454. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12455. (eval "$lt_compile" 2>out/conftest.err)
  12456. ac_status=$?
  12457. cat out/conftest.err >&5
  12458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12459. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12460. then
  12461. # The compiler can only warn and ignore the option if not recognized
  12462. # So say no if there are warnings
  12463. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12464. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12465. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12466. lt_cv_prog_compiler_c_o_CXX=yes
  12467. fi
  12468. fi
  12469. chmod u+w . 2>&5
  12470. $RM conftest*
  12471. # SGI C++ compiler will create directory out/ii_files/ for
  12472. # template instantiation
  12473. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12474. $RM out/* && rmdir out
  12475. cd ..
  12476. $RM -r conftest
  12477. $RM conftest*
  12478. fi
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12480. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12481. hard_links="nottested"
  12482. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12483. # do not overwrite the value of need_locks provided by the user
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12485. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12486. hard_links=yes
  12487. $RM conftest*
  12488. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12489. touch conftest.a
  12490. ln conftest.a conftest.b 2>&5 || hard_links=no
  12491. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12493. $as_echo "$hard_links" >&6; }
  12494. if test "$hard_links" = no; then
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12496. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12497. need_locks=warn
  12498. fi
  12499. else
  12500. need_locks=no
  12501. fi
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12503. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12504. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12505. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12506. case $host_os in
  12507. aix[4-9]*)
  12508. # If we're using GNU nm, then we don't want the "-C" option.
  12509. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12510. # Also, AIX nm treats weak defined symbols like other global defined
  12511. # symbols, whereas GNU nm marks them as "W".
  12512. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12513. 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'
  12514. else
  12515. 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'
  12516. fi
  12517. ;;
  12518. pw32*)
  12519. export_symbols_cmds_CXX="$ltdll_cmds"
  12520. ;;
  12521. cygwin* | mingw* | cegcc*)
  12522. case $cc_basename in
  12523. cl*)
  12524. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12525. ;;
  12526. *)
  12527. 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'
  12528. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12529. ;;
  12530. esac
  12531. ;;
  12532. *)
  12533. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12534. ;;
  12535. esac
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12537. $as_echo "$ld_shlibs_CXX" >&6; }
  12538. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12539. with_gnu_ld_CXX=$with_gnu_ld
  12540. #
  12541. # Do we need to explicitly link libc?
  12542. #
  12543. case "x$archive_cmds_need_lc_CXX" in
  12544. x|xyes)
  12545. # Assume -lc should be added
  12546. archive_cmds_need_lc_CXX=yes
  12547. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12548. case $archive_cmds_CXX in
  12549. *'~'*)
  12550. # FIXME: we may have to deal with multi-command sequences.
  12551. ;;
  12552. '$CC '*)
  12553. # Test whether the compiler implicitly links with -lc since on some
  12554. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12555. # to ld, don't add -lc before -lgcc.
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12557. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12558. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12559. $as_echo_n "(cached) " >&6
  12560. else
  12561. $RM conftest*
  12562. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12563. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12564. (eval $ac_compile) 2>&5
  12565. ac_status=$?
  12566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12567. test $ac_status = 0; } 2>conftest.err; then
  12568. soname=conftest
  12569. lib=conftest
  12570. libobjs=conftest.$ac_objext
  12571. deplibs=
  12572. wl=$lt_prog_compiler_wl_CXX
  12573. pic_flag=$lt_prog_compiler_pic_CXX
  12574. compiler_flags=-v
  12575. linker_flags=-v
  12576. verstring=
  12577. output_objdir=.
  12578. libname=conftest
  12579. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12580. allow_undefined_flag_CXX=
  12581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12582. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12583. ac_status=$?
  12584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12585. test $ac_status = 0; }
  12586. then
  12587. lt_cv_archive_cmds_need_lc_CXX=no
  12588. else
  12589. lt_cv_archive_cmds_need_lc_CXX=yes
  12590. fi
  12591. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12592. else
  12593. cat conftest.err 1>&5
  12594. fi
  12595. $RM conftest*
  12596. fi
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12598. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12599. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12600. ;;
  12601. esac
  12602. fi
  12603. ;;
  12604. esac
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12606. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12607. library_names_spec=
  12608. libname_spec='lib$name'
  12609. soname_spec=
  12610. shrext_cmds=".so"
  12611. postinstall_cmds=
  12612. postuninstall_cmds=
  12613. finish_cmds=
  12614. finish_eval=
  12615. shlibpath_var=
  12616. shlibpath_overrides_runpath=unknown
  12617. version_type=none
  12618. dynamic_linker="$host_os ld.so"
  12619. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12620. need_lib_prefix=unknown
  12621. hardcode_into_libs=no
  12622. # when you set need_version to no, make sure it does not cause -set_version
  12623. # flags to be left without arguments
  12624. need_version=unknown
  12625. case $host_os in
  12626. aix3*)
  12627. version_type=linux # correct to gnu/linux during the next big refactor
  12628. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12629. shlibpath_var=LIBPATH
  12630. # AIX 3 has no versioning support, so we append a major version to the name.
  12631. soname_spec='${libname}${release}${shared_ext}$major'
  12632. ;;
  12633. aix[4-9]*)
  12634. version_type=linux # correct to gnu/linux during the next big refactor
  12635. need_lib_prefix=no
  12636. need_version=no
  12637. hardcode_into_libs=yes
  12638. if test "$host_cpu" = ia64; then
  12639. # AIX 5 supports IA64
  12640. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12641. shlibpath_var=LD_LIBRARY_PATH
  12642. else
  12643. # With GCC up to 2.95.x, collect2 would create an import file
  12644. # for dependence libraries. The import file would start with
  12645. # the line `#! .'. This would cause the generated library to
  12646. # depend on `.', always an invalid library. This was fixed in
  12647. # development snapshots of GCC prior to 3.0.
  12648. case $host_os in
  12649. aix4 | aix4.[01] | aix4.[01].*)
  12650. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12651. echo ' yes '
  12652. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12653. :
  12654. else
  12655. can_build_shared=no
  12656. fi
  12657. ;;
  12658. esac
  12659. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12660. # soname into executable. Probably we can add versioning support to
  12661. # collect2, so additional links can be useful in future.
  12662. if test "$aix_use_runtimelinking" = yes; then
  12663. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12664. # instead of lib<name>.a to let people know that these are not
  12665. # typical AIX shared libraries.
  12666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12667. else
  12668. # We preserve .a as extension for shared libraries through AIX4.2
  12669. # and later when we are not doing run time linking.
  12670. library_names_spec='${libname}${release}.a $libname.a'
  12671. soname_spec='${libname}${release}${shared_ext}$major'
  12672. fi
  12673. shlibpath_var=LIBPATH
  12674. fi
  12675. ;;
  12676. amigaos*)
  12677. case $host_cpu in
  12678. powerpc)
  12679. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12680. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12682. ;;
  12683. m68k)
  12684. library_names_spec='$libname.ixlibrary $libname.a'
  12685. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12686. 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'
  12687. ;;
  12688. esac
  12689. ;;
  12690. beos*)
  12691. library_names_spec='${libname}${shared_ext}'
  12692. dynamic_linker="$host_os ld.so"
  12693. shlibpath_var=LIBRARY_PATH
  12694. ;;
  12695. bsdi[45]*)
  12696. version_type=linux # correct to gnu/linux during the next big refactor
  12697. need_version=no
  12698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12699. soname_spec='${libname}${release}${shared_ext}$major'
  12700. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12701. shlibpath_var=LD_LIBRARY_PATH
  12702. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12703. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12704. # the default ld.so.conf also contains /usr/contrib/lib and
  12705. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12706. # libtool to hard-code these into programs
  12707. ;;
  12708. cygwin* | mingw* | pw32* | cegcc*)
  12709. version_type=windows
  12710. shrext_cmds=".dll"
  12711. need_version=no
  12712. need_lib_prefix=no
  12713. case $GCC,$cc_basename in
  12714. yes,*)
  12715. # gcc
  12716. library_names_spec='$libname.dll.a'
  12717. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12718. postinstall_cmds='base_file=`basename \${file}`~
  12719. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12720. dldir=$destdir/`dirname \$dlpath`~
  12721. test -d \$dldir || mkdir -p \$dldir~
  12722. $install_prog $dir/$dlname \$dldir/$dlname~
  12723. chmod a+x \$dldir/$dlname~
  12724. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12725. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12726. fi'
  12727. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12728. dlpath=$dir/\$dldll~
  12729. $RM \$dlpath'
  12730. shlibpath_overrides_runpath=yes
  12731. case $host_os in
  12732. cygwin*)
  12733. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12734. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12735. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12736. ;;
  12737. mingw* | cegcc*)
  12738. # MinGW DLLs use traditional 'lib' prefix
  12739. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12740. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12741. ;;
  12742. pw32*)
  12743. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12744. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12745. ;;
  12746. esac
  12747. dynamic_linker='Win32 ld.exe'
  12748. ;;
  12749. *,cl*)
  12750. # Native MSVC
  12751. libname_spec='$name'
  12752. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12753. library_names_spec='${libname}.dll.lib'
  12754. case $build_os in
  12755. mingw*)
  12756. sys_lib_search_path_spec=
  12757. lt_save_ifs=$IFS
  12758. IFS=';'
  12759. for lt_path in $LIB
  12760. do
  12761. IFS=$lt_save_ifs
  12762. # Let DOS variable expansion print the short 8.3 style file name.
  12763. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12764. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12765. done
  12766. IFS=$lt_save_ifs
  12767. # Convert to MSYS style.
  12768. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12769. ;;
  12770. cygwin*)
  12771. # Convert to unix form, then to dos form, then back to unix form
  12772. # but this time dos style (no spaces!) so that the unix form looks
  12773. # like /cygdrive/c/PROGRA~1:/cygdr...
  12774. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12775. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12776. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12777. ;;
  12778. *)
  12779. sys_lib_search_path_spec="$LIB"
  12780. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12781. # It is most probably a Windows format PATH.
  12782. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12783. else
  12784. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12785. fi
  12786. # FIXME: find the short name or the path components, as spaces are
  12787. # common. (e.g. "Program Files" -> "PROGRA~1")
  12788. ;;
  12789. esac
  12790. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12791. postinstall_cmds='base_file=`basename \${file}`~
  12792. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12793. dldir=$destdir/`dirname \$dlpath`~
  12794. test -d \$dldir || mkdir -p \$dldir~
  12795. $install_prog $dir/$dlname \$dldir/$dlname'
  12796. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12797. dlpath=$dir/\$dldll~
  12798. $RM \$dlpath'
  12799. shlibpath_overrides_runpath=yes
  12800. dynamic_linker='Win32 link.exe'
  12801. ;;
  12802. *)
  12803. # Assume MSVC wrapper
  12804. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12805. dynamic_linker='Win32 ld.exe'
  12806. ;;
  12807. esac
  12808. # FIXME: first we should search . and the directory the executable is in
  12809. shlibpath_var=PATH
  12810. ;;
  12811. darwin* | rhapsody*)
  12812. dynamic_linker="$host_os dyld"
  12813. version_type=darwin
  12814. need_lib_prefix=no
  12815. need_version=no
  12816. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12817. soname_spec='${libname}${release}${major}$shared_ext'
  12818. shlibpath_overrides_runpath=yes
  12819. shlibpath_var=DYLD_LIBRARY_PATH
  12820. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12821. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12822. ;;
  12823. dgux*)
  12824. version_type=linux # correct to gnu/linux during the next big refactor
  12825. need_lib_prefix=no
  12826. need_version=no
  12827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12828. soname_spec='${libname}${release}${shared_ext}$major'
  12829. shlibpath_var=LD_LIBRARY_PATH
  12830. ;;
  12831. freebsd* | dragonfly*)
  12832. # DragonFly does not have aout. When/if they implement a new
  12833. # versioning mechanism, adjust this.
  12834. if test -x /usr/bin/objformat; then
  12835. objformat=`/usr/bin/objformat`
  12836. else
  12837. case $host_os in
  12838. freebsd[23].*) objformat=aout ;;
  12839. *) objformat=elf ;;
  12840. esac
  12841. fi
  12842. version_type=freebsd-$objformat
  12843. case $version_type in
  12844. freebsd-elf*)
  12845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12846. need_version=no
  12847. need_lib_prefix=no
  12848. ;;
  12849. freebsd-*)
  12850. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12851. need_version=yes
  12852. ;;
  12853. esac
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. case $host_os in
  12856. freebsd2.*)
  12857. shlibpath_overrides_runpath=yes
  12858. ;;
  12859. freebsd3.[01]* | freebsdelf3.[01]*)
  12860. shlibpath_overrides_runpath=yes
  12861. hardcode_into_libs=yes
  12862. ;;
  12863. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12864. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12865. shlibpath_overrides_runpath=no
  12866. hardcode_into_libs=yes
  12867. ;;
  12868. *) # from 4.6 on, and DragonFly
  12869. shlibpath_overrides_runpath=yes
  12870. hardcode_into_libs=yes
  12871. ;;
  12872. esac
  12873. ;;
  12874. gnu*)
  12875. version_type=linux # correct to gnu/linux during the next big refactor
  12876. need_lib_prefix=no
  12877. need_version=no
  12878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12879. soname_spec='${libname}${release}${shared_ext}$major'
  12880. shlibpath_var=LD_LIBRARY_PATH
  12881. shlibpath_overrides_runpath=no
  12882. hardcode_into_libs=yes
  12883. ;;
  12884. haiku*)
  12885. version_type=linux # correct to gnu/linux during the next big refactor
  12886. need_lib_prefix=no
  12887. need_version=no
  12888. dynamic_linker="$host_os runtime_loader"
  12889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12890. soname_spec='${libname}${release}${shared_ext}$major'
  12891. shlibpath_var=LIBRARY_PATH
  12892. shlibpath_overrides_runpath=yes
  12893. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12894. hardcode_into_libs=yes
  12895. ;;
  12896. hpux9* | hpux10* | hpux11*)
  12897. # Give a soname corresponding to the major version so that dld.sl refuses to
  12898. # link against other versions.
  12899. version_type=sunos
  12900. need_lib_prefix=no
  12901. need_version=no
  12902. case $host_cpu in
  12903. ia64*)
  12904. shrext_cmds='.so'
  12905. hardcode_into_libs=yes
  12906. dynamic_linker="$host_os dld.so"
  12907. shlibpath_var=LD_LIBRARY_PATH
  12908. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12910. soname_spec='${libname}${release}${shared_ext}$major'
  12911. if test "X$HPUX_IA64_MODE" = X32; then
  12912. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12913. else
  12914. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12915. fi
  12916. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12917. ;;
  12918. hppa*64*)
  12919. shrext_cmds='.sl'
  12920. hardcode_into_libs=yes
  12921. dynamic_linker="$host_os dld.sl"
  12922. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12923. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12925. soname_spec='${libname}${release}${shared_ext}$major'
  12926. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12927. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12928. ;;
  12929. *)
  12930. shrext_cmds='.sl'
  12931. dynamic_linker="$host_os dld.sl"
  12932. shlibpath_var=SHLIB_PATH
  12933. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12935. soname_spec='${libname}${release}${shared_ext}$major'
  12936. ;;
  12937. esac
  12938. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12939. postinstall_cmds='chmod 555 $lib'
  12940. # or fails outright, so override atomically:
  12941. install_override_mode=555
  12942. ;;
  12943. interix[3-9]*)
  12944. version_type=linux # correct to gnu/linux during the next big refactor
  12945. need_lib_prefix=no
  12946. need_version=no
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12950. shlibpath_var=LD_LIBRARY_PATH
  12951. shlibpath_overrides_runpath=no
  12952. hardcode_into_libs=yes
  12953. ;;
  12954. irix5* | irix6* | nonstopux*)
  12955. case $host_os in
  12956. nonstopux*) version_type=nonstopux ;;
  12957. *)
  12958. if test "$lt_cv_prog_gnu_ld" = yes; then
  12959. version_type=linux # correct to gnu/linux during the next big refactor
  12960. else
  12961. version_type=irix
  12962. fi ;;
  12963. esac
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. soname_spec='${libname}${release}${shared_ext}$major'
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12968. case $host_os in
  12969. irix5* | nonstopux*)
  12970. libsuff= shlibsuff=
  12971. ;;
  12972. *)
  12973. case $LD in # libtool.m4 will add one of these switches to LD
  12974. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12975. libsuff= shlibsuff= libmagic=32-bit;;
  12976. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12977. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12978. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12979. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12980. *) libsuff= shlibsuff= libmagic=never-match;;
  12981. esac
  12982. ;;
  12983. esac
  12984. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12985. shlibpath_overrides_runpath=no
  12986. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12987. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12988. hardcode_into_libs=yes
  12989. ;;
  12990. # No shared lib support for Linux oldld, aout, or coff.
  12991. linux*oldld* | linux*aout* | linux*coff*)
  12992. dynamic_linker=no
  12993. ;;
  12994. # This must be glibc/ELF.
  12995. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12996. version_type=linux # correct to gnu/linux during the next big refactor
  12997. need_lib_prefix=no
  12998. need_version=no
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13002. shlibpath_var=LD_LIBRARY_PATH
  13003. shlibpath_overrides_runpath=no
  13004. # Some binutils ld are patched to set DT_RUNPATH
  13005. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13006. $as_echo_n "(cached) " >&6
  13007. else
  13008. lt_cv_shlibpath_overrides_runpath=no
  13009. save_LDFLAGS=$LDFLAGS
  13010. save_libdir=$libdir
  13011. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13012. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13014. /* end confdefs.h. */
  13015. int
  13016. main ()
  13017. {
  13018. ;
  13019. return 0;
  13020. }
  13021. _ACEOF
  13022. if ac_fn_cxx_try_link "$LINENO"; then :
  13023. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13024. lt_cv_shlibpath_overrides_runpath=yes
  13025. fi
  13026. fi
  13027. rm -f core conftest.err conftest.$ac_objext \
  13028. conftest$ac_exeext conftest.$ac_ext
  13029. LDFLAGS=$save_LDFLAGS
  13030. libdir=$save_libdir
  13031. fi
  13032. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13033. # This implies no fast_install, which is unacceptable.
  13034. # Some rework will be needed to allow for fast_install
  13035. # before this can be enabled.
  13036. hardcode_into_libs=yes
  13037. # Append ld.so.conf contents to the search path
  13038. if test -f /etc/ld.so.conf; then
  13039. 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' ' '`
  13040. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13041. fi
  13042. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13043. # powerpc, because MkLinux only supported shared libraries with the
  13044. # GNU dynamic linker. Since this was broken with cross compilers,
  13045. # most powerpc-linux boxes support dynamic linking these days and
  13046. # people can always --disable-shared, the test was removed, and we
  13047. # assume the GNU/Linux dynamic linker is in use.
  13048. dynamic_linker='GNU/Linux ld.so'
  13049. ;;
  13050. netbsd*)
  13051. version_type=sunos
  13052. need_lib_prefix=no
  13053. need_version=no
  13054. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13056. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13057. dynamic_linker='NetBSD (a.out) ld.so'
  13058. else
  13059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13060. soname_spec='${libname}${release}${shared_ext}$major'
  13061. dynamic_linker='NetBSD ld.elf_so'
  13062. fi
  13063. shlibpath_var=LD_LIBRARY_PATH
  13064. shlibpath_overrides_runpath=yes
  13065. hardcode_into_libs=yes
  13066. ;;
  13067. newsos6)
  13068. version_type=linux # correct to gnu/linux during the next big refactor
  13069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13070. shlibpath_var=LD_LIBRARY_PATH
  13071. shlibpath_overrides_runpath=yes
  13072. ;;
  13073. *nto* | *qnx*)
  13074. version_type=qnx
  13075. need_lib_prefix=no
  13076. need_version=no
  13077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13078. soname_spec='${libname}${release}${shared_ext}$major'
  13079. shlibpath_var=LD_LIBRARY_PATH
  13080. shlibpath_overrides_runpath=no
  13081. hardcode_into_libs=yes
  13082. dynamic_linker='ldqnx.so'
  13083. ;;
  13084. openbsd*)
  13085. version_type=sunos
  13086. sys_lib_dlsearch_path_spec="/usr/lib"
  13087. need_lib_prefix=no
  13088. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13089. case $host_os in
  13090. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13091. *) need_version=no ;;
  13092. esac
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13094. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13097. case $host_os in
  13098. openbsd2.[89] | openbsd2.[89].*)
  13099. shlibpath_overrides_runpath=no
  13100. ;;
  13101. *)
  13102. shlibpath_overrides_runpath=yes
  13103. ;;
  13104. esac
  13105. else
  13106. shlibpath_overrides_runpath=yes
  13107. fi
  13108. ;;
  13109. os2*)
  13110. libname_spec='$name'
  13111. shrext_cmds=".dll"
  13112. need_lib_prefix=no
  13113. library_names_spec='$libname${shared_ext} $libname.a'
  13114. dynamic_linker='OS/2 ld.exe'
  13115. shlibpath_var=LIBPATH
  13116. ;;
  13117. osf3* | osf4* | osf5*)
  13118. version_type=osf
  13119. need_lib_prefix=no
  13120. need_version=no
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13123. shlibpath_var=LD_LIBRARY_PATH
  13124. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13125. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13126. ;;
  13127. rdos*)
  13128. dynamic_linker=no
  13129. ;;
  13130. solaris*)
  13131. version_type=linux # correct to gnu/linux during the next big refactor
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13135. soname_spec='${libname}${release}${shared_ext}$major'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. shlibpath_overrides_runpath=yes
  13138. hardcode_into_libs=yes
  13139. # ldd complains unless libraries are executable
  13140. postinstall_cmds='chmod +x $lib'
  13141. ;;
  13142. sunos4*)
  13143. version_type=sunos
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13145. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13146. shlibpath_var=LD_LIBRARY_PATH
  13147. shlibpath_overrides_runpath=yes
  13148. if test "$with_gnu_ld" = yes; then
  13149. need_lib_prefix=no
  13150. fi
  13151. need_version=yes
  13152. ;;
  13153. sysv4 | sysv4.3*)
  13154. version_type=linux # correct to gnu/linux during the next big refactor
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13156. soname_spec='${libname}${release}${shared_ext}$major'
  13157. shlibpath_var=LD_LIBRARY_PATH
  13158. case $host_vendor in
  13159. sni)
  13160. shlibpath_overrides_runpath=no
  13161. need_lib_prefix=no
  13162. runpath_var=LD_RUN_PATH
  13163. ;;
  13164. siemens)
  13165. need_lib_prefix=no
  13166. ;;
  13167. motorola)
  13168. need_lib_prefix=no
  13169. need_version=no
  13170. shlibpath_overrides_runpath=no
  13171. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13172. ;;
  13173. esac
  13174. ;;
  13175. sysv4*MP*)
  13176. if test -d /usr/nec ;then
  13177. version_type=linux # correct to gnu/linux during the next big refactor
  13178. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13179. soname_spec='$libname${shared_ext}.$major'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. fi
  13182. ;;
  13183. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13184. version_type=freebsd-elf
  13185. need_lib_prefix=no
  13186. need_version=no
  13187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13188. soname_spec='${libname}${release}${shared_ext}$major'
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. shlibpath_overrides_runpath=yes
  13191. hardcode_into_libs=yes
  13192. if test "$with_gnu_ld" = yes; then
  13193. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13194. else
  13195. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13196. case $host_os in
  13197. sco3.2v5*)
  13198. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13199. ;;
  13200. esac
  13201. fi
  13202. sys_lib_dlsearch_path_spec='/usr/lib'
  13203. ;;
  13204. tpf*)
  13205. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13206. version_type=linux # correct to gnu/linux during the next big refactor
  13207. need_lib_prefix=no
  13208. need_version=no
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13210. shlibpath_var=LD_LIBRARY_PATH
  13211. shlibpath_overrides_runpath=no
  13212. hardcode_into_libs=yes
  13213. ;;
  13214. uts4*)
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. ;;
  13220. *)
  13221. dynamic_linker=no
  13222. ;;
  13223. esac
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13225. $as_echo "$dynamic_linker" >&6; }
  13226. test "$dynamic_linker" = no && can_build_shared=no
  13227. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13228. if test "$GCC" = yes; then
  13229. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13230. fi
  13231. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13232. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13233. fi
  13234. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13235. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13236. fi
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13238. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13239. hardcode_action_CXX=
  13240. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13241. test -n "$runpath_var_CXX" ||
  13242. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13243. # We can hardcode non-existent directories.
  13244. if test "$hardcode_direct_CXX" != no &&
  13245. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13246. # have to relink, otherwise we might link with an installed library
  13247. # when we should be linking with a yet-to-be-installed one
  13248. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13249. test "$hardcode_minus_L_CXX" != no; then
  13250. # Linking always hardcodes the temporary library directory.
  13251. hardcode_action_CXX=relink
  13252. else
  13253. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13254. hardcode_action_CXX=immediate
  13255. fi
  13256. else
  13257. # We cannot hardcode anything, or else we can only hardcode existing
  13258. # directories.
  13259. hardcode_action_CXX=unsupported
  13260. fi
  13261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13262. $as_echo "$hardcode_action_CXX" >&6; }
  13263. if test "$hardcode_action_CXX" = relink ||
  13264. test "$inherit_rpath_CXX" = yes; then
  13265. # Fast installation is not supported
  13266. enable_fast_install=no
  13267. elif test "$shlibpath_overrides_runpath" = yes ||
  13268. test "$enable_shared" = no; then
  13269. # Fast installation is not necessary
  13270. enable_fast_install=needless
  13271. fi
  13272. fi # test -n "$compiler"
  13273. CC=$lt_save_CC
  13274. CFLAGS=$lt_save_CFLAGS
  13275. LDCXX=$LD
  13276. LD=$lt_save_LD
  13277. GCC=$lt_save_GCC
  13278. with_gnu_ld=$lt_save_with_gnu_ld
  13279. lt_cv_path_LDCXX=$lt_cv_path_LD
  13280. lt_cv_path_LD=$lt_save_path_LD
  13281. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13282. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13283. fi # test "$_lt_caught_CXX_error" != yes
  13284. ac_ext=c
  13285. ac_cpp='$CPP $CPPFLAGS'
  13286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13289. # Find a good install program. We prefer a C program (faster),
  13290. # so one script is as good as another. But avoid the broken or
  13291. # incompatible versions:
  13292. # SysV /etc/install, /usr/sbin/install
  13293. # SunOS /usr/etc/install
  13294. # IRIX /sbin/install
  13295. # AIX /bin/install
  13296. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13297. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13298. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13299. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13300. # OS/2's system install, which has a completely different semantic
  13301. # ./install, which can be erroneously created by make from ./install.sh.
  13302. # Reject install programs that cannot install multiple files.
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13304. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13305. if test -z "$INSTALL"; then
  13306. if ${ac_cv_path_install+:} false; then :
  13307. $as_echo_n "(cached) " >&6
  13308. else
  13309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13310. for as_dir in $PATH
  13311. do
  13312. IFS=$as_save_IFS
  13313. test -z "$as_dir" && as_dir=.
  13314. # Account for people who put trailing slashes in PATH elements.
  13315. case $as_dir/ in #((
  13316. ./ | .// | /[cC]/* | \
  13317. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13318. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13319. /usr/ucb/* ) ;;
  13320. *)
  13321. # OSF1 and SCO ODT 3.0 have their own names for install.
  13322. # Don't use installbsd from OSF since it installs stuff as root
  13323. # by default.
  13324. for ac_prog in ginstall scoinst install; do
  13325. for ac_exec_ext in '' $ac_executable_extensions; do
  13326. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13327. if test $ac_prog = install &&
  13328. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13329. # AIX install. It has an incompatible calling convention.
  13330. :
  13331. elif test $ac_prog = install &&
  13332. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13333. # program-specific install script used by HP pwplus--don't use.
  13334. :
  13335. else
  13336. rm -rf conftest.one conftest.two conftest.dir
  13337. echo one > conftest.one
  13338. echo two > conftest.two
  13339. mkdir conftest.dir
  13340. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13341. test -s conftest.one && test -s conftest.two &&
  13342. test -s conftest.dir/conftest.one &&
  13343. test -s conftest.dir/conftest.two
  13344. then
  13345. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13346. break 3
  13347. fi
  13348. fi
  13349. fi
  13350. done
  13351. done
  13352. ;;
  13353. esac
  13354. done
  13355. IFS=$as_save_IFS
  13356. rm -rf conftest.one conftest.two conftest.dir
  13357. fi
  13358. if test "${ac_cv_path_install+set}" = set; then
  13359. INSTALL=$ac_cv_path_install
  13360. else
  13361. # As a last resort, use the slow shell script. Don't cache a
  13362. # value for INSTALL within a source directory, because that will
  13363. # break other packages using the cache if that directory is
  13364. # removed, or if the value is a relative name.
  13365. INSTALL=$ac_install_sh
  13366. fi
  13367. fi
  13368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13369. $as_echo "$INSTALL" >&6; }
  13370. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13371. # It thinks the first close brace ends the variable substitution.
  13372. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13373. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13374. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13376. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13377. set x ${MAKE-make}
  13378. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13379. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13380. $as_echo_n "(cached) " >&6
  13381. else
  13382. cat >conftest.make <<\_ACEOF
  13383. SHELL = /bin/sh
  13384. all:
  13385. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13386. _ACEOF
  13387. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13388. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13389. *@@@%%%=?*=@@@%%%*)
  13390. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13391. *)
  13392. eval ac_cv_prog_make_${ac_make}_set=no;;
  13393. esac
  13394. rm -f conftest.make
  13395. fi
  13396. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13398. $as_echo "yes" >&6; }
  13399. SET_MAKE=
  13400. else
  13401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13402. $as_echo "no" >&6; }
  13403. SET_MAKE="MAKE=${MAKE-make}"
  13404. fi
  13405. if test -n "$ac_tool_prefix"; then
  13406. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13407. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13409. $as_echo_n "checking for $ac_word... " >&6; }
  13410. if ${ac_cv_prog_WINDRES+:} false; then :
  13411. $as_echo_n "(cached) " >&6
  13412. else
  13413. if test -n "$WINDRES"; then
  13414. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13415. else
  13416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13417. for as_dir in $PATH
  13418. do
  13419. IFS=$as_save_IFS
  13420. test -z "$as_dir" && as_dir=.
  13421. for ac_exec_ext in '' $ac_executable_extensions; do
  13422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13423. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13425. break 2
  13426. fi
  13427. done
  13428. done
  13429. IFS=$as_save_IFS
  13430. fi
  13431. fi
  13432. WINDRES=$ac_cv_prog_WINDRES
  13433. if test -n "$WINDRES"; then
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13435. $as_echo "$WINDRES" >&6; }
  13436. else
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13438. $as_echo "no" >&6; }
  13439. fi
  13440. fi
  13441. if test -z "$ac_cv_prog_WINDRES"; then
  13442. ac_ct_WINDRES=$WINDRES
  13443. # Extract the first word of "windres", so it can be a program name with args.
  13444. set dummy windres; ac_word=$2
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13446. $as_echo_n "checking for $ac_word... " >&6; }
  13447. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13448. $as_echo_n "(cached) " >&6
  13449. else
  13450. if test -n "$ac_ct_WINDRES"; then
  13451. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13452. else
  13453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13454. for as_dir in $PATH
  13455. do
  13456. IFS=$as_save_IFS
  13457. test -z "$as_dir" && as_dir=.
  13458. for ac_exec_ext in '' $ac_executable_extensions; do
  13459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13460. ac_cv_prog_ac_ct_WINDRES="windres"
  13461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13462. break 2
  13463. fi
  13464. done
  13465. done
  13466. IFS=$as_save_IFS
  13467. fi
  13468. fi
  13469. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13470. if test -n "$ac_ct_WINDRES"; then
  13471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13472. $as_echo "$ac_ct_WINDRES" >&6; }
  13473. else
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13475. $as_echo "no" >&6; }
  13476. fi
  13477. if test "x$ac_ct_WINDRES" = x; then
  13478. WINDRES=":"
  13479. else
  13480. case $cross_compiling:$ac_tool_warned in
  13481. yes:)
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13484. ac_tool_warned=yes ;;
  13485. esac
  13486. WINDRES=$ac_ct_WINDRES
  13487. fi
  13488. else
  13489. WINDRES="$ac_cv_prog_WINDRES"
  13490. fi
  13491. case "$host" in
  13492. *-*-mingw32*)
  13493. # Except on msys, where make can't handle full pathnames (bug 1972)
  13494. ;;
  13495. *)
  13496. srcdir=`cd $srcdir && pwd`
  13497. ;;
  13498. esac
  13499. INCLUDE="-I$srcdir/include"
  13500. if test x$srcdir != x.; then
  13501. INCLUDE="-Iinclude $INCLUDE"
  13502. elif test -d .hg; then
  13503. as_fn_error $? "
  13504. *** When building from Mercurial you should configure and build in a
  13505. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13506. " "$LINENO" 5
  13507. fi
  13508. BASE_CFLAGS=""
  13509. BASE_LDFLAGS=""
  13510. case "$host" in
  13511. *-*-cygwin*)
  13512. # We build SDL on cygwin without the UNIX emulation layer
  13513. save_CFLAGS="$CFLAGS"
  13514. have_no_cygwin=no
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13516. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13517. CFLAGS="$save_CFLAGS -mno-cygwin"
  13518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13519. /* end confdefs.h. */
  13520. int
  13521. main ()
  13522. {
  13523. ;
  13524. return 0;
  13525. }
  13526. _ACEOF
  13527. if ac_fn_c_try_compile "$LINENO"; then :
  13528. have_no_cygwin=yes
  13529. fi
  13530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13532. $as_echo "$have_no_cygwin" >&6; }
  13533. CFLAGS="$save_CFLAGS"
  13534. if test x$have_no_cygwin = xyes; then
  13535. BASE_CFLAGS="-mno-cygwin"
  13536. BASE_LDFLAGS="-mno-cygwin"
  13537. fi
  13538. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13539. ;;
  13540. esac
  13541. # Uncomment the following line if you want to force SDL and applications
  13542. # built with it to be compiled for a particular architecture.
  13543. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13544. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13545. # The default optimization for SDL is -O3 (Bug #31)
  13546. if test "x$orig_CFLAGS" = x; then
  13547. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13548. fi
  13549. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13550. BUILD_LDFLAGS="$LDFLAGS"
  13551. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13552. ## These are common directories to find software packages
  13553. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13554. # if test -d $path/include; then
  13555. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13556. # fi
  13557. # if test -d $path/lib; then
  13558. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13559. # fi
  13560. #done
  13561. SDL_CFLAGS="$BASE_CFLAGS"
  13562. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13563. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13564. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13565. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13566. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13567. find_lib()
  13568. {
  13569. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13570. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13571. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13572. if test "$cross_compiling" = yes; then
  13573. host_lib_path=""
  13574. else
  13575. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13576. fi
  13577. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13578. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13579. if test x$lib != x; then
  13580. echo $lib
  13581. return
  13582. fi
  13583. done
  13584. }
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13586. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13587. if ${ac_cv_c_const+:} false; then :
  13588. $as_echo_n "(cached) " >&6
  13589. else
  13590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13591. /* end confdefs.h. */
  13592. int
  13593. main ()
  13594. {
  13595. #ifndef __cplusplus
  13596. /* Ultrix mips cc rejects this sort of thing. */
  13597. typedef int charset[2];
  13598. const charset cs = { 0, 0 };
  13599. /* SunOS 4.1.1 cc rejects this. */
  13600. char const *const *pcpcc;
  13601. char **ppc;
  13602. /* NEC SVR4.0.2 mips cc rejects this. */
  13603. struct point {int x, y;};
  13604. static struct point const zero = {0,0};
  13605. /* AIX XL C 1.02.0.0 rejects this.
  13606. It does not let you subtract one const X* pointer from another in
  13607. an arm of an if-expression whose if-part is not a constant
  13608. expression */
  13609. const char *g = "string";
  13610. pcpcc = &g + (g ? g-g : 0);
  13611. /* HPUX 7.0 cc rejects these. */
  13612. ++pcpcc;
  13613. ppc = (char**) pcpcc;
  13614. pcpcc = (char const *const *) ppc;
  13615. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13616. char tx;
  13617. char *t = &tx;
  13618. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13619. *t++ = 0;
  13620. if (s) return 0;
  13621. }
  13622. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13623. int x[] = {25, 17};
  13624. const int *foo = &x[0];
  13625. ++foo;
  13626. }
  13627. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13628. typedef const int *iptr;
  13629. iptr p = 0;
  13630. ++p;
  13631. }
  13632. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13633. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13634. struct s { int j; const int *ap[3]; } bx;
  13635. struct s *b = &bx; b->j = 5;
  13636. }
  13637. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13638. const int foo = 10;
  13639. if (!foo) return 0;
  13640. }
  13641. return !cs[0] && !zero.x;
  13642. #endif
  13643. ;
  13644. return 0;
  13645. }
  13646. _ACEOF
  13647. if ac_fn_c_try_compile "$LINENO"; then :
  13648. ac_cv_c_const=yes
  13649. else
  13650. ac_cv_c_const=no
  13651. fi
  13652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13653. fi
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13655. $as_echo "$ac_cv_c_const" >&6; }
  13656. if test $ac_cv_c_const = no; then
  13657. $as_echo "#define const /**/" >>confdefs.h
  13658. fi
  13659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13660. $as_echo_n "checking for inline... " >&6; }
  13661. if ${ac_cv_c_inline+:} false; then :
  13662. $as_echo_n "(cached) " >&6
  13663. else
  13664. ac_cv_c_inline=no
  13665. for ac_kw in inline __inline__ __inline; do
  13666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13667. /* end confdefs.h. */
  13668. #ifndef __cplusplus
  13669. typedef int foo_t;
  13670. static $ac_kw foo_t static_foo () {return 0; }
  13671. $ac_kw foo_t foo () {return 0; }
  13672. #endif
  13673. _ACEOF
  13674. if ac_fn_c_try_compile "$LINENO"; then :
  13675. ac_cv_c_inline=$ac_kw
  13676. fi
  13677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13678. test "$ac_cv_c_inline" != no && break
  13679. done
  13680. fi
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13682. $as_echo "$ac_cv_c_inline" >&6; }
  13683. case $ac_cv_c_inline in
  13684. inline | yes) ;;
  13685. *)
  13686. case $ac_cv_c_inline in
  13687. no) ac_val=;;
  13688. *) ac_val=$ac_cv_c_inline;;
  13689. esac
  13690. cat >>confdefs.h <<_ACEOF
  13691. #ifndef __cplusplus
  13692. #define inline $ac_val
  13693. #endif
  13694. _ACEOF
  13695. ;;
  13696. esac
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13698. $as_echo_n "checking for working volatile... " >&6; }
  13699. if ${ac_cv_c_volatile+:} false; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13703. /* end confdefs.h. */
  13704. int
  13705. main ()
  13706. {
  13707. volatile int x;
  13708. int * volatile y = (int *) 0;
  13709. return !x && !y;
  13710. ;
  13711. return 0;
  13712. }
  13713. _ACEOF
  13714. if ac_fn_c_try_compile "$LINENO"; then :
  13715. ac_cv_c_volatile=yes
  13716. else
  13717. ac_cv_c_volatile=no
  13718. fi
  13719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13722. $as_echo "$ac_cv_c_volatile" >&6; }
  13723. if test $ac_cv_c_volatile = no; then
  13724. $as_echo "#define volatile /**/" >>confdefs.h
  13725. fi
  13726. # Check whether --enable-assertions was given.
  13727. if test "${enable_assertions+set}" = set; then :
  13728. enableval=$enable_assertions;
  13729. else
  13730. enable_assertions=auto
  13731. fi
  13732. case "$enable_assertions" in
  13733. auto) # Use optimization settings to determine assertion level
  13734. ;;
  13735. disabled)
  13736. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13737. ;;
  13738. release)
  13739. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13740. ;;
  13741. enabled)
  13742. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13743. ;;
  13744. paranoid)
  13745. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13746. ;;
  13747. *)
  13748. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13749. ;;
  13750. esac
  13751. # Check whether --enable-dependency-tracking was given.
  13752. if test "${enable_dependency_tracking+set}" = set; then :
  13753. enableval=$enable_dependency_tracking;
  13754. else
  13755. enable_dependency_tracking=yes
  13756. fi
  13757. if test x$enable_dependency_tracking = xyes; then
  13758. have_gcc_mmd_mt=no
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13760. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13762. /* end confdefs.h. */
  13763. #if !defined(__GNUC__) || __GNUC__ < 3
  13764. #error Dependency tracking requires GCC 3.0 or newer
  13765. #endif
  13766. int
  13767. main ()
  13768. {
  13769. ;
  13770. return 0;
  13771. }
  13772. _ACEOF
  13773. if ac_fn_c_try_compile "$LINENO"; then :
  13774. have_gcc_mmd_mt=yes
  13775. fi
  13776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13778. $as_echo "$have_gcc_mmd_mt" >&6; }
  13779. if test x$have_gcc_mmd_mt = xyes; then
  13780. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13781. fi
  13782. fi
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13784. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13785. have_no_undefined=no
  13786. case "$host" in
  13787. *-*-openbsd*)
  13788. ;;
  13789. *)
  13790. save_LDFLAGS="$LDFLAGS"
  13791. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13793. /* end confdefs.h. */
  13794. int
  13795. main ()
  13796. {
  13797. ;
  13798. return 0;
  13799. }
  13800. _ACEOF
  13801. if ac_fn_c_try_link "$LINENO"; then :
  13802. have_no_undefined=yes
  13803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13804. fi
  13805. rm -f core conftest.err conftest.$ac_objext \
  13806. conftest$ac_exeext conftest.$ac_ext
  13807. LDFLAGS="$save_LDFLAGS"
  13808. ;;
  13809. esac
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13811. $as_echo "$have_no_undefined" >&6; }
  13812. # Check whether --enable-libc was given.
  13813. if test "${enable_libc+set}" = set; then :
  13814. enableval=$enable_libc;
  13815. else
  13816. enable_libc=yes
  13817. fi
  13818. if test x$enable_libc = xyes; then
  13819. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13821. $as_echo_n "checking for ANSI C header files... " >&6; }
  13822. if ${ac_cv_header_stdc+:} false; then :
  13823. $as_echo_n "(cached) " >&6
  13824. else
  13825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13826. /* end confdefs.h. */
  13827. #include <stdlib.h>
  13828. #include <stdarg.h>
  13829. #include <string.h>
  13830. #include <float.h>
  13831. int
  13832. main ()
  13833. {
  13834. ;
  13835. return 0;
  13836. }
  13837. _ACEOF
  13838. if ac_fn_c_try_compile "$LINENO"; then :
  13839. ac_cv_header_stdc=yes
  13840. else
  13841. ac_cv_header_stdc=no
  13842. fi
  13843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13844. if test $ac_cv_header_stdc = yes; then
  13845. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13847. /* end confdefs.h. */
  13848. #include <string.h>
  13849. _ACEOF
  13850. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13851. $EGREP "memchr" >/dev/null 2>&1; then :
  13852. else
  13853. ac_cv_header_stdc=no
  13854. fi
  13855. rm -f conftest*
  13856. fi
  13857. if test $ac_cv_header_stdc = yes; then
  13858. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13860. /* end confdefs.h. */
  13861. #include <stdlib.h>
  13862. _ACEOF
  13863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13864. $EGREP "free" >/dev/null 2>&1; then :
  13865. else
  13866. ac_cv_header_stdc=no
  13867. fi
  13868. rm -f conftest*
  13869. fi
  13870. if test $ac_cv_header_stdc = yes; then
  13871. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13872. if test "$cross_compiling" = yes; then :
  13873. :
  13874. else
  13875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13876. /* end confdefs.h. */
  13877. #include <ctype.h>
  13878. #include <stdlib.h>
  13879. #if ((' ' & 0x0FF) == 0x020)
  13880. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13881. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13882. #else
  13883. # define ISLOWER(c) \
  13884. (('a' <= (c) && (c) <= 'i') \
  13885. || ('j' <= (c) && (c) <= 'r') \
  13886. || ('s' <= (c) && (c) <= 'z'))
  13887. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13888. #endif
  13889. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13890. int
  13891. main ()
  13892. {
  13893. int i;
  13894. for (i = 0; i < 256; i++)
  13895. if (XOR (islower (i), ISLOWER (i))
  13896. || toupper (i) != TOUPPER (i))
  13897. return 2;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. if ac_fn_c_try_run "$LINENO"; then :
  13902. else
  13903. ac_cv_header_stdc=no
  13904. fi
  13905. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13906. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13907. fi
  13908. fi
  13909. fi
  13910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13911. $as_echo "$ac_cv_header_stdc" >&6; }
  13912. if test $ac_cv_header_stdc = yes; then
  13913. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13914. fi
  13915. 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
  13916. do :
  13917. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13918. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13919. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13920. cat >>confdefs.h <<_ACEOF
  13921. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13922. _ACEOF
  13923. fi
  13924. done
  13925. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13926. if test "x$ac_cv_type_size_t" = xyes; then :
  13927. else
  13928. cat >>confdefs.h <<_ACEOF
  13929. #define size_t unsigned int
  13930. _ACEOF
  13931. fi
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13933. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13934. if ${ac_cv_define_M_PI+:} false; then :
  13935. $as_echo_n "(cached) " >&6
  13936. else
  13937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13938. /* end confdefs.h. */
  13939. #include <math.h>
  13940. #ifdef M_PI
  13941. YES_IS_DEFINED
  13942. #endif
  13943. _ACEOF
  13944. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13945. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13946. ac_cv_define_M_PI=yes
  13947. else
  13948. ac_cv_define_M_PI=no
  13949. fi
  13950. rm -f conftest*
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13953. $as_echo "$ac_cv_define_M_PI" >&6; }
  13954. if test "$ac_cv_define_M_PI" = "yes" ; then
  13955. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13956. fi
  13957. case "$host" in
  13958. *-*-cygwin* | *-*-mingw32*)
  13959. ;;
  13960. *)
  13961. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13962. # for constant arguments. Useless!
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13964. $as_echo_n "checking for working alloca.h... " >&6; }
  13965. if ${ac_cv_working_alloca_h+:} false; then :
  13966. $as_echo_n "(cached) " >&6
  13967. else
  13968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13969. /* end confdefs.h. */
  13970. #include <alloca.h>
  13971. int
  13972. main ()
  13973. {
  13974. char *p = (char *) alloca (2 * sizeof (int));
  13975. if (p) return 0;
  13976. ;
  13977. return 0;
  13978. }
  13979. _ACEOF
  13980. if ac_fn_c_try_link "$LINENO"; then :
  13981. ac_cv_working_alloca_h=yes
  13982. else
  13983. ac_cv_working_alloca_h=no
  13984. fi
  13985. rm -f core conftest.err conftest.$ac_objext \
  13986. conftest$ac_exeext conftest.$ac_ext
  13987. fi
  13988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13989. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13990. if test $ac_cv_working_alloca_h = yes; then
  13991. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13994. $as_echo_n "checking for alloca... " >&6; }
  13995. if ${ac_cv_func_alloca_works+:} false; then :
  13996. $as_echo_n "(cached) " >&6
  13997. else
  13998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13999. /* end confdefs.h. */
  14000. #ifdef __GNUC__
  14001. # define alloca __builtin_alloca
  14002. #else
  14003. # ifdef _MSC_VER
  14004. # include <malloc.h>
  14005. # define alloca _alloca
  14006. # else
  14007. # ifdef HAVE_ALLOCA_H
  14008. # include <alloca.h>
  14009. # else
  14010. # ifdef _AIX
  14011. #pragma alloca
  14012. # else
  14013. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14014. void *alloca (size_t);
  14015. # endif
  14016. # endif
  14017. # endif
  14018. # endif
  14019. #endif
  14020. int
  14021. main ()
  14022. {
  14023. char *p = (char *) alloca (1);
  14024. if (p) return 0;
  14025. ;
  14026. return 0;
  14027. }
  14028. _ACEOF
  14029. if ac_fn_c_try_link "$LINENO"; then :
  14030. ac_cv_func_alloca_works=yes
  14031. else
  14032. ac_cv_func_alloca_works=no
  14033. fi
  14034. rm -f core conftest.err conftest.$ac_objext \
  14035. conftest$ac_exeext conftest.$ac_ext
  14036. fi
  14037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14038. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14039. if test $ac_cv_func_alloca_works = yes; then
  14040. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14041. else
  14042. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14043. # that cause trouble. Some versions do not even contain alloca or
  14044. # contain a buggy version. If you still want to use their alloca,
  14045. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14046. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14047. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14049. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14050. if ${ac_cv_os_cray+:} false; then :
  14051. $as_echo_n "(cached) " >&6
  14052. else
  14053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14054. /* end confdefs.h. */
  14055. #if defined CRAY && ! defined CRAY2
  14056. webecray
  14057. #else
  14058. wenotbecray
  14059. #endif
  14060. _ACEOF
  14061. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14062. $EGREP "webecray" >/dev/null 2>&1; then :
  14063. ac_cv_os_cray=yes
  14064. else
  14065. ac_cv_os_cray=no
  14066. fi
  14067. rm -f conftest*
  14068. fi
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14070. $as_echo "$ac_cv_os_cray" >&6; }
  14071. if test $ac_cv_os_cray = yes; then
  14072. for ac_func in _getb67 GETB67 getb67; do
  14073. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14074. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14075. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14076. cat >>confdefs.h <<_ACEOF
  14077. #define CRAY_STACKSEG_END $ac_func
  14078. _ACEOF
  14079. break
  14080. fi
  14081. done
  14082. fi
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14084. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14085. if ${ac_cv_c_stack_direction+:} false; then :
  14086. $as_echo_n "(cached) " >&6
  14087. else
  14088. if test "$cross_compiling" = yes; then :
  14089. ac_cv_c_stack_direction=0
  14090. else
  14091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14092. /* end confdefs.h. */
  14093. $ac_includes_default
  14094. int
  14095. find_stack_direction (int *addr, int depth)
  14096. {
  14097. int dir, dummy = 0;
  14098. if (! addr)
  14099. addr = &dummy;
  14100. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14101. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14102. return dir + dummy;
  14103. }
  14104. int
  14105. main (int argc, char **argv)
  14106. {
  14107. return find_stack_direction (0, argc + !argv + 20) < 0;
  14108. }
  14109. _ACEOF
  14110. if ac_fn_c_try_run "$LINENO"; then :
  14111. ac_cv_c_stack_direction=1
  14112. else
  14113. ac_cv_c_stack_direction=-1
  14114. fi
  14115. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14116. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14117. fi
  14118. fi
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14120. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14121. cat >>confdefs.h <<_ACEOF
  14122. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14123. _ACEOF
  14124. fi
  14125. ;;
  14126. esac
  14127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14128. $as_echo_n "checking for working memcmp... " >&6; }
  14129. if ${ac_cv_func_memcmp_working+:} false; then :
  14130. $as_echo_n "(cached) " >&6
  14131. else
  14132. if test "$cross_compiling" = yes; then :
  14133. ac_cv_func_memcmp_working=no
  14134. else
  14135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14136. /* end confdefs.h. */
  14137. $ac_includes_default
  14138. int
  14139. main ()
  14140. {
  14141. /* Some versions of memcmp are not 8-bit clean. */
  14142. char c0 = '\100', c1 = '\200', c2 = '\201';
  14143. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14144. return 1;
  14145. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14146. or more and with at least one buffer not starting on a 4-byte boundary.
  14147. William Lewis provided this test program. */
  14148. {
  14149. char foo[21];
  14150. char bar[21];
  14151. int i;
  14152. for (i = 0; i < 4; i++)
  14153. {
  14154. char *a = foo + i;
  14155. char *b = bar + i;
  14156. strcpy (a, "--------01111111");
  14157. strcpy (b, "--------10000000");
  14158. if (memcmp (a, b, 16) >= 0)
  14159. return 1;
  14160. }
  14161. return 0;
  14162. }
  14163. ;
  14164. return 0;
  14165. }
  14166. _ACEOF
  14167. if ac_fn_c_try_run "$LINENO"; then :
  14168. ac_cv_func_memcmp_working=yes
  14169. else
  14170. ac_cv_func_memcmp_working=no
  14171. fi
  14172. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14173. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14174. fi
  14175. fi
  14176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14177. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14178. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14179. *" memcmp.$ac_objext "* ) ;;
  14180. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14181. ;;
  14182. esac
  14183. if test x$ac_cv_func_memcmp_working = xyes; then
  14184. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14185. fi
  14186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14187. $as_echo_n "checking for working strtod... " >&6; }
  14188. if ${ac_cv_func_strtod+:} false; then :
  14189. $as_echo_n "(cached) " >&6
  14190. else
  14191. if test "$cross_compiling" = yes; then :
  14192. ac_cv_func_strtod=no
  14193. else
  14194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14195. /* end confdefs.h. */
  14196. $ac_includes_default
  14197. #ifndef strtod
  14198. double strtod ();
  14199. #endif
  14200. int
  14201. main()
  14202. {
  14203. {
  14204. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14205. char *string = " +69";
  14206. char *term;
  14207. double value;
  14208. value = strtod (string, &term);
  14209. if (value != 69 || term != (string + 4))
  14210. return 1;
  14211. }
  14212. {
  14213. /* Under Solaris 2.4, strtod returns the wrong value for the
  14214. terminating character under some conditions. */
  14215. char *string = "NaN";
  14216. char *term;
  14217. strtod (string, &term);
  14218. if (term != string && *(term - 1) == 0)
  14219. return 1;
  14220. }
  14221. return 0;
  14222. }
  14223. _ACEOF
  14224. if ac_fn_c_try_run "$LINENO"; then :
  14225. ac_cv_func_strtod=yes
  14226. else
  14227. ac_cv_func_strtod=no
  14228. fi
  14229. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14230. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14231. fi
  14232. fi
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14234. $as_echo "$ac_cv_func_strtod" >&6; }
  14235. if test $ac_cv_func_strtod = no; then
  14236. case " $LIBOBJS " in
  14237. *" strtod.$ac_objext "* ) ;;
  14238. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14239. ;;
  14240. esac
  14241. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14242. if test "x$ac_cv_func_pow" = xyes; then :
  14243. fi
  14244. if test $ac_cv_func_pow = no; then
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14246. $as_echo_n "checking for pow in -lm... " >&6; }
  14247. if ${ac_cv_lib_m_pow+:} false; then :
  14248. $as_echo_n "(cached) " >&6
  14249. else
  14250. ac_check_lib_save_LIBS=$LIBS
  14251. LIBS="-lm $LIBS"
  14252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14253. /* end confdefs.h. */
  14254. /* Override any GCC internal prototype to avoid an error.
  14255. Use char because int might match the return type of a GCC
  14256. builtin and then its argument prototype would still apply. */
  14257. #ifdef __cplusplus
  14258. extern "C"
  14259. #endif
  14260. char pow ();
  14261. int
  14262. main ()
  14263. {
  14264. return pow ();
  14265. ;
  14266. return 0;
  14267. }
  14268. _ACEOF
  14269. if ac_fn_c_try_link "$LINENO"; then :
  14270. ac_cv_lib_m_pow=yes
  14271. else
  14272. ac_cv_lib_m_pow=no
  14273. fi
  14274. rm -f core conftest.err conftest.$ac_objext \
  14275. conftest$ac_exeext conftest.$ac_ext
  14276. LIBS=$ac_check_lib_save_LIBS
  14277. fi
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14279. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14280. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14281. POW_LIB=-lm
  14282. else
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14284. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14285. fi
  14286. fi
  14287. fi
  14288. if test x$ac_cv_func_strtod = xyes; then
  14289. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14290. fi
  14291. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14292. if test "x$ac_cv_func_mprotect" = xyes; then :
  14293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14294. /* end confdefs.h. */
  14295. #include <sys/types.h>
  14296. #include <sys/mman.h>
  14297. int
  14298. main ()
  14299. {
  14300. ;
  14301. return 0;
  14302. }
  14303. _ACEOF
  14304. if ac_fn_c_try_compile "$LINENO"; then :
  14305. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14306. fi
  14307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14308. fi
  14309. 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
  14310. do :
  14311. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14312. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14313. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14314. cat >>confdefs.h <<_ACEOF
  14315. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14316. _ACEOF
  14317. fi
  14318. done
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14320. $as_echo_n "checking for pow in -lm... " >&6; }
  14321. if ${ac_cv_lib_m_pow+:} false; then :
  14322. $as_echo_n "(cached) " >&6
  14323. else
  14324. ac_check_lib_save_LIBS=$LIBS
  14325. LIBS="-lm $LIBS"
  14326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14327. /* end confdefs.h. */
  14328. /* Override any GCC internal prototype to avoid an error.
  14329. Use char because int might match the return type of a GCC
  14330. builtin and then its argument prototype would still apply. */
  14331. #ifdef __cplusplus
  14332. extern "C"
  14333. #endif
  14334. char pow ();
  14335. int
  14336. main ()
  14337. {
  14338. return pow ();
  14339. ;
  14340. return 0;
  14341. }
  14342. _ACEOF
  14343. if ac_fn_c_try_link "$LINENO"; then :
  14344. ac_cv_lib_m_pow=yes
  14345. else
  14346. ac_cv_lib_m_pow=no
  14347. fi
  14348. rm -f core conftest.err conftest.$ac_objext \
  14349. conftest$ac_exeext conftest.$ac_ext
  14350. LIBS=$ac_check_lib_save_LIBS
  14351. fi
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14353. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14354. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14355. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14356. fi
  14357. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt
  14358. do :
  14359. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14360. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14361. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14362. cat >>confdefs.h <<_ACEOF
  14363. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14364. _ACEOF
  14365. fi
  14366. done
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14368. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14369. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14370. $as_echo_n "(cached) " >&6
  14371. else
  14372. ac_check_lib_save_LIBS=$LIBS
  14373. LIBS="-liconv $LIBS"
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. /* Override any GCC internal prototype to avoid an error.
  14377. Use char because int might match the return type of a GCC
  14378. builtin and then its argument prototype would still apply. */
  14379. #ifdef __cplusplus
  14380. extern "C"
  14381. #endif
  14382. char iconv_open ();
  14383. int
  14384. main ()
  14385. {
  14386. return iconv_open ();
  14387. ;
  14388. return 0;
  14389. }
  14390. _ACEOF
  14391. if ac_fn_c_try_link "$LINENO"; then :
  14392. ac_cv_lib_iconv_iconv_open=yes
  14393. else
  14394. ac_cv_lib_iconv_iconv_open=no
  14395. fi
  14396. rm -f core conftest.err conftest.$ac_objext \
  14397. conftest$ac_exeext conftest.$ac_ext
  14398. LIBS=$ac_check_lib_save_LIBS
  14399. fi
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14401. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14402. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14403. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14404. fi
  14405. for ac_func in iconv
  14406. do :
  14407. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14408. if test "x$ac_cv_func_iconv" = xyes; then :
  14409. cat >>confdefs.h <<_ACEOF
  14410. #define HAVE_ICONV 1
  14411. _ACEOF
  14412. fi
  14413. done
  14414. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14415. "
  14416. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14417. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14418. fi
  14419. fi
  14420. # Check whether --enable-gcc-atomics was given.
  14421. if test "${enable_gcc_atomics+set}" = set; then :
  14422. enableval=$enable_gcc_atomics;
  14423. else
  14424. enable_gcc_atomics=yes
  14425. fi
  14426. if test x$enable_gcc_atomics = xyes; then
  14427. have_gcc_atomics=no
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14429. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14431. /* end confdefs.h. */
  14432. int
  14433. main ()
  14434. {
  14435. int a;
  14436. void *x, *y, *z;
  14437. __sync_lock_test_and_set(&a, 4);
  14438. __sync_lock_test_and_set(&x, y);
  14439. __sync_fetch_and_add(&a, 1);
  14440. __sync_bool_compare_and_swap(&a, 5, 10);
  14441. __sync_bool_compare_and_swap(&x, y, z);
  14442. ;
  14443. return 0;
  14444. }
  14445. _ACEOF
  14446. if ac_fn_c_try_link "$LINENO"; then :
  14447. have_gcc_atomics=yes
  14448. fi
  14449. rm -f core conftest.err conftest.$ac_objext \
  14450. conftest$ac_exeext conftest.$ac_ext
  14451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14452. $as_echo "$have_gcc_atomics" >&6; }
  14453. if test x$have_gcc_atomics = xyes; then
  14454. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14455. else
  14456. # See if we have the minimum operation needed for GCC atomics
  14457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14458. /* end confdefs.h. */
  14459. int
  14460. main ()
  14461. {
  14462. int a;
  14463. __sync_lock_test_and_set(&a, 1);
  14464. __sync_lock_release(&a);
  14465. ;
  14466. return 0;
  14467. }
  14468. _ACEOF
  14469. if ac_fn_c_try_link "$LINENO"; then :
  14470. have_gcc_sync_lock_test_and_set=yes
  14471. fi
  14472. rm -f core conftest.err conftest.$ac_objext \
  14473. conftest$ac_exeext conftest.$ac_ext
  14474. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14475. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14476. fi
  14477. fi
  14478. fi
  14479. # Standard C sources
  14480. SOURCES="$SOURCES $srcdir/src/*.c"
  14481. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14482. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14483. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14484. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14485. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14491. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14492. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14496. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14498. # Check whether --enable-atomic was given.
  14499. if test "${enable_atomic+set}" = set; then :
  14500. enableval=$enable_atomic;
  14501. else
  14502. enable_atomic=yes
  14503. fi
  14504. if test x$enable_atomic != xyes; then
  14505. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14506. fi
  14507. # Check whether --enable-audio was given.
  14508. if test "${enable_audio+set}" = set; then :
  14509. enableval=$enable_audio;
  14510. else
  14511. enable_audio=yes
  14512. fi
  14513. if test x$enable_audio != xyes; then
  14514. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14515. fi
  14516. # Check whether --enable-video was given.
  14517. if test "${enable_video+set}" = set; then :
  14518. enableval=$enable_video;
  14519. else
  14520. enable_video=yes
  14521. fi
  14522. if test x$enable_video != xyes; then
  14523. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14524. fi
  14525. # Check whether --enable-render was given.
  14526. if test "${enable_render+set}" = set; then :
  14527. enableval=$enable_render;
  14528. else
  14529. enable_render=yes
  14530. fi
  14531. if test x$enable_render != xyes; then
  14532. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14533. fi
  14534. # Check whether --enable-events was given.
  14535. if test "${enable_events+set}" = set; then :
  14536. enableval=$enable_events;
  14537. else
  14538. enable_events=yes
  14539. fi
  14540. if test x$enable_events != xyes; then
  14541. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14542. fi
  14543. # Check whether --enable-joystick was given.
  14544. if test "${enable_joystick+set}" = set; then :
  14545. enableval=$enable_joystick;
  14546. else
  14547. enable_joystick=yes
  14548. fi
  14549. if test x$enable_joystick != xyes; then
  14550. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14551. fi
  14552. # Check whether --enable-haptic was given.
  14553. if test "${enable_haptic+set}" = set; then :
  14554. enableval=$enable_haptic;
  14555. else
  14556. enable_haptic=yes
  14557. fi
  14558. if test x$enable_haptic != xyes; then
  14559. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14560. fi
  14561. # Check whether --enable-power was given.
  14562. if test "${enable_power+set}" = set; then :
  14563. enableval=$enable_power;
  14564. else
  14565. enable_power=yes
  14566. fi
  14567. if test x$enable_power != xyes; then
  14568. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14569. fi
  14570. # Check whether --enable-filesystem was given.
  14571. if test "${enable_filesystem+set}" = set; then :
  14572. enableval=$enable_filesystem;
  14573. else
  14574. enable_filesystem=yes
  14575. fi
  14576. if test x$enable_filesystem != xyes; then
  14577. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14578. fi
  14579. # Check whether --enable-threads was given.
  14580. if test "${enable_threads+set}" = set; then :
  14581. enableval=$enable_threads;
  14582. else
  14583. enable_threads=yes
  14584. fi
  14585. if test x$enable_threads != xyes; then
  14586. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14587. fi
  14588. # Check whether --enable-timers was given.
  14589. if test "${enable_timers+set}" = set; then :
  14590. enableval=$enable_timers;
  14591. else
  14592. enable_timers=yes
  14593. fi
  14594. if test x$enable_timers != xyes; then
  14595. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14596. fi
  14597. # Check whether --enable-file was given.
  14598. if test "${enable_file+set}" = set; then :
  14599. enableval=$enable_file;
  14600. else
  14601. enable_file=yes
  14602. fi
  14603. if test x$enable_file != xyes; then
  14604. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14605. fi
  14606. # Check whether --enable-loadso was given.
  14607. if test "${enable_loadso+set}" = set; then :
  14608. enableval=$enable_loadso;
  14609. else
  14610. enable_loadso=yes
  14611. fi
  14612. if test x$enable_loadso != xyes; then
  14613. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14614. fi
  14615. # Check whether --enable-cpuinfo was given.
  14616. if test "${enable_cpuinfo+set}" = set; then :
  14617. enableval=$enable_cpuinfo;
  14618. else
  14619. enable_cpuinfo=yes
  14620. fi
  14621. if test x$enable_cpuinfo != xyes; then
  14622. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14623. fi
  14624. # Check whether --enable-atomic was given.
  14625. if test "${enable_atomic+set}" = set; then :
  14626. enableval=$enable_atomic;
  14627. else
  14628. enable_atomic=yes
  14629. fi
  14630. if test x$enable_atomic != xyes; then
  14631. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14632. fi
  14633. # Check whether --enable-assembly was given.
  14634. if test "${enable_assembly+set}" = set; then :
  14635. enableval=$enable_assembly;
  14636. else
  14637. enable_assembly=yes
  14638. fi
  14639. if test x$enable_assembly = xyes; then
  14640. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14641. # Make sure that we don't generate floating point code that would
  14642. # cause illegal instruction exceptions on older processors
  14643. case "$host" in
  14644. *-*-darwin*)
  14645. # Don't need to worry about Apple hardware, it's all SSE capable
  14646. default_ssemath=yes
  14647. ;;
  14648. *64-*-*)
  14649. # x86 64-bit architectures all have SSE instructions
  14650. default_ssemath=yes
  14651. ;;
  14652. *)
  14653. default_ssemath=no
  14654. ;;
  14655. esac
  14656. # Check whether --enable-ssemath was given.
  14657. if test "${enable_ssemath+set}" = set; then :
  14658. enableval=$enable_ssemath;
  14659. else
  14660. enable_ssemath=$default_ssemath
  14661. fi
  14662. if test x$enable_ssemath = xno; then
  14663. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14664. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14665. fi
  14666. fi
  14667. # Check whether --enable-mmx was given.
  14668. if test "${enable_mmx+set}" = set; then :
  14669. enableval=$enable_mmx;
  14670. else
  14671. enable_mmx=yes
  14672. fi
  14673. if test x$enable_mmx = xyes; then
  14674. save_CFLAGS="$CFLAGS"
  14675. have_gcc_mmx=no
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14677. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14678. mmx_CFLAGS="-mmmx"
  14679. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14681. /* end confdefs.h. */
  14682. #ifdef __MINGW32__
  14683. #include <_mingw.h>
  14684. #ifdef __MINGW64_VERSION_MAJOR
  14685. #include <intrin.h>
  14686. #else
  14687. #include <mmintrin.h>
  14688. #endif
  14689. #else
  14690. #include <mmintrin.h>
  14691. #endif
  14692. #ifndef __MMX__
  14693. #error Assembler CPP flag not enabled
  14694. #endif
  14695. int
  14696. main ()
  14697. {
  14698. ;
  14699. return 0;
  14700. }
  14701. _ACEOF
  14702. if ac_fn_c_try_compile "$LINENO"; then :
  14703. have_gcc_mmx=yes
  14704. fi
  14705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14707. $as_echo "$have_gcc_mmx" >&6; }
  14708. CFLAGS="$save_CFLAGS"
  14709. if test x$have_gcc_mmx = xyes; then
  14710. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14711. fi
  14712. fi
  14713. # Check whether --enable-3dnow was given.
  14714. if test "${enable_3dnow+set}" = set; then :
  14715. enableval=$enable_3dnow;
  14716. else
  14717. enable_3dnow=yes
  14718. fi
  14719. if test x$enable_3dnow = xyes; then
  14720. save_CFLAGS="$CFLAGS"
  14721. have_gcc_3dnow=no
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14723. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14724. amd3dnow_CFLAGS="-m3dnow"
  14725. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14727. /* end confdefs.h. */
  14728. #include <mm3dnow.h>
  14729. #ifndef __3dNOW__
  14730. #error Assembler CPP flag not enabled
  14731. #endif
  14732. int
  14733. main ()
  14734. {
  14735. void *p = 0;
  14736. _m_prefetch(p);
  14737. ;
  14738. return 0;
  14739. }
  14740. _ACEOF
  14741. if ac_fn_c_try_link "$LINENO"; then :
  14742. have_gcc_3dnow=yes
  14743. fi
  14744. rm -f core conftest.err conftest.$ac_objext \
  14745. conftest$ac_exeext conftest.$ac_ext
  14746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14747. $as_echo "$have_gcc_3dnow" >&6; }
  14748. CFLAGS="$save_CFLAGS"
  14749. if test x$have_gcc_3dnow = xyes; then
  14750. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14751. fi
  14752. fi
  14753. # Check whether --enable-sse was given.
  14754. if test "${enable_sse+set}" = set; then :
  14755. enableval=$enable_sse;
  14756. else
  14757. enable_sse=yes
  14758. fi
  14759. if test x$enable_sse = xyes; then
  14760. save_CFLAGS="$CFLAGS"
  14761. have_gcc_sse=no
  14762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14763. $as_echo_n "checking for GCC -msse option... " >&6; }
  14764. sse_CFLAGS="-msse"
  14765. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14767. /* end confdefs.h. */
  14768. #ifdef __MINGW32__
  14769. #include <_mingw.h>
  14770. #ifdef __MINGW64_VERSION_MAJOR
  14771. #include <intrin.h>
  14772. #else
  14773. #include <xmmintrin.h>
  14774. #endif
  14775. #else
  14776. #include <xmmintrin.h>
  14777. #endif
  14778. #ifndef __SSE__
  14779. #error Assembler CPP flag not enabled
  14780. #endif
  14781. int
  14782. main ()
  14783. {
  14784. ;
  14785. return 0;
  14786. }
  14787. _ACEOF
  14788. if ac_fn_c_try_compile "$LINENO"; then :
  14789. have_gcc_sse=yes
  14790. fi
  14791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14793. $as_echo "$have_gcc_sse" >&6; }
  14794. CFLAGS="$save_CFLAGS"
  14795. if test x$have_gcc_sse = xyes; then
  14796. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14797. fi
  14798. fi
  14799. # Check whether --enable-sse2 was given.
  14800. if test "${enable_sse2+set}" = set; then :
  14801. enableval=$enable_sse2;
  14802. else
  14803. enable_sse2=$default_ssemath
  14804. fi
  14805. if test x$enable_sse2 = xyes; then
  14806. save_CFLAGS="$CFLAGS"
  14807. have_gcc_sse2=no
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14809. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14810. sse2_CFLAGS="-msse2"
  14811. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14813. /* end confdefs.h. */
  14814. #ifdef __MINGW32__
  14815. #include <_mingw.h>
  14816. #ifdef __MINGW64_VERSION_MAJOR
  14817. #include <intrin.h>
  14818. #else
  14819. #include <emmintrin.h>
  14820. #endif
  14821. #else
  14822. #include <emmintrin.h>
  14823. #endif
  14824. #ifndef __SSE2__
  14825. #error Assembler CPP flag not enabled
  14826. #endif
  14827. int
  14828. main ()
  14829. {
  14830. ;
  14831. return 0;
  14832. }
  14833. _ACEOF
  14834. if ac_fn_c_try_compile "$LINENO"; then :
  14835. have_gcc_sse2=yes
  14836. fi
  14837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14839. $as_echo "$have_gcc_sse2" >&6; }
  14840. CFLAGS="$save_CFLAGS"
  14841. if test x$have_gcc_sse2 = xyes; then
  14842. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14843. fi
  14844. fi
  14845. # Check whether --enable-altivec was given.
  14846. if test "${enable_altivec+set}" = set; then :
  14847. enableval=$enable_altivec;
  14848. else
  14849. enable_altivec=yes
  14850. fi
  14851. if test x$enable_altivec = xyes; then
  14852. save_CFLAGS="$CFLAGS"
  14853. have_gcc_altivec=no
  14854. have_altivec_h_hdr=no
  14855. altivec_CFLAGS="-maltivec"
  14856. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14858. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14860. /* end confdefs.h. */
  14861. #include <altivec.h>
  14862. vector unsigned int vzero() {
  14863. return vec_splat_u32(0);
  14864. }
  14865. int
  14866. main ()
  14867. {
  14868. ;
  14869. return 0;
  14870. }
  14871. _ACEOF
  14872. if ac_fn_c_try_compile "$LINENO"; then :
  14873. have_gcc_altivec=yes
  14874. have_altivec_h_hdr=yes
  14875. fi
  14876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14878. $as_echo "$have_gcc_altivec" >&6; }
  14879. if test x$have_gcc_altivec = xno; then
  14880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14881. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14883. /* end confdefs.h. */
  14884. vector unsigned int vzero() {
  14885. return vec_splat_u32(0);
  14886. }
  14887. int
  14888. main ()
  14889. {
  14890. ;
  14891. return 0;
  14892. }
  14893. _ACEOF
  14894. if ac_fn_c_try_compile "$LINENO"; then :
  14895. have_gcc_altivec=yes
  14896. fi
  14897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14899. $as_echo "$have_gcc_altivec" >&6; }
  14900. fi
  14901. if test x$have_gcc_altivec = xno; then
  14902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14903. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14904. altivec_CFLAGS="-faltivec"
  14905. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14907. /* end confdefs.h. */
  14908. #include <altivec.h>
  14909. vector unsigned int vzero() {
  14910. return vec_splat_u32(0);
  14911. }
  14912. int
  14913. main ()
  14914. {
  14915. ;
  14916. return 0;
  14917. }
  14918. _ACEOF
  14919. if ac_fn_c_try_compile "$LINENO"; then :
  14920. have_gcc_altivec=yes
  14921. have_altivec_h_hdr=yes
  14922. fi
  14923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14925. $as_echo "$have_gcc_altivec" >&6; }
  14926. fi
  14927. if test x$have_gcc_altivec = xno; then
  14928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14929. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14931. /* end confdefs.h. */
  14932. vector unsigned int vzero() {
  14933. return vec_splat_u32(0);
  14934. }
  14935. int
  14936. main ()
  14937. {
  14938. ;
  14939. return 0;
  14940. }
  14941. _ACEOF
  14942. if ac_fn_c_try_compile "$LINENO"; then :
  14943. have_gcc_altivec=yes
  14944. fi
  14945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14947. $as_echo "$have_gcc_altivec" >&6; }
  14948. fi
  14949. CFLAGS="$save_CFLAGS"
  14950. if test x$have_gcc_altivec = xyes; then
  14951. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14952. if test x$have_altivec_h_hdr = xyes; then
  14953. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14954. fi
  14955. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14956. fi
  14957. fi
  14958. fi
  14959. CheckOSS()
  14960. {
  14961. # Check whether --enable-oss was given.
  14962. if test "${enable_oss+set}" = set; then :
  14963. enableval=$enable_oss;
  14964. else
  14965. enable_oss=maybe
  14966. fi
  14967. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14968. # use sndio instead. So on there, we default to disabled. You can force
  14969. # it on if you really want, though.
  14970. if test x$enable_oss = xmaybe; then
  14971. enable_oss=yes
  14972. case "$host" in
  14973. *-*-openbsd*)
  14974. enable_oss=no;;
  14975. esac
  14976. fi
  14977. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  14979. $as_echo_n "checking for OSS audio support... " >&6; }
  14980. have_oss=no
  14981. if test x$have_oss != xyes; then
  14982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14983. /* end confdefs.h. */
  14984. #include <sys/soundcard.h>
  14985. int
  14986. main ()
  14987. {
  14988. int arg = SNDCTL_DSP_SETFRAGMENT;
  14989. ;
  14990. return 0;
  14991. }
  14992. _ACEOF
  14993. if ac_fn_c_try_compile "$LINENO"; then :
  14994. have_oss=yes
  14995. fi
  14996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14997. fi
  14998. if test x$have_oss != xyes; then
  14999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15000. /* end confdefs.h. */
  15001. #include <soundcard.h>
  15002. int
  15003. main ()
  15004. {
  15005. int arg = SNDCTL_DSP_SETFRAGMENT;
  15006. ;
  15007. return 0;
  15008. }
  15009. _ACEOF
  15010. if ac_fn_c_try_compile "$LINENO"; then :
  15011. have_oss=yes
  15012. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15013. fi
  15014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15015. fi
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15017. $as_echo "$have_oss" >&6; }
  15018. if test x$have_oss = xyes; then
  15019. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15020. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15021. have_audio=yes
  15022. # We may need to link with ossaudio emulation library
  15023. case "$host" in
  15024. *-*-openbsd*|*-*-netbsd*)
  15025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15026. esac
  15027. fi
  15028. fi
  15029. }
  15030. CheckALSA()
  15031. {
  15032. # Check whether --enable-alsa was given.
  15033. if test "${enable_alsa+set}" = set; then :
  15034. enableval=$enable_alsa;
  15035. else
  15036. enable_alsa=yes
  15037. fi
  15038. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15039. alsa_save_CFLAGS="$CFLAGS"
  15040. alsa_save_LDFLAGS="$LDFLAGS"
  15041. alsa_save_LIBS="$LIBS"
  15042. alsa_found=yes
  15043. # Check whether --with-alsa-prefix was given.
  15044. if test "${with_alsa_prefix+set}" = set; then :
  15045. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15046. else
  15047. alsa_prefix=""
  15048. fi
  15049. # Check whether --with-alsa-inc-prefix was given.
  15050. if test "${with_alsa_inc_prefix+set}" = set; then :
  15051. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15052. else
  15053. alsa_inc_prefix=""
  15054. fi
  15055. # Check whether --enable-alsatest was given.
  15056. if test "${enable_alsatest+set}" = set; then :
  15057. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15058. else
  15059. enable_alsatest=yes
  15060. fi
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15062. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15063. if test "$alsa_inc_prefix" != "" ; then
  15064. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15065. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15066. fi
  15067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15068. $as_echo "$ALSA_CFLAGS" >&6; }
  15069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15070. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15071. if test "$alsa_prefix" != "" ; then
  15072. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15073. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15074. fi
  15075. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15076. LIBS=`echo $LIBS | sed 's/-lm//'`
  15077. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15078. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15079. LIBS=`echo $LIBS | sed 's/ //'`
  15080. LIBS="$ALSA_LIBS $LIBS"
  15081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15082. $as_echo "$ALSA_LIBS" >&6; }
  15083. min_alsa_version=0.9.0
  15084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15085. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15086. no_alsa=""
  15087. alsa_min_major_version=`echo $min_alsa_version | \
  15088. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15089. alsa_min_minor_version=`echo $min_alsa_version | \
  15090. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15091. alsa_min_micro_version=`echo $min_alsa_version | \
  15092. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15093. ac_ext=c
  15094. ac_cpp='$CPP $CPPFLAGS'
  15095. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15096. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15097. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15099. /* end confdefs.h. */
  15100. #include <alsa/asoundlib.h>
  15101. int
  15102. main ()
  15103. {
  15104. /* ensure backward compatibility */
  15105. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15106. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15107. #endif
  15108. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15109. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15110. #endif
  15111. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15112. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15113. #endif
  15114. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15115. exit(0);
  15116. # else
  15117. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15118. # error not present
  15119. # endif
  15120. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15121. exit(0);
  15122. # else
  15123. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15124. # error not present
  15125. # endif
  15126. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15127. # error not present
  15128. # endif
  15129. # endif
  15130. # endif
  15131. exit(0);
  15132. ;
  15133. return 0;
  15134. }
  15135. _ACEOF
  15136. if ac_fn_c_try_compile "$LINENO"; then :
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15138. $as_echo "found." >&6; }
  15139. else
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15141. $as_echo "not present." >&6; }
  15142. alsa_found=no
  15143. fi
  15144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15145. ac_ext=c
  15146. ac_cpp='$CPP $CPPFLAGS'
  15147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15150. if test "x$enable_alsatest" = "xyes"; then
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15152. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15153. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15154. $as_echo_n "(cached) " >&6
  15155. else
  15156. ac_check_lib_save_LIBS=$LIBS
  15157. LIBS="-lasound $LIBS"
  15158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15159. /* end confdefs.h. */
  15160. /* Override any GCC internal prototype to avoid an error.
  15161. Use char because int might match the return type of a GCC
  15162. builtin and then its argument prototype would still apply. */
  15163. #ifdef __cplusplus
  15164. extern "C"
  15165. #endif
  15166. char snd_ctl_open ();
  15167. int
  15168. main ()
  15169. {
  15170. return snd_ctl_open ();
  15171. ;
  15172. return 0;
  15173. }
  15174. _ACEOF
  15175. if ac_fn_c_try_link "$LINENO"; then :
  15176. ac_cv_lib_asound_snd_ctl_open=yes
  15177. else
  15178. ac_cv_lib_asound_snd_ctl_open=no
  15179. fi
  15180. rm -f core conftest.err conftest.$ac_objext \
  15181. conftest$ac_exeext conftest.$ac_ext
  15182. LIBS=$ac_check_lib_save_LIBS
  15183. fi
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15185. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15186. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15187. cat >>confdefs.h <<_ACEOF
  15188. #define HAVE_LIBASOUND 1
  15189. _ACEOF
  15190. LIBS="-lasound $LIBS"
  15191. else
  15192. alsa_found=no
  15193. fi
  15194. fi
  15195. if test "x$alsa_found" = "xyes" ; then
  15196. have_alsa=yes
  15197. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15198. LIBS=`echo $LIBS | sed 's/ //'`
  15199. LIBS="-lasound $LIBS"
  15200. fi
  15201. if test "x$alsa_found" = "xno" ; then
  15202. have_alsa=no
  15203. CFLAGS="$alsa_save_CFLAGS"
  15204. LDFLAGS="$alsa_save_LDFLAGS"
  15205. LIBS="$alsa_save_LIBS"
  15206. ALSA_CFLAGS=""
  15207. ALSA_LIBS=""
  15208. fi
  15209. # Restore all flags from before the ALSA detection runs
  15210. CFLAGS="$alsa_save_CFLAGS"
  15211. LDFLAGS="$alsa_save_LDFLAGS"
  15212. LIBS="$alsa_save_LIBS"
  15213. if test x$have_alsa = xyes; then
  15214. # Check whether --enable-alsa-shared was given.
  15215. if test "${enable_alsa_shared+set}" = set; then :
  15216. enableval=$enable_alsa_shared;
  15217. else
  15218. enable_alsa_shared=yes
  15219. fi
  15220. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15221. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15222. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15223. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15224. if test x$have_loadso != xyes && \
  15225. test x$enable_alsa_shared = xyes; then
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15227. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15228. fi
  15229. if test x$have_loadso = xyes && \
  15230. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15231. echo "-- dynamic libasound -> $alsa_lib"
  15232. cat >>confdefs.h <<_ACEOF
  15233. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15234. _ACEOF
  15235. else
  15236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15237. fi
  15238. have_audio=yes
  15239. fi
  15240. fi
  15241. }
  15242. CheckESD()
  15243. {
  15244. # Check whether --enable-esd was given.
  15245. if test "${enable_esd+set}" = set; then :
  15246. enableval=$enable_esd;
  15247. else
  15248. enable_esd=yes
  15249. fi
  15250. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15251. # Check whether --with-esd-prefix was given.
  15252. if test "${with_esd_prefix+set}" = set; then :
  15253. withval=$with_esd_prefix; esd_prefix="$withval"
  15254. else
  15255. esd_prefix=""
  15256. fi
  15257. # Check whether --with-esd-exec-prefix was given.
  15258. if test "${with_esd_exec_prefix+set}" = set; then :
  15259. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15260. else
  15261. esd_exec_prefix=""
  15262. fi
  15263. # Check whether --enable-esdtest was given.
  15264. if test "${enable_esdtest+set}" = set; then :
  15265. enableval=$enable_esdtest;
  15266. else
  15267. enable_esdtest=yes
  15268. fi
  15269. if test x$esd_exec_prefix != x ; then
  15270. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15271. if test x${ESD_CONFIG+set} != xset ; then
  15272. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15273. fi
  15274. fi
  15275. if test x$esd_prefix != x ; then
  15276. esd_args="$esd_args --prefix=$esd_prefix"
  15277. if test x${ESD_CONFIG+set} != xset ; then
  15278. ESD_CONFIG=$esd_prefix/bin/esd-config
  15279. fi
  15280. fi
  15281. # Extract the first word of "esd-config", so it can be a program name with args.
  15282. set dummy esd-config; ac_word=$2
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15284. $as_echo_n "checking for $ac_word... " >&6; }
  15285. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15286. $as_echo_n "(cached) " >&6
  15287. else
  15288. case $ESD_CONFIG in
  15289. [\\/]* | ?:[\\/]*)
  15290. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15291. ;;
  15292. *)
  15293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15294. for as_dir in $PATH
  15295. do
  15296. IFS=$as_save_IFS
  15297. test -z "$as_dir" && as_dir=.
  15298. for ac_exec_ext in '' $ac_executable_extensions; do
  15299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15300. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15302. break 2
  15303. fi
  15304. done
  15305. done
  15306. IFS=$as_save_IFS
  15307. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15308. ;;
  15309. esac
  15310. fi
  15311. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15312. if test -n "$ESD_CONFIG"; then
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15314. $as_echo "$ESD_CONFIG" >&6; }
  15315. else
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15317. $as_echo "no" >&6; }
  15318. fi
  15319. min_esd_version=0.2.8
  15320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15321. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15322. no_esd=""
  15323. if test "$ESD_CONFIG" = "no" ; then
  15324. no_esd=yes
  15325. else
  15326. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15327. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15328. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15330. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15331. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15332. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15333. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15334. if test "x$enable_esdtest" = "xyes" ; then
  15335. ac_save_CFLAGS="$CFLAGS"
  15336. ac_save_LIBS="$LIBS"
  15337. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15338. LIBS="$LIBS $ESD_LIBS"
  15339. rm -f conf.esdtest
  15340. if test "$cross_compiling" = yes; then :
  15341. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15342. else
  15343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15344. /* end confdefs.h. */
  15345. #include <stdio.h>
  15346. #include <stdlib.h>
  15347. #include <string.h>
  15348. #include <esd.h>
  15349. char*
  15350. my_strdup (char *str)
  15351. {
  15352. char *new_str;
  15353. if (str)
  15354. {
  15355. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15356. strcpy (new_str, str);
  15357. }
  15358. else
  15359. new_str = NULL;
  15360. return new_str;
  15361. }
  15362. int main ()
  15363. {
  15364. int major, minor, micro;
  15365. char *tmp_version;
  15366. system ("touch conf.esdtest");
  15367. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15368. tmp_version = my_strdup("$min_esd_version");
  15369. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15370. printf("%s, bad version string\n", "$min_esd_version");
  15371. exit(1);
  15372. }
  15373. if (($esd_major_version > major) ||
  15374. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15375. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15376. {
  15377. return 0;
  15378. }
  15379. else
  15380. {
  15381. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15382. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15383. printf("*** best to upgrade to the required version.\n");
  15384. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15385. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15386. printf("*** config.cache before re-running configure\n");
  15387. return 1;
  15388. }
  15389. }
  15390. _ACEOF
  15391. if ac_fn_c_try_run "$LINENO"; then :
  15392. else
  15393. no_esd=yes
  15394. fi
  15395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15397. fi
  15398. CFLAGS="$ac_save_CFLAGS"
  15399. LIBS="$ac_save_LIBS"
  15400. fi
  15401. fi
  15402. if test "x$no_esd" = x ; then
  15403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15404. $as_echo "yes" >&6; }
  15405. have_esd=yes
  15406. else
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15408. $as_echo "no" >&6; }
  15409. if test "$ESD_CONFIG" = "no" ; then
  15410. echo "*** The esd-config script installed by ESD could not be found"
  15411. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15412. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15413. echo "*** full path to esd-config."
  15414. else
  15415. if test -f conf.esdtest ; then
  15416. :
  15417. else
  15418. echo "*** Could not run ESD test program, checking why..."
  15419. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15420. LIBS="$LIBS $ESD_LIBS"
  15421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15422. /* end confdefs.h. */
  15423. #include <stdio.h>
  15424. #include <esd.h>
  15425. int
  15426. main ()
  15427. {
  15428. return 0;
  15429. ;
  15430. return 0;
  15431. }
  15432. _ACEOF
  15433. if ac_fn_c_try_link "$LINENO"; then :
  15434. echo "*** The test program compiled, but did not run. This usually means"
  15435. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15436. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15437. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15438. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15439. echo "*** is required on your system"
  15440. echo "***"
  15441. echo "*** If you have an old version installed, it is best to remove it, although"
  15442. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15443. else
  15444. echo "*** The test program failed to compile or link. See the file config.log for the"
  15445. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15446. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15447. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15448. fi
  15449. rm -f core conftest.err conftest.$ac_objext \
  15450. conftest$ac_exeext conftest.$ac_ext
  15451. CFLAGS="$ac_save_CFLAGS"
  15452. LIBS="$ac_save_LIBS"
  15453. fi
  15454. fi
  15455. ESD_CFLAGS=""
  15456. ESD_LIBS=""
  15457. have_esd=no
  15458. fi
  15459. rm -f conf.esdtest
  15460. if test x$have_esd = xyes; then
  15461. # Check whether --enable-esd-shared was given.
  15462. if test "${enable_esd_shared+set}" = set; then :
  15463. enableval=$enable_esd_shared;
  15464. else
  15465. enable_esd_shared=yes
  15466. fi
  15467. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15468. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15469. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15470. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15471. if test x$have_loadso != xyes && \
  15472. test x$enable_esd_shared = xyes; then
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15474. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15475. fi
  15476. if test x$have_loadso = xyes && \
  15477. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15478. echo "-- dynamic libesd -> $esd_lib"
  15479. cat >>confdefs.h <<_ACEOF
  15480. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15481. _ACEOF
  15482. else
  15483. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15484. fi
  15485. have_audio=yes
  15486. fi
  15487. fi
  15488. }
  15489. CheckPulseAudio()
  15490. {
  15491. # Check whether --enable-pulseaudio was given.
  15492. if test "${enable_pulseaudio+set}" = set; then :
  15493. enableval=$enable_pulseaudio;
  15494. else
  15495. enable_pulseaudio=yes
  15496. fi
  15497. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15498. audio_pulseaudio=no
  15499. PULSEAUDIO_REQUIRED_VERSION=0.9
  15500. # Extract the first word of "pkg-config", so it can be a program name with args.
  15501. set dummy pkg-config; ac_word=$2
  15502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15503. $as_echo_n "checking for $ac_word... " >&6; }
  15504. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15505. $as_echo_n "(cached) " >&6
  15506. else
  15507. case $PKG_CONFIG in
  15508. [\\/]* | ?:[\\/]*)
  15509. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15510. ;;
  15511. *)
  15512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15513. for as_dir in $PATH
  15514. do
  15515. IFS=$as_save_IFS
  15516. test -z "$as_dir" && as_dir=.
  15517. for ac_exec_ext in '' $ac_executable_extensions; do
  15518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15519. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15521. break 2
  15522. fi
  15523. done
  15524. done
  15525. IFS=$as_save_IFS
  15526. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15527. ;;
  15528. esac
  15529. fi
  15530. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15531. if test -n "$PKG_CONFIG"; then
  15532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15533. $as_echo "$PKG_CONFIG" >&6; }
  15534. else
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15536. $as_echo "no" >&6; }
  15537. fi
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15539. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15540. if test x$PKG_CONFIG != xno; then
  15541. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15542. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15543. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15544. audio_pulseaudio=yes
  15545. fi
  15546. fi
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15548. $as_echo "$audio_pulseaudio" >&6; }
  15549. if test x$audio_pulseaudio = xyes; then
  15550. # Check whether --enable-pulseaudio-shared was given.
  15551. if test "${enable_pulseaudio_shared+set}" = set; then :
  15552. enableval=$enable_pulseaudio_shared;
  15553. else
  15554. enable_pulseaudio_shared=yes
  15555. fi
  15556. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15557. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15558. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15559. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15560. if test x$have_loadso != xyes && \
  15561. test x$enable_pulseaudio_shared = xyes; then
  15562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15563. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15564. fi
  15565. if test x$have_loadso = xyes && \
  15566. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15567. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15568. cat >>confdefs.h <<_ACEOF
  15569. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15570. _ACEOF
  15571. case "$host" in
  15572. # On Solaris, pulseaudio must be linked deferred explicitly
  15573. # to prevent undefined symbol failures.
  15574. *-*-solaris*)
  15575. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15576. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15577. esac
  15578. else
  15579. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15580. fi
  15581. have_audio=yes
  15582. fi
  15583. fi
  15584. }
  15585. CheckARTSC()
  15586. {
  15587. # Check whether --enable-arts was given.
  15588. if test "${enable_arts+set}" = set; then :
  15589. enableval=$enable_arts;
  15590. else
  15591. enable_arts=yes
  15592. fi
  15593. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15594. # Extract the first word of "artsc-config", so it can be a program name with args.
  15595. set dummy artsc-config; ac_word=$2
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15597. $as_echo_n "checking for $ac_word... " >&6; }
  15598. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15599. $as_echo_n "(cached) " >&6
  15600. else
  15601. case $ARTSCONFIG in
  15602. [\\/]* | ?:[\\/]*)
  15603. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15604. ;;
  15605. *)
  15606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15607. for as_dir in $PATH
  15608. do
  15609. IFS=$as_save_IFS
  15610. test -z "$as_dir" && as_dir=.
  15611. for ac_exec_ext in '' $ac_executable_extensions; do
  15612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15613. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15615. break 2
  15616. fi
  15617. done
  15618. done
  15619. IFS=$as_save_IFS
  15620. ;;
  15621. esac
  15622. fi
  15623. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15624. if test -n "$ARTSCONFIG"; then
  15625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15626. $as_echo "$ARTSCONFIG" >&6; }
  15627. else
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15629. $as_echo "no" >&6; }
  15630. fi
  15631. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15632. : # arts isn't installed
  15633. else
  15634. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15635. ARTS_LIBS=`$ARTSCONFIG --libs`
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15637. $as_echo_n "checking for aRts development environment... " >&6; }
  15638. audio_arts=no
  15639. save_CFLAGS="$CFLAGS"
  15640. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15642. /* end confdefs.h. */
  15643. #include <artsc.h>
  15644. int
  15645. main ()
  15646. {
  15647. arts_stream_t stream;
  15648. ;
  15649. return 0;
  15650. }
  15651. _ACEOF
  15652. if ac_fn_c_try_compile "$LINENO"; then :
  15653. audio_arts=yes
  15654. fi
  15655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15656. CFLAGS="$save_CFLAGS"
  15657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15658. $as_echo "$audio_arts" >&6; }
  15659. if test x$audio_arts = xyes; then
  15660. # Check whether --enable-arts-shared was given.
  15661. if test "${enable_arts_shared+set}" = set; then :
  15662. enableval=$enable_arts_shared;
  15663. else
  15664. enable_arts_shared=yes
  15665. fi
  15666. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15667. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15668. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15669. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15670. if test x$have_loadso != xyes && \
  15671. test x$enable_arts_shared = xyes; then
  15672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15673. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15674. fi
  15675. if test x$have_loadso = xyes && \
  15676. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15677. echo "-- dynamic libartsc -> $arts_lib"
  15678. cat >>confdefs.h <<_ACEOF
  15679. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15680. _ACEOF
  15681. else
  15682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15683. fi
  15684. have_audio=yes
  15685. fi
  15686. fi
  15687. fi
  15688. }
  15689. CheckNAS()
  15690. {
  15691. # Check whether --enable-nas was given.
  15692. if test "${enable_nas+set}" = set; then :
  15693. enableval=$enable_nas;
  15694. else
  15695. enable_nas=yes
  15696. fi
  15697. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15698. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15699. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15700. have_nas_hdr=yes
  15701. fi
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15703. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15704. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15705. $as_echo_n "(cached) " >&6
  15706. else
  15707. ac_check_lib_save_LIBS=$LIBS
  15708. LIBS="-laudio $LIBS"
  15709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15710. /* end confdefs.h. */
  15711. /* Override any GCC internal prototype to avoid an error.
  15712. Use char because int might match the return type of a GCC
  15713. builtin and then its argument prototype would still apply. */
  15714. #ifdef __cplusplus
  15715. extern "C"
  15716. #endif
  15717. char AuOpenServer ();
  15718. int
  15719. main ()
  15720. {
  15721. return AuOpenServer ();
  15722. ;
  15723. return 0;
  15724. }
  15725. _ACEOF
  15726. if ac_fn_c_try_link "$LINENO"; then :
  15727. ac_cv_lib_audio_AuOpenServer=yes
  15728. else
  15729. ac_cv_lib_audio_AuOpenServer=no
  15730. fi
  15731. rm -f core conftest.err conftest.$ac_objext \
  15732. conftest$ac_exeext conftest.$ac_ext
  15733. LIBS=$ac_check_lib_save_LIBS
  15734. fi
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15736. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15737. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15738. have_nas_lib=yes
  15739. fi
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15741. $as_echo_n "checking for NAS audio support... " >&6; }
  15742. have_nas=no
  15743. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15744. have_nas=yes
  15745. NAS_LIBS="-laudio"
  15746. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15747. have_nas=yes
  15748. NAS_CFLAGS="-I/usr/X11R6/include/"
  15749. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15750. fi
  15751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15752. $as_echo "$have_nas" >&6; }
  15753. if test x$have_nas = xyes; then
  15754. # Check whether --enable-nas-shared was given.
  15755. if test "${enable_nas_shared+set}" = set; then :
  15756. enableval=$enable_nas_shared;
  15757. else
  15758. enable_nas_shared=yes
  15759. fi
  15760. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15761. if test x$have_loadso != xyes && \
  15762. test x$enable_nas_shared = xyes; then
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15764. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15765. fi
  15766. if test x$have_loadso = xyes && \
  15767. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15768. echo "-- dynamic libaudio -> $nas_lib"
  15769. cat >>confdefs.h <<_ACEOF
  15770. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15771. _ACEOF
  15772. else
  15773. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15774. fi
  15775. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15776. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15777. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15778. have_audio=yes
  15779. fi
  15780. fi
  15781. }
  15782. CheckSNDIO()
  15783. {
  15784. # Check whether --enable-sndio was given.
  15785. if test "${enable_sndio+set}" = set; then :
  15786. enableval=$enable_sndio;
  15787. else
  15788. enable_sndio=yes
  15789. fi
  15790. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15791. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15792. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15793. have_sndio_hdr=yes
  15794. fi
  15795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15796. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15797. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15798. $as_echo_n "(cached) " >&6
  15799. else
  15800. ac_check_lib_save_LIBS=$LIBS
  15801. LIBS="-lsndio $LIBS"
  15802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15803. /* end confdefs.h. */
  15804. /* Override any GCC internal prototype to avoid an error.
  15805. Use char because int might match the return type of a GCC
  15806. builtin and then its argument prototype would still apply. */
  15807. #ifdef __cplusplus
  15808. extern "C"
  15809. #endif
  15810. char sio_open ();
  15811. int
  15812. main ()
  15813. {
  15814. return sio_open ();
  15815. ;
  15816. return 0;
  15817. }
  15818. _ACEOF
  15819. if ac_fn_c_try_link "$LINENO"; then :
  15820. ac_cv_lib_sndio_sio_open=yes
  15821. else
  15822. ac_cv_lib_sndio_sio_open=no
  15823. fi
  15824. rm -f core conftest.err conftest.$ac_objext \
  15825. conftest$ac_exeext conftest.$ac_ext
  15826. LIBS=$ac_check_lib_save_LIBS
  15827. fi
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15829. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15830. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15831. have_sndio_lib=yes
  15832. fi
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15834. $as_echo_n "checking for sndio audio support... " >&6; }
  15835. have_sndio=no
  15836. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15837. have_sndio=yes
  15838. SNDIO_LIBS="-lsndio"
  15839. fi
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15841. $as_echo "$have_sndio" >&6; }
  15842. if test x$have_sndio = xyes; then
  15843. # Check whether --enable-sndio-shared was given.
  15844. if test "${enable_sndio_shared+set}" = set; then :
  15845. enableval=$enable_sndio_shared;
  15846. else
  15847. enable_sndio_shared=yes
  15848. fi
  15849. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15850. if test x$have_loadso != xyes && \
  15851. test x$enable_sndio_shared = xyes; then
  15852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15853. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15854. fi
  15855. if test x$have_loadso = xyes && \
  15856. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15857. echo "-- dynamic libsndio -> $sndio_lib"
  15858. cat >>confdefs.h <<_ACEOF
  15859. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15860. _ACEOF
  15861. else
  15862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15863. fi
  15864. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15865. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15866. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15867. have_audio=yes
  15868. fi
  15869. fi
  15870. }
  15871. CheckDiskAudio()
  15872. {
  15873. # Check whether --enable-diskaudio was given.
  15874. if test "${enable_diskaudio+set}" = set; then :
  15875. enableval=$enable_diskaudio;
  15876. else
  15877. enable_diskaudio=yes
  15878. fi
  15879. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15880. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15881. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15882. fi
  15883. }
  15884. CheckDummyAudio()
  15885. {
  15886. # Check whether --enable-dummyaudio was given.
  15887. if test "${enable_dummyaudio+set}" = set; then :
  15888. enableval=$enable_dummyaudio;
  15889. else
  15890. enable_dummyaudio=yes
  15891. fi
  15892. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15893. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15894. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15895. fi
  15896. }
  15897. CheckVisibilityHidden()
  15898. {
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15900. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15901. have_gcc_fvisibility=no
  15902. visibility_CFLAGS="-fvisibility=hidden"
  15903. save_CFLAGS="$CFLAGS"
  15904. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15906. /* end confdefs.h. */
  15907. #if !defined(__GNUC__) || __GNUC__ < 4
  15908. #error SDL only uses visibility attributes in GCC 4 or newer
  15909. #endif
  15910. int
  15911. main ()
  15912. {
  15913. ;
  15914. return 0;
  15915. }
  15916. _ACEOF
  15917. if ac_fn_c_try_compile "$LINENO"; then :
  15918. have_gcc_fvisibility=yes
  15919. fi
  15920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15922. $as_echo "$have_gcc_fvisibility" >&6; }
  15923. CFLAGS="$save_CFLAGS"
  15924. if test x$have_gcc_fvisibility = xyes; then
  15925. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15926. fi
  15927. }
  15928. CheckStackBoundary()
  15929. {
  15930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15931. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15932. have_gcc_preferred_stack_boundary=no
  15933. save_CFLAGS="$CFLAGS"
  15934. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15936. /* end confdefs.h. */
  15937. int x = 0;
  15938. int
  15939. main ()
  15940. {
  15941. ;
  15942. return 0;
  15943. }
  15944. _ACEOF
  15945. if ac_fn_c_try_compile "$LINENO"; then :
  15946. have_gcc_preferred_stack_boundary=yes
  15947. fi
  15948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15950. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15951. CFLAGS="$save_CFLAGS"
  15952. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15953. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15954. fi
  15955. }
  15956. CheckWarnAll()
  15957. {
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  15959. $as_echo_n "checking for GCC -Wall option... " >&6; }
  15960. have_gcc_Wall=no
  15961. save_CFLAGS="$CFLAGS"
  15962. CFLAGS="$save_CFLAGS -Wall"
  15963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15964. /* end confdefs.h. */
  15965. int x = 0;
  15966. int
  15967. main ()
  15968. {
  15969. ;
  15970. return 0;
  15971. }
  15972. _ACEOF
  15973. if ac_fn_c_try_compile "$LINENO"; then :
  15974. have_gcc_Wall=yes
  15975. fi
  15976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  15978. $as_echo "$have_gcc_Wall" >&6; }
  15979. CFLAGS="$save_CFLAGS"
  15980. if test x$have_gcc_Wall = xyes; then
  15981. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  15983. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  15984. need_gcc_Wno_multichar=no
  15985. case "$host" in
  15986. *-*-haiku*)
  15987. need_gcc_Wno_multichar=yes
  15988. ;;
  15989. esac
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  15991. $as_echo "$need_gcc_Wno_multichar" >&6; }
  15992. if test x$need_gcc_Wno_multichar = xyes; then
  15993. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  15994. fi
  15995. fi
  15996. }
  15997. CheckWayland()
  15998. {
  15999. # Check whether --enable-video-wayland was given.
  16000. if test "${enable_video_wayland+set}" = set; then :
  16001. enableval=$enable_video_wayland;
  16002. else
  16003. enable_video_wayland=yes
  16004. fi
  16005. # Check whether --enable-video-wayland-qt-touch was given.
  16006. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16007. enableval=$enable_video_wayland_qt_touch;
  16008. else
  16009. enable_video_wayland_qt_touch=yes
  16010. fi
  16011. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16012. # Extract the first word of "pkg-config", so it can be a program name with args.
  16013. set dummy pkg-config; ac_word=$2
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16015. $as_echo_n "checking for $ac_word... " >&6; }
  16016. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16017. $as_echo_n "(cached) " >&6
  16018. else
  16019. case $PKG_CONFIG in
  16020. [\\/]* | ?:[\\/]*)
  16021. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16022. ;;
  16023. *)
  16024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16025. for as_dir in $PATH
  16026. do
  16027. IFS=$as_save_IFS
  16028. test -z "$as_dir" && as_dir=.
  16029. for ac_exec_ext in '' $ac_executable_extensions; do
  16030. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16031. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16033. break 2
  16034. fi
  16035. done
  16036. done
  16037. IFS=$as_save_IFS
  16038. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16039. ;;
  16040. esac
  16041. fi
  16042. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16043. if test -n "$PKG_CONFIG"; then
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16045. $as_echo "$PKG_CONFIG" >&6; }
  16046. else
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16048. $as_echo "no" >&6; }
  16049. fi
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16051. $as_echo_n "checking for Wayland support... " >&6; }
  16052. video_wayland=no
  16053. if test x$PKG_CONFIG != xno; then
  16054. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16055. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16056. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16057. video_wayland=yes
  16058. fi
  16059. fi
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16061. $as_echo "$video_wayland" >&6; }
  16062. if test x$video_wayland = xyes; then
  16063. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16064. if test x$enable_video_wayland_qt_touch = xyes; then
  16065. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16066. fi
  16067. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16068. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16069. # Check whether --enable-wayland-shared was given.
  16070. if test "${enable_wayland_shared+set}" = set; then :
  16071. enableval=$enable_wayland_shared;
  16072. else
  16073. enable_wayland_shared=maybe
  16074. fi
  16075. case "$host" in
  16076. *)
  16077. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16078. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16079. if test x$wayland_egl_lib = x; then
  16080. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16081. fi
  16082. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16083. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16084. ;;
  16085. esac
  16086. if test x$enable_wayland_shared = xmaybe; then
  16087. enable_wayland_shared=yes
  16088. fi
  16089. if test x$have_loadso != xyes && \
  16090. test x$enable_wayland_shared = xyes; then
  16091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&5
  16092. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic WAYLAND loading" >&2;}
  16093. enable_wayland_shared=no
  16094. fi
  16095. if test x$have_loadso = xyes && \
  16096. test x$enable_wayland_shared = xyes && \
  16097. test x$wayland_client_lib != x && \
  16098. test x$wayland_egl_lib != x && \
  16099. test x$wayland_cursor_lib != x && \
  16100. test x$xkbcommon_lib != x; then
  16101. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16102. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16103. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16104. echo "-- dynamic xkbcommon -> $xkbcommon_lib"
  16105. cat >>confdefs.h <<_ACEOF
  16106. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16107. _ACEOF
  16108. cat >>confdefs.h <<_ACEOF
  16109. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16110. _ACEOF
  16111. cat >>confdefs.h <<_ACEOF
  16112. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16113. _ACEOF
  16114. cat >>confdefs.h <<_ACEOF
  16115. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16116. _ACEOF
  16117. else
  16118. enable_wayland_shared=no
  16119. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16120. fi
  16121. have_video=yes
  16122. fi
  16123. fi
  16124. }
  16125. CheckX11()
  16126. {
  16127. # Check whether --enable-video-x11 was given.
  16128. if test "${enable_video_x11+set}" = set; then :
  16129. enableval=$enable_video_x11;
  16130. else
  16131. enable_video_x11=yes
  16132. fi
  16133. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16134. case "$host" in
  16135. *-*-darwin*)
  16136. # This isn't necessary for X11, but fixes GLX detection
  16137. if test "x$x_includes" = xNONE && \
  16138. test "x$x_libraries" = xNONE && \
  16139. test -d /usr/X11R6/include && \
  16140. test -d /usr/X11R6/lib; then
  16141. x_includes="/usr/X11R6/include"
  16142. x_libraries="/usr/X11R6/lib"
  16143. fi
  16144. ;;
  16145. esac
  16146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16147. $as_echo_n "checking for X... " >&6; }
  16148. # Check whether --with-x was given.
  16149. if test "${with_x+set}" = set; then :
  16150. withval=$with_x;
  16151. fi
  16152. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16153. if test "x$with_x" = xno; then
  16154. # The user explicitly disabled X.
  16155. have_x=disabled
  16156. else
  16157. case $x_includes,$x_libraries in #(
  16158. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16159. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16160. $as_echo_n "(cached) " >&6
  16161. else
  16162. # One or both of the vars are not set, and there is no cached value.
  16163. ac_x_includes=no ac_x_libraries=no
  16164. rm -f -r conftest.dir
  16165. if mkdir conftest.dir; then
  16166. cd conftest.dir
  16167. cat >Imakefile <<'_ACEOF'
  16168. incroot:
  16169. @echo incroot='${INCROOT}'
  16170. usrlibdir:
  16171. @echo usrlibdir='${USRLIBDIR}'
  16172. libdir:
  16173. @echo libdir='${LIBDIR}'
  16174. _ACEOF
  16175. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16176. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16177. for ac_var in incroot usrlibdir libdir; do
  16178. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16179. done
  16180. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16181. for ac_extension in a so sl dylib la dll; do
  16182. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16183. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16184. ac_im_usrlibdir=$ac_im_libdir; break
  16185. fi
  16186. done
  16187. # Screen out bogus values from the imake configuration. They are
  16188. # bogus both because they are the default anyway, and because
  16189. # using them would break gcc on systems where it needs fixed includes.
  16190. case $ac_im_incroot in
  16191. /usr/include) ac_x_includes= ;;
  16192. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16193. esac
  16194. case $ac_im_usrlibdir in
  16195. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16196. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16197. esac
  16198. fi
  16199. cd ..
  16200. rm -f -r conftest.dir
  16201. fi
  16202. # Standard set of common directories for X headers.
  16203. # Check X11 before X11Rn because it is often a symlink to the current release.
  16204. ac_x_header_dirs='
  16205. /usr/X11/include
  16206. /usr/X11R7/include
  16207. /usr/X11R6/include
  16208. /usr/X11R5/include
  16209. /usr/X11R4/include
  16210. /usr/include/X11
  16211. /usr/include/X11R7
  16212. /usr/include/X11R6
  16213. /usr/include/X11R5
  16214. /usr/include/X11R4
  16215. /usr/local/X11/include
  16216. /usr/local/X11R7/include
  16217. /usr/local/X11R6/include
  16218. /usr/local/X11R5/include
  16219. /usr/local/X11R4/include
  16220. /usr/local/include/X11
  16221. /usr/local/include/X11R7
  16222. /usr/local/include/X11R6
  16223. /usr/local/include/X11R5
  16224. /usr/local/include/X11R4
  16225. /usr/X386/include
  16226. /usr/x386/include
  16227. /usr/XFree86/include/X11
  16228. /usr/include
  16229. /usr/local/include
  16230. /usr/unsupported/include
  16231. /usr/athena/include
  16232. /usr/local/x11r5/include
  16233. /usr/lpp/Xamples/include
  16234. /usr/openwin/include
  16235. /usr/openwin/share/include'
  16236. if test "$ac_x_includes" = no; then
  16237. # Guess where to find include files, by looking for Xlib.h.
  16238. # First, try using that file with no special directory specified.
  16239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16240. /* end confdefs.h. */
  16241. #include <X11/Xlib.h>
  16242. _ACEOF
  16243. if ac_fn_c_try_cpp "$LINENO"; then :
  16244. # We can compile using X headers with no special include directory.
  16245. ac_x_includes=
  16246. else
  16247. for ac_dir in $ac_x_header_dirs; do
  16248. if test -r "$ac_dir/X11/Xlib.h"; then
  16249. ac_x_includes=$ac_dir
  16250. break
  16251. fi
  16252. done
  16253. fi
  16254. rm -f conftest.err conftest.i conftest.$ac_ext
  16255. fi # $ac_x_includes = no
  16256. if test "$ac_x_libraries" = no; then
  16257. # Check for the libraries.
  16258. # See if we find them without any special options.
  16259. # Don't add to $LIBS permanently.
  16260. ac_save_LIBS=$LIBS
  16261. LIBS="-lX11 $LIBS"
  16262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16263. /* end confdefs.h. */
  16264. #include <X11/Xlib.h>
  16265. int
  16266. main ()
  16267. {
  16268. XrmInitialize ()
  16269. ;
  16270. return 0;
  16271. }
  16272. _ACEOF
  16273. if ac_fn_c_try_link "$LINENO"; then :
  16274. LIBS=$ac_save_LIBS
  16275. # We can link X programs with no special library path.
  16276. ac_x_libraries=
  16277. else
  16278. LIBS=$ac_save_LIBS
  16279. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16280. do
  16281. # Don't even attempt the hair of trying to link an X program!
  16282. for ac_extension in a so sl dylib la dll; do
  16283. if test -r "$ac_dir/libX11.$ac_extension"; then
  16284. ac_x_libraries=$ac_dir
  16285. break 2
  16286. fi
  16287. done
  16288. done
  16289. fi
  16290. rm -f core conftest.err conftest.$ac_objext \
  16291. conftest$ac_exeext conftest.$ac_ext
  16292. fi # $ac_x_libraries = no
  16293. case $ac_x_includes,$ac_x_libraries in #(
  16294. no,* | *,no | *\'*)
  16295. # Didn't find X, or a directory has "'" in its name.
  16296. ac_cv_have_x="have_x=no";; #(
  16297. *)
  16298. # Record where we found X for the cache.
  16299. ac_cv_have_x="have_x=yes\
  16300. ac_x_includes='$ac_x_includes'\
  16301. ac_x_libraries='$ac_x_libraries'"
  16302. esac
  16303. fi
  16304. ;; #(
  16305. *) have_x=yes;;
  16306. esac
  16307. eval "$ac_cv_have_x"
  16308. fi # $with_x != no
  16309. if test "$have_x" != yes; then
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16311. $as_echo "$have_x" >&6; }
  16312. no_x=yes
  16313. else
  16314. # If each of the values was on the command line, it overrides each guess.
  16315. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16316. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16317. # Update the cache value to reflect the command line values.
  16318. ac_cv_have_x="have_x=yes\
  16319. ac_x_includes='$x_includes'\
  16320. ac_x_libraries='$x_libraries'"
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16322. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16323. fi
  16324. if test "$no_x" = yes; then
  16325. # Not all programs may use this symbol, but it does not hurt to define it.
  16326. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16327. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16328. else
  16329. if test -n "$x_includes"; then
  16330. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16331. fi
  16332. # It would also be nice to do this for all -L options, not just this one.
  16333. if test -n "$x_libraries"; then
  16334. X_LIBS="$X_LIBS -L$x_libraries"
  16335. # For Solaris; some versions of Sun CC require a space after -R and
  16336. # others require no space. Words are not sufficient . . . .
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16338. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16339. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16340. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16341. ac_c_werror_flag=yes
  16342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16343. /* end confdefs.h. */
  16344. int
  16345. main ()
  16346. {
  16347. ;
  16348. return 0;
  16349. }
  16350. _ACEOF
  16351. if ac_fn_c_try_link "$LINENO"; then :
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16353. $as_echo "no" >&6; }
  16354. X_LIBS="$X_LIBS -R$x_libraries"
  16355. else
  16356. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16358. /* end confdefs.h. */
  16359. int
  16360. main ()
  16361. {
  16362. ;
  16363. return 0;
  16364. }
  16365. _ACEOF
  16366. if ac_fn_c_try_link "$LINENO"; then :
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16368. $as_echo "yes" >&6; }
  16369. X_LIBS="$X_LIBS -R $x_libraries"
  16370. else
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16372. $as_echo "neither works" >&6; }
  16373. fi
  16374. rm -f core conftest.err conftest.$ac_objext \
  16375. conftest$ac_exeext conftest.$ac_ext
  16376. fi
  16377. rm -f core conftest.err conftest.$ac_objext \
  16378. conftest$ac_exeext conftest.$ac_ext
  16379. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16380. LIBS=$ac_xsave_LIBS
  16381. fi
  16382. # Check for system-dependent libraries X programs must link with.
  16383. # Do this before checking for the system-independent R6 libraries
  16384. # (-lICE), since we may need -lsocket or whatever for X linking.
  16385. if test "$ISC" = yes; then
  16386. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16387. else
  16388. # Martyn Johnson says this is needed for Ultrix, if the X
  16389. # libraries were built with DECnet support. And Karl Berry says
  16390. # the Alpha needs dnet_stub (dnet does not exist).
  16391. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. /* Override any GCC internal prototype to avoid an error.
  16395. Use char because int might match the return type of a GCC
  16396. builtin and then its argument prototype would still apply. */
  16397. #ifdef __cplusplus
  16398. extern "C"
  16399. #endif
  16400. char XOpenDisplay ();
  16401. int
  16402. main ()
  16403. {
  16404. return XOpenDisplay ();
  16405. ;
  16406. return 0;
  16407. }
  16408. _ACEOF
  16409. if ac_fn_c_try_link "$LINENO"; then :
  16410. else
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16412. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16413. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16414. $as_echo_n "(cached) " >&6
  16415. else
  16416. ac_check_lib_save_LIBS=$LIBS
  16417. LIBS="-ldnet $LIBS"
  16418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16419. /* end confdefs.h. */
  16420. /* Override any GCC internal prototype to avoid an error.
  16421. Use char because int might match the return type of a GCC
  16422. builtin and then its argument prototype would still apply. */
  16423. #ifdef __cplusplus
  16424. extern "C"
  16425. #endif
  16426. char dnet_ntoa ();
  16427. int
  16428. main ()
  16429. {
  16430. return dnet_ntoa ();
  16431. ;
  16432. return 0;
  16433. }
  16434. _ACEOF
  16435. if ac_fn_c_try_link "$LINENO"; then :
  16436. ac_cv_lib_dnet_dnet_ntoa=yes
  16437. else
  16438. ac_cv_lib_dnet_dnet_ntoa=no
  16439. fi
  16440. rm -f core conftest.err conftest.$ac_objext \
  16441. conftest$ac_exeext conftest.$ac_ext
  16442. LIBS=$ac_check_lib_save_LIBS
  16443. fi
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16445. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16446. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16447. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16448. fi
  16449. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16451. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16452. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16453. $as_echo_n "(cached) " >&6
  16454. else
  16455. ac_check_lib_save_LIBS=$LIBS
  16456. LIBS="-ldnet_stub $LIBS"
  16457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16458. /* end confdefs.h. */
  16459. /* Override any GCC internal prototype to avoid an error.
  16460. Use char because int might match the return type of a GCC
  16461. builtin and then its argument prototype would still apply. */
  16462. #ifdef __cplusplus
  16463. extern "C"
  16464. #endif
  16465. char dnet_ntoa ();
  16466. int
  16467. main ()
  16468. {
  16469. return dnet_ntoa ();
  16470. ;
  16471. return 0;
  16472. }
  16473. _ACEOF
  16474. if ac_fn_c_try_link "$LINENO"; then :
  16475. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16476. else
  16477. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16478. fi
  16479. rm -f core conftest.err conftest.$ac_objext \
  16480. conftest$ac_exeext conftest.$ac_ext
  16481. LIBS=$ac_check_lib_save_LIBS
  16482. fi
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16484. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16485. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16486. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16487. fi
  16488. fi
  16489. fi
  16490. rm -f core conftest.err conftest.$ac_objext \
  16491. conftest$ac_exeext conftest.$ac_ext
  16492. LIBS="$ac_xsave_LIBS"
  16493. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16494. # to get the SysV transport functions.
  16495. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16496. # needs -lnsl.
  16497. # The nsl library prevents programs from opening the X display
  16498. # on Irix 5.2, according to T.E. Dickey.
  16499. # The functions gethostbyname, getservbyname, and inet_addr are
  16500. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16501. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16502. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16503. fi
  16504. if test $ac_cv_func_gethostbyname = no; then
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16506. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16507. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16508. $as_echo_n "(cached) " >&6
  16509. else
  16510. ac_check_lib_save_LIBS=$LIBS
  16511. LIBS="-lnsl $LIBS"
  16512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16513. /* end confdefs.h. */
  16514. /* Override any GCC internal prototype to avoid an error.
  16515. Use char because int might match the return type of a GCC
  16516. builtin and then its argument prototype would still apply. */
  16517. #ifdef __cplusplus
  16518. extern "C"
  16519. #endif
  16520. char gethostbyname ();
  16521. int
  16522. main ()
  16523. {
  16524. return gethostbyname ();
  16525. ;
  16526. return 0;
  16527. }
  16528. _ACEOF
  16529. if ac_fn_c_try_link "$LINENO"; then :
  16530. ac_cv_lib_nsl_gethostbyname=yes
  16531. else
  16532. ac_cv_lib_nsl_gethostbyname=no
  16533. fi
  16534. rm -f core conftest.err conftest.$ac_objext \
  16535. conftest$ac_exeext conftest.$ac_ext
  16536. LIBS=$ac_check_lib_save_LIBS
  16537. fi
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16539. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16540. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16541. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16542. fi
  16543. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16545. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16546. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16547. $as_echo_n "(cached) " >&6
  16548. else
  16549. ac_check_lib_save_LIBS=$LIBS
  16550. LIBS="-lbsd $LIBS"
  16551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16552. /* end confdefs.h. */
  16553. /* Override any GCC internal prototype to avoid an error.
  16554. Use char because int might match the return type of a GCC
  16555. builtin and then its argument prototype would still apply. */
  16556. #ifdef __cplusplus
  16557. extern "C"
  16558. #endif
  16559. char gethostbyname ();
  16560. int
  16561. main ()
  16562. {
  16563. return gethostbyname ();
  16564. ;
  16565. return 0;
  16566. }
  16567. _ACEOF
  16568. if ac_fn_c_try_link "$LINENO"; then :
  16569. ac_cv_lib_bsd_gethostbyname=yes
  16570. else
  16571. ac_cv_lib_bsd_gethostbyname=no
  16572. fi
  16573. rm -f core conftest.err conftest.$ac_objext \
  16574. conftest$ac_exeext conftest.$ac_ext
  16575. LIBS=$ac_check_lib_save_LIBS
  16576. fi
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16578. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16579. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16580. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16581. fi
  16582. fi
  16583. fi
  16584. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16585. # socket/setsockopt and other routines are undefined under SCO ODT
  16586. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16587. # on later versions), says Simon Leinen: it contains gethostby*
  16588. # variants that don't use the name server (or something). -lsocket
  16589. # must be given before -lnsl if both are needed. We assume that
  16590. # if connect needs -lnsl, so does gethostbyname.
  16591. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16592. if test "x$ac_cv_func_connect" = xyes; then :
  16593. fi
  16594. if test $ac_cv_func_connect = no; then
  16595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16596. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16597. if ${ac_cv_lib_socket_connect+:} false; then :
  16598. $as_echo_n "(cached) " >&6
  16599. else
  16600. ac_check_lib_save_LIBS=$LIBS
  16601. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16603. /* end confdefs.h. */
  16604. /* Override any GCC internal prototype to avoid an error.
  16605. Use char because int might match the return type of a GCC
  16606. builtin and then its argument prototype would still apply. */
  16607. #ifdef __cplusplus
  16608. extern "C"
  16609. #endif
  16610. char connect ();
  16611. int
  16612. main ()
  16613. {
  16614. return connect ();
  16615. ;
  16616. return 0;
  16617. }
  16618. _ACEOF
  16619. if ac_fn_c_try_link "$LINENO"; then :
  16620. ac_cv_lib_socket_connect=yes
  16621. else
  16622. ac_cv_lib_socket_connect=no
  16623. fi
  16624. rm -f core conftest.err conftest.$ac_objext \
  16625. conftest$ac_exeext conftest.$ac_ext
  16626. LIBS=$ac_check_lib_save_LIBS
  16627. fi
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16629. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16630. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16631. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16632. fi
  16633. fi
  16634. # Guillermo Gomez says -lposix is necessary on A/UX.
  16635. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16636. if test "x$ac_cv_func_remove" = xyes; then :
  16637. fi
  16638. if test $ac_cv_func_remove = no; then
  16639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16640. $as_echo_n "checking for remove in -lposix... " >&6; }
  16641. if ${ac_cv_lib_posix_remove+:} false; then :
  16642. $as_echo_n "(cached) " >&6
  16643. else
  16644. ac_check_lib_save_LIBS=$LIBS
  16645. LIBS="-lposix $LIBS"
  16646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16647. /* end confdefs.h. */
  16648. /* Override any GCC internal prototype to avoid an error.
  16649. Use char because int might match the return type of a GCC
  16650. builtin and then its argument prototype would still apply. */
  16651. #ifdef __cplusplus
  16652. extern "C"
  16653. #endif
  16654. char remove ();
  16655. int
  16656. main ()
  16657. {
  16658. return remove ();
  16659. ;
  16660. return 0;
  16661. }
  16662. _ACEOF
  16663. if ac_fn_c_try_link "$LINENO"; then :
  16664. ac_cv_lib_posix_remove=yes
  16665. else
  16666. ac_cv_lib_posix_remove=no
  16667. fi
  16668. rm -f core conftest.err conftest.$ac_objext \
  16669. conftest$ac_exeext conftest.$ac_ext
  16670. LIBS=$ac_check_lib_save_LIBS
  16671. fi
  16672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16673. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16674. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16675. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16676. fi
  16677. fi
  16678. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16679. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16680. if test "x$ac_cv_func_shmat" = xyes; then :
  16681. fi
  16682. if test $ac_cv_func_shmat = no; then
  16683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16684. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16685. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16686. $as_echo_n "(cached) " >&6
  16687. else
  16688. ac_check_lib_save_LIBS=$LIBS
  16689. LIBS="-lipc $LIBS"
  16690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16691. /* end confdefs.h. */
  16692. /* Override any GCC internal prototype to avoid an error.
  16693. Use char because int might match the return type of a GCC
  16694. builtin and then its argument prototype would still apply. */
  16695. #ifdef __cplusplus
  16696. extern "C"
  16697. #endif
  16698. char shmat ();
  16699. int
  16700. main ()
  16701. {
  16702. return shmat ();
  16703. ;
  16704. return 0;
  16705. }
  16706. _ACEOF
  16707. if ac_fn_c_try_link "$LINENO"; then :
  16708. ac_cv_lib_ipc_shmat=yes
  16709. else
  16710. ac_cv_lib_ipc_shmat=no
  16711. fi
  16712. rm -f core conftest.err conftest.$ac_objext \
  16713. conftest$ac_exeext conftest.$ac_ext
  16714. LIBS=$ac_check_lib_save_LIBS
  16715. fi
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16717. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16718. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16719. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16720. fi
  16721. fi
  16722. fi
  16723. # Check for libraries that X11R6 Xt/Xaw programs need.
  16724. ac_save_LDFLAGS=$LDFLAGS
  16725. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16726. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16727. # check for ICE first), but we must link in the order -lSM -lICE or
  16728. # we get undefined symbols. So assume we have SM if we have ICE.
  16729. # These have to be linked with before -lX11, unlike the other
  16730. # libraries we check for below, so use a different variable.
  16731. # John Interrante, Karl Berry
  16732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16733. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16734. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16735. $as_echo_n "(cached) " >&6
  16736. else
  16737. ac_check_lib_save_LIBS=$LIBS
  16738. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16740. /* end confdefs.h. */
  16741. /* Override any GCC internal prototype to avoid an error.
  16742. Use char because int might match the return type of a GCC
  16743. builtin and then its argument prototype would still apply. */
  16744. #ifdef __cplusplus
  16745. extern "C"
  16746. #endif
  16747. char IceConnectionNumber ();
  16748. int
  16749. main ()
  16750. {
  16751. return IceConnectionNumber ();
  16752. ;
  16753. return 0;
  16754. }
  16755. _ACEOF
  16756. if ac_fn_c_try_link "$LINENO"; then :
  16757. ac_cv_lib_ICE_IceConnectionNumber=yes
  16758. else
  16759. ac_cv_lib_ICE_IceConnectionNumber=no
  16760. fi
  16761. rm -f core conftest.err conftest.$ac_objext \
  16762. conftest$ac_exeext conftest.$ac_ext
  16763. LIBS=$ac_check_lib_save_LIBS
  16764. fi
  16765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16766. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16767. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16768. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16769. fi
  16770. LDFLAGS=$ac_save_LDFLAGS
  16771. fi
  16772. if test x$have_x = xyes; then
  16773. # Check whether --enable-x11-shared was given.
  16774. if test "${enable_x11_shared+set}" = set; then :
  16775. enableval=$enable_x11_shared;
  16776. else
  16777. enable_x11_shared=maybe
  16778. fi
  16779. case "$host" in
  16780. *-*-darwin*)
  16781. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  16782. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  16783. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  16784. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  16785. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  16786. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  16787. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  16788. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  16789. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  16790. ;;
  16791. *-*-openbsd*)
  16792. x11_lib='libX11.so'
  16793. x11ext_lib='libXext.so'
  16794. xcursor_lib='libXcursor.so'
  16795. xinerama_lib='libXinerama.so'
  16796. xinput_lib='libXi.so'
  16797. xrandr_lib='libXrandr.so'
  16798. xrender_lib='libXrender.so'
  16799. xss_lib='libXss.so'
  16800. xvidmode_lib='libXxf86vm.so'
  16801. ;;
  16802. *)
  16803. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16804. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16805. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16806. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16807. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16808. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16809. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16810. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16811. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  16812. ;;
  16813. esac
  16814. if test x$ac_cv_func_shmat != xyes; then
  16815. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  16816. fi
  16817. CFLAGS="$CFLAGS $X_CFLAGS"
  16818. LDFLAGS="$LDFLAGS $X_LIBS"
  16819. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  16820. #include <X11/Xproto.h>
  16821. "
  16822. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  16823. have_xext_h_hdr=yes
  16824. else
  16825. have_xext_h_hdr=no
  16826. fi
  16827. if test x$have_xext_h_hdr != xyes; then
  16828. as_fn_error $? "
  16829. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  16830. " "$LINENO" 5
  16831. fi
  16832. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  16833. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  16834. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  16835. # Needed so SDL applications can include SDL_syswm.h
  16836. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  16837. if test x$enable_x11_shared = xmaybe; then
  16838. enable_x11_shared=yes
  16839. fi
  16840. if test x$have_loadso != xyes && \
  16841. test x$enable_x11_shared = xyes; then
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  16843. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  16844. enable_x11_shared=no
  16845. fi
  16846. if test x$have_loadso = xyes && \
  16847. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  16848. echo "-- dynamic libX11 -> $x11_lib"
  16849. echo "-- dynamic libX11ext -> $x11ext_lib"
  16850. cat >>confdefs.h <<_ACEOF
  16851. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  16852. _ACEOF
  16853. cat >>confdefs.h <<_ACEOF
  16854. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  16855. _ACEOF
  16856. else
  16857. enable_x11_shared=no
  16858. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  16859. fi
  16860. have_video=yes
  16861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  16862. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  16863. have_const_param_XextAddDisplay=no
  16864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16865. /* end confdefs.h. */
  16866. #include <X11/Xlib.h>
  16867. #include <X11/Xproto.h>
  16868. #include <X11/extensions/Xext.h>
  16869. #include <X11/extensions/extutil.h>
  16870. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  16871. int
  16872. main ()
  16873. {
  16874. ;
  16875. return 0;
  16876. }
  16877. _ACEOF
  16878. if ac_fn_c_try_compile "$LINENO"; then :
  16879. have_const_param_XextAddDisplay=yes
  16880. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  16881. fi
  16882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  16884. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  16886. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  16887. have_const_param_xdata32=no
  16888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16889. /* end confdefs.h. */
  16890. #include <X11/Xlibint.h>
  16891. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  16892. int
  16893. main ()
  16894. {
  16895. ;
  16896. return 0;
  16897. }
  16898. _ACEOF
  16899. if ac_fn_c_try_compile "$LINENO"; then :
  16900. have_const_param_xdata32=yes
  16901. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  16902. fi
  16903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  16905. $as_echo "$have_const_param_xdata32" >&6; }
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  16907. $as_echo_n "checking for XGenericEvent... " >&6; }
  16908. have_XGenericEvent=no
  16909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16910. /* end confdefs.h. */
  16911. #include <X11/Xlib.h>
  16912. int
  16913. main ()
  16914. {
  16915. Display *display;
  16916. XEvent event;
  16917. XGenericEventCookie *cookie = &event.xcookie;
  16918. XNextEvent(display, &event);
  16919. XGetEventData(display, cookie);
  16920. XFreeEventData(display, cookie);
  16921. ;
  16922. return 0;
  16923. }
  16924. _ACEOF
  16925. if ac_fn_c_try_compile "$LINENO"; then :
  16926. have_XGenericEvent=yes
  16927. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  16928. fi
  16929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  16931. $as_echo "$have_XGenericEvent" >&6; }
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  16933. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  16934. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  16935. $as_echo_n "(cached) " >&6
  16936. else
  16937. ac_check_lib_save_LIBS=$LIBS
  16938. LIBS="-lX11 $LIBS"
  16939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16940. /* end confdefs.h. */
  16941. /* Override any GCC internal prototype to avoid an error.
  16942. Use char because int might match the return type of a GCC
  16943. builtin and then its argument prototype would still apply. */
  16944. #ifdef __cplusplus
  16945. extern "C"
  16946. #endif
  16947. char XkbKeycodeToKeysym ();
  16948. int
  16949. main ()
  16950. {
  16951. return XkbKeycodeToKeysym ();
  16952. ;
  16953. return 0;
  16954. }
  16955. _ACEOF
  16956. if ac_fn_c_try_link "$LINENO"; then :
  16957. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  16958. else
  16959. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  16960. fi
  16961. rm -f core conftest.err conftest.$ac_objext \
  16962. conftest$ac_exeext conftest.$ac_ext
  16963. LIBS=$ac_check_lib_save_LIBS
  16964. fi
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  16966. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  16967. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  16968. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  16969. fi
  16970. # Check whether --enable-video-x11-xcursor was given.
  16971. if test "${enable_video_x11_xcursor+set}" = set; then :
  16972. enableval=$enable_video_x11_xcursor;
  16973. else
  16974. enable_video_x11_xcursor=yes
  16975. fi
  16976. if test x$enable_video_x11_xcursor = xyes; then
  16977. definitely_enable_video_x11_xcursor=no
  16978. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  16979. "
  16980. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  16981. have_xcursor_h_hdr=yes
  16982. else
  16983. have_xcursor_h_hdr=no
  16984. fi
  16985. if test x$have_xcursor_h_hdr = xyes; then
  16986. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  16987. echo "-- dynamic libXcursor -> $xcursor_lib"
  16988. cat >>confdefs.h <<_ACEOF
  16989. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  16990. _ACEOF
  16991. definitely_enable_video_x11_xcursor=yes
  16992. else
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  16994. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  16995. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  16996. $as_echo_n "(cached) " >&6
  16997. else
  16998. ac_check_lib_save_LIBS=$LIBS
  16999. LIBS="-lXcursor $LIBS"
  17000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17001. /* end confdefs.h. */
  17002. /* Override any GCC internal prototype to avoid an error.
  17003. Use char because int might match the return type of a GCC
  17004. builtin and then its argument prototype would still apply. */
  17005. #ifdef __cplusplus
  17006. extern "C"
  17007. #endif
  17008. char XcursorImageCreate ();
  17009. int
  17010. main ()
  17011. {
  17012. return XcursorImageCreate ();
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. if ac_fn_c_try_link "$LINENO"; then :
  17018. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17019. else
  17020. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17021. fi
  17022. rm -f core conftest.err conftest.$ac_objext \
  17023. conftest$ac_exeext conftest.$ac_ext
  17024. LIBS=$ac_check_lib_save_LIBS
  17025. fi
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17027. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17028. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17029. have_xcursor_lib=yes
  17030. fi
  17031. if test x$have_xcursor_lib = xyes ; then
  17032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17033. definitely_enable_video_x11_xcursor=yes
  17034. fi
  17035. fi
  17036. fi
  17037. fi
  17038. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17039. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17040. fi
  17041. # Check whether --enable-video-x11-xinerama was given.
  17042. if test "${enable_video_x11_xinerama+set}" = set; then :
  17043. enableval=$enable_video_x11_xinerama;
  17044. else
  17045. enable_video_x11_xinerama=yes
  17046. fi
  17047. if test x$enable_video_x11_xinerama = xyes; then
  17048. definitely_enable_video_x11_xinerama=no
  17049. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17050. "
  17051. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17052. have_xinerama_h_hdr=yes
  17053. else
  17054. have_xinerama_h_hdr=no
  17055. fi
  17056. if test x$have_xinerama_h_hdr = xyes; then
  17057. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17058. echo "-- dynamic libXinerama -> $xinerama_lib"
  17059. cat >>confdefs.h <<_ACEOF
  17060. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17061. _ACEOF
  17062. definitely_enable_video_x11_xinerama=yes
  17063. else
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17065. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17066. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17067. $as_echo_n "(cached) " >&6
  17068. else
  17069. ac_check_lib_save_LIBS=$LIBS
  17070. LIBS="-lXinerama $LIBS"
  17071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17072. /* end confdefs.h. */
  17073. /* Override any GCC internal prototype to avoid an error.
  17074. Use char because int might match the return type of a GCC
  17075. builtin and then its argument prototype would still apply. */
  17076. #ifdef __cplusplus
  17077. extern "C"
  17078. #endif
  17079. char XineramaQueryExtension ();
  17080. int
  17081. main ()
  17082. {
  17083. return XineramaQueryExtension ();
  17084. ;
  17085. return 0;
  17086. }
  17087. _ACEOF
  17088. if ac_fn_c_try_link "$LINENO"; then :
  17089. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17090. else
  17091. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17092. fi
  17093. rm -f core conftest.err conftest.$ac_objext \
  17094. conftest$ac_exeext conftest.$ac_ext
  17095. LIBS=$ac_check_lib_save_LIBS
  17096. fi
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17098. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17099. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17100. have_xinerama_lib=yes
  17101. fi
  17102. if test x$have_xinerama_lib = xyes ; then
  17103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17104. definitely_enable_video_x11_xinerama=yes
  17105. fi
  17106. fi
  17107. fi
  17108. fi
  17109. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17110. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17111. fi
  17112. # Check whether --enable-video-x11-xinput was given.
  17113. if test "${enable_video_x11_xinput+set}" = set; then :
  17114. enableval=$enable_video_x11_xinput;
  17115. else
  17116. enable_video_x11_xinput=yes
  17117. fi
  17118. if test x$enable_video_x11_xinput = xyes; then
  17119. definitely_enable_video_x11_xinput=no
  17120. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17121. "
  17122. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17123. have_xinput_h_hdr=yes
  17124. else
  17125. have_xinput_h_hdr=no
  17126. fi
  17127. if test x$have_xinput_h_hdr = xyes; then
  17128. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17129. echo "-- dynamic libXi -> $xinput_lib"
  17130. cat >>confdefs.h <<_ACEOF
  17131. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17132. _ACEOF
  17133. definitely_enable_video_x11_xinput=yes
  17134. else
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17136. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17137. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. ac_check_lib_save_LIBS=$LIBS
  17141. LIBS="-lXi $LIBS"
  17142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17143. /* end confdefs.h. */
  17144. /* Override any GCC internal prototype to avoid an error.
  17145. Use char because int might match the return type of a GCC
  17146. builtin and then its argument prototype would still apply. */
  17147. #ifdef __cplusplus
  17148. extern "C"
  17149. #endif
  17150. char XOpenDevice ();
  17151. int
  17152. main ()
  17153. {
  17154. return XOpenDevice ();
  17155. ;
  17156. return 0;
  17157. }
  17158. _ACEOF
  17159. if ac_fn_c_try_link "$LINENO"; then :
  17160. ac_cv_lib_Xi_XOpenDevice=yes
  17161. else
  17162. ac_cv_lib_Xi_XOpenDevice=no
  17163. fi
  17164. rm -f core conftest.err conftest.$ac_objext \
  17165. conftest$ac_exeext conftest.$ac_ext
  17166. LIBS=$ac_check_lib_save_LIBS
  17167. fi
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17169. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17170. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17171. have_xinput_lib=yes
  17172. fi
  17173. if test x$have_xinput_lib = xyes ; then
  17174. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17175. definitely_enable_video_x11_xinput=yes
  17176. fi
  17177. fi
  17178. fi
  17179. fi
  17180. if test x$definitely_enable_video_x11_xinput = xyes; then
  17181. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17183. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17184. have_xinput2_multitouch=no
  17185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17186. /* end confdefs.h. */
  17187. #include <X11/Xlib.h>
  17188. #include <X11/Xproto.h>
  17189. #include <X11/extensions/XInput2.h>
  17190. int
  17191. main ()
  17192. {
  17193. int event_type = XI_TouchBegin;
  17194. XITouchClassInfo *t;
  17195. Status
  17196. XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
  17197. {
  17198. return (Status)0;
  17199. }
  17200. ;
  17201. return 0;
  17202. }
  17203. _ACEOF
  17204. if ac_fn_c_try_compile "$LINENO"; then :
  17205. have_xinput2_multitouch=yes
  17206. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17207. fi
  17208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17210. $as_echo "$have_xinput2_multitouch" >&6; }
  17211. fi
  17212. # Check whether --enable-video-x11-xrandr was given.
  17213. if test "${enable_video_x11_xrandr+set}" = set; then :
  17214. enableval=$enable_video_x11_xrandr;
  17215. else
  17216. enable_video_x11_xrandr=yes
  17217. fi
  17218. if test x$enable_video_x11_xrandr = xyes; then
  17219. definitely_enable_video_x11_xrandr=no
  17220. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
  17221. "
  17222. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  17223. have_xrandr_h_hdr=yes
  17224. else
  17225. have_xrandr_h_hdr=no
  17226. fi
  17227. if test x$have_xrandr_h_hdr = xyes; then
  17228. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17229. echo "-- dynamic libXrandr -> $xrandr_lib"
  17230. cat >>confdefs.h <<_ACEOF
  17231. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17232. _ACEOF
  17233. definitely_enable_video_x11_xrandr=yes
  17234. else
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17236. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17237. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17238. $as_echo_n "(cached) " >&6
  17239. else
  17240. ac_check_lib_save_LIBS=$LIBS
  17241. LIBS="-lXrandr $LIBS"
  17242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17243. /* end confdefs.h. */
  17244. /* Override any GCC internal prototype to avoid an error.
  17245. Use char because int might match the return type of a GCC
  17246. builtin and then its argument prototype would still apply. */
  17247. #ifdef __cplusplus
  17248. extern "C"
  17249. #endif
  17250. char XRRQueryExtension ();
  17251. int
  17252. main ()
  17253. {
  17254. return XRRQueryExtension ();
  17255. ;
  17256. return 0;
  17257. }
  17258. _ACEOF
  17259. if ac_fn_c_try_link "$LINENO"; then :
  17260. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17261. else
  17262. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17263. fi
  17264. rm -f core conftest.err conftest.$ac_objext \
  17265. conftest$ac_exeext conftest.$ac_ext
  17266. LIBS=$ac_check_lib_save_LIBS
  17267. fi
  17268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17269. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17270. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17271. have_xrandr_lib=yes
  17272. fi
  17273. if test x$have_xrandr_lib = xyes ; then
  17274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17275. definitely_enable_video_x11_xrandr=yes
  17276. fi
  17277. fi
  17278. fi
  17279. fi
  17280. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17281. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17282. fi
  17283. # Check whether --enable-video-x11-scrnsaver was given.
  17284. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17285. enableval=$enable_video_x11_scrnsaver;
  17286. else
  17287. enable_video_x11_scrnsaver=yes
  17288. fi
  17289. if test x$enable_video_x11_scrnsaver = xyes; then
  17290. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17291. "
  17292. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17293. have_scrnsaver_h_hdr=yes
  17294. else
  17295. have_scrnsaver_h_hdr=no
  17296. fi
  17297. if test x$have_scrnsaver_h_hdr = xyes; then
  17298. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17299. echo "-- dynamic libXss -> $xss_lib"
  17300. cat >>confdefs.h <<_ACEOF
  17301. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17302. _ACEOF
  17303. definitely_enable_video_x11_scrnsaver=yes
  17304. else
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17306. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17307. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17308. $as_echo_n "(cached) " >&6
  17309. else
  17310. ac_check_lib_save_LIBS=$LIBS
  17311. LIBS="-lXss $LIBS"
  17312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17313. /* end confdefs.h. */
  17314. /* Override any GCC internal prototype to avoid an error.
  17315. Use char because int might match the return type of a GCC
  17316. builtin and then its argument prototype would still apply. */
  17317. #ifdef __cplusplus
  17318. extern "C"
  17319. #endif
  17320. char XScreenSaverSuspend ();
  17321. int
  17322. main ()
  17323. {
  17324. return XScreenSaverSuspend ();
  17325. ;
  17326. return 0;
  17327. }
  17328. _ACEOF
  17329. if ac_fn_c_try_link "$LINENO"; then :
  17330. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17331. else
  17332. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17333. fi
  17334. rm -f core conftest.err conftest.$ac_objext \
  17335. conftest$ac_exeext conftest.$ac_ext
  17336. LIBS=$ac_check_lib_save_LIBS
  17337. fi
  17338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17339. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17340. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17341. have_xss_lib=yes
  17342. fi
  17343. if test x$have_xss_lib = xyes ; then
  17344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17345. definitely_enable_video_x11_scrnsaver=yes
  17346. fi
  17347. fi
  17348. fi
  17349. fi
  17350. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17351. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17352. fi
  17353. # Check whether --enable-video-x11-xshape was given.
  17354. if test "${enable_video_x11_xshape+set}" = set; then :
  17355. enableval=$enable_video_x11_xshape;
  17356. else
  17357. enable_video_x11_xshape=yes
  17358. fi
  17359. if test x$enable_video_x11_xshape = xyes; then
  17360. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17361. "
  17362. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17363. have_shape_h_hdr=yes
  17364. else
  17365. have_shape_h_hdr=no
  17366. fi
  17367. if test x$have_shape_h_hdr = xyes; then
  17368. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17369. fi
  17370. fi
  17371. # Check whether --enable-video-x11-vm was given.
  17372. if test "${enable_video_x11_vm+set}" = set; then :
  17373. enableval=$enable_video_x11_vm;
  17374. else
  17375. enable_video_x11_vm=yes
  17376. fi
  17377. if test x$enable_video_x11_vm = xyes; then
  17378. definitely_enable_video_x11_vm=no
  17379. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17380. "
  17381. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17382. have_vm_h_hdr=yes
  17383. else
  17384. have_vm_h_hdr=no
  17385. fi
  17386. if test x$have_vm_h_hdr = xyes; then
  17387. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17388. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17389. cat >>confdefs.h <<_ACEOF
  17390. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17391. _ACEOF
  17392. definitely_enable_video_x11_vm=yes
  17393. else
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17395. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17396. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17397. $as_echo_n "(cached) " >&6
  17398. else
  17399. ac_check_lib_save_LIBS=$LIBS
  17400. LIBS="-lXxf86vm $LIBS"
  17401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17402. /* end confdefs.h. */
  17403. /* Override any GCC internal prototype to avoid an error.
  17404. Use char because int might match the return type of a GCC
  17405. builtin and then its argument prototype would still apply. */
  17406. #ifdef __cplusplus
  17407. extern "C"
  17408. #endif
  17409. char XF86VidModeQueryVersion ();
  17410. int
  17411. main ()
  17412. {
  17413. return XF86VidModeQueryVersion ();
  17414. ;
  17415. return 0;
  17416. }
  17417. _ACEOF
  17418. if ac_fn_c_try_link "$LINENO"; then :
  17419. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17420. else
  17421. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17422. fi
  17423. rm -f core conftest.err conftest.$ac_objext \
  17424. conftest$ac_exeext conftest.$ac_ext
  17425. LIBS=$ac_check_lib_save_LIBS
  17426. fi
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17428. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17429. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17430. have_vm_lib=yes
  17431. fi
  17432. if test x$have_vm_lib = xyes ; then
  17433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17434. definitely_enable_video_x11_vm=yes
  17435. fi
  17436. fi
  17437. fi
  17438. fi
  17439. if test x$definitely_enable_video_x11_vm = xyes; then
  17440. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17441. fi
  17442. fi
  17443. fi
  17444. }
  17445. CheckHaikuVideo()
  17446. {
  17447. if test x$enable_video = xyes; then
  17448. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17449. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17450. have_video=yes
  17451. fi
  17452. }
  17453. CheckCOCOA()
  17454. {
  17455. # Check whether --enable-video-cocoa was given.
  17456. if test "${enable_video_cocoa+set}" = set; then :
  17457. enableval=$enable_video_cocoa;
  17458. else
  17459. enable_video_cocoa=yes
  17460. fi
  17461. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17462. save_CFLAGS="$CFLAGS"
  17463. CFLAGS="$CFLAGS -x objective-c"
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17465. $as_echo_n "checking for Cocoa framework... " >&6; }
  17466. have_cocoa=no
  17467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17468. /* end confdefs.h. */
  17469. #import <Cocoa/Cocoa.h>
  17470. int
  17471. main ()
  17472. {
  17473. ;
  17474. return 0;
  17475. }
  17476. _ACEOF
  17477. if ac_fn_c_try_compile "$LINENO"; then :
  17478. have_cocoa=yes
  17479. fi
  17480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17482. $as_echo "$have_cocoa" >&6; }
  17483. CFLAGS="$save_CFLAGS"
  17484. if test x$have_cocoa = xyes; then
  17485. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17486. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17487. have_video=yes
  17488. fi
  17489. fi
  17490. }
  17491. CheckDirectFB()
  17492. {
  17493. # Check whether --enable-video-directfb was given.
  17494. if test "${enable_video_directfb+set}" = set; then :
  17495. enableval=$enable_video_directfb;
  17496. else
  17497. enable_video_directfb=no
  17498. fi
  17499. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17500. video_directfb=no
  17501. DIRECTFB_REQUIRED_VERSION=1.0.0
  17502. for ac_prog in directfb-config
  17503. do
  17504. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17505. set dummy $ac_prog; ac_word=$2
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17507. $as_echo_n "checking for $ac_word... " >&6; }
  17508. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17509. $as_echo_n "(cached) " >&6
  17510. else
  17511. case $DIRECTFBCONFIG in
  17512. [\\/]* | ?:[\\/]*)
  17513. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17514. ;;
  17515. *)
  17516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17517. as_dummy="$prefix/bin:$PATH"
  17518. for as_dir in $as_dummy
  17519. do
  17520. IFS=$as_save_IFS
  17521. test -z "$as_dir" && as_dir=.
  17522. for ac_exec_ext in '' $ac_executable_extensions; do
  17523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17524. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17526. break 2
  17527. fi
  17528. done
  17529. done
  17530. IFS=$as_save_IFS
  17531. ;;
  17532. esac
  17533. fi
  17534. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17535. if test -n "$DIRECTFBCONFIG"; then
  17536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17537. $as_echo "$DIRECTFBCONFIG" >&6; }
  17538. else
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17540. $as_echo "no" >&6; }
  17541. fi
  17542. test -n "$DIRECTFBCONFIG" && break
  17543. done
  17544. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17545. if test x$DIRECTFBCONFIG = xno; then
  17546. # Extract the first word of "pkg-config", so it can be a program name with args.
  17547. set dummy pkg-config; ac_word=$2
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17549. $as_echo_n "checking for $ac_word... " >&6; }
  17550. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17551. $as_echo_n "(cached) " >&6
  17552. else
  17553. case $PKG_CONFIG in
  17554. [\\/]* | ?:[\\/]*)
  17555. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17556. ;;
  17557. *)
  17558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17559. for as_dir in $PATH
  17560. do
  17561. IFS=$as_save_IFS
  17562. test -z "$as_dir" && as_dir=.
  17563. for ac_exec_ext in '' $ac_executable_extensions; do
  17564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17565. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17567. break 2
  17568. fi
  17569. done
  17570. done
  17571. IFS=$as_save_IFS
  17572. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17573. ;;
  17574. esac
  17575. fi
  17576. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17577. if test -n "$PKG_CONFIG"; then
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17579. $as_echo "$PKG_CONFIG" >&6; }
  17580. else
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17582. $as_echo "no" >&6; }
  17583. fi
  17584. if test x$PKG_CONFIG != xno; then
  17585. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17586. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17587. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17588. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17589. video_directfb=yes
  17590. fi
  17591. fi
  17592. else
  17593. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17594. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17595. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17596. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17597. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17598. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17599. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17600. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17601. video_directfb=yes
  17602. fi
  17603. fi
  17604. if test x$video_directfb = xyes; then
  17605. # SuSE 11.1 installs directfb-config without directfb-devel
  17606. save_CPPFLAGS="$CPPFLAGS"
  17607. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17608. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17609. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17610. have_directfb_hdr=yes
  17611. else
  17612. have_directfb_hdr=no
  17613. fi
  17614. CPPFLAGS="$save_CPPFLAGS"
  17615. video_directfb=$have_directfb_hdr
  17616. fi
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17618. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17620. $as_echo "$video_directfb" >&6; }
  17621. if test x$video_directfb = xyes; then
  17622. # Check whether --enable-directfb-shared was given.
  17623. if test "${enable_directfb_shared+set}" = set; then :
  17624. enableval=$enable_directfb_shared;
  17625. else
  17626. enable_directfb_shared=yes
  17627. fi
  17628. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17629. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17630. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17631. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17633. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17634. directfb_shared=no
  17635. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17636. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17638. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17639. if test x$have_loadso != xyes && \
  17640. test x$enable_directfb_shared = xyes; then
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17642. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17643. fi
  17644. if test x$have_loadso = xyes && \
  17645. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17646. directfb_shared=yes
  17647. echo "-- $directfb_lib_spec -> $directfb_lib"
  17648. cat >>confdefs.h <<_ACEOF
  17649. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17650. _ACEOF
  17651. else
  17652. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17653. fi
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17655. $as_echo "$directfb_shared" >&6; }
  17656. have_video=yes
  17657. fi
  17658. fi
  17659. }
  17660. CheckFusionSound()
  17661. {
  17662. # Check whether --enable-fusionsound was given.
  17663. if test "${enable_fusionsound+set}" = set; then :
  17664. enableval=$enable_fusionsound;
  17665. else
  17666. enable_fusionsound=no
  17667. fi
  17668. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17669. fusionsound=no
  17670. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17671. # Extract the first word of "pkg-config", so it can be a program name with args.
  17672. set dummy pkg-config; ac_word=$2
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17674. $as_echo_n "checking for $ac_word... " >&6; }
  17675. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17676. $as_echo_n "(cached) " >&6
  17677. else
  17678. case $PKG_CONFIG in
  17679. [\\/]* | ?:[\\/]*)
  17680. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17681. ;;
  17682. *)
  17683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17684. for as_dir in $PATH
  17685. do
  17686. IFS=$as_save_IFS
  17687. test -z "$as_dir" && as_dir=.
  17688. for ac_exec_ext in '' $ac_executable_extensions; do
  17689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17690. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17692. break 2
  17693. fi
  17694. done
  17695. done
  17696. IFS=$as_save_IFS
  17697. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17698. ;;
  17699. esac
  17700. fi
  17701. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17702. if test -n "$PKG_CONFIG"; then
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17704. $as_echo "$PKG_CONFIG" >&6; }
  17705. else
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17707. $as_echo "no" >&6; }
  17708. fi
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17710. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17711. if test x$PKG_CONFIG != xno; then
  17712. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17713. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17714. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17715. fusionsound=yes
  17716. fi
  17717. fi
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17719. $as_echo "$fusionsound" >&6; }
  17720. if test x$fusionsound = xyes; then
  17721. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17722. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17723. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17724. # Check whether --enable-fusionsound-shared was given.
  17725. if test "${enable_fusionsound_shared+set}" = set; then :
  17726. enableval=$enable_fusionsound_shared;
  17727. else
  17728. enable_fusionsound_shared=yes
  17729. fi
  17730. fusionsound_shared=no
  17731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17732. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17733. if test x$have_loadso != xyes && \
  17734. test x$enable_fusionsound_shared = xyes; then
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17736. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17737. fi
  17738. if test x$have_loadso = xyes && \
  17739. test x$enable_fusionsound_shared = xyes; then
  17740. cat >>confdefs.h <<_ACEOF
  17741. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17742. _ACEOF
  17743. fusionsound_shared=yes
  17744. else
  17745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17746. fi
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17748. $as_echo "$fusionsound_shared" >&6; }
  17749. have_audio=yes
  17750. fi
  17751. fi
  17752. }
  17753. CheckDummyVideo()
  17754. {
  17755. # Check whether --enable-video-dummy was given.
  17756. if test "${enable_video_dummy+set}" = set; then :
  17757. enableval=$enable_video_dummy;
  17758. else
  17759. enable_video_dummy=yes
  17760. fi
  17761. if test x$enable_video_dummy = xyes; then
  17762. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  17763. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  17764. have_video=yes
  17765. fi
  17766. }
  17767. # Check whether --enable-video-opengl was given.
  17768. if test "${enable_video_opengl+set}" = set; then :
  17769. enableval=$enable_video_opengl;
  17770. else
  17771. enable_video_opengl=yes
  17772. fi
  17773. CheckOpenGLX11()
  17774. {
  17775. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  17777. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  17778. video_opengl=no
  17779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17780. /* end confdefs.h. */
  17781. #include <GL/gl.h>
  17782. #include <GL/glx.h>
  17783. int
  17784. main ()
  17785. {
  17786. ;
  17787. return 0;
  17788. }
  17789. _ACEOF
  17790. if ac_fn_c_try_compile "$LINENO"; then :
  17791. video_opengl=yes
  17792. fi
  17793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  17795. $as_echo "$video_opengl" >&6; }
  17796. if test x$video_opengl = xyes; then
  17797. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17798. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  17799. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17800. fi
  17801. fi
  17802. }
  17803. # Check whether --enable-video-opengles was given.
  17804. if test "${enable_video_opengles+set}" = set; then :
  17805. enableval=$enable_video_opengles;
  17806. else
  17807. enable_video_opengles=yes
  17808. fi
  17809. CheckOpenGLESX11()
  17810. {
  17811. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17813. $as_echo_n "checking for EGL support... " >&6; }
  17814. video_opengl_egl=no
  17815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17816. /* end confdefs.h. */
  17817. #include <EGL/egl.h>
  17818. int
  17819. main ()
  17820. {
  17821. ;
  17822. return 0;
  17823. }
  17824. _ACEOF
  17825. if ac_fn_c_try_compile "$LINENO"; then :
  17826. video_opengl_egl=yes
  17827. fi
  17828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17830. $as_echo "$video_opengl_egl" >&6; }
  17831. if test x$video_opengl_egl = xyes; then
  17832. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17833. fi
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  17835. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  17836. video_opengles_v1=no
  17837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17838. /* end confdefs.h. */
  17839. #include <GLES/gl.h>
  17840. #include <GLES/glext.h>
  17841. int
  17842. main ()
  17843. {
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. if ac_fn_c_try_compile "$LINENO"; then :
  17849. video_opengles_v1=yes
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  17853. $as_echo "$video_opengles_v1" >&6; }
  17854. if test x$video_opengles_v1 = xyes; then
  17855. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  17856. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  17857. fi
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17859. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17860. video_opengles_v2=no
  17861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17862. /* end confdefs.h. */
  17863. #include <GLES2/gl2.h>
  17864. #include <GLES2/gl2ext.h>
  17865. int
  17866. main ()
  17867. {
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. if ac_fn_c_try_compile "$LINENO"; then :
  17873. video_opengles_v2=yes
  17874. fi
  17875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17877. $as_echo "$video_opengles_v2" >&6; }
  17878. if test x$video_opengles_v2 = xyes; then
  17879. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17880. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17881. fi
  17882. fi
  17883. }
  17884. CheckWINDOWSGL()
  17885. {
  17886. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17887. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17888. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  17889. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17890. fi
  17891. }
  17892. CheckWINDOWSGLES()
  17893. {
  17894. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  17895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  17896. $as_echo_n "checking for EGL support... " >&6; }
  17897. video_opengl_egl=no
  17898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17899. /* end confdefs.h. */
  17900. #include <EGL/egl.h>
  17901. int
  17902. main ()
  17903. {
  17904. ;
  17905. return 0;
  17906. }
  17907. _ACEOF
  17908. if ac_fn_c_try_compile "$LINENO"; then :
  17909. video_opengl_egl=yes
  17910. fi
  17911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  17913. $as_echo "$video_opengl_egl" >&6; }
  17914. if test x$video_opengl_egl = xyes; then
  17915. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17916. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  17917. fi
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  17919. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  17920. video_opengles_v2=no
  17921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17922. /* end confdefs.h. */
  17923. #include <GLES2/gl2.h>
  17924. #include <GLES2/gl2ext.h>
  17925. int
  17926. main ()
  17927. {
  17928. ;
  17929. return 0;
  17930. }
  17931. _ACEOF
  17932. if ac_fn_c_try_compile "$LINENO"; then :
  17933. video_opengles_v2=yes
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  17937. $as_echo "$video_opengles_v2" >&6; }
  17938. if test x$video_opengles_v2 = xyes; then
  17939. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17940. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17941. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17942. fi
  17943. fi
  17944. }
  17945. CheckHaikuGL()
  17946. {
  17947. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17948. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17949. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  17950. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17951. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  17952. fi
  17953. }
  17954. CheckMacGL()
  17955. {
  17956. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  17957. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  17958. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  17959. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  17960. case "$host" in
  17961. *-*-darwin*)
  17962. if test x$enable_video_cocoa = xyes; then
  17963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
  17964. fi
  17965. esac
  17966. fi
  17967. }
  17968. CheckInputEvents()
  17969. {
  17970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  17971. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  17972. use_input_events=no
  17973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17974. /* end confdefs.h. */
  17975. #include <linux/input.h>
  17976. int
  17977. main ()
  17978. {
  17979. #ifndef EVIOCGNAME
  17980. #error EVIOCGNAME() ioctl not available
  17981. #endif
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. if ac_fn_c_try_compile "$LINENO"; then :
  17987. use_input_events=yes
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  17991. $as_echo "$use_input_events" >&6; }
  17992. if test x$use_input_events = xyes; then
  17993. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  17994. fi
  17995. }
  17996. CheckInputKD()
  17997. {
  17998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  17999. $as_echo_n "checking for Linux kd.h... " >&6; }
  18000. use_input_kd=no
  18001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18002. /* end confdefs.h. */
  18003. #include <linux/kd.h>
  18004. #include <linux/keyboard.h>
  18005. int
  18006. main ()
  18007. {
  18008. struct kbentry kbe;
  18009. kbe.kb_table = KG_CTRL;
  18010. ioctl(0, KDGKBENT, &kbe);
  18011. ;
  18012. return 0;
  18013. }
  18014. _ACEOF
  18015. if ac_fn_c_try_compile "$LINENO"; then :
  18016. use_input_kd=yes
  18017. fi
  18018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18020. $as_echo "$use_input_kd" >&6; }
  18021. if test x$use_input_kd = xyes; then
  18022. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18023. fi
  18024. }
  18025. CheckLibUDev()
  18026. {
  18027. # Check whether --enable-libudev was given.
  18028. if test "${enable_libudev+set}" = set; then :
  18029. enableval=$enable_libudev;
  18030. else
  18031. enable_libudev=yes
  18032. fi
  18033. if test x$enable_libudev = xyes; then
  18034. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18035. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18036. have_libudev_h_hdr=yes
  18037. else
  18038. have_libudev_h_hdr=no
  18039. fi
  18040. if test x$have_libudev_h_hdr = xyes; then
  18041. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18042. fi
  18043. fi
  18044. }
  18045. CheckDBus()
  18046. {
  18047. # Check whether --enable-dbus was given.
  18048. if test "${enable_dbus+set}" = set; then :
  18049. enableval=$enable_dbus;
  18050. else
  18051. enable_dbus=yes
  18052. fi
  18053. if test x$enable_dbus = xyes; then
  18054. # Extract the first word of "pkg-config", so it can be a program name with args.
  18055. set dummy pkg-config; ac_word=$2
  18056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18057. $as_echo_n "checking for $ac_word... " >&6; }
  18058. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18059. $as_echo_n "(cached) " >&6
  18060. else
  18061. case $PKG_CONFIG in
  18062. [\\/]* | ?:[\\/]*)
  18063. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18064. ;;
  18065. *)
  18066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18067. for as_dir in $PATH
  18068. do
  18069. IFS=$as_save_IFS
  18070. test -z "$as_dir" && as_dir=.
  18071. for ac_exec_ext in '' $ac_executable_extensions; do
  18072. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18073. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18075. break 2
  18076. fi
  18077. done
  18078. done
  18079. IFS=$as_save_IFS
  18080. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18081. ;;
  18082. esac
  18083. fi
  18084. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18085. if test -n "$PKG_CONFIG"; then
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18087. $as_echo "$PKG_CONFIG" >&6; }
  18088. else
  18089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18090. $as_echo "no" >&6; }
  18091. fi
  18092. if test x$PKG_CONFIG != xno; then
  18093. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18094. save_CFLAGS="$CFLAGS"
  18095. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18096. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18097. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18098. have_dbus_dbus_h_hdr=yes
  18099. else
  18100. have_dbus_dbus_h_hdr=no
  18101. fi
  18102. CFLAGS="$save_CFLAGS"
  18103. if test x$have_dbus_dbus_h_hdr = xyes; then
  18104. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18105. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18106. fi
  18107. fi
  18108. fi
  18109. }
  18110. CheckTslib()
  18111. {
  18112. # Check whether --enable-input-tslib was given.
  18113. if test "${enable_input_tslib+set}" = set; then :
  18114. enableval=$enable_input_tslib;
  18115. else
  18116. enable_input_tslib=yes
  18117. fi
  18118. if test x$enable_input_tslib = xyes; then
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18120. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18121. enable_input_tslib=no
  18122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18123. /* end confdefs.h. */
  18124. #include "tslib.h"
  18125. int
  18126. main ()
  18127. {
  18128. ;
  18129. return 0;
  18130. }
  18131. _ACEOF
  18132. if ac_fn_c_try_compile "$LINENO"; then :
  18133. enable_input_tslib=yes
  18134. fi
  18135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18137. $as_echo "$enable_input_tslib" >&6; }
  18138. if test x$enable_input_tslib = xyes; then
  18139. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18141. fi
  18142. fi
  18143. }
  18144. CheckPTHREAD()
  18145. {
  18146. # Check whether --enable-pthreads was given.
  18147. if test "${enable_pthreads+set}" = set; then :
  18148. enableval=$enable_pthreads;
  18149. else
  18150. enable_pthreads=yes
  18151. fi
  18152. # Check whether --enable-pthread-sem was given.
  18153. if test "${enable_pthread_sem+set}" = set; then :
  18154. enableval=$enable_pthread_sem;
  18155. else
  18156. enable_pthread_sem=yes
  18157. fi
  18158. case "$host" in
  18159. *-*-linux*|*-*-uclinux*)
  18160. pthread_cflags="-D_REENTRANT"
  18161. pthread_lib="-lpthread"
  18162. ;;
  18163. *-*-bsdi*)
  18164. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18165. pthread_lib=""
  18166. ;;
  18167. *-*-darwin*)
  18168. pthread_cflags="-D_THREAD_SAFE"
  18169. # causes Carbon.p complaints?
  18170. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18171. ;;
  18172. *-*-freebsd*|*-*-dragonfly*)
  18173. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18174. pthread_lib="-pthread"
  18175. ;;
  18176. *-*-netbsd*)
  18177. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18178. pthread_lib="-lpthread"
  18179. ;;
  18180. *-*-openbsd*)
  18181. pthread_cflags="-D_REENTRANT"
  18182. pthread_lib="-pthread"
  18183. ;;
  18184. *-*-solaris2.9)
  18185. # From Solaris 9+, posix4's preferred name is rt.
  18186. pthread_cflags="-D_REENTRANT"
  18187. pthread_lib="-lpthread -lrt"
  18188. ;;
  18189. *-*-solaris2.10)
  18190. # Solaris 10+ merged pthread into libc.
  18191. pthread_cflags="-D_REENTRANT"
  18192. pthread_lib="-lrt"
  18193. ;;
  18194. *-*-solaris*)
  18195. # Solaris 11+ merged rt into libc.
  18196. pthread_cflags="-D_REENTRANT"
  18197. pthread_lib=""
  18198. ;;
  18199. *-*-sysv5*)
  18200. pthread_cflags="-D_REENTRANT -Kthread"
  18201. pthread_lib=""
  18202. ;;
  18203. *-*-aix*)
  18204. pthread_cflags="-D_REENTRANT -mthreads"
  18205. pthread_lib="-lpthread"
  18206. ;;
  18207. *-*-hpux11*)
  18208. pthread_cflags="-D_REENTRANT"
  18209. pthread_lib="-L/usr/lib -lpthread"
  18210. ;;
  18211. *-*-haiku*)
  18212. pthread_cflags="-D_REENTRANT"
  18213. pthread_lib=""
  18214. ;;
  18215. *)
  18216. pthread_cflags="-D_REENTRANT"
  18217. pthread_lib="-lpthread"
  18218. ;;
  18219. esac
  18220. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18221. # Save the original compiler flags and libraries
  18222. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18223. # Add the pthread compiler flags and libraries
  18224. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18225. # Check to see if we have pthread support on this system
  18226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18227. $as_echo_n "checking for pthreads... " >&6; }
  18228. use_pthreads=no
  18229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18230. /* end confdefs.h. */
  18231. #include <pthread.h>
  18232. int
  18233. main ()
  18234. {
  18235. pthread_attr_t type;
  18236. pthread_attr_init(&type);
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_link "$LINENO"; then :
  18242. use_pthreads=yes
  18243. fi
  18244. rm -f core conftest.err conftest.$ac_objext \
  18245. conftest$ac_exeext conftest.$ac_ext
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18247. $as_echo "$use_pthreads" >&6; }
  18248. # Restore the compiler flags and libraries
  18249. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18250. # Do futher testing if we have pthread support...
  18251. if test x$use_pthreads = xyes; then
  18252. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18253. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18255. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18256. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18257. # Save the original compiler flags and libraries
  18258. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18259. # Add the pthread compiler flags and libraries
  18260. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18261. # Check to see if recursive mutexes are available
  18262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18263. $as_echo_n "checking for recursive mutexes... " >&6; }
  18264. has_recursive_mutexes=no
  18265. if test x$has_recursive_mutexes = xno; then
  18266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18267. /* end confdefs.h. */
  18268. #include <pthread.h>
  18269. int
  18270. main ()
  18271. {
  18272. pthread_mutexattr_t attr;
  18273. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18274. ;
  18275. return 0;
  18276. }
  18277. _ACEOF
  18278. if ac_fn_c_try_compile "$LINENO"; then :
  18279. has_recursive_mutexes=yes
  18280. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18283. fi
  18284. if test x$has_recursive_mutexes = xno; then
  18285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18286. /* end confdefs.h. */
  18287. #include <pthread.h>
  18288. int
  18289. main ()
  18290. {
  18291. pthread_mutexattr_t attr;
  18292. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18293. ;
  18294. return 0;
  18295. }
  18296. _ACEOF
  18297. if ac_fn_c_try_compile "$LINENO"; then :
  18298. has_recursive_mutexes=yes
  18299. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18300. fi
  18301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18302. fi
  18303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18304. $as_echo "$has_recursive_mutexes" >&6; }
  18305. # Check to see if pthread semaphore support is missing
  18306. if test x$enable_pthread_sem = xyes; then
  18307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18308. $as_echo_n "checking for pthread semaphores... " >&6; }
  18309. have_pthread_sem=no
  18310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18311. /* end confdefs.h. */
  18312. #include <pthread.h>
  18313. #include <semaphore.h>
  18314. int
  18315. main ()
  18316. {
  18317. ;
  18318. return 0;
  18319. }
  18320. _ACEOF
  18321. if ac_fn_c_try_compile "$LINENO"; then :
  18322. have_pthread_sem=yes
  18323. fi
  18324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18326. $as_echo "$have_pthread_sem" >&6; }
  18327. fi
  18328. if test x$have_pthread_sem = xyes; then
  18329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18330. $as_echo_n "checking for sem_timedwait... " >&6; }
  18331. have_sem_timedwait=no
  18332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18333. /* end confdefs.h. */
  18334. #include <pthread.h>
  18335. #include <semaphore.h>
  18336. int
  18337. main ()
  18338. {
  18339. sem_timedwait(NULL, NULL);
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. if ac_fn_c_try_link "$LINENO"; then :
  18345. have_sem_timedwait=yes
  18346. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18347. fi
  18348. rm -f core conftest.err conftest.$ac_objext \
  18349. conftest$ac_exeext conftest.$ac_ext
  18350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18351. $as_echo "$have_sem_timedwait" >&6; }
  18352. fi
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18354. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18356. /* end confdefs.h. */
  18357. /* Override any GCC internal prototype to avoid an error.
  18358. Use char because int might match the return type of a GCC
  18359. builtin and then its argument prototype would still apply. */
  18360. #ifdef __cplusplus
  18361. extern "C"
  18362. #endif
  18363. char pthread_spin_trylock ();
  18364. int
  18365. main ()
  18366. {
  18367. return pthread_spin_trylock ();
  18368. ;
  18369. return 0;
  18370. }
  18371. _ACEOF
  18372. if ac_fn_c_try_link "$LINENO"; then :
  18373. has_pthread_spin_trylock=yes
  18374. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18375. else
  18376. has_pthread_spin_trylock=no
  18377. fi
  18378. rm -f core conftest.err conftest.$ac_objext \
  18379. conftest$ac_exeext conftest.$ac_ext
  18380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18381. $as_echo "$has_pthread_spin_trylock" >&6; }
  18382. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18383. "
  18384. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18385. have_pthread_np_h=yes
  18386. else
  18387. have_pthread_np_h=no
  18388. fi
  18389. if test x$have_pthread_np_h = xyes; then
  18390. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18391. fi
  18392. # Check to see if pthread naming is available
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18394. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18396. /* end confdefs.h. */
  18397. /* Override any GCC internal prototype to avoid an error.
  18398. Use char because int might match the return type of a GCC
  18399. builtin and then its argument prototype would still apply. */
  18400. #ifdef __cplusplus
  18401. extern "C"
  18402. #endif
  18403. char pthread_setname_np ();
  18404. int
  18405. main ()
  18406. {
  18407. return pthread_setname_np ();
  18408. ;
  18409. return 0;
  18410. }
  18411. _ACEOF
  18412. if ac_fn_c_try_link "$LINENO"; then :
  18413. has_pthread_setname_np=yes
  18414. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18415. else
  18416. has_pthread_setname_np=no
  18417. fi
  18418. rm -f core conftest.err conftest.$ac_objext \
  18419. conftest$ac_exeext conftest.$ac_ext
  18420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18421. $as_echo "$has_pthread_setname_np" >&6; }
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18423. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18425. /* end confdefs.h. */
  18426. /* Override any GCC internal prototype to avoid an error.
  18427. Use char because int might match the return type of a GCC
  18428. builtin and then its argument prototype would still apply. */
  18429. #ifdef __cplusplus
  18430. extern "C"
  18431. #endif
  18432. char pthread_set_name_np ();
  18433. int
  18434. main ()
  18435. {
  18436. return pthread_set_name_np ();
  18437. ;
  18438. return 0;
  18439. }
  18440. _ACEOF
  18441. if ac_fn_c_try_link "$LINENO"; then :
  18442. has_pthread_set_name_np=yes
  18443. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18444. else
  18445. has_pthread_set_name_np=no
  18446. fi
  18447. rm -f core conftest.err conftest.$ac_objext \
  18448. conftest$ac_exeext conftest.$ac_ext
  18449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18450. $as_echo "$has_pthread_set_name_np" >&6; }
  18451. # Restore the compiler flags and libraries
  18452. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18453. # Basic thread creation functions
  18454. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18455. # Semaphores
  18456. # We can fake these with mutexes and condition variables if necessary
  18457. if test x$have_pthread_sem = xyes; then
  18458. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18459. else
  18460. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18461. fi
  18462. # Mutexes
  18463. # We can fake these with semaphores if necessary
  18464. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18465. # Condition variables
  18466. # We can fake these with semaphores and mutexes if necessary
  18467. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18468. # Thread local storage
  18469. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18470. have_threads=yes
  18471. fi
  18472. fi
  18473. }
  18474. CheckWINDOWS()
  18475. {
  18476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18477. $as_echo_n "checking Windows compiler... " >&6; }
  18478. have_win32_gcc=no
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. #include <windows.h>
  18482. int
  18483. main ()
  18484. {
  18485. ;
  18486. return 0;
  18487. }
  18488. _ACEOF
  18489. if ac_fn_c_try_compile "$LINENO"; then :
  18490. have_win32_gcc=yes
  18491. fi
  18492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18494. $as_echo "$have_win32_gcc" >&6; }
  18495. if test x$have_win32_gcc != xyes; then
  18496. as_fn_error $? "
  18497. *** Your compiler ($CC) does not produce Windows executables!
  18498. " "$LINENO" 5
  18499. fi
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18501. $as_echo_n "checking Windows CE... " >&6; }
  18502. have_wince=no
  18503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18504. /* end confdefs.h. */
  18505. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18506. #error This is not Windows CE
  18507. #endif
  18508. int
  18509. main ()
  18510. {
  18511. ;
  18512. return 0;
  18513. }
  18514. _ACEOF
  18515. if ac_fn_c_try_compile "$LINENO"; then :
  18516. have_wince=yes
  18517. as_fn_error $? "
  18518. *** Sorry, Windows CE is no longer supported.
  18519. " "$LINENO" 5
  18520. fi
  18521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18523. $as_echo "$have_wince" >&6; }
  18524. # This fixes Windows stack alignment with newer GCC
  18525. CheckStackBoundary
  18526. }
  18527. CheckDIRECTX()
  18528. {
  18529. # Check whether --enable-directx was given.
  18530. if test "${enable_directx+set}" = set; then :
  18531. enableval=$enable_directx;
  18532. else
  18533. enable_directx=yes
  18534. fi
  18535. if test x$enable_directx = xyes; then
  18536. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18537. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18538. have_d3d=yes
  18539. fi
  18540. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18541. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18542. have_ddraw=yes
  18543. fi
  18544. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18545. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18546. have_dsound=yes
  18547. fi
  18548. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18549. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18550. have_dinput=yes
  18551. fi
  18552. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18553. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18554. have_xaudio2=yes
  18555. fi
  18556. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18557. # FIXME: ...so force it off for now.
  18558. case "$host" in
  18559. *-*-cygwin*)
  18560. have_dinput=false
  18561. ;;
  18562. esac
  18563. fi
  18564. }
  18565. CheckDLOPEN()
  18566. {
  18567. # Check whether --enable-sdl-dlopen was given.
  18568. if test "${enable_sdl_dlopen+set}" = set; then :
  18569. enableval=$enable_sdl_dlopen;
  18570. else
  18571. enable_sdl_dlopen=yes
  18572. fi
  18573. if test x$enable_sdl_dlopen = xyes; then
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18575. $as_echo_n "checking for dlopen... " >&6; }
  18576. have_dlopen=no
  18577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18578. /* end confdefs.h. */
  18579. #include <dlfcn.h>
  18580. int
  18581. main ()
  18582. {
  18583. void *handle = dlopen("", RTLD_NOW);
  18584. const char *loaderror = (char *) dlerror();
  18585. ;
  18586. return 0;
  18587. }
  18588. _ACEOF
  18589. if ac_fn_c_try_compile "$LINENO"; then :
  18590. have_dlopen=yes
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18594. $as_echo "$have_dlopen" >&6; }
  18595. if test x$have_dlopen = xyes; then
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18597. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18598. if ${ac_cv_lib_c_dlopen+:} false; then :
  18599. $as_echo_n "(cached) " >&6
  18600. else
  18601. ac_check_lib_save_LIBS=$LIBS
  18602. LIBS="-lc $LIBS"
  18603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18604. /* end confdefs.h. */
  18605. /* Override any GCC internal prototype to avoid an error.
  18606. Use char because int might match the return type of a GCC
  18607. builtin and then its argument prototype would still apply. */
  18608. #ifdef __cplusplus
  18609. extern "C"
  18610. #endif
  18611. char dlopen ();
  18612. int
  18613. main ()
  18614. {
  18615. return dlopen ();
  18616. ;
  18617. return 0;
  18618. }
  18619. _ACEOF
  18620. if ac_fn_c_try_link "$LINENO"; then :
  18621. ac_cv_lib_c_dlopen=yes
  18622. else
  18623. ac_cv_lib_c_dlopen=no
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext \
  18626. conftest$ac_exeext conftest.$ac_ext
  18627. LIBS=$ac_check_lib_save_LIBS
  18628. fi
  18629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18630. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18631. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18633. else
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18635. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18636. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18637. $as_echo_n "(cached) " >&6
  18638. else
  18639. ac_check_lib_save_LIBS=$LIBS
  18640. LIBS="-ldl $LIBS"
  18641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18642. /* end confdefs.h. */
  18643. /* Override any GCC internal prototype to avoid an error.
  18644. Use char because int might match the return type of a GCC
  18645. builtin and then its argument prototype would still apply. */
  18646. #ifdef __cplusplus
  18647. extern "C"
  18648. #endif
  18649. char dlopen ();
  18650. int
  18651. main ()
  18652. {
  18653. return dlopen ();
  18654. ;
  18655. return 0;
  18656. }
  18657. _ACEOF
  18658. if ac_fn_c_try_link "$LINENO"; then :
  18659. ac_cv_lib_dl_dlopen=yes
  18660. else
  18661. ac_cv_lib_dl_dlopen=no
  18662. fi
  18663. rm -f core conftest.err conftest.$ac_objext \
  18664. conftest$ac_exeext conftest.$ac_ext
  18665. LIBS=$ac_check_lib_save_LIBS
  18666. fi
  18667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  18668. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  18669. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  18670. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  18671. else
  18672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  18673. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  18674. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  18675. $as_echo_n "(cached) " >&6
  18676. else
  18677. ac_check_lib_save_LIBS=$LIBS
  18678. LIBS="-lltdl $LIBS"
  18679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18680. /* end confdefs.h. */
  18681. /* Override any GCC internal prototype to avoid an error.
  18682. Use char because int might match the return type of a GCC
  18683. builtin and then its argument prototype would still apply. */
  18684. #ifdef __cplusplus
  18685. extern "C"
  18686. #endif
  18687. char dlopen ();
  18688. int
  18689. main ()
  18690. {
  18691. return dlopen ();
  18692. ;
  18693. return 0;
  18694. }
  18695. _ACEOF
  18696. if ac_fn_c_try_link "$LINENO"; then :
  18697. ac_cv_lib_ltdl_dlopen=yes
  18698. else
  18699. ac_cv_lib_ltdl_dlopen=no
  18700. fi
  18701. rm -f core conftest.err conftest.$ac_objext \
  18702. conftest$ac_exeext conftest.$ac_ext
  18703. LIBS=$ac_check_lib_save_LIBS
  18704. fi
  18705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  18706. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  18707. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  18708. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  18709. fi
  18710. fi
  18711. fi
  18712. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  18713. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  18714. have_loadso=yes
  18715. fi
  18716. fi
  18717. }
  18718. CheckUSBHID()
  18719. {
  18720. case "$host" in
  18721. *-*-*bsd*)
  18722. if test x$enable_joystick = xyes; then
  18723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  18724. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  18725. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  18726. $as_echo_n "(cached) " >&6
  18727. else
  18728. ac_check_lib_save_LIBS=$LIBS
  18729. LIBS="-lusbhid $LIBS"
  18730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18731. /* end confdefs.h. */
  18732. /* Override any GCC internal prototype to avoid an error.
  18733. Use char because int might match the return type of a GCC
  18734. builtin and then its argument prototype would still apply. */
  18735. #ifdef __cplusplus
  18736. extern "C"
  18737. #endif
  18738. char hid_init ();
  18739. int
  18740. main ()
  18741. {
  18742. return hid_init ();
  18743. ;
  18744. return 0;
  18745. }
  18746. _ACEOF
  18747. if ac_fn_c_try_link "$LINENO"; then :
  18748. ac_cv_lib_usbhid_hid_init=yes
  18749. else
  18750. ac_cv_lib_usbhid_hid_init=no
  18751. fi
  18752. rm -f core conftest.err conftest.$ac_objext \
  18753. conftest$ac_exeext conftest.$ac_ext
  18754. LIBS=$ac_check_lib_save_LIBS
  18755. fi
  18756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  18757. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  18758. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  18759. have_libusbhid=yes
  18760. fi
  18761. if test x$have_libusbhid = xyes; then
  18762. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  18763. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  18764. USB_CFLAGS="-DHAVE_USBHID_H"
  18765. fi
  18766. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  18767. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  18768. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  18769. fi
  18770. USB_LIBS="$USB_LIBS -lusbhid"
  18771. else
  18772. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  18773. if test "x$ac_cv_header_usb_h" = xyes; then :
  18774. USB_CFLAGS="-DHAVE_USB_H"
  18775. fi
  18776. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  18777. if test "x$ac_cv_header_libusb_h" = xyes; then :
  18778. USB_CFLAGS="-DHAVE_LIBUSB_H"
  18779. fi
  18780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  18781. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  18782. if ${ac_cv_lib_usb_hid_init+:} false; then :
  18783. $as_echo_n "(cached) " >&6
  18784. else
  18785. ac_check_lib_save_LIBS=$LIBS
  18786. LIBS="-lusb $LIBS"
  18787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18788. /* end confdefs.h. */
  18789. /* Override any GCC internal prototype to avoid an error.
  18790. Use char because int might match the return type of a GCC
  18791. builtin and then its argument prototype would still apply. */
  18792. #ifdef __cplusplus
  18793. extern "C"
  18794. #endif
  18795. char hid_init ();
  18796. int
  18797. main ()
  18798. {
  18799. return hid_init ();
  18800. ;
  18801. return 0;
  18802. }
  18803. _ACEOF
  18804. if ac_fn_c_try_link "$LINENO"; then :
  18805. ac_cv_lib_usb_hid_init=yes
  18806. else
  18807. ac_cv_lib_usb_hid_init=no
  18808. fi
  18809. rm -f core conftest.err conftest.$ac_objext \
  18810. conftest$ac_exeext conftest.$ac_ext
  18811. LIBS=$ac_check_lib_save_LIBS
  18812. fi
  18813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  18814. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  18815. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  18816. USB_LIBS="$USB_LIBS -lusb"
  18817. fi
  18818. fi
  18819. save_CFLAGS="$CFLAGS"
  18820. CFLAGS="$CFLAGS $USB_CFLAGS"
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  18822. $as_echo_n "checking for usbhid... " >&6; }
  18823. have_usbhid=no
  18824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18825. /* end confdefs.h. */
  18826. #include <sys/types.h>
  18827. #if defined(HAVE_USB_H)
  18828. #include <usb.h>
  18829. #endif
  18830. #ifdef __DragonFly__
  18831. # include <bus/usb/usb.h>
  18832. # include <bus/usb/usbhid.h>
  18833. #else
  18834. # include <dev/usb/usb.h>
  18835. # include <dev/usb/usbhid.h>
  18836. #endif
  18837. #if defined(HAVE_USBHID_H)
  18838. #include <usbhid.h>
  18839. #elif defined(HAVE_LIBUSB_H)
  18840. #include <libusb.h>
  18841. #elif defined(HAVE_LIBUSBHID_H)
  18842. #include <libusbhid.h>
  18843. #endif
  18844. int
  18845. main ()
  18846. {
  18847. struct report_desc *repdesc;
  18848. struct usb_ctl_report *repbuf;
  18849. hid_kind_t hidkind;
  18850. ;
  18851. return 0;
  18852. }
  18853. _ACEOF
  18854. if ac_fn_c_try_compile "$LINENO"; then :
  18855. have_usbhid=yes
  18856. fi
  18857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  18859. $as_echo "$have_usbhid" >&6; }
  18860. if test x$have_usbhid = xyes; then
  18861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  18862. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  18863. have_usbhid_ucr_data=no
  18864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18865. /* end confdefs.h. */
  18866. #include <sys/types.h>
  18867. #if defined(HAVE_USB_H)
  18868. #include <usb.h>
  18869. #endif
  18870. #ifdef __DragonFly__
  18871. # include <bus/usb/usb.h>
  18872. # include <bus/usb/usbhid.h>
  18873. #else
  18874. # include <dev/usb/usb.h>
  18875. # include <dev/usb/usbhid.h>
  18876. #endif
  18877. #if defined(HAVE_USBHID_H)
  18878. #include <usbhid.h>
  18879. #elif defined(HAVE_LIBUSB_H)
  18880. #include <libusb.h>
  18881. #elif defined(HAVE_LIBUSBHID_H)
  18882. #include <libusbhid.h>
  18883. #endif
  18884. int
  18885. main ()
  18886. {
  18887. struct usb_ctl_report buf;
  18888. if (buf.ucr_data) { }
  18889. ;
  18890. return 0;
  18891. }
  18892. _ACEOF
  18893. if ac_fn_c_try_compile "$LINENO"; then :
  18894. have_usbhid_ucr_data=yes
  18895. fi
  18896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18897. if test x$have_usbhid_ucr_data = xyes; then
  18898. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  18899. fi
  18900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  18901. $as_echo "$have_usbhid_ucr_data" >&6; }
  18902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  18903. $as_echo_n "checking for new usbhid API... " >&6; }
  18904. have_usbhid_new=no
  18905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18906. /* end confdefs.h. */
  18907. #include <sys/types.h>
  18908. #if defined(HAVE_USB_H)
  18909. #include <usb.h>
  18910. #endif
  18911. #ifdef __DragonFly__
  18912. #include <bus/usb/usb.h>
  18913. #include <bus/usb/usbhid.h>
  18914. #else
  18915. #include <dev/usb/usb.h>
  18916. #include <dev/usb/usbhid.h>
  18917. #endif
  18918. #if defined(HAVE_USBHID_H)
  18919. #include <usbhid.h>
  18920. #elif defined(HAVE_LIBUSB_H)
  18921. #include <libusb.h>
  18922. #elif defined(HAVE_LIBUSBHID_H)
  18923. #include <libusbhid.h>
  18924. #endif
  18925. int
  18926. main ()
  18927. {
  18928. report_desc_t d;
  18929. hid_start_parse(d, 1, 1);
  18930. ;
  18931. return 0;
  18932. }
  18933. _ACEOF
  18934. if ac_fn_c_try_compile "$LINENO"; then :
  18935. have_usbhid_new=yes
  18936. fi
  18937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18938. if test x$have_usbhid_new = xyes; then
  18939. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  18940. fi
  18941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  18942. $as_echo "$have_usbhid_new" >&6; }
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  18944. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  18945. have_machine_joystick=no
  18946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18947. /* end confdefs.h. */
  18948. #include <machine/joystick.h>
  18949. int
  18950. main ()
  18951. {
  18952. struct joystick t;
  18953. ;
  18954. return 0;
  18955. }
  18956. _ACEOF
  18957. if ac_fn_c_try_compile "$LINENO"; then :
  18958. have_machine_joystick=yes
  18959. fi
  18960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18961. if test x$have_machine_joystick = xyes; then
  18962. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  18963. fi
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  18965. $as_echo "$have_machine_joystick" >&6; }
  18966. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  18967. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  18968. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  18969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  18970. have_joystick=yes
  18971. fi
  18972. CFLAGS="$save_CFLAGS"
  18973. fi
  18974. ;;
  18975. esac
  18976. }
  18977. CheckClockGettime()
  18978. {
  18979. # Check whether --enable-clock_gettime was given.
  18980. if test "${enable_clock_gettime+set}" = set; then :
  18981. enableval=$enable_clock_gettime;
  18982. else
  18983. enable_clock_gettime=yes
  18984. fi
  18985. if test x$enable_clock_gettime = xyes; then
  18986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  18987. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  18988. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  18989. $as_echo_n "(cached) " >&6
  18990. else
  18991. ac_check_lib_save_LIBS=$LIBS
  18992. LIBS="-lrt $LIBS"
  18993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18994. /* end confdefs.h. */
  18995. /* Override any GCC internal prototype to avoid an error.
  18996. Use char because int might match the return type of a GCC
  18997. builtin and then its argument prototype would still apply. */
  18998. #ifdef __cplusplus
  18999. extern "C"
  19000. #endif
  19001. char clock_gettime ();
  19002. int
  19003. main ()
  19004. {
  19005. return clock_gettime ();
  19006. ;
  19007. return 0;
  19008. }
  19009. _ACEOF
  19010. if ac_fn_c_try_link "$LINENO"; then :
  19011. ac_cv_lib_rt_clock_gettime=yes
  19012. else
  19013. ac_cv_lib_rt_clock_gettime=no
  19014. fi
  19015. rm -f core conftest.err conftest.$ac_objext \
  19016. conftest$ac_exeext conftest.$ac_ext
  19017. LIBS=$ac_check_lib_save_LIBS
  19018. fi
  19019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19020. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19021. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19022. have_clock_gettime=yes
  19023. fi
  19024. if test x$have_clock_gettime = xyes; then
  19025. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19027. else
  19028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19029. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19030. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19031. $as_echo_n "(cached) " >&6
  19032. else
  19033. ac_check_lib_save_LIBS=$LIBS
  19034. LIBS="-lc $LIBS"
  19035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19036. /* end confdefs.h. */
  19037. /* Override any GCC internal prototype to avoid an error.
  19038. Use char because int might match the return type of a GCC
  19039. builtin and then its argument prototype would still apply. */
  19040. #ifdef __cplusplus
  19041. extern "C"
  19042. #endif
  19043. char clock_gettime ();
  19044. int
  19045. main ()
  19046. {
  19047. return clock_gettime ();
  19048. ;
  19049. return 0;
  19050. }
  19051. _ACEOF
  19052. if ac_fn_c_try_link "$LINENO"; then :
  19053. ac_cv_lib_c_clock_gettime=yes
  19054. else
  19055. ac_cv_lib_c_clock_gettime=no
  19056. fi
  19057. rm -f core conftest.err conftest.$ac_objext \
  19058. conftest$ac_exeext conftest.$ac_ext
  19059. LIBS=$ac_check_lib_save_LIBS
  19060. fi
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19062. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19063. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19064. have_clock_gettime=yes
  19065. fi
  19066. if test x$have_clock_gettime = xyes; then
  19067. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19069. fi
  19070. fi
  19071. fi
  19072. }
  19073. CheckLinuxVersion()
  19074. {
  19075. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19076. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19077. have_linux_version_h=yes
  19078. fi
  19079. if test x$have_linux_version_h = xyes; then
  19080. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19081. fi
  19082. }
  19083. CheckRPATH()
  19084. {
  19085. # Check whether --enable-rpath was given.
  19086. if test "${enable_rpath+set}" = set; then :
  19087. enableval=$enable_rpath;
  19088. else
  19089. enable_rpath=yes
  19090. fi
  19091. }
  19092. case "$host" in
  19093. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19094. case "$host" in
  19095. *-raspberry-linux*)
  19096. # Raspberry Pi
  19097. ARCH=linux
  19098. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19099. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19100. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19101. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19103. if test x$enable_video = xyes; then
  19104. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19105. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19106. fi
  19107. ;;
  19108. *-*-linux*) ARCH=linux ;;
  19109. *-*-uclinux*) ARCH=linux ;;
  19110. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19111. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19112. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19113. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19114. *-*-bsdi*) ARCH=bsdi ;;
  19115. *-*-freebsd*) ARCH=freebsd ;;
  19116. *-*-dragonfly*) ARCH=freebsd ;;
  19117. *-*-netbsd*) ARCH=netbsd ;;
  19118. *-*-openbsd*) ARCH=openbsd ;;
  19119. *-*-sysv5*) ARCH=sysv5 ;;
  19120. *-*-solaris*) ARCH=solaris ;;
  19121. *-*-hpux*) ARCH=hpux ;;
  19122. *-*-aix*) ARCH=aix ;;
  19123. *-*-minix*) ARCH=minix ;;
  19124. esac
  19125. CheckVisibilityHidden
  19126. CheckDummyVideo
  19127. CheckDiskAudio
  19128. CheckDummyAudio
  19129. CheckDLOPEN
  19130. CheckOSS
  19131. CheckALSA
  19132. CheckPulseAudio
  19133. CheckARTSC
  19134. CheckESD
  19135. CheckNAS
  19136. CheckSNDIO
  19137. CheckX11
  19138. CheckWayland
  19139. CheckDirectFB
  19140. CheckFusionSound
  19141. CheckOpenGLX11
  19142. CheckOpenGLESX11
  19143. CheckLibUDev
  19144. CheckDBus
  19145. CheckInputEvents
  19146. CheckInputKD
  19147. CheckTslib
  19148. CheckUSBHID
  19149. CheckPTHREAD
  19150. CheckClockGettime
  19151. CheckLinuxVersion
  19152. CheckRPATH
  19153. # Set up files for the audio library
  19154. if test x$enable_audio = xyes; then
  19155. case $ARCH in
  19156. sysv5|solaris|hpux)
  19157. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19158. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19159. have_audio=yes
  19160. ;;
  19161. netbsd) # Don't use this on OpenBSD, it's busted.
  19162. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19163. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19164. have_audio=yes
  19165. ;;
  19166. aix)
  19167. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19168. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19169. have_audio=yes
  19170. ;;
  19171. esac
  19172. fi
  19173. # Set up files for the joystick library
  19174. if test x$enable_joystick = xyes; then
  19175. case $ARCH in
  19176. linux)
  19177. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19178. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19179. have_joystick=yes
  19180. ;;
  19181. esac
  19182. fi
  19183. # Set up files for the haptic library
  19184. if test x$enable_haptic = xyes; then
  19185. if test x$use_input_events = xyes; then
  19186. case $ARCH in
  19187. linux)
  19188. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19189. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19190. have_haptic=yes
  19191. ;;
  19192. esac
  19193. fi
  19194. fi
  19195. # Set up files for the power library
  19196. if test x$enable_power = xyes; then
  19197. case $ARCH in
  19198. linux)
  19199. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19200. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19201. have_power=yes
  19202. ;;
  19203. esac
  19204. fi
  19205. # Set up files for the filesystem library
  19206. if test x$enable_filesystem = xyes; then
  19207. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19208. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19209. have_filesystem=yes
  19210. fi
  19211. # Set up files for the timer library
  19212. if test x$enable_timers = xyes; then
  19213. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19214. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19215. have_timers=yes
  19216. fi
  19217. # Set up files for udev hotplugging support
  19218. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19219. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19220. fi
  19221. # Set up files for evdev input
  19222. if test x$use_input_events = xyes; then
  19223. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19224. fi
  19225. ;;
  19226. *-*-cygwin* | *-*-mingw32*)
  19227. ARCH=win32
  19228. if test "$build" != "$host"; then # cross-compiling
  19229. # Default cross-compile location
  19230. ac_default_prefix=/usr/local/cross-tools/$host
  19231. else
  19232. # Look for the location of the tools and install there
  19233. if test "$BUILD_PREFIX" != ""; then
  19234. ac_default_prefix=$BUILD_PREFIX
  19235. fi
  19236. fi
  19237. CheckDummyVideo
  19238. CheckDiskAudio
  19239. CheckDummyAudio
  19240. CheckWINDOWS
  19241. CheckWINDOWSGL
  19242. CheckWINDOWSGLES
  19243. CheckDIRECTX
  19244. # Set up the core platform files
  19245. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19246. # Set up files for the video library
  19247. if test x$enable_video = xyes; then
  19248. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19249. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19250. have_video=yes
  19251. # Check whether --enable-render-d3d was given.
  19252. if test "${enable_render_d3d+set}" = set; then :
  19253. enableval=$enable_render_d3d;
  19254. else
  19255. enable_render_d3d=yes
  19256. fi
  19257. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19258. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19259. fi
  19260. fi
  19261. # Set up files for the audio library
  19262. if test x$enable_audio = xyes; then
  19263. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19264. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19265. if test x$have_dsound = xyes; then
  19266. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19267. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19268. fi
  19269. if test x$have_xaudio2 = xyes; then
  19270. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19271. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19272. fi
  19273. have_audio=yes
  19274. fi
  19275. # Set up files for the joystick library
  19276. if test x$enable_joystick = xyes; then
  19277. if test x$have_dinput = xyes; then
  19278. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19279. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19281. else
  19282. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19283. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19284. fi
  19285. have_joystick=yes
  19286. fi
  19287. if test x$enable_haptic = xyes; then
  19288. if test x$have_dinput = xyes; then
  19289. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19290. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19291. have_haptic=yes
  19292. fi
  19293. fi
  19294. if test x$enable_power = xyes; then
  19295. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19296. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19297. have_power=yes
  19298. fi
  19299. if test x$enable_filesystem = xyes; then
  19300. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19301. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19302. have_filesystem=yes
  19303. fi
  19304. # Set up files for the thread library
  19305. if test x$enable_threads = xyes; then
  19306. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19307. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19308. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19309. have_threads=yes
  19310. fi
  19311. # Set up files for the timer library
  19312. if test x$enable_timers = xyes; then
  19313. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19314. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19315. have_timers=yes
  19316. fi
  19317. # Set up files for the shared object loading library
  19318. if test x$enable_loadso = xyes; then
  19319. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19320. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19321. have_loadso=yes
  19322. fi
  19323. # Set up the system libraries we need
  19324. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
  19325. # The Windows platform requires special setup
  19326. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19327. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19328. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19329. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19330. # Check to see if this is a mingw or cygwin build
  19331. have_mingw32=
  19332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19333. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19334. if ${ac_cv_lib_mingw32_main+:} false; then :
  19335. $as_echo_n "(cached) " >&6
  19336. else
  19337. ac_check_lib_save_LIBS=$LIBS
  19338. LIBS="-lmingw32 $LIBS"
  19339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19340. /* end confdefs.h. */
  19341. int
  19342. main ()
  19343. {
  19344. return main ();
  19345. ;
  19346. return 0;
  19347. }
  19348. _ACEOF
  19349. if ac_fn_c_try_link "$LINENO"; then :
  19350. ac_cv_lib_mingw32_main=yes
  19351. else
  19352. ac_cv_lib_mingw32_main=no
  19353. fi
  19354. rm -f core conftest.err conftest.$ac_objext \
  19355. conftest$ac_exeext conftest.$ac_ext
  19356. LIBS=$ac_check_lib_save_LIBS
  19357. fi
  19358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19359. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19360. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19361. have_mingw32=yes
  19362. fi
  19363. if test x$have_mingw32 = xyes; then
  19364. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19365. else
  19366. SDL_LIBS="-lcygwin $SDL_LIBS"
  19367. fi
  19368. ;;
  19369. *-*-beos*)
  19370. as_fn_error $? "
  19371. *** BeOS support has been removed as of SDL 2.0.2.
  19372. " "$LINENO" 5
  19373. ;;
  19374. *-*-haiku*)
  19375. ARCH=haiku
  19376. ac_default_prefix=/boot/system
  19377. CheckDummyVideo
  19378. CheckDiskAudio
  19379. CheckDummyAudio
  19380. CheckHaikuVideo
  19381. CheckHaikuGL
  19382. CheckPTHREAD
  19383. # Set up files for the audio library
  19384. if test x$enable_audio = xyes; then
  19385. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19386. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19387. have_audio=yes
  19388. fi
  19389. # Set up files for the joystick library
  19390. if test x$enable_joystick = xyes; then
  19391. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19392. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19393. have_joystick=yes
  19394. fi
  19395. # Set up files for the timer library
  19396. if test x$enable_timers = xyes; then
  19397. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19398. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19399. have_timers=yes
  19400. fi
  19401. # Set up files for the shared object loading library
  19402. if test x$enable_loadso = xyes; then
  19403. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19404. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19405. have_loadso=yes
  19406. fi
  19407. # Set up files for the system power library
  19408. if test x$enable_power = xyes; then
  19409. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19410. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19411. have_power=yes
  19412. fi
  19413. # Set up files for the system filesystem library
  19414. if test x$enable_filesystem = xyes; then
  19415. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19416. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19417. have_filesystem=yes
  19418. fi
  19419. # The Haiku platform requires special setup.
  19420. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19421. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19422. ;;
  19423. arm*-apple-darwin*)
  19424. # iOS - We are not writing anything to confdefs.h because you have to replace
  19425. # SDL_config.h for SDL_config_iphoneos.h anyway
  19426. ARCH=ios
  19427. CheckVisibilityHidden
  19428. CheckDummyVideo
  19429. CheckDiskAudio
  19430. CheckDummyAudio
  19431. CheckDLOPEN
  19432. CheckCOCOA
  19433. CheckPTHREAD
  19434. # Set up files for the audio library
  19435. if test x$enable_audio = xyes; then
  19436. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19437. have_audio=yes
  19438. fi
  19439. # Set up files for the joystick library
  19440. if test x$enable_joystick = xyes; then
  19441. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19442. have_joystick=yes
  19443. fi
  19444. # Set up files for the haptic library
  19445. #if test x$enable_haptic = xyes; then
  19446. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19447. # have_haptic=yes
  19448. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19449. #fi
  19450. # Set up files for the power library
  19451. if test x$enable_power = xyes; then
  19452. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19453. have_power=yes
  19454. fi
  19455. # Set up files for the filesystem library
  19456. if test x$enable_filesystem = xyes; then
  19457. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19458. have_filesystem=yes
  19459. fi
  19460. # Set up files for the timer library
  19461. if test x$enable_timers = xyes; then
  19462. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19463. have_timers=yes
  19464. fi
  19465. # Set up additional files for the file library
  19466. if test x$enable_file = xyes; then
  19467. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19468. fi
  19469. # The iOS platform requires special setup.
  19470. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19471. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19474. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19475. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19478. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19480. ;;
  19481. *-*-darwin* )
  19482. # This could be either full "Mac OS X", or plain "Darwin" which is
  19483. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19484. # Next line is broken, and a few files below require Mac OS X (full)
  19485. ARCH=macosx
  19486. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19487. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19488. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19489. CheckVisibilityHidden
  19490. CheckDummyVideo
  19491. CheckDiskAudio
  19492. CheckDummyAudio
  19493. CheckDLOPEN
  19494. CheckCOCOA
  19495. CheckX11
  19496. CheckMacGL
  19497. CheckOpenGLX11
  19498. CheckPTHREAD
  19499. # Need this or things might misbuild on a G3.
  19500. EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
  19501. # Set up files for the audio library
  19502. if test x$enable_audio = xyes; then
  19503. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19504. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19505. have_audio=yes
  19506. fi
  19507. # Set up files for the joystick library
  19508. if test x$enable_joystick = xyes; then
  19509. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19510. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19511. have_joystick=yes
  19512. fi
  19513. # Set up files for the haptic library
  19514. if test x$enable_haptic = xyes; then
  19515. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19516. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19517. have_haptic=yes
  19518. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19519. fi
  19520. # Set up files for the power library
  19521. if test x$enable_power = xyes; then
  19522. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19523. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19524. have_power=yes
  19525. fi
  19526. # Set up files for the filesystem library
  19527. if test x$enable_filesystem = xyes; then
  19528. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19529. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19530. have_filesystem=yes
  19531. fi
  19532. # Set up files for the timer library
  19533. if test x$enable_timers = xyes; then
  19534. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19535. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19536. have_timers=yes
  19537. fi
  19538. # Set up additional files for the file library
  19539. if test x$enable_file = xyes; then
  19540. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19541. fi
  19542. # The Mac OS X platform requires special setup.
  19543. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19548. # If audio is used, add the AudioUnit framework
  19549. if test x$enable_audio = xyes; then
  19550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19551. fi
  19552. ;;
  19553. *)
  19554. as_fn_error $? "
  19555. *** Unsupported host: Please add to configure.in
  19556. " "$LINENO" 5
  19557. ;;
  19558. esac
  19559. CheckWarnAll
  19560. # Verify that we have all the platform specific files we need
  19561. if test x$have_joystick != xyes; then
  19562. if test x$enable_joystick = xyes; then
  19563. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19564. fi
  19565. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19566. fi
  19567. if test x$have_haptic != xyes; then
  19568. if test x$enable_haptic = xyes; then
  19569. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19570. fi
  19571. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19572. fi
  19573. if test x$have_threads != xyes; then
  19574. if test x$enable_threads = xyes; then
  19575. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19576. fi
  19577. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19578. fi
  19579. if test x$have_timers != xyes; then
  19580. if test x$enable_timers = xyes; then
  19581. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  19582. fi
  19583. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  19584. fi
  19585. if test x$have_filesystem != xyes; then
  19586. if test x$enable_filesystem = xyes; then
  19587. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  19588. fi
  19589. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  19590. fi
  19591. if test x$have_loadso != xyes; then
  19592. if test x$enable_loadso = xyes; then
  19593. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  19594. fi
  19595. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  19596. fi
  19597. if test x$SDLMAIN_SOURCES = x; then
  19598. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  19599. fi
  19600. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  19601. OBJECTS=`echo $SOURCES`
  19602. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  19603. for EXT in asm cc m c S; do
  19604. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  19605. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  19606. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  19607. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19608. done
  19609. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  19610. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  19611. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  19612. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  19613. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  19614. \\$(WINDRES) \\$< \\$@,g"`
  19615. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  19616. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  19617. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19618. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19619. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19620. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19621. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  19622. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  19623. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  19624. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  19625. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  19626. \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  19627. # Set runtime shared library paths as needed
  19628. if test "x$enable_rpath" = "xyes"; then
  19629. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  19630. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  19631. fi
  19632. if test $ARCH = solaris; then
  19633. SDL_RLD_FLAGS="-R\${libdir}"
  19634. fi
  19635. else
  19636. SDL_RLD_FLAGS=""
  19637. fi
  19638. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  19639. if test x$enable_shared = xyes; then
  19640. ENABLE_SHARED_TRUE=
  19641. ENABLE_SHARED_FALSE="#"
  19642. else
  19643. ENABLE_SHARED_TRUE="#"
  19644. ENABLE_SHARED_FALSE=
  19645. fi
  19646. if test x$enable_static = xyes; then
  19647. ENABLE_STATIC_TRUE=
  19648. ENABLE_STATIC_FALSE="#"
  19649. else
  19650. ENABLE_STATIC_TRUE="#"
  19651. ENABLE_STATIC_FALSE=
  19652. fi
  19653. cat >Makefile.rules <<__EOF__
  19654. # Build rules for objects
  19655. -include \$(OBJECTS:.lo=.d)
  19656. # Special dependency for SDL.c, since it depends on SDL_revision.h
  19657. $srcdir/src/SDL.c: update-revision
  19658. $DEPENDS
  19659. $VERSION_DEPENDS
  19660. $SDLMAIN_DEPENDS
  19661. $SDLTEST_DEPENDS
  19662. __EOF__
  19663. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  19664. cat >confcache <<\_ACEOF
  19665. # This file is a shell script that caches the results of configure
  19666. # tests run on this system so they can be shared between configure
  19667. # scripts and configure runs, see configure's option --config-cache.
  19668. # It is not useful on other systems. If it contains results you don't
  19669. # want to keep, you may remove or edit it.
  19670. #
  19671. # config.status only pays attention to the cache file if you give it
  19672. # the --recheck option to rerun configure.
  19673. #
  19674. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19675. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19676. # following values.
  19677. _ACEOF
  19678. # The following way of writing the cache mishandles newlines in values,
  19679. # but we know of no workaround that is simple, portable, and efficient.
  19680. # So, we kill variables containing newlines.
  19681. # Ultrix sh set writes to stderr and can't be redirected directly,
  19682. # and sets the high bit in the cache file unless we assign to the vars.
  19683. (
  19684. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19685. eval ac_val=\$$ac_var
  19686. case $ac_val in #(
  19687. *${as_nl}*)
  19688. case $ac_var in #(
  19689. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19690. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19691. esac
  19692. case $ac_var in #(
  19693. _ | IFS | as_nl) ;; #(
  19694. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19695. *) { eval $ac_var=; unset $ac_var;} ;;
  19696. esac ;;
  19697. esac
  19698. done
  19699. (set) 2>&1 |
  19700. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19701. *${as_nl}ac_space=\ *)
  19702. # `set' does not quote correctly, so add quotes: double-quote
  19703. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19704. sed -n \
  19705. "s/'/'\\\\''/g;
  19706. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19707. ;; #(
  19708. *)
  19709. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19710. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19711. ;;
  19712. esac |
  19713. sort
  19714. ) |
  19715. sed '
  19716. /^ac_cv_env_/b end
  19717. t clear
  19718. :clear
  19719. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19720. t end
  19721. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19722. :end' >>confcache
  19723. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19724. if test -w "$cache_file"; then
  19725. if test "x$cache_file" != "x/dev/null"; then
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19727. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19728. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19729. cat confcache >"$cache_file"
  19730. else
  19731. case $cache_file in #(
  19732. */* | ?:*)
  19733. mv -f confcache "$cache_file"$$ &&
  19734. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19735. *)
  19736. mv -f confcache "$cache_file" ;;
  19737. esac
  19738. fi
  19739. fi
  19740. else
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19742. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19743. fi
  19744. fi
  19745. rm -f confcache
  19746. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19747. # Let make expand exec_prefix.
  19748. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19749. DEFS=-DHAVE_CONFIG_H
  19750. ac_libobjs=
  19751. ac_ltlibobjs=
  19752. U=
  19753. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19754. # 1. Remove the extension, and $U if already installed.
  19755. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19756. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19757. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19758. # will be set to the directory where LIBOBJS objects are built.
  19759. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19760. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19761. done
  19762. LIBOBJS=$ac_libobjs
  19763. LTLIBOBJS=$ac_ltlibobjs
  19764. : "${CONFIG_STATUS=./config.status}"
  19765. ac_write_fail=0
  19766. ac_clean_files_save=$ac_clean_files
  19767. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19768. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19769. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19770. as_write_fail=0
  19771. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19772. #! $SHELL
  19773. # Generated by $as_me.
  19774. # Run this file to recreate the current configuration.
  19775. # Compiler output produced by configure, useful for debugging
  19776. # configure, is in config.log if it exists.
  19777. debug=false
  19778. ac_cs_recheck=false
  19779. ac_cs_silent=false
  19780. SHELL=\${CONFIG_SHELL-$SHELL}
  19781. export SHELL
  19782. _ASEOF
  19783. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19784. ## -------------------- ##
  19785. ## M4sh Initialization. ##
  19786. ## -------------------- ##
  19787. # Be more Bourne compatible
  19788. DUALCASE=1; export DUALCASE # for MKS sh
  19789. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19790. emulate sh
  19791. NULLCMD=:
  19792. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19793. # is contrary to our usage. Disable this feature.
  19794. alias -g '${1+"$@"}'='"$@"'
  19795. setopt NO_GLOB_SUBST
  19796. else
  19797. case `(set -o) 2>/dev/null` in #(
  19798. *posix*) :
  19799. set -o posix ;; #(
  19800. *) :
  19801. ;;
  19802. esac
  19803. fi
  19804. as_nl='
  19805. '
  19806. export as_nl
  19807. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19808. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19809. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19810. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19811. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19812. # but without wasting forks for bash or zsh.
  19813. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19814. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19815. as_echo='print -r --'
  19816. as_echo_n='print -rn --'
  19817. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19818. as_echo='printf %s\n'
  19819. as_echo_n='printf %s'
  19820. else
  19821. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19822. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19823. as_echo_n='/usr/ucb/echo -n'
  19824. else
  19825. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19826. as_echo_n_body='eval
  19827. arg=$1;
  19828. case $arg in #(
  19829. *"$as_nl"*)
  19830. expr "X$arg" : "X\\(.*\\)$as_nl";
  19831. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19832. esac;
  19833. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19834. '
  19835. export as_echo_n_body
  19836. as_echo_n='sh -c $as_echo_n_body as_echo'
  19837. fi
  19838. export as_echo_body
  19839. as_echo='sh -c $as_echo_body as_echo'
  19840. fi
  19841. # The user is always right.
  19842. if test "${PATH_SEPARATOR+set}" != set; then
  19843. PATH_SEPARATOR=:
  19844. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19845. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19846. PATH_SEPARATOR=';'
  19847. }
  19848. fi
  19849. # IFS
  19850. # We need space, tab and new line, in precisely that order. Quoting is
  19851. # there to prevent editors from complaining about space-tab.
  19852. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19853. # splitting by setting IFS to empty value.)
  19854. IFS=" "" $as_nl"
  19855. # Find who we are. Look in the path if we contain no directory separator.
  19856. as_myself=
  19857. case $0 in #((
  19858. *[\\/]* ) as_myself=$0 ;;
  19859. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19860. for as_dir in $PATH
  19861. do
  19862. IFS=$as_save_IFS
  19863. test -z "$as_dir" && as_dir=.
  19864. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19865. done
  19866. IFS=$as_save_IFS
  19867. ;;
  19868. esac
  19869. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19870. # in which case we are not to be found in the path.
  19871. if test "x$as_myself" = x; then
  19872. as_myself=$0
  19873. fi
  19874. if test ! -f "$as_myself"; then
  19875. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19876. exit 1
  19877. fi
  19878. # Unset variables that we do not need and which cause bugs (e.g. in
  19879. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19880. # suppresses any "Segmentation fault" message there. '((' could
  19881. # trigger a bug in pdksh 5.2.14.
  19882. for as_var in BASH_ENV ENV MAIL MAILPATH
  19883. do eval test x\${$as_var+set} = xset \
  19884. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19885. done
  19886. PS1='$ '
  19887. PS2='> '
  19888. PS4='+ '
  19889. # NLS nuisances.
  19890. LC_ALL=C
  19891. export LC_ALL
  19892. LANGUAGE=C
  19893. export LANGUAGE
  19894. # CDPATH.
  19895. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19896. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19897. # ----------------------------------------
  19898. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19899. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19900. # script with STATUS, using 1 if that was 0.
  19901. as_fn_error ()
  19902. {
  19903. as_status=$1; test $as_status -eq 0 && as_status=1
  19904. if test "$4"; then
  19905. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19906. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19907. fi
  19908. $as_echo "$as_me: error: $2" >&2
  19909. as_fn_exit $as_status
  19910. } # as_fn_error
  19911. # as_fn_set_status STATUS
  19912. # -----------------------
  19913. # Set $? to STATUS, without forking.
  19914. as_fn_set_status ()
  19915. {
  19916. return $1
  19917. } # as_fn_set_status
  19918. # as_fn_exit STATUS
  19919. # -----------------
  19920. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19921. as_fn_exit ()
  19922. {
  19923. set +e
  19924. as_fn_set_status $1
  19925. exit $1
  19926. } # as_fn_exit
  19927. # as_fn_unset VAR
  19928. # ---------------
  19929. # Portably unset VAR.
  19930. as_fn_unset ()
  19931. {
  19932. { eval $1=; unset $1;}
  19933. }
  19934. as_unset=as_fn_unset
  19935. # as_fn_append VAR VALUE
  19936. # ----------------------
  19937. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19938. # advantage of any shell optimizations that allow amortized linear growth over
  19939. # repeated appends, instead of the typical quadratic growth present in naive
  19940. # implementations.
  19941. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19942. eval 'as_fn_append ()
  19943. {
  19944. eval $1+=\$2
  19945. }'
  19946. else
  19947. as_fn_append ()
  19948. {
  19949. eval $1=\$$1\$2
  19950. }
  19951. fi # as_fn_append
  19952. # as_fn_arith ARG...
  19953. # ------------------
  19954. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19955. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19956. # must be portable across $(()) and expr.
  19957. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19958. eval 'as_fn_arith ()
  19959. {
  19960. as_val=$(( $* ))
  19961. }'
  19962. else
  19963. as_fn_arith ()
  19964. {
  19965. as_val=`expr "$@" || test $? -eq 1`
  19966. }
  19967. fi # as_fn_arith
  19968. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19969. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19970. as_expr=expr
  19971. else
  19972. as_expr=false
  19973. fi
  19974. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19975. as_basename=basename
  19976. else
  19977. as_basename=false
  19978. fi
  19979. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19980. as_dirname=dirname
  19981. else
  19982. as_dirname=false
  19983. fi
  19984. as_me=`$as_basename -- "$0" ||
  19985. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19986. X"$0" : 'X\(//\)$' \| \
  19987. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19988. $as_echo X/"$0" |
  19989. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19990. s//\1/
  19991. q
  19992. }
  19993. /^X\/\(\/\/\)$/{
  19994. s//\1/
  19995. q
  19996. }
  19997. /^X\/\(\/\).*/{
  19998. s//\1/
  19999. q
  20000. }
  20001. s/.*/./; q'`
  20002. # Avoid depending upon Character Ranges.
  20003. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20004. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20005. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20006. as_cr_digits='0123456789'
  20007. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20008. ECHO_C= ECHO_N= ECHO_T=
  20009. case `echo -n x` in #(((((
  20010. -n*)
  20011. case `echo 'xy\c'` in
  20012. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20013. xy) ECHO_C='\c';;
  20014. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20015. ECHO_T=' ';;
  20016. esac;;
  20017. *)
  20018. ECHO_N='-n';;
  20019. esac
  20020. rm -f conf$$ conf$$.exe conf$$.file
  20021. if test -d conf$$.dir; then
  20022. rm -f conf$$.dir/conf$$.file
  20023. else
  20024. rm -f conf$$.dir
  20025. mkdir conf$$.dir 2>/dev/null
  20026. fi
  20027. if (echo >conf$$.file) 2>/dev/null; then
  20028. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20029. as_ln_s='ln -s'
  20030. # ... but there are two gotchas:
  20031. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20032. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20033. # In both cases, we have to default to `cp -pR'.
  20034. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20035. as_ln_s='cp -pR'
  20036. elif ln conf$$.file conf$$ 2>/dev/null; then
  20037. as_ln_s=ln
  20038. else
  20039. as_ln_s='cp -pR'
  20040. fi
  20041. else
  20042. as_ln_s='cp -pR'
  20043. fi
  20044. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20045. rmdir conf$$.dir 2>/dev/null
  20046. # as_fn_mkdir_p
  20047. # -------------
  20048. # Create "$as_dir" as a directory, including parents if necessary.
  20049. as_fn_mkdir_p ()
  20050. {
  20051. case $as_dir in #(
  20052. -*) as_dir=./$as_dir;;
  20053. esac
  20054. test -d "$as_dir" || eval $as_mkdir_p || {
  20055. as_dirs=
  20056. while :; do
  20057. case $as_dir in #(
  20058. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20059. *) as_qdir=$as_dir;;
  20060. esac
  20061. as_dirs="'$as_qdir' $as_dirs"
  20062. as_dir=`$as_dirname -- "$as_dir" ||
  20063. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20064. X"$as_dir" : 'X\(//\)[^/]' \| \
  20065. X"$as_dir" : 'X\(//\)$' \| \
  20066. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20067. $as_echo X"$as_dir" |
  20068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20069. s//\1/
  20070. q
  20071. }
  20072. /^X\(\/\/\)[^/].*/{
  20073. s//\1/
  20074. q
  20075. }
  20076. /^X\(\/\/\)$/{
  20077. s//\1/
  20078. q
  20079. }
  20080. /^X\(\/\).*/{
  20081. s//\1/
  20082. q
  20083. }
  20084. s/.*/./; q'`
  20085. test -d "$as_dir" && break
  20086. done
  20087. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20088. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20089. } # as_fn_mkdir_p
  20090. if mkdir -p . 2>/dev/null; then
  20091. as_mkdir_p='mkdir -p "$as_dir"'
  20092. else
  20093. test -d ./-p && rmdir ./-p
  20094. as_mkdir_p=false
  20095. fi
  20096. # as_fn_executable_p FILE
  20097. # -----------------------
  20098. # Test if FILE is an executable regular file.
  20099. as_fn_executable_p ()
  20100. {
  20101. test -f "$1" && test -x "$1"
  20102. } # as_fn_executable_p
  20103. as_test_x='test -x'
  20104. as_executable_p=as_fn_executable_p
  20105. # Sed expression to map a string onto a valid CPP name.
  20106. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20107. # Sed expression to map a string onto a valid variable name.
  20108. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20109. exec 6>&1
  20110. ## ----------------------------------- ##
  20111. ## Main body of $CONFIG_STATUS script. ##
  20112. ## ----------------------------------- ##
  20113. _ASEOF
  20114. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20115. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20116. # Save the log message, to keep $0 and so on meaningful, and to
  20117. # report actual input values of CONFIG_FILES etc. instead of their
  20118. # values after options handling.
  20119. ac_log="
  20120. This file was extended by $as_me, which was
  20121. generated by GNU Autoconf 2.69. Invocation command line was
  20122. CONFIG_FILES = $CONFIG_FILES
  20123. CONFIG_HEADERS = $CONFIG_HEADERS
  20124. CONFIG_LINKS = $CONFIG_LINKS
  20125. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20126. $ $0 $@
  20127. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20128. "
  20129. _ACEOF
  20130. case $ac_config_files in *"
  20131. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20132. esac
  20133. case $ac_config_headers in *"
  20134. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20135. esac
  20136. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20137. # Files that config.status was made for.
  20138. config_files="$ac_config_files"
  20139. config_headers="$ac_config_headers"
  20140. config_commands="$ac_config_commands"
  20141. _ACEOF
  20142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20143. ac_cs_usage="\
  20144. \`$as_me' instantiates files and other configuration actions
  20145. from templates according to the current configuration. Unless the files
  20146. and actions are specified as TAGs, all are instantiated by default.
  20147. Usage: $0 [OPTION]... [TAG]...
  20148. -h, --help print this help, then exit
  20149. -V, --version print version number and configuration settings, then exit
  20150. --config print configuration, then exit
  20151. -q, --quiet, --silent
  20152. do not print progress messages
  20153. -d, --debug don't remove temporary files
  20154. --recheck update $as_me by reconfiguring in the same conditions
  20155. --file=FILE[:TEMPLATE]
  20156. instantiate the configuration file FILE
  20157. --header=FILE[:TEMPLATE]
  20158. instantiate the configuration header FILE
  20159. Configuration files:
  20160. $config_files
  20161. Configuration headers:
  20162. $config_headers
  20163. Configuration commands:
  20164. $config_commands
  20165. Report bugs to the package provider."
  20166. _ACEOF
  20167. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20168. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20169. ac_cs_version="\\
  20170. config.status
  20171. configured by $0, generated by GNU Autoconf 2.69,
  20172. with options \\"\$ac_cs_config\\"
  20173. Copyright (C) 2012 Free Software Foundation, Inc.
  20174. This config.status script is free software; the Free Software Foundation
  20175. gives unlimited permission to copy, distribute and modify it."
  20176. ac_pwd='$ac_pwd'
  20177. srcdir='$srcdir'
  20178. INSTALL='$INSTALL'
  20179. AWK='$AWK'
  20180. test -n "\$AWK" || AWK=awk
  20181. _ACEOF
  20182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20183. # The default lists apply if the user does not specify any file.
  20184. ac_need_defaults=:
  20185. while test $# != 0
  20186. do
  20187. case $1 in
  20188. --*=?*)
  20189. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20190. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20191. ac_shift=:
  20192. ;;
  20193. --*=)
  20194. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20195. ac_optarg=
  20196. ac_shift=:
  20197. ;;
  20198. *)
  20199. ac_option=$1
  20200. ac_optarg=$2
  20201. ac_shift=shift
  20202. ;;
  20203. esac
  20204. case $ac_option in
  20205. # Handling of the options.
  20206. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20207. ac_cs_recheck=: ;;
  20208. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20209. $as_echo "$ac_cs_version"; exit ;;
  20210. --config | --confi | --conf | --con | --co | --c )
  20211. $as_echo "$ac_cs_config"; exit ;;
  20212. --debug | --debu | --deb | --de | --d | -d )
  20213. debug=: ;;
  20214. --file | --fil | --fi | --f )
  20215. $ac_shift
  20216. case $ac_optarg in
  20217. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20218. '') as_fn_error $? "missing file argument" ;;
  20219. esac
  20220. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20221. ac_need_defaults=false;;
  20222. --header | --heade | --head | --hea )
  20223. $ac_shift
  20224. case $ac_optarg in
  20225. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20226. esac
  20227. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20228. ac_need_defaults=false;;
  20229. --he | --h)
  20230. # Conflict between --help and --header
  20231. as_fn_error $? "ambiguous option: \`$1'
  20232. Try \`$0 --help' for more information.";;
  20233. --help | --hel | -h )
  20234. $as_echo "$ac_cs_usage"; exit ;;
  20235. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20236. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20237. ac_cs_silent=: ;;
  20238. # This is an error.
  20239. -*) as_fn_error $? "unrecognized option: \`$1'
  20240. Try \`$0 --help' for more information." ;;
  20241. *) as_fn_append ac_config_targets " $1"
  20242. ac_need_defaults=false ;;
  20243. esac
  20244. shift
  20245. done
  20246. ac_configure_extra_args=
  20247. if $ac_cs_silent; then
  20248. exec 6>/dev/null
  20249. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20250. fi
  20251. _ACEOF
  20252. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20253. if \$ac_cs_recheck; then
  20254. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20255. shift
  20256. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20257. CONFIG_SHELL='$SHELL'
  20258. export CONFIG_SHELL
  20259. exec "\$@"
  20260. fi
  20261. _ACEOF
  20262. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20263. exec 5>>config.log
  20264. {
  20265. echo
  20266. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20267. ## Running $as_me. ##
  20268. _ASBOX
  20269. $as_echo "$ac_log"
  20270. } >&5
  20271. _ACEOF
  20272. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20273. #
  20274. # INIT-COMMANDS
  20275. #
  20276. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20277. # if CDPATH is set.
  20278. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20279. sed_quote_subst='$sed_quote_subst'
  20280. double_quote_subst='$double_quote_subst'
  20281. delay_variable_subst='$delay_variable_subst'
  20282. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20283. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20284. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20285. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20286. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20287. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20288. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20289. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20290. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20291. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20292. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20293. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20294. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20295. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20296. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20297. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20298. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20299. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20300. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20301. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20302. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20303. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20304. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20305. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20306. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20307. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20308. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20309. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20310. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20311. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20312. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20313. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20314. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20315. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20316. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20317. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20318. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20319. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20320. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20321. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20322. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20323. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20324. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20325. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20326. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20327. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20328. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20329. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20330. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20331. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20332. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20333. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20334. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20335. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20336. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20337. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20338. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20339. 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"`'
  20340. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20341. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20342. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20343. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20344. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20345. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20346. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20347. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20348. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20349. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20350. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20351. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20352. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20353. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20354. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20355. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20356. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20357. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20358. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20359. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20360. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20361. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20362. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20363. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20364. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20365. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20366. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20367. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20368. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20369. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20370. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20371. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20372. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20373. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20374. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20375. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20376. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20377. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20378. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20379. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20380. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20381. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20382. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20383. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20384. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20385. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20386. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20387. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20388. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20389. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20390. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20391. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20392. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20393. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20394. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20395. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20396. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20397. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20398. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20399. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20400. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20401. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20402. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20403. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20404. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20405. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20406. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20407. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20408. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20409. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20410. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20411. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20412. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20413. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20414. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20415. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20416. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20417. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20418. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20419. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20420. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20421. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20422. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20423. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20424. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20425. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20426. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20427. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20428. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20429. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20430. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20431. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20432. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20433. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20434. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20435. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20436. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20437. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20438. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20439. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20440. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20441. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20442. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20443. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20444. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20445. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20446. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20447. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20448. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20449. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20450. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20451. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20452. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20453. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20454. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20455. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20456. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20457. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20458. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20459. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20460. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20461. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20462. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20463. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20464. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20465. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20466. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20467. LTCC='$LTCC'
  20468. LTCFLAGS='$LTCFLAGS'
  20469. compiler='$compiler_DEFAULT'
  20470. # A function that is used when there is no print builtin or printf.
  20471. func_fallback_echo ()
  20472. {
  20473. eval 'cat <<_LTECHO_EOF
  20474. \$1
  20475. _LTECHO_EOF'
  20476. }
  20477. # Quote evaled strings.
  20478. for var in AS \
  20479. DLLTOOL \
  20480. OBJDUMP \
  20481. SHELL \
  20482. ECHO \
  20483. PATH_SEPARATOR \
  20484. SED \
  20485. GREP \
  20486. EGREP \
  20487. FGREP \
  20488. LD \
  20489. NM \
  20490. LN_S \
  20491. lt_SP2NL \
  20492. lt_NL2SP \
  20493. reload_flag \
  20494. deplibs_check_method \
  20495. file_magic_cmd \
  20496. file_magic_glob \
  20497. want_nocaseglob \
  20498. sharedlib_from_linklib_cmd \
  20499. AR \
  20500. AR_FLAGS \
  20501. archiver_list_spec \
  20502. STRIP \
  20503. RANLIB \
  20504. CC \
  20505. CFLAGS \
  20506. compiler \
  20507. lt_cv_sys_global_symbol_pipe \
  20508. lt_cv_sys_global_symbol_to_cdecl \
  20509. lt_cv_sys_global_symbol_to_c_name_address \
  20510. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20511. nm_file_list_spec \
  20512. lt_prog_compiler_no_builtin_flag \
  20513. lt_prog_compiler_pic \
  20514. lt_prog_compiler_wl \
  20515. lt_prog_compiler_static \
  20516. lt_cv_prog_compiler_c_o \
  20517. need_locks \
  20518. MANIFEST_TOOL \
  20519. DSYMUTIL \
  20520. NMEDIT \
  20521. LIPO \
  20522. OTOOL \
  20523. OTOOL64 \
  20524. shrext_cmds \
  20525. export_dynamic_flag_spec \
  20526. whole_archive_flag_spec \
  20527. compiler_needs_object \
  20528. with_gnu_ld \
  20529. allow_undefined_flag \
  20530. no_undefined_flag \
  20531. hardcode_libdir_flag_spec \
  20532. hardcode_libdir_separator \
  20533. exclude_expsyms \
  20534. include_expsyms \
  20535. file_list_spec \
  20536. variables_saved_for_relink \
  20537. libname_spec \
  20538. library_names_spec \
  20539. soname_spec \
  20540. install_override_mode \
  20541. finish_eval \
  20542. old_striplib \
  20543. striplib \
  20544. compiler_lib_search_dirs \
  20545. predep_objects \
  20546. postdep_objects \
  20547. predeps \
  20548. postdeps \
  20549. compiler_lib_search_path \
  20550. LD_CXX \
  20551. reload_flag_CXX \
  20552. compiler_CXX \
  20553. lt_prog_compiler_no_builtin_flag_CXX \
  20554. lt_prog_compiler_pic_CXX \
  20555. lt_prog_compiler_wl_CXX \
  20556. lt_prog_compiler_static_CXX \
  20557. lt_cv_prog_compiler_c_o_CXX \
  20558. export_dynamic_flag_spec_CXX \
  20559. whole_archive_flag_spec_CXX \
  20560. compiler_needs_object_CXX \
  20561. with_gnu_ld_CXX \
  20562. allow_undefined_flag_CXX \
  20563. no_undefined_flag_CXX \
  20564. hardcode_libdir_flag_spec_CXX \
  20565. hardcode_libdir_separator_CXX \
  20566. exclude_expsyms_CXX \
  20567. include_expsyms_CXX \
  20568. file_list_spec_CXX \
  20569. compiler_lib_search_dirs_CXX \
  20570. predep_objects_CXX \
  20571. postdep_objects_CXX \
  20572. predeps_CXX \
  20573. postdeps_CXX \
  20574. compiler_lib_search_path_CXX; do
  20575. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20576. *[\\\\\\\`\\"\\\$]*)
  20577. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  20578. ;;
  20579. *)
  20580. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20581. ;;
  20582. esac
  20583. done
  20584. # Double-quote double-evaled strings.
  20585. for var in reload_cmds \
  20586. old_postinstall_cmds \
  20587. old_postuninstall_cmds \
  20588. old_archive_cmds \
  20589. extract_expsyms_cmds \
  20590. old_archive_from_new_cmds \
  20591. old_archive_from_expsyms_cmds \
  20592. archive_cmds \
  20593. archive_expsym_cmds \
  20594. module_cmds \
  20595. module_expsym_cmds \
  20596. export_symbols_cmds \
  20597. prelink_cmds \
  20598. postlink_cmds \
  20599. postinstall_cmds \
  20600. postuninstall_cmds \
  20601. finish_cmds \
  20602. sys_lib_search_path_spec \
  20603. sys_lib_dlsearch_path_spec \
  20604. reload_cmds_CXX \
  20605. old_archive_cmds_CXX \
  20606. old_archive_from_new_cmds_CXX \
  20607. old_archive_from_expsyms_cmds_CXX \
  20608. archive_cmds_CXX \
  20609. archive_expsym_cmds_CXX \
  20610. module_cmds_CXX \
  20611. module_expsym_cmds_CXX \
  20612. export_symbols_cmds_CXX \
  20613. prelink_cmds_CXX \
  20614. postlink_cmds_CXX; do
  20615. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20616. *[\\\\\\\`\\"\\\$]*)
  20617. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  20618. ;;
  20619. *)
  20620. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20621. ;;
  20622. esac
  20623. done
  20624. ac_aux_dir='$ac_aux_dir'
  20625. xsi_shell='$xsi_shell'
  20626. lt_shell_append='$lt_shell_append'
  20627. # See if we are running on zsh, and set the options which allow our
  20628. # commands through without removal of \ escapes INIT.
  20629. if test -n "\${ZSH_VERSION+set}" ; then
  20630. setopt NO_GLOB_SUBST
  20631. fi
  20632. PACKAGE='$PACKAGE'
  20633. VERSION='$VERSION'
  20634. TIMESTAMP='$TIMESTAMP'
  20635. RM='$RM'
  20636. ofile='$ofile'
  20637. _ACEOF
  20638. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20639. # Handling of arguments.
  20640. for ac_config_target in $ac_config_targets
  20641. do
  20642. case $ac_config_target in
  20643. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  20644. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20645. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  20646. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  20647. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  20648. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  20649. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20650. esac
  20651. done
  20652. # If the user did not use the arguments to specify the items to instantiate,
  20653. # then the envvar interface is used. Set only those that are not.
  20654. # We use the long form for the default assignment because of an extremely
  20655. # bizarre bug on SunOS 4.1.3.
  20656. if $ac_need_defaults; then
  20657. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20658. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20659. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20660. fi
  20661. # Have a temporary directory for convenience. Make it in the build tree
  20662. # simply because there is no reason against having it here, and in addition,
  20663. # creating and moving files from /tmp can sometimes cause problems.
  20664. # Hook for its removal unless debugging.
  20665. # Note that there is a small window in which the directory will not be cleaned:
  20666. # after its creation but before its name has been assigned to `$tmp'.
  20667. $debug ||
  20668. {
  20669. tmp= ac_tmp=
  20670. trap 'exit_status=$?
  20671. : "${ac_tmp:=$tmp}"
  20672. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20673. ' 0
  20674. trap 'as_fn_exit 1' 1 2 13 15
  20675. }
  20676. # Create a (secure) tmp directory for tmp files.
  20677. {
  20678. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20679. test -d "$tmp"
  20680. } ||
  20681. {
  20682. tmp=./conf$$-$RANDOM
  20683. (umask 077 && mkdir "$tmp")
  20684. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20685. ac_tmp=$tmp
  20686. # Set up the scripts for CONFIG_FILES section.
  20687. # No need to generate them if there are no CONFIG_FILES.
  20688. # This happens for instance with `./config.status config.h'.
  20689. if test -n "$CONFIG_FILES"; then
  20690. ac_cr=`echo X | tr X '\015'`
  20691. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20692. # But we know of no other shell where ac_cr would be empty at this
  20693. # point, so we can use a bashism as a fallback.
  20694. if test "x$ac_cr" = x; then
  20695. eval ac_cr=\$\'\\r\'
  20696. fi
  20697. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20698. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20699. ac_cs_awk_cr='\\r'
  20700. else
  20701. ac_cs_awk_cr=$ac_cr
  20702. fi
  20703. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20704. _ACEOF
  20705. {
  20706. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20707. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20708. echo "_ACEOF"
  20709. } >conf$$subs.sh ||
  20710. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20711. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20712. ac_delim='%!_!# '
  20713. for ac_last_try in false false false false false :; do
  20714. . ./conf$$subs.sh ||
  20715. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20716. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20717. if test $ac_delim_n = $ac_delim_num; then
  20718. break
  20719. elif $ac_last_try; then
  20720. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20721. else
  20722. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20723. fi
  20724. done
  20725. rm -f conf$$subs.sh
  20726. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20727. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20728. _ACEOF
  20729. sed -n '
  20730. h
  20731. s/^/S["/; s/!.*/"]=/
  20732. p
  20733. g
  20734. s/^[^!]*!//
  20735. :repl
  20736. t repl
  20737. s/'"$ac_delim"'$//
  20738. t delim
  20739. :nl
  20740. h
  20741. s/\(.\{148\}\)..*/\1/
  20742. t more1
  20743. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20744. p
  20745. n
  20746. b repl
  20747. :more1
  20748. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20749. p
  20750. g
  20751. s/.\{148\}//
  20752. t nl
  20753. :delim
  20754. h
  20755. s/\(.\{148\}\)..*/\1/
  20756. t more2
  20757. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20758. p
  20759. b
  20760. :more2
  20761. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20762. p
  20763. g
  20764. s/.\{148\}//
  20765. t delim
  20766. ' <conf$$subs.awk | sed '
  20767. /^[^""]/{
  20768. N
  20769. s/\n//
  20770. }
  20771. ' >>$CONFIG_STATUS || ac_write_fail=1
  20772. rm -f conf$$subs.awk
  20773. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20774. _ACAWK
  20775. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20776. for (key in S) S_is_set[key] = 1
  20777. FS = ""
  20778. }
  20779. {
  20780. line = $ 0
  20781. nfields = split(line, field, "@")
  20782. substed = 0
  20783. len = length(field[1])
  20784. for (i = 2; i < nfields; i++) {
  20785. key = field[i]
  20786. keylen = length(key)
  20787. if (S_is_set[key]) {
  20788. value = S[key]
  20789. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20790. len += length(value) + length(field[++i])
  20791. substed = 1
  20792. } else
  20793. len += 1 + keylen
  20794. }
  20795. print line
  20796. }
  20797. _ACAWK
  20798. _ACEOF
  20799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20800. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20801. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20802. else
  20803. cat
  20804. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20805. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20806. _ACEOF
  20807. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20808. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20809. # trailing colons and then remove the whole line if VPATH becomes empty
  20810. # (actually we leave an empty line to preserve line numbers).
  20811. if test "x$srcdir" = x.; then
  20812. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20813. h
  20814. s///
  20815. s/^/:/
  20816. s/[ ]*$/:/
  20817. s/:\$(srcdir):/:/g
  20818. s/:\${srcdir}:/:/g
  20819. s/:@srcdir@:/:/g
  20820. s/^:*//
  20821. s/:*$//
  20822. x
  20823. s/\(=[ ]*\).*/\1/
  20824. G
  20825. s/\n//
  20826. s/^[^=]*=[ ]*$//
  20827. }'
  20828. fi
  20829. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20830. fi # test -n "$CONFIG_FILES"
  20831. # Set up the scripts for CONFIG_HEADERS section.
  20832. # No need to generate them if there are no CONFIG_HEADERS.
  20833. # This happens for instance with `./config.status Makefile'.
  20834. if test -n "$CONFIG_HEADERS"; then
  20835. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20836. BEGIN {
  20837. _ACEOF
  20838. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20839. # here-document in config.status, that substitutes the proper values into
  20840. # config.h.in to produce config.h.
  20841. # Create a delimiter string that does not exist in confdefs.h, to ease
  20842. # handling of long lines.
  20843. ac_delim='%!_!# '
  20844. for ac_last_try in false false :; do
  20845. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20846. if test -z "$ac_tt"; then
  20847. break
  20848. elif $ac_last_try; then
  20849. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20850. else
  20851. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20852. fi
  20853. done
  20854. # For the awk script, D is an array of macro values keyed by name,
  20855. # likewise P contains macro parameters if any. Preserve backslash
  20856. # newline sequences.
  20857. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20858. sed -n '
  20859. s/.\{148\}/&'"$ac_delim"'/g
  20860. t rset
  20861. :rset
  20862. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20863. t def
  20864. d
  20865. :def
  20866. s/\\$//
  20867. t bsnl
  20868. s/["\\]/\\&/g
  20869. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20870. D["\1"]=" \3"/p
  20871. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20872. d
  20873. :bsnl
  20874. s/["\\]/\\&/g
  20875. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20876. D["\1"]=" \3\\\\\\n"\\/p
  20877. t cont
  20878. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20879. t cont
  20880. d
  20881. :cont
  20882. n
  20883. s/.\{148\}/&'"$ac_delim"'/g
  20884. t clear
  20885. :clear
  20886. s/\\$//
  20887. t bsnlc
  20888. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20889. d
  20890. :bsnlc
  20891. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20892. b cont
  20893. ' <confdefs.h | sed '
  20894. s/'"$ac_delim"'/"\\\
  20895. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20897. for (key in D) D_is_set[key] = 1
  20898. FS = ""
  20899. }
  20900. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20901. line = \$ 0
  20902. split(line, arg, " ")
  20903. if (arg[1] == "#") {
  20904. defundef = arg[2]
  20905. mac1 = arg[3]
  20906. } else {
  20907. defundef = substr(arg[1], 2)
  20908. mac1 = arg[2]
  20909. }
  20910. split(mac1, mac2, "(") #)
  20911. macro = mac2[1]
  20912. prefix = substr(line, 1, index(line, defundef) - 1)
  20913. if (D_is_set[macro]) {
  20914. # Preserve the white space surrounding the "#".
  20915. print prefix "define", macro P[macro] D[macro]
  20916. next
  20917. } else {
  20918. # Replace #undef with comments. This is necessary, for example,
  20919. # in the case of _POSIX_SOURCE, which is predefined and required
  20920. # on some systems where configure will not decide to define it.
  20921. if (defundef == "undef") {
  20922. print "/*", prefix defundef, macro, "*/"
  20923. next
  20924. }
  20925. }
  20926. }
  20927. { print }
  20928. _ACAWK
  20929. _ACEOF
  20930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20931. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20932. fi # test -n "$CONFIG_HEADERS"
  20933. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20934. shift
  20935. for ac_tag
  20936. do
  20937. case $ac_tag in
  20938. :[FHLC]) ac_mode=$ac_tag; continue;;
  20939. esac
  20940. case $ac_mode$ac_tag in
  20941. :[FHL]*:*);;
  20942. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20943. :[FH]-) ac_tag=-:-;;
  20944. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20945. esac
  20946. ac_save_IFS=$IFS
  20947. IFS=:
  20948. set x $ac_tag
  20949. IFS=$ac_save_IFS
  20950. shift
  20951. ac_file=$1
  20952. shift
  20953. case $ac_mode in
  20954. :L) ac_source=$1;;
  20955. :[FH])
  20956. ac_file_inputs=
  20957. for ac_f
  20958. do
  20959. case $ac_f in
  20960. -) ac_f="$ac_tmp/stdin";;
  20961. *) # Look for the file first in the build tree, then in the source tree
  20962. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20963. # because $ac_f cannot contain `:'.
  20964. test -f "$ac_f" ||
  20965. case $ac_f in
  20966. [\\/$]*) false;;
  20967. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20968. esac ||
  20969. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20970. esac
  20971. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20972. as_fn_append ac_file_inputs " '$ac_f'"
  20973. done
  20974. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20975. # use $as_me), people would be surprised to read:
  20976. # /* config.h. Generated by config.status. */
  20977. configure_input='Generated from '`
  20978. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20979. `' by configure.'
  20980. if test x"$ac_file" != x-; then
  20981. configure_input="$ac_file. $configure_input"
  20982. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20983. $as_echo "$as_me: creating $ac_file" >&6;}
  20984. fi
  20985. # Neutralize special characters interpreted by sed in replacement strings.
  20986. case $configure_input in #(
  20987. *\&* | *\|* | *\\* )
  20988. ac_sed_conf_input=`$as_echo "$configure_input" |
  20989. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20990. *) ac_sed_conf_input=$configure_input;;
  20991. esac
  20992. case $ac_tag in
  20993. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  20994. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  20995. esac
  20996. ;;
  20997. esac
  20998. ac_dir=`$as_dirname -- "$ac_file" ||
  20999. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21000. X"$ac_file" : 'X\(//\)[^/]' \| \
  21001. X"$ac_file" : 'X\(//\)$' \| \
  21002. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21003. $as_echo X"$ac_file" |
  21004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21005. s//\1/
  21006. q
  21007. }
  21008. /^X\(\/\/\)[^/].*/{
  21009. s//\1/
  21010. q
  21011. }
  21012. /^X\(\/\/\)$/{
  21013. s//\1/
  21014. q
  21015. }
  21016. /^X\(\/\).*/{
  21017. s//\1/
  21018. q
  21019. }
  21020. s/.*/./; q'`
  21021. as_dir="$ac_dir"; as_fn_mkdir_p
  21022. ac_builddir=.
  21023. case "$ac_dir" in
  21024. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21025. *)
  21026. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21027. # A ".." for each directory in $ac_dir_suffix.
  21028. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21029. case $ac_top_builddir_sub in
  21030. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21031. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21032. esac ;;
  21033. esac
  21034. ac_abs_top_builddir=$ac_pwd
  21035. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21036. # for backward compatibility:
  21037. ac_top_builddir=$ac_top_build_prefix
  21038. case $srcdir in
  21039. .) # We are building in place.
  21040. ac_srcdir=.
  21041. ac_top_srcdir=$ac_top_builddir_sub
  21042. ac_abs_top_srcdir=$ac_pwd ;;
  21043. [\\/]* | ?:[\\/]* ) # Absolute name.
  21044. ac_srcdir=$srcdir$ac_dir_suffix;
  21045. ac_top_srcdir=$srcdir
  21046. ac_abs_top_srcdir=$srcdir ;;
  21047. *) # Relative name.
  21048. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21049. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21050. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21051. esac
  21052. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21053. case $ac_mode in
  21054. :F)
  21055. #
  21056. # CONFIG_FILE
  21057. #
  21058. case $INSTALL in
  21059. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21060. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21061. esac
  21062. _ACEOF
  21063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21064. # If the template does not know about datarootdir, expand it.
  21065. # FIXME: This hack should be removed a few years after 2.60.
  21066. ac_datarootdir_hack=; ac_datarootdir_seen=
  21067. ac_sed_dataroot='
  21068. /datarootdir/ {
  21069. p
  21070. q
  21071. }
  21072. /@datadir@/p
  21073. /@docdir@/p
  21074. /@infodir@/p
  21075. /@localedir@/p
  21076. /@mandir@/p'
  21077. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21078. *datarootdir*) ac_datarootdir_seen=yes;;
  21079. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21081. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21082. _ACEOF
  21083. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21084. ac_datarootdir_hack='
  21085. s&@datadir@&$datadir&g
  21086. s&@docdir@&$docdir&g
  21087. s&@infodir@&$infodir&g
  21088. s&@localedir@&$localedir&g
  21089. s&@mandir@&$mandir&g
  21090. s&\\\${datarootdir}&$datarootdir&g' ;;
  21091. esac
  21092. _ACEOF
  21093. # Neutralize VPATH when `$srcdir' = `.'.
  21094. # Shell code in configure.ac might set extrasub.
  21095. # FIXME: do we really want to maintain this feature?
  21096. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21097. ac_sed_extra="$ac_vpsub
  21098. $extrasub
  21099. _ACEOF
  21100. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21101. :t
  21102. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21103. s|@configure_input@|$ac_sed_conf_input|;t t
  21104. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21105. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21106. s&@srcdir@&$ac_srcdir&;t t
  21107. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21108. s&@top_srcdir@&$ac_top_srcdir&;t t
  21109. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21110. s&@builddir@&$ac_builddir&;t t
  21111. s&@abs_builddir@&$ac_abs_builddir&;t t
  21112. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21113. s&@INSTALL@&$ac_INSTALL&;t t
  21114. $ac_datarootdir_hack
  21115. "
  21116. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21117. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21118. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21119. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21120. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21121. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21123. which seems to be undefined. Please make sure it is defined" >&5
  21124. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21125. which seems to be undefined. Please make sure it is defined" >&2;}
  21126. rm -f "$ac_tmp/stdin"
  21127. case $ac_file in
  21128. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21129. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21130. esac \
  21131. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21132. ;;
  21133. :H)
  21134. #
  21135. # CONFIG_HEADER
  21136. #
  21137. if test x"$ac_file" != x-; then
  21138. {
  21139. $as_echo "/* $configure_input */" \
  21140. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21141. } >"$ac_tmp/config.h" \
  21142. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21143. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21144. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21145. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21146. else
  21147. rm -f "$ac_file"
  21148. mv "$ac_tmp/config.h" "$ac_file" \
  21149. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21150. fi
  21151. else
  21152. $as_echo "/* $configure_input */" \
  21153. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21154. || as_fn_error $? "could not create -" "$LINENO" 5
  21155. fi
  21156. ;;
  21157. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21158. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21159. ;;
  21160. esac
  21161. case $ac_file$ac_mode in
  21162. "libtool":C)
  21163. # See if we are running on zsh, and set the options which allow our
  21164. # commands through without removal of \ escapes.
  21165. if test -n "${ZSH_VERSION+set}" ; then
  21166. setopt NO_GLOB_SUBST
  21167. fi
  21168. cfgfile="${ofile}T"
  21169. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21170. $RM "$cfgfile"
  21171. cat <<_LT_EOF >> "$cfgfile"
  21172. #! $SHELL
  21173. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21174. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21175. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21176. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21177. #
  21178. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21179. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21180. # Foundation, Inc.
  21181. # Written by Gordon Matzigkeit, 1996
  21182. #
  21183. # This file is part of GNU Libtool.
  21184. #
  21185. # GNU Libtool is free software; you can redistribute it and/or
  21186. # modify it under the terms of the GNU General Public License as
  21187. # published by the Free Software Foundation; either version 2 of
  21188. # the License, or (at your option) any later version.
  21189. #
  21190. # As a special exception to the GNU General Public License,
  21191. # if you distribute this file as part of a program or library that
  21192. # is built using GNU Libtool, you may include this file under the
  21193. # same distribution terms that you use for the rest of that program.
  21194. #
  21195. # GNU Libtool is distributed in the hope that it will be useful,
  21196. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21197. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21198. # GNU General Public License for more details.
  21199. #
  21200. # You should have received a copy of the GNU General Public License
  21201. # along with GNU Libtool; see the file COPYING. If not, a copy
  21202. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21203. # obtained by writing to the Free Software Foundation, Inc.,
  21204. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21205. # The names of the tagged configurations supported by this script.
  21206. available_tags="CXX "
  21207. # ### BEGIN LIBTOOL CONFIG
  21208. # Which release of libtool.m4 was used?
  21209. macro_version=$macro_version
  21210. macro_revision=$macro_revision
  21211. # Assembler program.
  21212. AS=$lt_AS
  21213. # DLL creation program.
  21214. DLLTOOL=$lt_DLLTOOL
  21215. # Object dumper program.
  21216. OBJDUMP=$lt_OBJDUMP
  21217. # Whether or not to build shared libraries.
  21218. build_libtool_libs=$enable_shared
  21219. # Whether or not to build static libraries.
  21220. build_old_libs=$enable_static
  21221. # What type of objects to build.
  21222. pic_mode=$pic_mode
  21223. # Whether or not to optimize for fast installation.
  21224. fast_install=$enable_fast_install
  21225. # Shell to use when invoking shell scripts.
  21226. SHELL=$lt_SHELL
  21227. # An echo program that protects backslashes.
  21228. ECHO=$lt_ECHO
  21229. # The PATH separator for the build system.
  21230. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21231. # The host system.
  21232. host_alias=$host_alias
  21233. host=$host
  21234. host_os=$host_os
  21235. # The build system.
  21236. build_alias=$build_alias
  21237. build=$build
  21238. build_os=$build_os
  21239. # A sed program that does not truncate output.
  21240. SED=$lt_SED
  21241. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21242. Xsed="\$SED -e 1s/^X//"
  21243. # A grep program that handles long lines.
  21244. GREP=$lt_GREP
  21245. # An ERE matcher.
  21246. EGREP=$lt_EGREP
  21247. # A literal string matcher.
  21248. FGREP=$lt_FGREP
  21249. # A BSD- or MS-compatible name lister.
  21250. NM=$lt_NM
  21251. # Whether we need soft or hard links.
  21252. LN_S=$lt_LN_S
  21253. # What is the maximum length of a command?
  21254. max_cmd_len=$max_cmd_len
  21255. # Object file suffix (normally "o").
  21256. objext=$ac_objext
  21257. # Executable file suffix (normally "").
  21258. exeext=$exeext
  21259. # whether the shell understands "unset".
  21260. lt_unset=$lt_unset
  21261. # turn spaces into newlines.
  21262. SP2NL=$lt_lt_SP2NL
  21263. # turn newlines into spaces.
  21264. NL2SP=$lt_lt_NL2SP
  21265. # convert \$build file names to \$host format.
  21266. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21267. # convert \$build files to toolchain format.
  21268. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21269. # Method to check whether dependent libraries are shared objects.
  21270. deplibs_check_method=$lt_deplibs_check_method
  21271. # Command to use when deplibs_check_method = "file_magic".
  21272. file_magic_cmd=$lt_file_magic_cmd
  21273. # How to find potential files when deplibs_check_method = "file_magic".
  21274. file_magic_glob=$lt_file_magic_glob
  21275. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21276. want_nocaseglob=$lt_want_nocaseglob
  21277. # Command to associate shared and link libraries.
  21278. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21279. # The archiver.
  21280. AR=$lt_AR
  21281. # Flags to create an archive.
  21282. AR_FLAGS=$lt_AR_FLAGS
  21283. # How to feed a file listing to the archiver.
  21284. archiver_list_spec=$lt_archiver_list_spec
  21285. # A symbol stripping program.
  21286. STRIP=$lt_STRIP
  21287. # Commands used to install an old-style archive.
  21288. RANLIB=$lt_RANLIB
  21289. old_postinstall_cmds=$lt_old_postinstall_cmds
  21290. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21291. # Whether to use a lock for old archive extraction.
  21292. lock_old_archive_extraction=$lock_old_archive_extraction
  21293. # A C compiler.
  21294. LTCC=$lt_CC
  21295. # LTCC compiler flags.
  21296. LTCFLAGS=$lt_CFLAGS
  21297. # Take the output of nm and produce a listing of raw symbols and C names.
  21298. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21299. # Transform the output of nm in a proper C declaration.
  21300. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21301. # Transform the output of nm in a C name address pair.
  21302. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21303. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21304. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21305. # Specify filename containing input files for \$NM.
  21306. nm_file_list_spec=$lt_nm_file_list_spec
  21307. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21308. lt_sysroot=$lt_sysroot
  21309. # The name of the directory that contains temporary libtool files.
  21310. objdir=$objdir
  21311. # Used to examine libraries when file_magic_cmd begins with "file".
  21312. MAGIC_CMD=$MAGIC_CMD
  21313. # Must we lock files when doing compilation?
  21314. need_locks=$lt_need_locks
  21315. # Manifest tool.
  21316. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21317. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21318. DSYMUTIL=$lt_DSYMUTIL
  21319. # Tool to change global to local symbols on Mac OS X.
  21320. NMEDIT=$lt_NMEDIT
  21321. # Tool to manipulate fat objects and archives on Mac OS X.
  21322. LIPO=$lt_LIPO
  21323. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21324. OTOOL=$lt_OTOOL
  21325. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21326. OTOOL64=$lt_OTOOL64
  21327. # Old archive suffix (normally "a").
  21328. libext=$libext
  21329. # Shared library suffix (normally ".so").
  21330. shrext_cmds=$lt_shrext_cmds
  21331. # The commands to extract the exported symbol list from a shared archive.
  21332. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21333. # Variables whose values should be saved in libtool wrapper scripts and
  21334. # restored at link time.
  21335. variables_saved_for_relink=$lt_variables_saved_for_relink
  21336. # Do we need the "lib" prefix for modules?
  21337. need_lib_prefix=$need_lib_prefix
  21338. # Do we need a version for libraries?
  21339. need_version=$need_version
  21340. # Library versioning type.
  21341. version_type=$version_type
  21342. # Shared library runtime path variable.
  21343. runpath_var=$runpath_var
  21344. # Shared library path variable.
  21345. shlibpath_var=$shlibpath_var
  21346. # Is shlibpath searched before the hard-coded library search path?
  21347. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21348. # Format of library name prefix.
  21349. libname_spec=$lt_libname_spec
  21350. # List of archive names. First name is the real one, the rest are links.
  21351. # The last name is the one that the linker finds with -lNAME
  21352. library_names_spec=$lt_library_names_spec
  21353. # The coded name of the library, if different from the real name.
  21354. soname_spec=$lt_soname_spec
  21355. # Permission mode override for installation of shared libraries.
  21356. install_override_mode=$lt_install_override_mode
  21357. # Command to use after installation of a shared archive.
  21358. postinstall_cmds=$lt_postinstall_cmds
  21359. # Command to use after uninstallation of a shared archive.
  21360. postuninstall_cmds=$lt_postuninstall_cmds
  21361. # Commands used to finish a libtool library installation in a directory.
  21362. finish_cmds=$lt_finish_cmds
  21363. # As "finish_cmds", except a single script fragment to be evaled but
  21364. # not shown.
  21365. finish_eval=$lt_finish_eval
  21366. # Whether we should hardcode library paths into libraries.
  21367. hardcode_into_libs=$hardcode_into_libs
  21368. # Compile-time system search path for libraries.
  21369. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21370. # Run-time system search path for libraries.
  21371. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21372. # Whether dlopen is supported.
  21373. dlopen_support=$enable_dlopen
  21374. # Whether dlopen of programs is supported.
  21375. dlopen_self=$enable_dlopen_self
  21376. # Whether dlopen of statically linked programs is supported.
  21377. dlopen_self_static=$enable_dlopen_self_static
  21378. # Commands to strip libraries.
  21379. old_striplib=$lt_old_striplib
  21380. striplib=$lt_striplib
  21381. # The linker used to build libraries.
  21382. LD=$lt_LD
  21383. # How to create reloadable object files.
  21384. reload_flag=$lt_reload_flag
  21385. reload_cmds=$lt_reload_cmds
  21386. # Commands used to build an old-style archive.
  21387. old_archive_cmds=$lt_old_archive_cmds
  21388. # A language specific compiler.
  21389. CC=$lt_compiler
  21390. # Is the compiler the GNU compiler?
  21391. with_gcc=$GCC
  21392. # Compiler flag to turn off builtin functions.
  21393. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21394. # Additional compiler flags for building library objects.
  21395. pic_flag=$lt_lt_prog_compiler_pic
  21396. # How to pass a linker flag through the compiler.
  21397. wl=$lt_lt_prog_compiler_wl
  21398. # Compiler flag to prevent dynamic linking.
  21399. link_static_flag=$lt_lt_prog_compiler_static
  21400. # Does compiler simultaneously support -c and -o options?
  21401. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21402. # Whether or not to add -lc for building shared libraries.
  21403. build_libtool_need_lc=$archive_cmds_need_lc
  21404. # Whether or not to disallow shared libs when runtime libs are static.
  21405. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21406. # Compiler flag to allow reflexive dlopens.
  21407. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21408. # Compiler flag to generate shared objects directly from archives.
  21409. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21410. # Whether the compiler copes with passing no objects directly.
  21411. compiler_needs_object=$lt_compiler_needs_object
  21412. # Create an old-style archive from a shared archive.
  21413. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21414. # Create a temporary old-style archive to link instead of a shared archive.
  21415. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21416. # Commands used to build a shared archive.
  21417. archive_cmds=$lt_archive_cmds
  21418. archive_expsym_cmds=$lt_archive_expsym_cmds
  21419. # Commands used to build a loadable module if different from building
  21420. # a shared archive.
  21421. module_cmds=$lt_module_cmds
  21422. module_expsym_cmds=$lt_module_expsym_cmds
  21423. # Whether we are building with GNU ld or not.
  21424. with_gnu_ld=$lt_with_gnu_ld
  21425. # Flag that allows shared libraries with undefined symbols to be built.
  21426. allow_undefined_flag=$lt_allow_undefined_flag
  21427. # Flag that enforces no undefined symbols.
  21428. no_undefined_flag=$lt_no_undefined_flag
  21429. # Flag to hardcode \$libdir into a binary during linking.
  21430. # This must work even if \$libdir does not exist
  21431. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21432. # Whether we need a single "-rpath" flag with a separated argument.
  21433. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21434. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21435. # DIR into the resulting binary.
  21436. hardcode_direct=$hardcode_direct
  21437. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21438. # DIR into the resulting binary and the resulting library dependency is
  21439. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21440. # library is relocated.
  21441. hardcode_direct_absolute=$hardcode_direct_absolute
  21442. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21443. # into the resulting binary.
  21444. hardcode_minus_L=$hardcode_minus_L
  21445. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21446. # into the resulting binary.
  21447. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21448. # Set to "yes" if building a shared library automatically hardcodes DIR
  21449. # into the library and all subsequent libraries and executables linked
  21450. # against it.
  21451. hardcode_automatic=$hardcode_automatic
  21452. # Set to yes if linker adds runtime paths of dependent libraries
  21453. # to runtime path list.
  21454. inherit_rpath=$inherit_rpath
  21455. # Whether libtool must link a program against all its dependency libraries.
  21456. link_all_deplibs=$link_all_deplibs
  21457. # Set to "yes" if exported symbols are required.
  21458. always_export_symbols=$always_export_symbols
  21459. # The commands to list exported symbols.
  21460. export_symbols_cmds=$lt_export_symbols_cmds
  21461. # Symbols that should not be listed in the preloaded symbols.
  21462. exclude_expsyms=$lt_exclude_expsyms
  21463. # Symbols that must always be exported.
  21464. include_expsyms=$lt_include_expsyms
  21465. # Commands necessary for linking programs (against libraries) with templates.
  21466. prelink_cmds=$lt_prelink_cmds
  21467. # Commands necessary for finishing linking programs.
  21468. postlink_cmds=$lt_postlink_cmds
  21469. # Specify filename containing input files.
  21470. file_list_spec=$lt_file_list_spec
  21471. # How to hardcode a shared library path into an executable.
  21472. hardcode_action=$hardcode_action
  21473. # The directories searched by this compiler when creating a shared library.
  21474. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21475. # Dependencies to place before and after the objects being linked to
  21476. # create a shared library.
  21477. predep_objects=$lt_predep_objects
  21478. postdep_objects=$lt_postdep_objects
  21479. predeps=$lt_predeps
  21480. postdeps=$lt_postdeps
  21481. # The library search path used internally by the compiler when linking
  21482. # a shared library.
  21483. compiler_lib_search_path=$lt_compiler_lib_search_path
  21484. # ### END LIBTOOL CONFIG
  21485. _LT_EOF
  21486. case $host_os in
  21487. aix3*)
  21488. cat <<\_LT_EOF >> "$cfgfile"
  21489. # AIX sometimes has problems with the GCC collect2 program. For some
  21490. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21491. # vanish in a puff of smoke.
  21492. if test "X${COLLECT_NAMES+set}" != Xset; then
  21493. COLLECT_NAMES=
  21494. export COLLECT_NAMES
  21495. fi
  21496. _LT_EOF
  21497. ;;
  21498. esac
  21499. ltmain="$ac_aux_dir/ltmain.sh"
  21500. # We use sed instead of cat because bash on DJGPP gets confused if
  21501. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21502. # text mode, it properly converts lines to CR/LF. This bash problem
  21503. # is reportedly fixed, but why not run on old versions too?
  21504. sed '$q' "$ltmain" >> "$cfgfile" \
  21505. || (rm -f "$cfgfile"; exit 1)
  21506. if test x"$xsi_shell" = xyes; then
  21507. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21508. func_dirname ()\
  21509. {\
  21510. \ case ${1} in\
  21511. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21512. \ * ) func_dirname_result="${3}" ;;\
  21513. \ esac\
  21514. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21515. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21516. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21517. test 0 -eq $? || _lt_function_replace_fail=:
  21518. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21519. func_basename ()\
  21520. {\
  21521. \ func_basename_result="${1##*/}"\
  21522. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21523. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21524. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21525. test 0 -eq $? || _lt_function_replace_fail=:
  21526. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21527. func_dirname_and_basename ()\
  21528. {\
  21529. \ case ${1} in\
  21530. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21531. \ * ) func_dirname_result="${3}" ;;\
  21532. \ esac\
  21533. \ func_basename_result="${1##*/}"\
  21534. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21535. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21536. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21537. test 0 -eq $? || _lt_function_replace_fail=:
  21538. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21539. func_stripname ()\
  21540. {\
  21541. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21542. \ # positional parameters, so assign one to ordinary parameter first.\
  21543. \ func_stripname_result=${3}\
  21544. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21545. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21546. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  21547. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21548. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21549. test 0 -eq $? || _lt_function_replace_fail=:
  21550. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  21551. func_split_long_opt ()\
  21552. {\
  21553. \ func_split_long_opt_name=${1%%=*}\
  21554. \ func_split_long_opt_arg=${1#*=}\
  21555. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21556. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21557. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21558. test 0 -eq $? || _lt_function_replace_fail=:
  21559. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  21560. func_split_short_opt ()\
  21561. {\
  21562. \ func_split_short_opt_arg=${1#??}\
  21563. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  21564. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  21565. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21566. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21567. test 0 -eq $? || _lt_function_replace_fail=:
  21568. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  21569. func_lo2o ()\
  21570. {\
  21571. \ case ${1} in\
  21572. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  21573. \ *) func_lo2o_result=${1} ;;\
  21574. \ esac\
  21575. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  21576. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21577. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21578. test 0 -eq $? || _lt_function_replace_fail=:
  21579. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  21580. func_xform ()\
  21581. {\
  21582. func_xform_result=${1%.*}.lo\
  21583. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  21584. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21585. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21586. test 0 -eq $? || _lt_function_replace_fail=:
  21587. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  21588. func_arith ()\
  21589. {\
  21590. func_arith_result=$(( $* ))\
  21591. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  21592. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21593. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21594. test 0 -eq $? || _lt_function_replace_fail=:
  21595. sed -e '/^func_len ()$/,/^} # func_len /c\
  21596. func_len ()\
  21597. {\
  21598. func_len_result=${#1}\
  21599. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  21600. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21601. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21602. test 0 -eq $? || _lt_function_replace_fail=:
  21603. fi
  21604. if test x"$lt_shell_append" = xyes; then
  21605. sed -e '/^func_append ()$/,/^} # func_append /c\
  21606. func_append ()\
  21607. {\
  21608. eval "${1}+=\\${2}"\
  21609. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  21610. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21611. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21612. test 0 -eq $? || _lt_function_replace_fail=:
  21613. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  21614. func_append_quoted ()\
  21615. {\
  21616. \ func_quote_for_eval "${2}"\
  21617. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  21618. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  21619. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21620. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21621. test 0 -eq $? || _lt_function_replace_fail=:
  21622. # Save a `func_append' function call where possible by direct use of '+='
  21623. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  21624. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21625. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21626. test 0 -eq $? || _lt_function_replace_fail=:
  21627. else
  21628. # Save a `func_append' function call even when '+=' is not available
  21629. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  21630. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21631. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21632. test 0 -eq $? || _lt_function_replace_fail=:
  21633. fi
  21634. if test x"$_lt_function_replace_fail" = x":"; then
  21635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  21636. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  21637. fi
  21638. mv -f "$cfgfile" "$ofile" ||
  21639. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21640. chmod +x "$ofile"
  21641. cat <<_LT_EOF >> "$ofile"
  21642. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21643. # The linker used to build libraries.
  21644. LD=$lt_LD_CXX
  21645. # How to create reloadable object files.
  21646. reload_flag=$lt_reload_flag_CXX
  21647. reload_cmds=$lt_reload_cmds_CXX
  21648. # Commands used to build an old-style archive.
  21649. old_archive_cmds=$lt_old_archive_cmds_CXX
  21650. # A language specific compiler.
  21651. CC=$lt_compiler_CXX
  21652. # Is the compiler the GNU compiler?
  21653. with_gcc=$GCC_CXX
  21654. # Compiler flag to turn off builtin functions.
  21655. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21656. # Additional compiler flags for building library objects.
  21657. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21658. # How to pass a linker flag through the compiler.
  21659. wl=$lt_lt_prog_compiler_wl_CXX
  21660. # Compiler flag to prevent dynamic linking.
  21661. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21662. # Does compiler simultaneously support -c and -o options?
  21663. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21664. # Whether or not to add -lc for building shared libraries.
  21665. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21666. # Whether or not to disallow shared libs when runtime libs are static.
  21667. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21668. # Compiler flag to allow reflexive dlopens.
  21669. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21670. # Compiler flag to generate shared objects directly from archives.
  21671. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21672. # Whether the compiler copes with passing no objects directly.
  21673. compiler_needs_object=$lt_compiler_needs_object_CXX
  21674. # Create an old-style archive from a shared archive.
  21675. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21676. # Create a temporary old-style archive to link instead of a shared archive.
  21677. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21678. # Commands used to build a shared archive.
  21679. archive_cmds=$lt_archive_cmds_CXX
  21680. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21681. # Commands used to build a loadable module if different from building
  21682. # a shared archive.
  21683. module_cmds=$lt_module_cmds_CXX
  21684. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21685. # Whether we are building with GNU ld or not.
  21686. with_gnu_ld=$lt_with_gnu_ld_CXX
  21687. # Flag that allows shared libraries with undefined symbols to be built.
  21688. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21689. # Flag that enforces no undefined symbols.
  21690. no_undefined_flag=$lt_no_undefined_flag_CXX
  21691. # Flag to hardcode \$libdir into a binary during linking.
  21692. # This must work even if \$libdir does not exist
  21693. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21694. # Whether we need a single "-rpath" flag with a separated argument.
  21695. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21696. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21697. # DIR into the resulting binary.
  21698. hardcode_direct=$hardcode_direct_CXX
  21699. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21700. # DIR into the resulting binary and the resulting library dependency is
  21701. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21702. # library is relocated.
  21703. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21704. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21705. # into the resulting binary.
  21706. hardcode_minus_L=$hardcode_minus_L_CXX
  21707. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21708. # into the resulting binary.
  21709. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21710. # Set to "yes" if building a shared library automatically hardcodes DIR
  21711. # into the library and all subsequent libraries and executables linked
  21712. # against it.
  21713. hardcode_automatic=$hardcode_automatic_CXX
  21714. # Set to yes if linker adds runtime paths of dependent libraries
  21715. # to runtime path list.
  21716. inherit_rpath=$inherit_rpath_CXX
  21717. # Whether libtool must link a program against all its dependency libraries.
  21718. link_all_deplibs=$link_all_deplibs_CXX
  21719. # Set to "yes" if exported symbols are required.
  21720. always_export_symbols=$always_export_symbols_CXX
  21721. # The commands to list exported symbols.
  21722. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21723. # Symbols that should not be listed in the preloaded symbols.
  21724. exclude_expsyms=$lt_exclude_expsyms_CXX
  21725. # Symbols that must always be exported.
  21726. include_expsyms=$lt_include_expsyms_CXX
  21727. # Commands necessary for linking programs (against libraries) with templates.
  21728. prelink_cmds=$lt_prelink_cmds_CXX
  21729. # Commands necessary for finishing linking programs.
  21730. postlink_cmds=$lt_postlink_cmds_CXX
  21731. # Specify filename containing input files.
  21732. file_list_spec=$lt_file_list_spec_CXX
  21733. # How to hardcode a shared library path into an executable.
  21734. hardcode_action=$hardcode_action_CXX
  21735. # The directories searched by this compiler when creating a shared library.
  21736. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21737. # Dependencies to place before and after the objects being linked to
  21738. # create a shared library.
  21739. predep_objects=$lt_predep_objects_CXX
  21740. postdep_objects=$lt_postdep_objects_CXX
  21741. predeps=$lt_predeps_CXX
  21742. postdeps=$lt_postdeps_CXX
  21743. # The library search path used internally by the compiler when linking
  21744. # a shared library.
  21745. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21746. # ### END LIBTOOL TAG CONFIG: CXX
  21747. _LT_EOF
  21748. ;;
  21749. esac
  21750. done # for ac_tag
  21751. as_fn_exit 0
  21752. _ACEOF
  21753. ac_clean_files=$ac_clean_files_save
  21754. test $ac_write_fail = 0 ||
  21755. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21756. # configure is writing to config.log, and then calls config.status.
  21757. # config.status does its own redirection, appending to config.log.
  21758. # Unfortunately, on DOS this fails, as config.log is still kept open
  21759. # by configure, so config.status won't be able to write to it; its
  21760. # output is simply discarded. So we exec the FD to /dev/null,
  21761. # effectively closing config.log, so it can be properly (re)opened and
  21762. # appended to by config.status. When coming back to configure, we
  21763. # need to make the FD available again.
  21764. if test "$no_create" != yes; then
  21765. ac_cs_success=:
  21766. ac_config_status_args=
  21767. test "$silent" = yes &&
  21768. ac_config_status_args="$ac_config_status_args --quiet"
  21769. exec 5>/dev/null
  21770. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21771. exec 5>>config.log
  21772. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21773. # would make configure fail if this is the last instruction.
  21774. $ac_cs_success || as_fn_exit 1
  21775. fi
  21776. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21778. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21779. fi
  21780. chmod a+x sdl2-config