configure 762 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. EXTRA_LDFLAGS
  582. BUILD_LDFLAGS
  583. EXTRA_CFLAGS
  584. BUILD_CFLAGS
  585. SDLTEST_OBJECTS
  586. SDLMAIN_OBJECTS
  587. VERSION_OBJECTS
  588. OBJECTS
  589. INCLUDE
  590. ac_aux_dir
  591. ENABLE_STATIC_FALSE
  592. ENABLE_STATIC_TRUE
  593. ENABLE_SHARED_FALSE
  594. ENABLE_SHARED_TRUE
  595. SDL_RLD_FLAGS
  596. SDL_STATIC_LIBS
  597. SDL_LIBS
  598. SDL_CFLAGS
  599. DIRECTFBCONFIG
  600. X_EXTRA_LIBS
  601. X_LIBS
  602. X_PRE_LIBS
  603. X_CFLAGS
  604. XMKMF
  605. ARTSCONFIG
  606. PKG_CONFIG
  607. ESD_LIBS
  608. ESD_CFLAGS
  609. ESD_CONFIG
  610. ALSA_LIBS
  611. ALSA_CFLAGS
  612. POW_LIB
  613. LIBOBJS
  614. ALLOCA
  615. WINDRES
  616. SET_MAKE
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. CXXCPP
  621. ac_ct_CXX
  622. CXXFLAGS
  623. CXX
  624. LT_AGE
  625. LT_REVISION
  626. LT_CURRENT
  627. LT_RELEASE
  628. CPP
  629. OTOOL64
  630. OTOOL
  631. LIPO
  632. NMEDIT
  633. DSYMUTIL
  634. MANIFEST_TOOL
  635. AWK
  636. RANLIB
  637. STRIP
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. NM
  642. ac_ct_DUMPBIN
  643. DUMPBIN
  644. LD
  645. FGREP
  646. EGREP
  647. GREP
  648. SED
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. LIBTOOL
  665. OBJDUMP
  666. DLLTOOL
  667. AS
  668. SDL_VERSION
  669. SDL_BINARY_AGE
  670. SDL_INTERFACE_AGE
  671. SDL_MICRO_VERSION
  672. SDL_MINOR_VERSION
  673. SDL_MAJOR_VERSION
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_assertions
  723. enable_dependency_tracking
  724. enable_libc
  725. enable_gcc_atomics
  726. enable_atomic
  727. enable_audio
  728. enable_video
  729. enable_render
  730. enable_events
  731. enable_joystick
  732. enable_haptic
  733. enable_power
  734. enable_filesystem
  735. enable_threads
  736. enable_timers
  737. enable_file
  738. enable_loadso
  739. enable_cpuinfo
  740. enable_assembly
  741. enable_ssemath
  742. enable_mmx
  743. enable_3dnow
  744. enable_sse
  745. enable_sse2
  746. enable_altivec
  747. enable_oss
  748. enable_alsa
  749. with_alsa_prefix
  750. with_alsa_inc_prefix
  751. enable_alsatest
  752. enable_alsa_shared
  753. enable_esd
  754. with_esd_prefix
  755. with_esd_exec_prefix
  756. enable_esdtest
  757. enable_esd_shared
  758. enable_pulseaudio
  759. enable_pulseaudio_shared
  760. enable_arts
  761. enable_arts_shared
  762. enable_nas
  763. enable_nas_shared
  764. enable_sndio
  765. enable_sndio_shared
  766. enable_diskaudio
  767. enable_dummyaudio
  768. enable_video_wayland
  769. enable_video_wayland_qt_touch
  770. enable_wayland_shared
  771. enable_video_mir
  772. enable_mir_shared
  773. enable_video_x11
  774. with_x
  775. enable_x11_shared
  776. enable_video_x11_xcursor
  777. enable_video_x11_xinerama
  778. enable_video_x11_xinput
  779. enable_video_x11_xrandr
  780. enable_video_x11_scrnsaver
  781. enable_video_x11_xshape
  782. enable_video_x11_vm
  783. enable_video_cocoa
  784. enable_video_directfb
  785. enable_directfb_shared
  786. enable_fusionsound
  787. enable_fusionsound_shared
  788. enable_video_dummy
  789. enable_video_opengl
  790. enable_video_opengles
  791. enable_libudev
  792. enable_dbus
  793. enable_ibus
  794. enable_input_tslib
  795. enable_pthreads
  796. enable_pthread_sem
  797. enable_directx
  798. enable_sdl_dlopen
  799. enable_clock_gettime
  800. enable_rpath
  801. enable_render_d3d
  802. '
  803. ac_precious_vars='build_alias
  804. host_alias
  805. target_alias
  806. CC
  807. CFLAGS
  808. LDFLAGS
  809. LIBS
  810. CPPFLAGS
  811. CPP
  812. CXX
  813. CXXFLAGS
  814. CCC
  815. CXXCPP
  816. XMKMF'
  817. # Initialize some variables set by options.
  818. ac_init_help=
  819. ac_init_version=false
  820. ac_unrecognized_opts=
  821. ac_unrecognized_sep=
  822. # The variables have the same names as the options, with
  823. # dashes changed to underlines.
  824. cache_file=/dev/null
  825. exec_prefix=NONE
  826. no_create=
  827. no_recursion=
  828. prefix=NONE
  829. program_prefix=NONE
  830. program_suffix=NONE
  831. program_transform_name=s,x,x,
  832. silent=
  833. site=
  834. srcdir=
  835. verbose=
  836. x_includes=NONE
  837. x_libraries=NONE
  838. # Installation directory options.
  839. # These are left unexpanded so users can "make install exec_prefix=/foo"
  840. # and all the variables that are supposed to be based on exec_prefix
  841. # by default will actually change.
  842. # Use braces instead of parens because sh, perl, etc. also accept them.
  843. # (The list follows the same order as the GNU Coding Standards.)
  844. bindir='${exec_prefix}/bin'
  845. sbindir='${exec_prefix}/sbin'
  846. libexecdir='${exec_prefix}/libexec'
  847. datarootdir='${prefix}/share'
  848. datadir='${datarootdir}'
  849. sysconfdir='${prefix}/etc'
  850. sharedstatedir='${prefix}/com'
  851. localstatedir='${prefix}/var'
  852. includedir='${prefix}/include'
  853. oldincludedir='/usr/include'
  854. docdir='${datarootdir}/doc/${PACKAGE}'
  855. infodir='${datarootdir}/info'
  856. htmldir='${docdir}'
  857. dvidir='${docdir}'
  858. pdfdir='${docdir}'
  859. psdir='${docdir}'
  860. libdir='${exec_prefix}/lib'
  861. localedir='${datarootdir}/locale'
  862. mandir='${datarootdir}/man'
  863. ac_prev=
  864. ac_dashdash=
  865. for ac_option
  866. do
  867. # If the previous option needs an argument, assign it.
  868. if test -n "$ac_prev"; then
  869. eval $ac_prev=\$ac_option
  870. ac_prev=
  871. continue
  872. fi
  873. case $ac_option in
  874. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  875. *=) ac_optarg= ;;
  876. *) ac_optarg=yes ;;
  877. esac
  878. # Accept the important Cygnus configure options, so we can diagnose typos.
  879. case $ac_dashdash$ac_option in
  880. --)
  881. ac_dashdash=yes ;;
  882. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  883. ac_prev=bindir ;;
  884. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  885. bindir=$ac_optarg ;;
  886. -build | --build | --buil | --bui | --bu)
  887. ac_prev=build_alias ;;
  888. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  889. build_alias=$ac_optarg ;;
  890. -cache-file | --cache-file | --cache-fil | --cache-fi \
  891. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  892. ac_prev=cache_file ;;
  893. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  894. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  895. cache_file=$ac_optarg ;;
  896. --config-cache | -C)
  897. cache_file=config.cache ;;
  898. -datadir | --datadir | --datadi | --datad)
  899. ac_prev=datadir ;;
  900. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  901. datadir=$ac_optarg ;;
  902. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  903. | --dataroo | --dataro | --datar)
  904. ac_prev=datarootdir ;;
  905. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  906. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  907. datarootdir=$ac_optarg ;;
  908. -disable-* | --disable-*)
  909. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  910. # Reject names that are not valid shell variable names.
  911. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  912. as_fn_error $? "invalid feature name: $ac_useropt"
  913. ac_useropt_orig=$ac_useropt
  914. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  915. case $ac_user_opts in
  916. *"
  917. "enable_$ac_useropt"
  918. "*) ;;
  919. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  920. ac_unrecognized_sep=', ';;
  921. esac
  922. eval enable_$ac_useropt=no ;;
  923. -docdir | --docdir | --docdi | --doc | --do)
  924. ac_prev=docdir ;;
  925. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  926. docdir=$ac_optarg ;;
  927. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  928. ac_prev=dvidir ;;
  929. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  930. dvidir=$ac_optarg ;;
  931. -enable-* | --enable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error $? "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=\$ac_optarg ;;
  946. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  947. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  948. | --exec | --exe | --ex)
  949. ac_prev=exec_prefix ;;
  950. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  951. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  952. | --exec=* | --exe=* | --ex=*)
  953. exec_prefix=$ac_optarg ;;
  954. -gas | --gas | --ga | --g)
  955. # Obsolete; use --with-gas.
  956. with_gas=yes ;;
  957. -help | --help | --hel | --he | -h)
  958. ac_init_help=long ;;
  959. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  960. ac_init_help=recursive ;;
  961. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  962. ac_init_help=short ;;
  963. -host | --host | --hos | --ho)
  964. ac_prev=host_alias ;;
  965. -host=* | --host=* | --hos=* | --ho=*)
  966. host_alias=$ac_optarg ;;
  967. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  968. ac_prev=htmldir ;;
  969. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  970. | --ht=*)
  971. htmldir=$ac_optarg ;;
  972. -includedir | --includedir | --includedi | --included | --include \
  973. | --includ | --inclu | --incl | --inc)
  974. ac_prev=includedir ;;
  975. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  976. | --includ=* | --inclu=* | --incl=* | --inc=*)
  977. includedir=$ac_optarg ;;
  978. -infodir | --infodir | --infodi | --infod | --info | --inf)
  979. ac_prev=infodir ;;
  980. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  981. infodir=$ac_optarg ;;
  982. -libdir | --libdir | --libdi | --libd)
  983. ac_prev=libdir ;;
  984. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  985. libdir=$ac_optarg ;;
  986. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  987. | --libexe | --libex | --libe)
  988. ac_prev=libexecdir ;;
  989. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  990. | --libexe=* | --libex=* | --libe=*)
  991. libexecdir=$ac_optarg ;;
  992. -localedir | --localedir | --localedi | --localed | --locale)
  993. ac_prev=localedir ;;
  994. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  995. localedir=$ac_optarg ;;
  996. -localstatedir | --localstatedir | --localstatedi | --localstated \
  997. | --localstate | --localstat | --localsta | --localst | --locals)
  998. ac_prev=localstatedir ;;
  999. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1000. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1001. localstatedir=$ac_optarg ;;
  1002. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1003. ac_prev=mandir ;;
  1004. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1005. mandir=$ac_optarg ;;
  1006. -nfp | --nfp | --nf)
  1007. # Obsolete; use --without-fp.
  1008. with_fp=no ;;
  1009. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1010. | --no-cr | --no-c | -n)
  1011. no_create=yes ;;
  1012. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1013. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1014. no_recursion=yes ;;
  1015. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1016. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1017. | --oldin | --oldi | --old | --ol | --o)
  1018. ac_prev=oldincludedir ;;
  1019. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1020. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1021. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1022. oldincludedir=$ac_optarg ;;
  1023. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1024. ac_prev=prefix ;;
  1025. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1026. prefix=$ac_optarg ;;
  1027. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1028. | --program-pre | --program-pr | --program-p)
  1029. ac_prev=program_prefix ;;
  1030. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1031. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1032. program_prefix=$ac_optarg ;;
  1033. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1034. | --program-suf | --program-su | --program-s)
  1035. ac_prev=program_suffix ;;
  1036. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1037. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1038. program_suffix=$ac_optarg ;;
  1039. -program-transform-name | --program-transform-name \
  1040. | --program-transform-nam | --program-transform-na \
  1041. | --program-transform-n | --program-transform- \
  1042. | --program-transform | --program-transfor \
  1043. | --program-transfo | --program-transf \
  1044. | --program-trans | --program-tran \
  1045. | --progr-tra | --program-tr | --program-t)
  1046. ac_prev=program_transform_name ;;
  1047. -program-transform-name=* | --program-transform-name=* \
  1048. | --program-transform-nam=* | --program-transform-na=* \
  1049. | --program-transform-n=* | --program-transform-=* \
  1050. | --program-transform=* | --program-transfor=* \
  1051. | --program-transfo=* | --program-transf=* \
  1052. | --program-trans=* | --program-tran=* \
  1053. | --progr-tra=* | --program-tr=* | --program-t=*)
  1054. program_transform_name=$ac_optarg ;;
  1055. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1056. ac_prev=pdfdir ;;
  1057. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1058. pdfdir=$ac_optarg ;;
  1059. -psdir | --psdir | --psdi | --psd | --ps)
  1060. ac_prev=psdir ;;
  1061. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1062. psdir=$ac_optarg ;;
  1063. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1064. | -silent | --silent | --silen | --sile | --sil)
  1065. silent=yes ;;
  1066. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1067. ac_prev=sbindir ;;
  1068. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1069. | --sbi=* | --sb=*)
  1070. sbindir=$ac_optarg ;;
  1071. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1072. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1073. | --sharedst | --shareds | --shared | --share | --shar \
  1074. | --sha | --sh)
  1075. ac_prev=sharedstatedir ;;
  1076. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1077. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1078. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1079. | --sha=* | --sh=*)
  1080. sharedstatedir=$ac_optarg ;;
  1081. -site | --site | --sit)
  1082. ac_prev=site ;;
  1083. -site=* | --site=* | --sit=*)
  1084. site=$ac_optarg ;;
  1085. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1086. ac_prev=srcdir ;;
  1087. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1088. srcdir=$ac_optarg ;;
  1089. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1090. | --syscon | --sysco | --sysc | --sys | --sy)
  1091. ac_prev=sysconfdir ;;
  1092. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1093. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1094. sysconfdir=$ac_optarg ;;
  1095. -target | --target | --targe | --targ | --tar | --ta | --t)
  1096. ac_prev=target_alias ;;
  1097. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1098. target_alias=$ac_optarg ;;
  1099. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1100. verbose=yes ;;
  1101. -version | --version | --versio | --versi | --vers | -V)
  1102. ac_init_version=: ;;
  1103. -with-* | --with-*)
  1104. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1107. as_fn_error $? "invalid package name: $ac_useropt"
  1108. ac_useropt_orig=$ac_useropt
  1109. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. case $ac_user_opts in
  1111. *"
  1112. "with_$ac_useropt"
  1113. "*) ;;
  1114. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1115. ac_unrecognized_sep=', ';;
  1116. esac
  1117. eval with_$ac_useropt=\$ac_optarg ;;
  1118. -without-* | --without-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. as_fn_error $? "invalid package name: $ac_useropt"
  1123. ac_useropt_orig=$ac_useropt
  1124. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1125. case $ac_user_opts in
  1126. *"
  1127. "with_$ac_useropt"
  1128. "*) ;;
  1129. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1130. ac_unrecognized_sep=', ';;
  1131. esac
  1132. eval with_$ac_useropt=no ;;
  1133. --x)
  1134. # Obsolete; use --with-x.
  1135. with_x=yes ;;
  1136. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1137. | --x-incl | --x-inc | --x-in | --x-i)
  1138. ac_prev=x_includes ;;
  1139. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1140. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1141. x_includes=$ac_optarg ;;
  1142. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1143. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1144. ac_prev=x_libraries ;;
  1145. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1146. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1147. x_libraries=$ac_optarg ;;
  1148. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1149. Try \`$0 --help' for more information"
  1150. ;;
  1151. *=*)
  1152. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1153. # Reject names that are not valid shell variable names.
  1154. case $ac_envvar in #(
  1155. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1156. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1157. esac
  1158. eval $ac_envvar=\$ac_optarg
  1159. export $ac_envvar ;;
  1160. *)
  1161. # FIXME: should be removed in autoconf 3.0.
  1162. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1163. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1164. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1165. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1166. ;;
  1167. esac
  1168. done
  1169. if test -n "$ac_prev"; then
  1170. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1171. as_fn_error $? "missing argument to $ac_option"
  1172. fi
  1173. if test -n "$ac_unrecognized_opts"; then
  1174. case $enable_option_checking in
  1175. no) ;;
  1176. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1177. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1178. esac
  1179. fi
  1180. # Check all directory arguments for consistency.
  1181. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1182. datadir sysconfdir sharedstatedir localstatedir includedir \
  1183. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1184. libdir localedir mandir
  1185. do
  1186. eval ac_val=\$$ac_var
  1187. # Remove trailing slashes.
  1188. case $ac_val in
  1189. */ )
  1190. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1191. eval $ac_var=\$ac_val;;
  1192. esac
  1193. # Be sure to have absolute directory names.
  1194. case $ac_val in
  1195. [\\/$]* | ?:[\\/]* ) continue;;
  1196. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1197. esac
  1198. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1199. done
  1200. # There might be people who depend on the old broken behavior: `$host'
  1201. # used to hold the argument of --host etc.
  1202. # FIXME: To remove some day.
  1203. build=$build_alias
  1204. host=$host_alias
  1205. target=$target_alias
  1206. # FIXME: To remove some day.
  1207. if test "x$host_alias" != x; then
  1208. if test "x$build_alias" = x; then
  1209. cross_compiling=maybe
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. as_fn_error $? "working directory cannot be determined"
  1221. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1222. as_fn_error $? "pwd does not report name of working directory"
  1223. # Find the source files, if location was not specified.
  1224. if test -z "$srcdir"; then
  1225. ac_srcdir_defaulted=yes
  1226. # Try the directory containing this script, then the parent directory.
  1227. ac_confdir=`$as_dirname -- "$as_myself" ||
  1228. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1229. X"$as_myself" : 'X\(//\)[^/]' \| \
  1230. X"$as_myself" : 'X\(//\)$' \| \
  1231. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1232. $as_echo X"$as_myself" |
  1233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)[^/].*/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)$/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\).*/{
  1246. s//\1/
  1247. q
  1248. }
  1249. s/.*/./; q'`
  1250. srcdir=$ac_confdir
  1251. if test ! -r "$srcdir/$ac_unique_file"; then
  1252. srcdir=..
  1253. fi
  1254. else
  1255. ac_srcdir_defaulted=no
  1256. fi
  1257. if test ! -r "$srcdir/$ac_unique_file"; then
  1258. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1259. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1260. fi
  1261. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1262. ac_abs_confdir=`(
  1263. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1264. pwd)`
  1265. # When building in place, set srcdir=.
  1266. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1267. srcdir=.
  1268. fi
  1269. # Remove unnecessary trailing slashes from srcdir.
  1270. # Double slashes in file names in object file debugging info
  1271. # mess up M-x gdb in Emacs.
  1272. case $srcdir in
  1273. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1274. esac
  1275. for ac_var in $ac_precious_vars; do
  1276. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1277. eval ac_env_${ac_var}_value=\$${ac_var}
  1278. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1279. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1280. done
  1281. #
  1282. # Report the --help message.
  1283. #
  1284. if test "$ac_init_help" = "long"; then
  1285. # Omit some internal or obsolete options to make the list less imposing.
  1286. # This message is too long to be a string in the A/UX 3.1 sh.
  1287. cat <<_ACEOF
  1288. \`configure' configures this package to adapt to many kinds of systems.
  1289. Usage: $0 [OPTION]... [VAR=VALUE]...
  1290. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1291. VAR=VALUE. See below for descriptions of some of the useful variables.
  1292. Defaults for the options are specified in brackets.
  1293. Configuration:
  1294. -h, --help display this help and exit
  1295. --help=short display options specific to this package
  1296. --help=recursive display the short help of all the included packages
  1297. -V, --version display version information and exit
  1298. -q, --quiet, --silent do not print \`checking ...' messages
  1299. --cache-file=FILE cache test results in FILE [disabled]
  1300. -C, --config-cache alias for \`--cache-file=config.cache'
  1301. -n, --no-create do not create output files
  1302. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1303. Installation directories:
  1304. --prefix=PREFIX install architecture-independent files in PREFIX
  1305. [$ac_default_prefix]
  1306. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1307. [PREFIX]
  1308. By default, \`make install' will install all the files in
  1309. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1310. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1311. for instance \`--prefix=\$HOME'.
  1312. For better control, use the options below.
  1313. Fine tuning of the installation directories:
  1314. --bindir=DIR user executables [EPREFIX/bin]
  1315. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1316. --libexecdir=DIR program executables [EPREFIX/libexec]
  1317. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1318. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1319. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1320. --libdir=DIR object code libraries [EPREFIX/lib]
  1321. --includedir=DIR C header files [PREFIX/include]
  1322. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1323. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1324. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1325. --infodir=DIR info documentation [DATAROOTDIR/info]
  1326. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1327. --mandir=DIR man documentation [DATAROOTDIR/man]
  1328. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1329. --htmldir=DIR html documentation [DOCDIR]
  1330. --dvidir=DIR dvi documentation [DOCDIR]
  1331. --pdfdir=DIR pdf documentation [DOCDIR]
  1332. --psdir=DIR ps documentation [DOCDIR]
  1333. _ACEOF
  1334. cat <<\_ACEOF
  1335. X features:
  1336. --x-includes=DIR X include files are in DIR
  1337. --x-libraries=DIR X library files are in DIR
  1338. System types:
  1339. --build=BUILD configure for building on BUILD [guessed]
  1340. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1341. _ACEOF
  1342. fi
  1343. if test -n "$ac_init_help"; then
  1344. cat <<\_ACEOF
  1345. Optional Features:
  1346. --disable-option-checking ignore unrecognized --enable/--with options
  1347. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1348. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1349. --enable-shared[=PKGS] build shared libraries [default=yes]
  1350. --enable-static[=PKGS] build static libraries [default=yes]
  1351. --enable-fast-install[=PKGS]
  1352. optimize for fast installation [default=yes]
  1353. --disable-libtool-lock avoid locking (might break parallel builds)
  1354. --enable-assertions Enable internal sanity checks
  1355. (auto/disabled/release/enabled/paranoid)
  1356. [[default=auto]]
  1357. --enable-dependency-tracking
  1358. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1359. --enable-libc Use the system C library [[default=yes]]
  1360. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1361. --enable-atomic Enable the atomic operations subsystem
  1362. [[default=yes]]
  1363. --enable-audio Enable the audio subsystem [[default=yes]]
  1364. --enable-video Enable the video subsystem [[default=yes]]
  1365. --enable-render Enable the render subsystem [[default=yes]]
  1366. --enable-events Enable the events subsystem [[default=yes]]
  1367. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1368. --enable-haptic Enable the haptic (force feedback) subsystem
  1369. [[default=yes]]
  1370. --enable-power Enable the power subsystem [[default=yes]]
  1371. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1372. --enable-threads Enable the threading subsystem [[default=yes]]
  1373. --enable-timers Enable the timer subsystem [[default=yes]]
  1374. --enable-file Enable the file subsystem [[default=yes]]
  1375. --enable-loadso Enable the shared object loading subsystem
  1376. [[default=yes]]
  1377. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1378. --enable-assembly Enable assembly routines [[default=yes]]
  1379. --enable-ssemath Allow GCC to use SSE floating point math
  1380. [[default=no]]
  1381. --enable-mmx use MMX assembly routines [[default=yes]]
  1382. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1383. --enable-sse use SSE assembly routines [[default=yes]]
  1384. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1385. --enable-altivec use Altivec assembly routines [[default=yes]]
  1386. --enable-oss support the OSS audio API [[default=maybe]]
  1387. --enable-alsa support the ALSA audio API [[default=yes]]
  1388. --disable-alsatest Do not try to compile and run a test Alsa program
  1389. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1390. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1391. --disable-esdtest Do not try to compile and run a test ESD program
  1392. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1393. --enable-pulseaudio use PulseAudio [[default=yes]]
  1394. --enable-pulseaudio-shared
  1395. dynamically load PulseAudio support [[default=yes]]
  1396. --enable-arts support the Analog Real Time Synthesizer
  1397. [[default=yes]]
  1398. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1399. --enable-nas support the NAS audio API [[default=yes]]
  1400. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1401. --enable-sndio support the sndio audio API [[default=yes]]
  1402. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1403. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1404. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1405. --enable-video-wayland use Wayland video driver [[default=yes]]
  1406. --enable-video-wayland-qt-touch
  1407. QtWayland server support for Wayland video driver
  1408. [[default=yes]]
  1409. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1410. --enable-video-mir use Mir video driver [[default=yes]]
  1411. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1412. --enable-video-x11 use X11 video driver [[default=yes]]
  1413. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1414. --enable-video-x11-xcursor
  1415. enable X11 Xcursor support [[default=yes]]
  1416. --enable-video-x11-xinerama
  1417. enable X11 Xinerama support [[default=yes]]
  1418. --enable-video-x11-xinput
  1419. enable X11 XInput extension for manymouse, tablets,
  1420. etc [[default=yes]]
  1421. --enable-video-x11-xrandr
  1422. enable X11 Xrandr extension for fullscreen
  1423. [[default=yes]]
  1424. --enable-video-x11-scrnsaver
  1425. enable X11 screensaver extension [[default=yes]]
  1426. --enable-video-x11-xshape
  1427. enable X11 XShape support [[default=yes]]
  1428. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1429. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1430. --enable-video-directfb use DirectFB video driver [[default=no]]
  1431. --enable-directfb-shared
  1432. dynamically load directfb support [[default=yes]]
  1433. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1434. --enable-fusionsound-shared
  1435. dynamically load fusionsound audio support
  1436. [[default=yes]]
  1437. --enable-video-dummy use dummy video driver [[default=yes]]
  1438. --enable-video-opengl include OpenGL support [[default=yes]]
  1439. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1440. --enable-libudev enable libudev support [[default=yes]]
  1441. --enable-dbus enable D-Bus support [[default=yes]]
  1442. --enable-ibus enable IBus support [[default=yes]]
  1443. --enable-input-tslib use the Touchscreen library for input
  1444. [[default=yes]]
  1445. --enable-pthreads use POSIX threads for multi-threading
  1446. [[default=yes]]
  1447. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1448. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1449. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1450. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1451. UNIX [[default=yes]]
  1452. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1453. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1454. Optional Packages:
  1455. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1456. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1457. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1458. both]
  1459. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1460. --with-sysroot=DIR Search for dependent libraries within DIR
  1461. (or the compiler's sysroot if not specified).
  1462. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1463. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1464. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1465. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1466. --with-x use the X Window System
  1467. Some influential environment variables:
  1468. CC C compiler command
  1469. CFLAGS C compiler flags
  1470. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1471. nonstandard directory <lib dir>
  1472. LIBS libraries to pass to the linker, e.g. -l<library>
  1473. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1474. you have headers in a nonstandard directory <include dir>
  1475. CPP C preprocessor
  1476. CXX C++ compiler command
  1477. CXXFLAGS C++ compiler flags
  1478. CXXCPP C++ preprocessor
  1479. XMKMF Path to xmkmf, Makefile generator for X Window System
  1480. Use these variables to override the choices made by `configure' or to help
  1481. it to find libraries and programs with nonstandard names/locations.
  1482. Report bugs to the package provider.
  1483. _ACEOF
  1484. ac_status=$?
  1485. fi
  1486. if test "$ac_init_help" = "recursive"; then
  1487. # If there are subdirs, report their specific --help.
  1488. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1489. test -d "$ac_dir" ||
  1490. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1491. continue
  1492. ac_builddir=.
  1493. case "$ac_dir" in
  1494. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1495. *)
  1496. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1497. # A ".." for each directory in $ac_dir_suffix.
  1498. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1499. case $ac_top_builddir_sub in
  1500. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1501. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1502. esac ;;
  1503. esac
  1504. ac_abs_top_builddir=$ac_pwd
  1505. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1506. # for backward compatibility:
  1507. ac_top_builddir=$ac_top_build_prefix
  1508. case $srcdir in
  1509. .) # We are building in place.
  1510. ac_srcdir=.
  1511. ac_top_srcdir=$ac_top_builddir_sub
  1512. ac_abs_top_srcdir=$ac_pwd ;;
  1513. [\\/]* | ?:[\\/]* ) # Absolute name.
  1514. ac_srcdir=$srcdir$ac_dir_suffix;
  1515. ac_top_srcdir=$srcdir
  1516. ac_abs_top_srcdir=$srcdir ;;
  1517. *) # Relative name.
  1518. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1519. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1520. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1521. esac
  1522. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1523. cd "$ac_dir" || { ac_status=$?; continue; }
  1524. # Check for guested configure.
  1525. if test -f "$ac_srcdir/configure.gnu"; then
  1526. echo &&
  1527. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1528. elif test -f "$ac_srcdir/configure"; then
  1529. echo &&
  1530. $SHELL "$ac_srcdir/configure" --help=recursive
  1531. else
  1532. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1533. fi || ac_status=$?
  1534. cd "$ac_pwd" || { ac_status=$?; break; }
  1535. done
  1536. fi
  1537. test -n "$ac_init_help" && exit $ac_status
  1538. if $ac_init_version; then
  1539. cat <<\_ACEOF
  1540. configure
  1541. generated by GNU Autoconf 2.69
  1542. Copyright (C) 2012 Free Software Foundation, Inc.
  1543. This configure script is free software; the Free Software Foundation
  1544. gives unlimited permission to copy, distribute and modify it.
  1545. _ACEOF
  1546. exit
  1547. fi
  1548. ## ------------------------ ##
  1549. ## Autoconf initialization. ##
  1550. ## ------------------------ ##
  1551. # ac_fn_c_try_compile LINENO
  1552. # --------------------------
  1553. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1554. ac_fn_c_try_compile ()
  1555. {
  1556. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1557. rm -f conftest.$ac_objext
  1558. if { { ac_try="$ac_compile"
  1559. case "(($ac_try" in
  1560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1561. *) ac_try_echo=$ac_try;;
  1562. esac
  1563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1564. $as_echo "$ac_try_echo"; } >&5
  1565. (eval "$ac_compile") 2>conftest.err
  1566. ac_status=$?
  1567. if test -s conftest.err; then
  1568. grep -v '^ *+' conftest.err >conftest.er1
  1569. cat conftest.er1 >&5
  1570. mv -f conftest.er1 conftest.err
  1571. fi
  1572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; } && {
  1574. test -z "$ac_c_werror_flag" ||
  1575. test ! -s conftest.err
  1576. } && test -s conftest.$ac_objext; then :
  1577. ac_retval=0
  1578. else
  1579. $as_echo "$as_me: failed program was:" >&5
  1580. sed 's/^/| /' conftest.$ac_ext >&5
  1581. ac_retval=1
  1582. fi
  1583. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1584. as_fn_set_status $ac_retval
  1585. } # ac_fn_c_try_compile
  1586. # ac_fn_c_try_link LINENO
  1587. # -----------------------
  1588. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1589. ac_fn_c_try_link ()
  1590. {
  1591. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1592. rm -f conftest.$ac_objext conftest$ac_exeext
  1593. if { { ac_try="$ac_link"
  1594. case "(($ac_try" in
  1595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1596. *) ac_try_echo=$ac_try;;
  1597. esac
  1598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1599. $as_echo "$ac_try_echo"; } >&5
  1600. (eval "$ac_link") 2>conftest.err
  1601. ac_status=$?
  1602. if test -s conftest.err; then
  1603. grep -v '^ *+' conftest.err >conftest.er1
  1604. cat conftest.er1 >&5
  1605. mv -f conftest.er1 conftest.err
  1606. fi
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; } && {
  1609. test -z "$ac_c_werror_flag" ||
  1610. test ! -s conftest.err
  1611. } && test -s conftest$ac_exeext && {
  1612. test "$cross_compiling" = yes ||
  1613. test -x conftest$ac_exeext
  1614. }; then :
  1615. ac_retval=0
  1616. else
  1617. $as_echo "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. ac_retval=1
  1620. fi
  1621. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1622. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1623. # interfere with the next link command; also delete a directory that is
  1624. # left behind by Apple's compiler. We do this before executing the actions.
  1625. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1626. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1627. as_fn_set_status $ac_retval
  1628. } # ac_fn_c_try_link
  1629. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1630. # -------------------------------------------------------
  1631. # Tests whether HEADER exists and can be compiled using the include files in
  1632. # INCLUDES, setting the cache variable VAR accordingly.
  1633. ac_fn_c_check_header_compile ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1637. $as_echo_n "checking for $2... " >&6; }
  1638. if eval \${$3+:} false; then :
  1639. $as_echo_n "(cached) " >&6
  1640. else
  1641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1642. /* end confdefs.h. */
  1643. $4
  1644. #include <$2>
  1645. _ACEOF
  1646. if ac_fn_c_try_compile "$LINENO"; then :
  1647. eval "$3=yes"
  1648. else
  1649. eval "$3=no"
  1650. fi
  1651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1652. fi
  1653. eval ac_res=\$$3
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1655. $as_echo "$ac_res" >&6; }
  1656. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1657. } # ac_fn_c_check_header_compile
  1658. # ac_fn_c_try_cpp LINENO
  1659. # ----------------------
  1660. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1661. ac_fn_c_try_cpp ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1665. case "(($ac_try" in
  1666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1667. *) ac_try_echo=$ac_try;;
  1668. esac
  1669. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1670. $as_echo "$ac_try_echo"; } >&5
  1671. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1672. ac_status=$?
  1673. if test -s conftest.err; then
  1674. grep -v '^ *+' conftest.err >conftest.er1
  1675. cat conftest.er1 >&5
  1676. mv -f conftest.er1 conftest.err
  1677. fi
  1678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1679. test $ac_status = 0; } > conftest.i && {
  1680. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1681. test ! -s conftest.err
  1682. }; then :
  1683. ac_retval=0
  1684. else
  1685. $as_echo "$as_me: failed program was:" >&5
  1686. sed 's/^/| /' conftest.$ac_ext >&5
  1687. ac_retval=1
  1688. fi
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. as_fn_set_status $ac_retval
  1691. } # ac_fn_c_try_cpp
  1692. # ac_fn_c_try_run LINENO
  1693. # ----------------------
  1694. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1695. # that executables *can* be run.
  1696. ac_fn_c_try_run ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. if { { ac_try="$ac_link"
  1700. case "(($ac_try" in
  1701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1702. *) ac_try_echo=$ac_try;;
  1703. esac
  1704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1705. $as_echo "$ac_try_echo"; } >&5
  1706. (eval "$ac_link") 2>&5
  1707. ac_status=$?
  1708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1709. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1710. { { case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_try") 2>&5
  1717. ac_status=$?
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; }; }; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: program exited with status $ac_status" >&5
  1723. $as_echo "$as_me: failed program was:" >&5
  1724. sed 's/^/| /' conftest.$ac_ext >&5
  1725. ac_retval=$ac_status
  1726. fi
  1727. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. as_fn_set_status $ac_retval
  1730. } # ac_fn_c_try_run
  1731. # ac_fn_c_check_func LINENO FUNC VAR
  1732. # ----------------------------------
  1733. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1734. ac_fn_c_check_func ()
  1735. {
  1736. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1738. $as_echo_n "checking for $2... " >&6; }
  1739. if eval \${$3+:} false; then :
  1740. $as_echo_n "(cached) " >&6
  1741. else
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. /* end confdefs.h. */
  1744. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1745. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1746. #define $2 innocuous_$2
  1747. /* System header to define __stub macros and hopefully few prototypes,
  1748. which can conflict with char $2 (); below.
  1749. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1750. <limits.h> exists even on freestanding compilers. */
  1751. #ifdef __STDC__
  1752. # include <limits.h>
  1753. #else
  1754. # include <assert.h>
  1755. #endif
  1756. #undef $2
  1757. /* Override any GCC internal prototype to avoid an error.
  1758. Use char because int might match the return type of a GCC
  1759. builtin and then its argument prototype would still apply. */
  1760. #ifdef __cplusplus
  1761. extern "C"
  1762. #endif
  1763. char $2 ();
  1764. /* The GNU C library defines this for functions which it implements
  1765. to always fail with ENOSYS. Some functions are actually named
  1766. something starting with __ and the normal name is an alias. */
  1767. #if defined __stub_$2 || defined __stub___$2
  1768. choke me
  1769. #endif
  1770. int
  1771. main ()
  1772. {
  1773. return $2 ();
  1774. ;
  1775. return 0;
  1776. }
  1777. _ACEOF
  1778. if ac_fn_c_try_link "$LINENO"; then :
  1779. eval "$3=yes"
  1780. else
  1781. eval "$3=no"
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext \
  1784. conftest$ac_exeext conftest.$ac_ext
  1785. fi
  1786. eval ac_res=\$$3
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1788. $as_echo "$ac_res" >&6; }
  1789. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1790. } # ac_fn_c_check_func
  1791. # ac_fn_cxx_try_compile LINENO
  1792. # ----------------------------
  1793. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1794. ac_fn_cxx_try_compile ()
  1795. {
  1796. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1797. rm -f conftest.$ac_objext
  1798. if { { ac_try="$ac_compile"
  1799. case "(($ac_try" in
  1800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1801. *) ac_try_echo=$ac_try;;
  1802. esac
  1803. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1804. $as_echo "$ac_try_echo"; } >&5
  1805. (eval "$ac_compile") 2>conftest.err
  1806. ac_status=$?
  1807. if test -s conftest.err; then
  1808. grep -v '^ *+' conftest.err >conftest.er1
  1809. cat conftest.er1 >&5
  1810. mv -f conftest.er1 conftest.err
  1811. fi
  1812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1813. test $ac_status = 0; } && {
  1814. test -z "$ac_cxx_werror_flag" ||
  1815. test ! -s conftest.err
  1816. } && test -s conftest.$ac_objext; then :
  1817. ac_retval=0
  1818. else
  1819. $as_echo "$as_me: failed program was:" >&5
  1820. sed 's/^/| /' conftest.$ac_ext >&5
  1821. ac_retval=1
  1822. fi
  1823. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1824. as_fn_set_status $ac_retval
  1825. } # ac_fn_cxx_try_compile
  1826. # ac_fn_cxx_try_cpp LINENO
  1827. # ------------------------
  1828. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1829. ac_fn_cxx_try_cpp ()
  1830. {
  1831. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1832. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1833. case "(($ac_try" in
  1834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1835. *) ac_try_echo=$ac_try;;
  1836. esac
  1837. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1838. $as_echo "$ac_try_echo"; } >&5
  1839. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1840. ac_status=$?
  1841. if test -s conftest.err; then
  1842. grep -v '^ *+' conftest.err >conftest.er1
  1843. cat conftest.er1 >&5
  1844. mv -f conftest.er1 conftest.err
  1845. fi
  1846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1847. test $ac_status = 0; } > conftest.i && {
  1848. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1849. test ! -s conftest.err
  1850. }; then :
  1851. ac_retval=0
  1852. else
  1853. $as_echo "$as_me: failed program was:" >&5
  1854. sed 's/^/| /' conftest.$ac_ext >&5
  1855. ac_retval=1
  1856. fi
  1857. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1858. as_fn_set_status $ac_retval
  1859. } # ac_fn_cxx_try_cpp
  1860. # ac_fn_cxx_try_link LINENO
  1861. # -------------------------
  1862. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1863. ac_fn_cxx_try_link ()
  1864. {
  1865. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1866. rm -f conftest.$ac_objext conftest$ac_exeext
  1867. if { { ac_try="$ac_link"
  1868. case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1873. $as_echo "$ac_try_echo"; } >&5
  1874. (eval "$ac_link") 2>conftest.err
  1875. ac_status=$?
  1876. if test -s conftest.err; then
  1877. grep -v '^ *+' conftest.err >conftest.er1
  1878. cat conftest.er1 >&5
  1879. mv -f conftest.er1 conftest.err
  1880. fi
  1881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1882. test $ac_status = 0; } && {
  1883. test -z "$ac_cxx_werror_flag" ||
  1884. test ! -s conftest.err
  1885. } && test -s conftest$ac_exeext && {
  1886. test "$cross_compiling" = yes ||
  1887. test -x conftest$ac_exeext
  1888. }; then :
  1889. ac_retval=0
  1890. else
  1891. $as_echo "$as_me: failed program was:" >&5
  1892. sed 's/^/| /' conftest.$ac_ext >&5
  1893. ac_retval=1
  1894. fi
  1895. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1896. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1897. # interfere with the next link command; also delete a directory that is
  1898. # left behind by Apple's compiler. We do this before executing the actions.
  1899. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1900. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1901. as_fn_set_status $ac_retval
  1902. } # ac_fn_cxx_try_link
  1903. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1904. # -------------------------------------------------------
  1905. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1906. # the include files in INCLUDES and setting the cache variable VAR
  1907. # accordingly.
  1908. ac_fn_c_check_header_mongrel ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. if eval \${$3+:} false; then :
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1913. $as_echo_n "checking for $2... " >&6; }
  1914. if eval \${$3+:} false; then :
  1915. $as_echo_n "(cached) " >&6
  1916. fi
  1917. eval ac_res=\$$3
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1919. $as_echo "$ac_res" >&6; }
  1920. else
  1921. # Is the header compilable?
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1923. $as_echo_n "checking $2 usability... " >&6; }
  1924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1925. /* end confdefs.h. */
  1926. $4
  1927. #include <$2>
  1928. _ACEOF
  1929. if ac_fn_c_try_compile "$LINENO"; then :
  1930. ac_header_compiler=yes
  1931. else
  1932. ac_header_compiler=no
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1936. $as_echo "$ac_header_compiler" >&6; }
  1937. # Is the header present?
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1939. $as_echo_n "checking $2 presence... " >&6; }
  1940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1941. /* end confdefs.h. */
  1942. #include <$2>
  1943. _ACEOF
  1944. if ac_fn_c_try_cpp "$LINENO"; then :
  1945. ac_header_preproc=yes
  1946. else
  1947. ac_header_preproc=no
  1948. fi
  1949. rm -f conftest.err conftest.i conftest.$ac_ext
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1951. $as_echo "$ac_header_preproc" >&6; }
  1952. # So? What about this header?
  1953. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1954. yes:no: )
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1956. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1958. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1959. ;;
  1960. no:yes:* )
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1962. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1964. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1966. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1968. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1970. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1971. ;;
  1972. esac
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1974. $as_echo_n "checking for $2... " >&6; }
  1975. if eval \${$3+:} false; then :
  1976. $as_echo_n "(cached) " >&6
  1977. else
  1978. eval "$3=\$ac_header_compiler"
  1979. fi
  1980. eval ac_res=\$$3
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1982. $as_echo "$ac_res" >&6; }
  1983. fi
  1984. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1985. } # ac_fn_c_check_header_mongrel
  1986. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1987. # -------------------------------------------
  1988. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1989. # variable VAR accordingly.
  1990. ac_fn_c_check_type ()
  1991. {
  1992. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1994. $as_echo_n "checking for $2... " >&6; }
  1995. if eval \${$3+:} false; then :
  1996. $as_echo_n "(cached) " >&6
  1997. else
  1998. eval "$3=no"
  1999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2000. /* end confdefs.h. */
  2001. $4
  2002. int
  2003. main ()
  2004. {
  2005. if (sizeof ($2))
  2006. return 0;
  2007. ;
  2008. return 0;
  2009. }
  2010. _ACEOF
  2011. if ac_fn_c_try_compile "$LINENO"; then :
  2012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2013. /* end confdefs.h. */
  2014. $4
  2015. int
  2016. main ()
  2017. {
  2018. if (sizeof (($2)))
  2019. return 0;
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. if ac_fn_c_try_compile "$LINENO"; then :
  2025. else
  2026. eval "$3=yes"
  2027. fi
  2028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2029. fi
  2030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2031. fi
  2032. eval ac_res=\$$3
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2034. $as_echo "$ac_res" >&6; }
  2035. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2036. } # ac_fn_c_check_type
  2037. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2038. # ----------------------------------------------------
  2039. # Tries to find if the field MEMBER exists in type AGGR, after including
  2040. # INCLUDES, setting cache variable VAR accordingly.
  2041. ac_fn_c_check_member ()
  2042. {
  2043. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2045. $as_echo_n "checking for $2.$3... " >&6; }
  2046. if eval \${$4+:} false; then :
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $5
  2052. int
  2053. main ()
  2054. {
  2055. static $2 ac_aggr;
  2056. if (ac_aggr.$3)
  2057. return 0;
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_c_try_compile "$LINENO"; then :
  2063. eval "$4=yes"
  2064. else
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $5
  2068. int
  2069. main ()
  2070. {
  2071. static $2 ac_aggr;
  2072. if (sizeof ac_aggr.$3)
  2073. return 0;
  2074. ;
  2075. return 0;
  2076. }
  2077. _ACEOF
  2078. if ac_fn_c_try_compile "$LINENO"; then :
  2079. eval "$4=yes"
  2080. else
  2081. eval "$4=no"
  2082. fi
  2083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. fi
  2087. eval ac_res=\$$4
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2089. $as_echo "$ac_res" >&6; }
  2090. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2091. } # ac_fn_c_check_member
  2092. cat >config.log <<_ACEOF
  2093. This file contains any messages produced by compilers while
  2094. running configure, to aid debugging if configure makes a mistake.
  2095. It was created by $as_me, which was
  2096. generated by GNU Autoconf 2.69. Invocation command line was
  2097. $ $0 $@
  2098. _ACEOF
  2099. exec 5>>config.log
  2100. {
  2101. cat <<_ASUNAME
  2102. ## --------- ##
  2103. ## Platform. ##
  2104. ## --------- ##
  2105. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2106. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2107. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2108. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2109. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2110. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2111. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2112. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2113. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2114. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2115. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2116. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2117. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2118. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2119. _ASUNAME
  2120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2121. for as_dir in $PATH
  2122. do
  2123. IFS=$as_save_IFS
  2124. test -z "$as_dir" && as_dir=.
  2125. $as_echo "PATH: $as_dir"
  2126. done
  2127. IFS=$as_save_IFS
  2128. } >&5
  2129. cat >&5 <<_ACEOF
  2130. ## ----------- ##
  2131. ## Core tests. ##
  2132. ## ----------- ##
  2133. _ACEOF
  2134. # Keep a trace of the command line.
  2135. # Strip out --no-create and --no-recursion so they do not pile up.
  2136. # Strip out --silent because we don't want to record it for future runs.
  2137. # Also quote any args containing shell meta-characters.
  2138. # Make two passes to allow for proper duplicate-argument suppression.
  2139. ac_configure_args=
  2140. ac_configure_args0=
  2141. ac_configure_args1=
  2142. ac_must_keep_next=false
  2143. for ac_pass in 1 2
  2144. do
  2145. for ac_arg
  2146. do
  2147. case $ac_arg in
  2148. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2150. | -silent | --silent | --silen | --sile | --sil)
  2151. continue ;;
  2152. *\'*)
  2153. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2154. esac
  2155. case $ac_pass in
  2156. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2157. 2)
  2158. as_fn_append ac_configure_args1 " '$ac_arg'"
  2159. if test $ac_must_keep_next = true; then
  2160. ac_must_keep_next=false # Got value, back to normal.
  2161. else
  2162. case $ac_arg in
  2163. *=* | --config-cache | -C | -disable-* | --disable-* \
  2164. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2165. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2166. | -with-* | --with-* | -without-* | --without-* | --x)
  2167. case "$ac_configure_args0 " in
  2168. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2169. esac
  2170. ;;
  2171. -* ) ac_must_keep_next=true ;;
  2172. esac
  2173. fi
  2174. as_fn_append ac_configure_args " '$ac_arg'"
  2175. ;;
  2176. esac
  2177. done
  2178. done
  2179. { ac_configure_args0=; unset ac_configure_args0;}
  2180. { ac_configure_args1=; unset ac_configure_args1;}
  2181. # When interrupted or exit'd, cleanup temporary files, and complete
  2182. # config.log. We remove comments because anyway the quotes in there
  2183. # would cause problems or look ugly.
  2184. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2185. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2186. trap 'exit_status=$?
  2187. # Save into config.log some information that might help in debugging.
  2188. {
  2189. echo
  2190. $as_echo "## ---------------- ##
  2191. ## Cache variables. ##
  2192. ## ---------------- ##"
  2193. echo
  2194. # The following way of writing the cache mishandles newlines in values,
  2195. (
  2196. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2197. eval ac_val=\$$ac_var
  2198. case $ac_val in #(
  2199. *${as_nl}*)
  2200. case $ac_var in #(
  2201. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2202. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2203. esac
  2204. case $ac_var in #(
  2205. _ | IFS | as_nl) ;; #(
  2206. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2207. *) { eval $ac_var=; unset $ac_var;} ;;
  2208. esac ;;
  2209. esac
  2210. done
  2211. (set) 2>&1 |
  2212. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2213. *${as_nl}ac_space=\ *)
  2214. sed -n \
  2215. "s/'\''/'\''\\\\'\'''\''/g;
  2216. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2217. ;; #(
  2218. *)
  2219. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2220. ;;
  2221. esac |
  2222. sort
  2223. )
  2224. echo
  2225. $as_echo "## ----------------- ##
  2226. ## Output variables. ##
  2227. ## ----------------- ##"
  2228. echo
  2229. for ac_var in $ac_subst_vars
  2230. do
  2231. eval ac_val=\$$ac_var
  2232. case $ac_val in
  2233. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2234. esac
  2235. $as_echo "$ac_var='\''$ac_val'\''"
  2236. done | sort
  2237. echo
  2238. if test -n "$ac_subst_files"; then
  2239. $as_echo "## ------------------- ##
  2240. ## File substitutions. ##
  2241. ## ------------------- ##"
  2242. echo
  2243. for ac_var in $ac_subst_files
  2244. do
  2245. eval ac_val=\$$ac_var
  2246. case $ac_val in
  2247. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2248. esac
  2249. $as_echo "$ac_var='\''$ac_val'\''"
  2250. done | sort
  2251. echo
  2252. fi
  2253. if test -s confdefs.h; then
  2254. $as_echo "## ----------- ##
  2255. ## confdefs.h. ##
  2256. ## ----------- ##"
  2257. echo
  2258. cat confdefs.h
  2259. echo
  2260. fi
  2261. test "$ac_signal" != 0 &&
  2262. $as_echo "$as_me: caught signal $ac_signal"
  2263. $as_echo "$as_me: exit $exit_status"
  2264. } >&5
  2265. rm -f core *.core core.conftest.* &&
  2266. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2267. exit $exit_status
  2268. ' 0
  2269. for ac_signal in 1 2 13 15; do
  2270. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2271. done
  2272. ac_signal=0
  2273. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2274. rm -f -r conftest* confdefs.h
  2275. $as_echo "/* confdefs.h */" > confdefs.h
  2276. # Predefined preprocessor variables.
  2277. cat >>confdefs.h <<_ACEOF
  2278. #define PACKAGE_NAME "$PACKAGE_NAME"
  2279. _ACEOF
  2280. cat >>confdefs.h <<_ACEOF
  2281. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2282. _ACEOF
  2283. cat >>confdefs.h <<_ACEOF
  2284. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2285. _ACEOF
  2286. cat >>confdefs.h <<_ACEOF
  2287. #define PACKAGE_STRING "$PACKAGE_STRING"
  2288. _ACEOF
  2289. cat >>confdefs.h <<_ACEOF
  2290. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2291. _ACEOF
  2292. cat >>confdefs.h <<_ACEOF
  2293. #define PACKAGE_URL "$PACKAGE_URL"
  2294. _ACEOF
  2295. # Let the site file select an alternate cache file if it wants to.
  2296. # Prefer an explicitly selected file to automatically selected ones.
  2297. ac_site_file1=NONE
  2298. ac_site_file2=NONE
  2299. if test -n "$CONFIG_SITE"; then
  2300. # We do not want a PATH search for config.site.
  2301. case $CONFIG_SITE in #((
  2302. -*) ac_site_file1=./$CONFIG_SITE;;
  2303. */*) ac_site_file1=$CONFIG_SITE;;
  2304. *) ac_site_file1=./$CONFIG_SITE;;
  2305. esac
  2306. elif test "x$prefix" != xNONE; then
  2307. ac_site_file1=$prefix/share/config.site
  2308. ac_site_file2=$prefix/etc/config.site
  2309. else
  2310. ac_site_file1=$ac_default_prefix/share/config.site
  2311. ac_site_file2=$ac_default_prefix/etc/config.site
  2312. fi
  2313. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2314. do
  2315. test "x$ac_site_file" = xNONE && continue
  2316. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2318. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2319. sed 's/^/| /' "$ac_site_file" >&5
  2320. . "$ac_site_file" \
  2321. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2323. as_fn_error $? "failed to load site script $ac_site_file
  2324. See \`config.log' for more details" "$LINENO" 5; }
  2325. fi
  2326. done
  2327. if test -r "$cache_file"; then
  2328. # Some versions of bash will fail to source /dev/null (special files
  2329. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2330. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2332. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2333. case $cache_file in
  2334. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2335. *) . "./$cache_file";;
  2336. esac
  2337. fi
  2338. else
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2340. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2341. >$cache_file
  2342. fi
  2343. # Check that the precious variables saved in the cache have kept the same
  2344. # value.
  2345. ac_cache_corrupted=false
  2346. for ac_var in $ac_precious_vars; do
  2347. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2348. eval ac_new_set=\$ac_env_${ac_var}_set
  2349. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2350. eval ac_new_val=\$ac_env_${ac_var}_value
  2351. case $ac_old_set,$ac_new_set in
  2352. set,)
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2354. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2355. ac_cache_corrupted=: ;;
  2356. ,set)
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2358. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2359. ac_cache_corrupted=: ;;
  2360. ,);;
  2361. *)
  2362. if test "x$ac_old_val" != "x$ac_new_val"; then
  2363. # differences in whitespace do not lead to failure.
  2364. ac_old_val_w=`echo x $ac_old_val`
  2365. ac_new_val_w=`echo x $ac_new_val`
  2366. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2368. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2369. ac_cache_corrupted=:
  2370. else
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2372. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2373. eval $ac_var=\$ac_old_val
  2374. fi
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2376. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2378. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2379. fi;;
  2380. esac
  2381. # Pass precious variables to config.status.
  2382. if test "$ac_new_set" = set; then
  2383. case $ac_new_val in
  2384. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2385. *) ac_arg=$ac_var=$ac_new_val ;;
  2386. esac
  2387. case " $ac_configure_args " in
  2388. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2389. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2390. esac
  2391. fi
  2392. done
  2393. if $ac_cache_corrupted; then
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2397. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2398. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2399. fi
  2400. ## -------------------- ##
  2401. ## Main body of script. ##
  2402. ## -------------------- ##
  2403. ac_ext=c
  2404. ac_cpp='$CPP $CPPFLAGS'
  2405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2408. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2409. ac_aux_dir=
  2410. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2411. if test -f "$ac_dir/install-sh"; then
  2412. ac_aux_dir=$ac_dir
  2413. ac_install_sh="$ac_aux_dir/install-sh -c"
  2414. break
  2415. elif test -f "$ac_dir/install.sh"; then
  2416. ac_aux_dir=$ac_dir
  2417. ac_install_sh="$ac_aux_dir/install.sh -c"
  2418. break
  2419. elif test -f "$ac_dir/shtool"; then
  2420. ac_aux_dir=$ac_dir
  2421. ac_install_sh="$ac_aux_dir/shtool install -c"
  2422. break
  2423. fi
  2424. done
  2425. if test -z "$ac_aux_dir"; then
  2426. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2427. fi
  2428. # These three variables are undocumented and unsupported,
  2429. # and are intended to be withdrawn in a future Autoconf release.
  2430. # They can cause serious problems if a builder's source tree is in a directory
  2431. # whose full name contains unusual characters.
  2432. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2433. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2434. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2435. orig_CFLAGS="$CFLAGS"
  2436. #
  2437. # Making releases:
  2438. # Edit include/SDL_version.h and change the version, then:
  2439. # SDL_MICRO_VERSION += 1;
  2440. # SDL_INTERFACE_AGE += 1;
  2441. # SDL_BINARY_AGE += 1;
  2442. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2443. # if backwards compatibility has been broken,
  2444. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2445. #
  2446. SDL_MAJOR_VERSION=2
  2447. SDL_MINOR_VERSION=0
  2448. SDL_MICRO_VERSION=3
  2449. SDL_INTERFACE_AGE=1
  2450. SDL_BINARY_AGE=3
  2451. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2452. # libtool versioning
  2453. case `pwd` in
  2454. *\ * | *\ *)
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2456. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2457. esac
  2458. macro_version='2.4.2'
  2459. macro_revision='1.3337'
  2460. ltmain="$ac_aux_dir/ltmain.sh"
  2461. # Make sure we can run config.sub.
  2462. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2463. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2465. $as_echo_n "checking build system type... " >&6; }
  2466. if ${ac_cv_build+:} false; then :
  2467. $as_echo_n "(cached) " >&6
  2468. else
  2469. ac_build_alias=$build_alias
  2470. test "x$ac_build_alias" = x &&
  2471. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2472. test "x$ac_build_alias" = x &&
  2473. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2474. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2475. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2476. fi
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2478. $as_echo "$ac_cv_build" >&6; }
  2479. case $ac_cv_build in
  2480. *-*-*) ;;
  2481. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2482. esac
  2483. build=$ac_cv_build
  2484. ac_save_IFS=$IFS; IFS='-'
  2485. set x $ac_cv_build
  2486. shift
  2487. build_cpu=$1
  2488. build_vendor=$2
  2489. shift; shift
  2490. # Remember, the first character of IFS is used to create $*,
  2491. # except with old shells:
  2492. build_os=$*
  2493. IFS=$ac_save_IFS
  2494. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2496. $as_echo_n "checking host system type... " >&6; }
  2497. if ${ac_cv_host+:} false; then :
  2498. $as_echo_n "(cached) " >&6
  2499. else
  2500. if test "x$host_alias" = x; then
  2501. ac_cv_host=$ac_cv_build
  2502. else
  2503. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2504. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2505. fi
  2506. fi
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2508. $as_echo "$ac_cv_host" >&6; }
  2509. case $ac_cv_host in
  2510. *-*-*) ;;
  2511. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2512. esac
  2513. host=$ac_cv_host
  2514. ac_save_IFS=$IFS; IFS='-'
  2515. set x $ac_cv_host
  2516. shift
  2517. host_cpu=$1
  2518. host_vendor=$2
  2519. shift; shift
  2520. # Remember, the first character of IFS is used to create $*,
  2521. # except with old shells:
  2522. host_os=$*
  2523. IFS=$ac_save_IFS
  2524. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2525. # Backslashify metacharacters that are still active within
  2526. # double-quoted strings.
  2527. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2528. # Same as above, but do not quote variable references.
  2529. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2530. # Sed substitution to delay expansion of an escaped shell variable in a
  2531. # double_quote_subst'ed string.
  2532. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2533. # Sed substitution to delay expansion of an escaped single quote.
  2534. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2535. # Sed substitution to avoid accidental globbing in evaled expressions
  2536. no_glob_subst='s/\*/\\\*/g'
  2537. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2538. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2539. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2541. $as_echo_n "checking how to print strings... " >&6; }
  2542. # Test print first, because it will be a builtin if present.
  2543. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2544. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2545. ECHO='print -r --'
  2546. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2547. ECHO='printf %s\n'
  2548. else
  2549. # Use this function as a fallback that always works.
  2550. func_fallback_echo ()
  2551. {
  2552. eval 'cat <<_LTECHO_EOF
  2553. $1
  2554. _LTECHO_EOF'
  2555. }
  2556. ECHO='func_fallback_echo'
  2557. fi
  2558. # func_echo_all arg...
  2559. # Invoke $ECHO with all args, space-separated.
  2560. func_echo_all ()
  2561. {
  2562. $ECHO ""
  2563. }
  2564. case "$ECHO" in
  2565. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2566. $as_echo "printf" >&6; } ;;
  2567. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2568. $as_echo "print -r" >&6; } ;;
  2569. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2570. $as_echo "cat" >&6; } ;;
  2571. esac
  2572. ac_ext=c
  2573. ac_cpp='$CPP $CPPFLAGS'
  2574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2577. if test -n "$ac_tool_prefix"; then
  2578. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2579. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2581. $as_echo_n "checking for $ac_word... " >&6; }
  2582. if ${ac_cv_prog_CC+:} false; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. if test -n "$CC"; then
  2586. ac_cv_prog_CC="$CC" # Let the user override the test.
  2587. else
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. test -z "$as_dir" && as_dir=.
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2595. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2597. break 2
  2598. fi
  2599. done
  2600. done
  2601. IFS=$as_save_IFS
  2602. fi
  2603. fi
  2604. CC=$ac_cv_prog_CC
  2605. if test -n "$CC"; then
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2607. $as_echo "$CC" >&6; }
  2608. else
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. fi
  2612. fi
  2613. if test -z "$ac_cv_prog_CC"; then
  2614. ac_ct_CC=$CC
  2615. # Extract the first word of "gcc", so it can be a program name with args.
  2616. set dummy gcc; ac_word=$2
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$ac_ct_CC"; then
  2623. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH
  2627. do
  2628. IFS=$as_save_IFS
  2629. test -z "$as_dir" && as_dir=.
  2630. for ac_exec_ext in '' $ac_executable_extensions; do
  2631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2632. ac_cv_prog_ac_ct_CC="gcc"
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2634. break 2
  2635. fi
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. fi
  2641. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2642. if test -n "$ac_ct_CC"; then
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2644. $as_echo "$ac_ct_CC" >&6; }
  2645. else
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. fi
  2649. if test "x$ac_ct_CC" = x; then
  2650. CC=""
  2651. else
  2652. case $cross_compiling:$ac_tool_warned in
  2653. yes:)
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2656. ac_tool_warned=yes ;;
  2657. esac
  2658. CC=$ac_ct_CC
  2659. fi
  2660. else
  2661. CC="$ac_cv_prog_CC"
  2662. fi
  2663. if test -z "$CC"; then
  2664. if test -n "$ac_tool_prefix"; then
  2665. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2666. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2668. $as_echo_n "checking for $ac_word... " >&6; }
  2669. if ${ac_cv_prog_CC+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test -n "$CC"; then
  2673. ac_cv_prog_CC="$CC" # Let the user override the test.
  2674. else
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2682. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2684. break 2
  2685. fi
  2686. done
  2687. done
  2688. IFS=$as_save_IFS
  2689. fi
  2690. fi
  2691. CC=$ac_cv_prog_CC
  2692. if test -n "$CC"; then
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2694. $as_echo "$CC" >&6; }
  2695. else
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. $as_echo "no" >&6; }
  2698. fi
  2699. fi
  2700. fi
  2701. if test -z "$CC"; then
  2702. # Extract the first word of "cc", so it can be a program name with args.
  2703. set dummy cc; ac_word=$2
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2705. $as_echo_n "checking for $ac_word... " >&6; }
  2706. if ${ac_cv_prog_CC+:} false; then :
  2707. $as_echo_n "(cached) " >&6
  2708. else
  2709. if test -n "$CC"; then
  2710. ac_cv_prog_CC="$CC" # Let the user override the test.
  2711. else
  2712. ac_prog_rejected=no
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2720. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2721. ac_prog_rejected=yes
  2722. continue
  2723. fi
  2724. ac_cv_prog_CC="cc"
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. if test $ac_prog_rejected = yes; then
  2732. # We found a bogon in the path, so make sure we never use it.
  2733. set dummy $ac_cv_prog_CC
  2734. shift
  2735. if test $# != 0; then
  2736. # We chose a different compiler from the bogus one.
  2737. # However, it has the same basename, so the bogon will be chosen
  2738. # first if we set CC to just the basename; use the full file name.
  2739. shift
  2740. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2741. fi
  2742. fi
  2743. fi
  2744. fi
  2745. CC=$ac_cv_prog_CC
  2746. if test -n "$CC"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2748. $as_echo "$CC" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. fi
  2754. if test -z "$CC"; then
  2755. if test -n "$ac_tool_prefix"; then
  2756. for ac_prog in cl.exe
  2757. do
  2758. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2759. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2761. $as_echo_n "checking for $ac_word... " >&6; }
  2762. if ${ac_cv_prog_CC+:} false; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. if test -n "$CC"; then
  2766. ac_cv_prog_CC="$CC" # Let the user override the test.
  2767. else
  2768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2769. for as_dir in $PATH
  2770. do
  2771. IFS=$as_save_IFS
  2772. test -z "$as_dir" && as_dir=.
  2773. for ac_exec_ext in '' $ac_executable_extensions; do
  2774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2775. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2777. break 2
  2778. fi
  2779. done
  2780. done
  2781. IFS=$as_save_IFS
  2782. fi
  2783. fi
  2784. CC=$ac_cv_prog_CC
  2785. if test -n "$CC"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2787. $as_echo "$CC" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. test -n "$CC" && break
  2793. done
  2794. fi
  2795. if test -z "$CC"; then
  2796. ac_ct_CC=$CC
  2797. for ac_prog in cl.exe
  2798. do
  2799. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2800. set dummy $ac_prog; ac_word=$2
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2802. $as_echo_n "checking for $ac_word... " >&6; }
  2803. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if test -n "$ac_ct_CC"; then
  2807. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2808. else
  2809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2810. for as_dir in $PATH
  2811. do
  2812. IFS=$as_save_IFS
  2813. test -z "$as_dir" && as_dir=.
  2814. for ac_exec_ext in '' $ac_executable_extensions; do
  2815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2816. ac_cv_prog_ac_ct_CC="$ac_prog"
  2817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2818. break 2
  2819. fi
  2820. done
  2821. done
  2822. IFS=$as_save_IFS
  2823. fi
  2824. fi
  2825. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2826. if test -n "$ac_ct_CC"; then
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2828. $as_echo "$ac_ct_CC" >&6; }
  2829. else
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2831. $as_echo "no" >&6; }
  2832. fi
  2833. test -n "$ac_ct_CC" && break
  2834. done
  2835. if test "x$ac_ct_CC" = x; then
  2836. CC=""
  2837. else
  2838. case $cross_compiling:$ac_tool_warned in
  2839. yes:)
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2842. ac_tool_warned=yes ;;
  2843. esac
  2844. CC=$ac_ct_CC
  2845. fi
  2846. fi
  2847. fi
  2848. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2850. as_fn_error $? "no acceptable C compiler found in \$PATH
  2851. See \`config.log' for more details" "$LINENO" 5; }
  2852. # Provide some information about the compiler.
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2854. set X $ac_compile
  2855. ac_compiler=$2
  2856. for ac_option in --version -v -V -qversion; do
  2857. { { ac_try="$ac_compiler $ac_option >&5"
  2858. case "(($ac_try" in
  2859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2860. *) ac_try_echo=$ac_try;;
  2861. esac
  2862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2863. $as_echo "$ac_try_echo"; } >&5
  2864. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2865. ac_status=$?
  2866. if test -s conftest.err; then
  2867. sed '10a\
  2868. ... rest of stderr output deleted ...
  2869. 10q' conftest.err >conftest.er1
  2870. cat conftest.er1 >&5
  2871. fi
  2872. rm -f conftest.er1 conftest.err
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2874. test $ac_status = 0; }
  2875. done
  2876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2877. /* end confdefs.h. */
  2878. int
  2879. main ()
  2880. {
  2881. ;
  2882. return 0;
  2883. }
  2884. _ACEOF
  2885. ac_clean_files_save=$ac_clean_files
  2886. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2887. # Try to create an executable without -o first, disregard a.out.
  2888. # It will help us diagnose broken compilers, and finding out an intuition
  2889. # of exeext.
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2891. $as_echo_n "checking whether the C compiler works... " >&6; }
  2892. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2893. # The possible output files:
  2894. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2895. ac_rmfiles=
  2896. for ac_file in $ac_files
  2897. do
  2898. case $ac_file in
  2899. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2900. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2901. esac
  2902. done
  2903. rm -f $ac_rmfiles
  2904. if { { ac_try="$ac_link_default"
  2905. case "(($ac_try" in
  2906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2907. *) ac_try_echo=$ac_try;;
  2908. esac
  2909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2910. $as_echo "$ac_try_echo"; } >&5
  2911. (eval "$ac_link_default") 2>&5
  2912. ac_status=$?
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2914. test $ac_status = 0; }; then :
  2915. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2916. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2917. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2918. # so that the user can short-circuit this test for compilers unknown to
  2919. # Autoconf.
  2920. for ac_file in $ac_files ''
  2921. do
  2922. test -f "$ac_file" || continue
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2925. ;;
  2926. [ab].out )
  2927. # We found the default executable, but exeext='' is most
  2928. # certainly right.
  2929. break;;
  2930. *.* )
  2931. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2932. then :; else
  2933. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2934. fi
  2935. # We set ac_cv_exeext here because the later test for it is not
  2936. # safe: cross compilers may not add the suffix if given an `-o'
  2937. # argument, so we may need to know it at that point already.
  2938. # Even if this section looks crufty: it has the advantage of
  2939. # actually working.
  2940. break;;
  2941. * )
  2942. break;;
  2943. esac
  2944. done
  2945. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2946. else
  2947. ac_file=''
  2948. fi
  2949. if test -z "$ac_file"; then :
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2951. $as_echo "no" >&6; }
  2952. $as_echo "$as_me: failed program was:" >&5
  2953. sed 's/^/| /' conftest.$ac_ext >&5
  2954. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2955. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2956. as_fn_error 77 "C compiler cannot create executables
  2957. See \`config.log' for more details" "$LINENO" 5; }
  2958. else
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2960. $as_echo "yes" >&6; }
  2961. fi
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2963. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2965. $as_echo "$ac_file" >&6; }
  2966. ac_exeext=$ac_cv_exeext
  2967. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2968. ac_clean_files=$ac_clean_files_save
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2970. $as_echo_n "checking for suffix of executables... " >&6; }
  2971. if { { ac_try="$ac_link"
  2972. case "(($ac_try" in
  2973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2974. *) ac_try_echo=$ac_try;;
  2975. esac
  2976. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2977. $as_echo "$ac_try_echo"; } >&5
  2978. (eval "$ac_link") 2>&5
  2979. ac_status=$?
  2980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2981. test $ac_status = 0; }; then :
  2982. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2983. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2984. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2985. # `rm'.
  2986. for ac_file in conftest.exe conftest conftest.*; do
  2987. test -f "$ac_file" || continue
  2988. case $ac_file in
  2989. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2990. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2991. break;;
  2992. * ) break;;
  2993. esac
  2994. done
  2995. else
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2999. See \`config.log' for more details" "$LINENO" 5; }
  3000. fi
  3001. rm -f conftest conftest$ac_cv_exeext
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3003. $as_echo "$ac_cv_exeext" >&6; }
  3004. rm -f conftest.$ac_ext
  3005. EXEEXT=$ac_cv_exeext
  3006. ac_exeext=$EXEEXT
  3007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3008. /* end confdefs.h. */
  3009. #include <stdio.h>
  3010. int
  3011. main ()
  3012. {
  3013. FILE *f = fopen ("conftest.out", "w");
  3014. return ferror (f) || fclose (f) != 0;
  3015. ;
  3016. return 0;
  3017. }
  3018. _ACEOF
  3019. ac_clean_files="$ac_clean_files conftest.out"
  3020. # Check that the compiler produces executables we can run. If not, either
  3021. # the compiler is broken, or we cross compile.
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3023. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3024. if test "$cross_compiling" != yes; then
  3025. { { ac_try="$ac_link"
  3026. case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3031. $as_echo "$ac_try_echo"; } >&5
  3032. (eval "$ac_link") 2>&5
  3033. ac_status=$?
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3035. test $ac_status = 0; }
  3036. if { ac_try='./conftest$ac_cv_exeext'
  3037. { { case "(($ac_try" in
  3038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3039. *) ac_try_echo=$ac_try;;
  3040. esac
  3041. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3042. $as_echo "$ac_try_echo"; } >&5
  3043. (eval "$ac_try") 2>&5
  3044. ac_status=$?
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3046. test $ac_status = 0; }; }; then
  3047. cross_compiling=no
  3048. else
  3049. if test "$cross_compiling" = maybe; then
  3050. cross_compiling=yes
  3051. else
  3052. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3053. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3054. as_fn_error $? "cannot run C compiled programs.
  3055. If you meant to cross compile, use \`--host'.
  3056. See \`config.log' for more details" "$LINENO" 5; }
  3057. fi
  3058. fi
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3061. $as_echo "$cross_compiling" >&6; }
  3062. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3063. ac_clean_files=$ac_clean_files_save
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3065. $as_echo_n "checking for suffix of object files... " >&6; }
  3066. if ${ac_cv_objext+:} false; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. int
  3072. main ()
  3073. {
  3074. ;
  3075. return 0;
  3076. }
  3077. _ACEOF
  3078. rm -f conftest.o conftest.obj
  3079. if { { ac_try="$ac_compile"
  3080. case "(($ac_try" in
  3081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3082. *) ac_try_echo=$ac_try;;
  3083. esac
  3084. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3085. $as_echo "$ac_try_echo"; } >&5
  3086. (eval "$ac_compile") 2>&5
  3087. ac_status=$?
  3088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3089. test $ac_status = 0; }; then :
  3090. for ac_file in conftest.o conftest.obj conftest.*; do
  3091. test -f "$ac_file" || continue;
  3092. case $ac_file in
  3093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3094. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3095. break;;
  3096. esac
  3097. done
  3098. else
  3099. $as_echo "$as_me: failed program was:" >&5
  3100. sed 's/^/| /' conftest.$ac_ext >&5
  3101. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3103. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3104. See \`config.log' for more details" "$LINENO" 5; }
  3105. fi
  3106. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3107. fi
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3109. $as_echo "$ac_cv_objext" >&6; }
  3110. OBJEXT=$ac_cv_objext
  3111. ac_objext=$OBJEXT
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3113. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3114. if ${ac_cv_c_compiler_gnu+:} false; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3118. /* end confdefs.h. */
  3119. int
  3120. main ()
  3121. {
  3122. #ifndef __GNUC__
  3123. choke me
  3124. #endif
  3125. ;
  3126. return 0;
  3127. }
  3128. _ACEOF
  3129. if ac_fn_c_try_compile "$LINENO"; then :
  3130. ac_compiler_gnu=yes
  3131. else
  3132. ac_compiler_gnu=no
  3133. fi
  3134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3136. fi
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3138. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3139. if test $ac_compiler_gnu = yes; then
  3140. GCC=yes
  3141. else
  3142. GCC=
  3143. fi
  3144. ac_test_CFLAGS=${CFLAGS+set}
  3145. ac_save_CFLAGS=$CFLAGS
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3147. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3148. if ${ac_cv_prog_cc_g+:} false; then :
  3149. $as_echo_n "(cached) " >&6
  3150. else
  3151. ac_save_c_werror_flag=$ac_c_werror_flag
  3152. ac_c_werror_flag=yes
  3153. ac_cv_prog_cc_g=no
  3154. CFLAGS="-g"
  3155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3156. /* end confdefs.h. */
  3157. int
  3158. main ()
  3159. {
  3160. ;
  3161. return 0;
  3162. }
  3163. _ACEOF
  3164. if ac_fn_c_try_compile "$LINENO"; then :
  3165. ac_cv_prog_cc_g=yes
  3166. else
  3167. CFLAGS=""
  3168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3169. /* end confdefs.h. */
  3170. int
  3171. main ()
  3172. {
  3173. ;
  3174. return 0;
  3175. }
  3176. _ACEOF
  3177. if ac_fn_c_try_compile "$LINENO"; then :
  3178. else
  3179. ac_c_werror_flag=$ac_save_c_werror_flag
  3180. CFLAGS="-g"
  3181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3182. /* end confdefs.h. */
  3183. int
  3184. main ()
  3185. {
  3186. ;
  3187. return 0;
  3188. }
  3189. _ACEOF
  3190. if ac_fn_c_try_compile "$LINENO"; then :
  3191. ac_cv_prog_cc_g=yes
  3192. fi
  3193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3194. fi
  3195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3196. fi
  3197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3198. ac_c_werror_flag=$ac_save_c_werror_flag
  3199. fi
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3201. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3202. if test "$ac_test_CFLAGS" = set; then
  3203. CFLAGS=$ac_save_CFLAGS
  3204. elif test $ac_cv_prog_cc_g = yes; then
  3205. if test "$GCC" = yes; then
  3206. CFLAGS="-g -O2"
  3207. else
  3208. CFLAGS="-g"
  3209. fi
  3210. else
  3211. if test "$GCC" = yes; then
  3212. CFLAGS="-O2"
  3213. else
  3214. CFLAGS=
  3215. fi
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3218. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3219. if ${ac_cv_prog_cc_c89+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. ac_cv_prog_cc_c89=no
  3223. ac_save_CC=$CC
  3224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3225. /* end confdefs.h. */
  3226. #include <stdarg.h>
  3227. #include <stdio.h>
  3228. struct stat;
  3229. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3230. struct buf { int x; };
  3231. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3232. static char *e (p, i)
  3233. char **p;
  3234. int i;
  3235. {
  3236. return p[i];
  3237. }
  3238. static char *f (char * (*g) (char **, int), char **p, ...)
  3239. {
  3240. char *s;
  3241. va_list v;
  3242. va_start (v,p);
  3243. s = g (p, va_arg (v,int));
  3244. va_end (v);
  3245. return s;
  3246. }
  3247. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3248. function prototypes and stuff, but not '\xHH' hex character constants.
  3249. These don't provoke an error unfortunately, instead are silently treated
  3250. as 'x'. The following induces an error, until -std is added to get
  3251. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3252. array size at least. It's necessary to write '\x00'==0 to get something
  3253. that's true only with -std. */
  3254. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3255. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3256. inside strings and character constants. */
  3257. #define FOO(x) 'x'
  3258. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3259. int test (int i, double x);
  3260. struct s1 {int (*f) (int a);};
  3261. struct s2 {int (*f) (double a);};
  3262. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3263. int argc;
  3264. char **argv;
  3265. int
  3266. main ()
  3267. {
  3268. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3269. ;
  3270. return 0;
  3271. }
  3272. _ACEOF
  3273. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3274. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3275. do
  3276. CC="$ac_save_CC $ac_arg"
  3277. if ac_fn_c_try_compile "$LINENO"; then :
  3278. ac_cv_prog_cc_c89=$ac_arg
  3279. fi
  3280. rm -f core conftest.err conftest.$ac_objext
  3281. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3282. done
  3283. rm -f conftest.$ac_ext
  3284. CC=$ac_save_CC
  3285. fi
  3286. # AC_CACHE_VAL
  3287. case "x$ac_cv_prog_cc_c89" in
  3288. x)
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3290. $as_echo "none needed" >&6; } ;;
  3291. xno)
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3293. $as_echo "unsupported" >&6; } ;;
  3294. *)
  3295. CC="$CC $ac_cv_prog_cc_c89"
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3297. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3298. esac
  3299. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3300. fi
  3301. ac_ext=c
  3302. ac_cpp='$CPP $CPPFLAGS'
  3303. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3304. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3305. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3307. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3308. if ${ac_cv_path_SED+:} false; then :
  3309. $as_echo_n "(cached) " >&6
  3310. else
  3311. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3312. for ac_i in 1 2 3 4 5 6 7; do
  3313. ac_script="$ac_script$as_nl$ac_script"
  3314. done
  3315. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3316. { ac_script=; unset ac_script;}
  3317. if test -z "$SED"; then
  3318. ac_path_SED_found=false
  3319. # Loop through the user's path and test for each of PROGNAME-LIST
  3320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH
  3322. do
  3323. IFS=$as_save_IFS
  3324. test -z "$as_dir" && as_dir=.
  3325. for ac_prog in sed gsed; do
  3326. for ac_exec_ext in '' $ac_executable_extensions; do
  3327. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3328. as_fn_executable_p "$ac_path_SED" || continue
  3329. # Check for GNU ac_path_SED and select it if it is found.
  3330. # Check for GNU $ac_path_SED
  3331. case `"$ac_path_SED" --version 2>&1` in
  3332. *GNU*)
  3333. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3334. *)
  3335. ac_count=0
  3336. $as_echo_n 0123456789 >"conftest.in"
  3337. while :
  3338. do
  3339. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3340. mv "conftest.tmp" "conftest.in"
  3341. cp "conftest.in" "conftest.nl"
  3342. $as_echo '' >> "conftest.nl"
  3343. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3344. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3345. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3346. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3347. # Best one so far, save it but keep looking for a better one
  3348. ac_cv_path_SED="$ac_path_SED"
  3349. ac_path_SED_max=$ac_count
  3350. fi
  3351. # 10*(2^10) chars as input seems more than enough
  3352. test $ac_count -gt 10 && break
  3353. done
  3354. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3355. esac
  3356. $ac_path_SED_found && break 3
  3357. done
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. if test -z "$ac_cv_path_SED"; then
  3362. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3363. fi
  3364. else
  3365. ac_cv_path_SED=$SED
  3366. fi
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3369. $as_echo "$ac_cv_path_SED" >&6; }
  3370. SED="$ac_cv_path_SED"
  3371. rm -f conftest.sed
  3372. test -z "$SED" && SED=sed
  3373. Xsed="$SED -e 1s/^X//"
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3375. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3376. if ${ac_cv_path_GREP+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. if test -z "$GREP"; then
  3380. ac_path_GREP_found=false
  3381. # Loop through the user's path and test for each of PROGNAME-LIST
  3382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3383. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3384. do
  3385. IFS=$as_save_IFS
  3386. test -z "$as_dir" && as_dir=.
  3387. for ac_prog in grep ggrep; do
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3390. as_fn_executable_p "$ac_path_GREP" || continue
  3391. # Check for GNU ac_path_GREP and select it if it is found.
  3392. # Check for GNU $ac_path_GREP
  3393. case `"$ac_path_GREP" --version 2>&1` in
  3394. *GNU*)
  3395. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3396. *)
  3397. ac_count=0
  3398. $as_echo_n 0123456789 >"conftest.in"
  3399. while :
  3400. do
  3401. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3402. mv "conftest.tmp" "conftest.in"
  3403. cp "conftest.in" "conftest.nl"
  3404. $as_echo 'GREP' >> "conftest.nl"
  3405. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3406. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3407. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3408. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3409. # Best one so far, save it but keep looking for a better one
  3410. ac_cv_path_GREP="$ac_path_GREP"
  3411. ac_path_GREP_max=$ac_count
  3412. fi
  3413. # 10*(2^10) chars as input seems more than enough
  3414. test $ac_count -gt 10 && break
  3415. done
  3416. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3417. esac
  3418. $ac_path_GREP_found && break 3
  3419. done
  3420. done
  3421. done
  3422. IFS=$as_save_IFS
  3423. if test -z "$ac_cv_path_GREP"; then
  3424. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3425. fi
  3426. else
  3427. ac_cv_path_GREP=$GREP
  3428. fi
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3431. $as_echo "$ac_cv_path_GREP" >&6; }
  3432. GREP="$ac_cv_path_GREP"
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3434. $as_echo_n "checking for egrep... " >&6; }
  3435. if ${ac_cv_path_EGREP+:} false; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3439. then ac_cv_path_EGREP="$GREP -E"
  3440. else
  3441. if test -z "$EGREP"; then
  3442. ac_path_EGREP_found=false
  3443. # Loop through the user's path and test for each of PROGNAME-LIST
  3444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3445. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3446. do
  3447. IFS=$as_save_IFS
  3448. test -z "$as_dir" && as_dir=.
  3449. for ac_prog in egrep; do
  3450. for ac_exec_ext in '' $ac_executable_extensions; do
  3451. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3452. as_fn_executable_p "$ac_path_EGREP" || continue
  3453. # Check for GNU ac_path_EGREP and select it if it is found.
  3454. # Check for GNU $ac_path_EGREP
  3455. case `"$ac_path_EGREP" --version 2>&1` in
  3456. *GNU*)
  3457. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3458. *)
  3459. ac_count=0
  3460. $as_echo_n 0123456789 >"conftest.in"
  3461. while :
  3462. do
  3463. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3464. mv "conftest.tmp" "conftest.in"
  3465. cp "conftest.in" "conftest.nl"
  3466. $as_echo 'EGREP' >> "conftest.nl"
  3467. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3468. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3469. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3470. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3471. # Best one so far, save it but keep looking for a better one
  3472. ac_cv_path_EGREP="$ac_path_EGREP"
  3473. ac_path_EGREP_max=$ac_count
  3474. fi
  3475. # 10*(2^10) chars as input seems more than enough
  3476. test $ac_count -gt 10 && break
  3477. done
  3478. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3479. esac
  3480. $ac_path_EGREP_found && break 3
  3481. done
  3482. done
  3483. done
  3484. IFS=$as_save_IFS
  3485. if test -z "$ac_cv_path_EGREP"; then
  3486. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3487. fi
  3488. else
  3489. ac_cv_path_EGREP=$EGREP
  3490. fi
  3491. fi
  3492. fi
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3494. $as_echo "$ac_cv_path_EGREP" >&6; }
  3495. EGREP="$ac_cv_path_EGREP"
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3497. $as_echo_n "checking for fgrep... " >&6; }
  3498. if ${ac_cv_path_FGREP+:} false; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3502. then ac_cv_path_FGREP="$GREP -F"
  3503. else
  3504. if test -z "$FGREP"; then
  3505. ac_path_FGREP_found=false
  3506. # Loop through the user's path and test for each of PROGNAME-LIST
  3507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3508. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3509. do
  3510. IFS=$as_save_IFS
  3511. test -z "$as_dir" && as_dir=.
  3512. for ac_prog in fgrep; do
  3513. for ac_exec_ext in '' $ac_executable_extensions; do
  3514. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3515. as_fn_executable_p "$ac_path_FGREP" || continue
  3516. # Check for GNU ac_path_FGREP and select it if it is found.
  3517. # Check for GNU $ac_path_FGREP
  3518. case `"$ac_path_FGREP" --version 2>&1` in
  3519. *GNU*)
  3520. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3521. *)
  3522. ac_count=0
  3523. $as_echo_n 0123456789 >"conftest.in"
  3524. while :
  3525. do
  3526. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3527. mv "conftest.tmp" "conftest.in"
  3528. cp "conftest.in" "conftest.nl"
  3529. $as_echo 'FGREP' >> "conftest.nl"
  3530. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3531. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3532. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3533. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3534. # Best one so far, save it but keep looking for a better one
  3535. ac_cv_path_FGREP="$ac_path_FGREP"
  3536. ac_path_FGREP_max=$ac_count
  3537. fi
  3538. # 10*(2^10) chars as input seems more than enough
  3539. test $ac_count -gt 10 && break
  3540. done
  3541. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3542. esac
  3543. $ac_path_FGREP_found && break 3
  3544. done
  3545. done
  3546. done
  3547. IFS=$as_save_IFS
  3548. if test -z "$ac_cv_path_FGREP"; then
  3549. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3550. fi
  3551. else
  3552. ac_cv_path_FGREP=$FGREP
  3553. fi
  3554. fi
  3555. fi
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3557. $as_echo "$ac_cv_path_FGREP" >&6; }
  3558. FGREP="$ac_cv_path_FGREP"
  3559. test -z "$GREP" && GREP=grep
  3560. # Check whether --with-gnu-ld was given.
  3561. if test "${with_gnu_ld+set}" = set; then :
  3562. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3563. else
  3564. with_gnu_ld=no
  3565. fi
  3566. ac_prog=ld
  3567. if test "$GCC" = yes; then
  3568. # Check if gcc -print-prog-name=ld gives a path.
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3570. $as_echo_n "checking for ld used by $CC... " >&6; }
  3571. case $host in
  3572. *-*-mingw*)
  3573. # gcc leaves a trailing carriage return which upsets mingw
  3574. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3575. *)
  3576. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3577. esac
  3578. case $ac_prog in
  3579. # Accept absolute paths.
  3580. [\\/]* | ?:[\\/]*)
  3581. re_direlt='/[^/][^/]*/\.\./'
  3582. # Canonicalize the pathname of ld
  3583. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3584. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3585. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3586. done
  3587. test -z "$LD" && LD="$ac_prog"
  3588. ;;
  3589. "")
  3590. # If it fails, then pretend we aren't using GCC.
  3591. ac_prog=ld
  3592. ;;
  3593. *)
  3594. # If it is relative, then search for the first ld in PATH.
  3595. with_gnu_ld=unknown
  3596. ;;
  3597. esac
  3598. elif test "$with_gnu_ld" = yes; then
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3600. $as_echo_n "checking for GNU ld... " >&6; }
  3601. else
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3603. $as_echo_n "checking for non-GNU ld... " >&6; }
  3604. fi
  3605. if ${lt_cv_path_LD+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if test -z "$LD"; then
  3609. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3610. for ac_dir in $PATH; do
  3611. IFS="$lt_save_ifs"
  3612. test -z "$ac_dir" && ac_dir=.
  3613. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3614. lt_cv_path_LD="$ac_dir/$ac_prog"
  3615. # Check to see if the program is GNU ld. I'd rather use --version,
  3616. # but apparently some variants of GNU ld only accept -v.
  3617. # Break only if it was the GNU/non-GNU ld that we prefer.
  3618. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3619. *GNU* | *'with BFD'*)
  3620. test "$with_gnu_ld" != no && break
  3621. ;;
  3622. *)
  3623. test "$with_gnu_ld" != yes && break
  3624. ;;
  3625. esac
  3626. fi
  3627. done
  3628. IFS="$lt_save_ifs"
  3629. else
  3630. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3631. fi
  3632. fi
  3633. LD="$lt_cv_path_LD"
  3634. if test -n "$LD"; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3636. $as_echo "$LD" >&6; }
  3637. else
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3639. $as_echo "no" >&6; }
  3640. fi
  3641. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3643. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3644. if ${lt_cv_prog_gnu_ld+:} false; then :
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3648. case `$LD -v 2>&1 </dev/null` in
  3649. *GNU* | *'with BFD'*)
  3650. lt_cv_prog_gnu_ld=yes
  3651. ;;
  3652. *)
  3653. lt_cv_prog_gnu_ld=no
  3654. ;;
  3655. esac
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3658. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3659. with_gnu_ld=$lt_cv_prog_gnu_ld
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3661. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3662. if ${lt_cv_path_NM+:} false; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if test -n "$NM"; then
  3666. # Let the user override the test.
  3667. lt_cv_path_NM="$NM"
  3668. else
  3669. lt_nm_to_check="${ac_tool_prefix}nm"
  3670. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3671. lt_nm_to_check="$lt_nm_to_check nm"
  3672. fi
  3673. for lt_tmp_nm in $lt_nm_to_check; do
  3674. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3675. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3676. IFS="$lt_save_ifs"
  3677. test -z "$ac_dir" && ac_dir=.
  3678. tmp_nm="$ac_dir/$lt_tmp_nm"
  3679. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3680. # Check to see if the nm accepts a BSD-compat flag.
  3681. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3682. # nm: unknown option "B" ignored
  3683. # Tru64's nm complains that /dev/null is an invalid object file
  3684. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3685. */dev/null* | *'Invalid file or object type'*)
  3686. lt_cv_path_NM="$tmp_nm -B"
  3687. break
  3688. ;;
  3689. *)
  3690. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3691. */dev/null*)
  3692. lt_cv_path_NM="$tmp_nm -p"
  3693. break
  3694. ;;
  3695. *)
  3696. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3697. continue # so that we can try to find one that supports BSD flags
  3698. ;;
  3699. esac
  3700. ;;
  3701. esac
  3702. fi
  3703. done
  3704. IFS="$lt_save_ifs"
  3705. done
  3706. : ${lt_cv_path_NM=no}
  3707. fi
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3710. $as_echo "$lt_cv_path_NM" >&6; }
  3711. if test "$lt_cv_path_NM" != "no"; then
  3712. NM="$lt_cv_path_NM"
  3713. else
  3714. # Didn't find any BSD compatible name lister, look for dumpbin.
  3715. if test -n "$DUMPBIN"; then :
  3716. # Let the user override the test.
  3717. else
  3718. if test -n "$ac_tool_prefix"; then
  3719. for ac_prog in dumpbin "link -dump"
  3720. do
  3721. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3722. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3724. $as_echo_n "checking for $ac_word... " >&6; }
  3725. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. if test -n "$DUMPBIN"; then
  3729. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3730. else
  3731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3732. for as_dir in $PATH
  3733. do
  3734. IFS=$as_save_IFS
  3735. test -z "$as_dir" && as_dir=.
  3736. for ac_exec_ext in '' $ac_executable_extensions; do
  3737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3738. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3740. break 2
  3741. fi
  3742. done
  3743. done
  3744. IFS=$as_save_IFS
  3745. fi
  3746. fi
  3747. DUMPBIN=$ac_cv_prog_DUMPBIN
  3748. if test -n "$DUMPBIN"; then
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3750. $as_echo "$DUMPBIN" >&6; }
  3751. else
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3753. $as_echo "no" >&6; }
  3754. fi
  3755. test -n "$DUMPBIN" && break
  3756. done
  3757. fi
  3758. if test -z "$DUMPBIN"; then
  3759. ac_ct_DUMPBIN=$DUMPBIN
  3760. for ac_prog in dumpbin "link -dump"
  3761. do
  3762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3763. set dummy $ac_prog; ac_word=$2
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3765. $as_echo_n "checking for $ac_word... " >&6; }
  3766. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. if test -n "$ac_ct_DUMPBIN"; then
  3770. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3771. else
  3772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3773. for as_dir in $PATH
  3774. do
  3775. IFS=$as_save_IFS
  3776. test -z "$as_dir" && as_dir=.
  3777. for ac_exec_ext in '' $ac_executable_extensions; do
  3778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3779. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3781. break 2
  3782. fi
  3783. done
  3784. done
  3785. IFS=$as_save_IFS
  3786. fi
  3787. fi
  3788. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3789. if test -n "$ac_ct_DUMPBIN"; then
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3791. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3792. else
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3794. $as_echo "no" >&6; }
  3795. fi
  3796. test -n "$ac_ct_DUMPBIN" && break
  3797. done
  3798. if test "x$ac_ct_DUMPBIN" = x; then
  3799. DUMPBIN=":"
  3800. else
  3801. case $cross_compiling:$ac_tool_warned in
  3802. yes:)
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3805. ac_tool_warned=yes ;;
  3806. esac
  3807. DUMPBIN=$ac_ct_DUMPBIN
  3808. fi
  3809. fi
  3810. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3811. *COFF*)
  3812. DUMPBIN="$DUMPBIN -symbols"
  3813. ;;
  3814. *)
  3815. DUMPBIN=:
  3816. ;;
  3817. esac
  3818. fi
  3819. if test "$DUMPBIN" != ":"; then
  3820. NM="$DUMPBIN"
  3821. fi
  3822. fi
  3823. test -z "$NM" && NM=nm
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3825. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3826. if ${lt_cv_nm_interface+:} false; then :
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. lt_cv_nm_interface="BSD nm"
  3830. echo "int some_variable = 0;" > conftest.$ac_ext
  3831. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3832. (eval "$ac_compile" 2>conftest.err)
  3833. cat conftest.err >&5
  3834. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3835. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3836. cat conftest.err >&5
  3837. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3838. cat conftest.out >&5
  3839. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3840. lt_cv_nm_interface="MS dumpbin"
  3841. fi
  3842. rm -f conftest*
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3845. $as_echo "$lt_cv_nm_interface" >&6; }
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3847. $as_echo_n "checking whether ln -s works... " >&6; }
  3848. LN_S=$as_ln_s
  3849. if test "$LN_S" = "ln -s"; then
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3851. $as_echo "yes" >&6; }
  3852. else
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3854. $as_echo "no, using $LN_S" >&6; }
  3855. fi
  3856. # find the maximum length of command line arguments
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3858. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3859. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3860. $as_echo_n "(cached) " >&6
  3861. else
  3862. i=0
  3863. teststring="ABCD"
  3864. case $build_os in
  3865. msdosdjgpp*)
  3866. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3867. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3868. # during glob expansion). Even if it were fixed, the result of this
  3869. # check would be larger than it should be.
  3870. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3871. ;;
  3872. gnu*)
  3873. # Under GNU Hurd, this test is not required because there is
  3874. # no limit to the length of command line arguments.
  3875. # Libtool will interpret -1 as no limit whatsoever
  3876. lt_cv_sys_max_cmd_len=-1;
  3877. ;;
  3878. cygwin* | mingw* | cegcc*)
  3879. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3880. # about 5 minutes as the teststring grows exponentially.
  3881. # Worse, since 9x/ME are not pre-emptively multitasking,
  3882. # you end up with a "frozen" computer, even though with patience
  3883. # the test eventually succeeds (with a max line length of 256k).
  3884. # Instead, let's just punt: use the minimum linelength reported by
  3885. # all of the supported platforms: 8192 (on NT/2K/XP).
  3886. lt_cv_sys_max_cmd_len=8192;
  3887. ;;
  3888. mint*)
  3889. # On MiNT this can take a long time and run out of memory.
  3890. lt_cv_sys_max_cmd_len=8192;
  3891. ;;
  3892. amigaos*)
  3893. # On AmigaOS with pdksh, this test takes hours, literally.
  3894. # So we just punt and use a minimum line length of 8192.
  3895. lt_cv_sys_max_cmd_len=8192;
  3896. ;;
  3897. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3898. # This has been around since 386BSD, at least. Likely further.
  3899. if test -x /sbin/sysctl; then
  3900. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3901. elif test -x /usr/sbin/sysctl; then
  3902. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3903. else
  3904. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3905. fi
  3906. # And add a safety zone
  3907. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3908. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3909. ;;
  3910. interix*)
  3911. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3912. lt_cv_sys_max_cmd_len=196608
  3913. ;;
  3914. os2*)
  3915. # The test takes a long time on OS/2.
  3916. lt_cv_sys_max_cmd_len=8192
  3917. ;;
  3918. osf*)
  3919. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3920. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3921. # nice to cause kernel panics so lets avoid the loop below.
  3922. # First set a reasonable default.
  3923. lt_cv_sys_max_cmd_len=16384
  3924. #
  3925. if test -x /sbin/sysconfig; then
  3926. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3927. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3928. esac
  3929. fi
  3930. ;;
  3931. sco3.2v5*)
  3932. lt_cv_sys_max_cmd_len=102400
  3933. ;;
  3934. sysv5* | sco5v6* | sysv4.2uw2*)
  3935. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3936. if test -n "$kargmax"; then
  3937. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3938. else
  3939. lt_cv_sys_max_cmd_len=32768
  3940. fi
  3941. ;;
  3942. *)
  3943. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3944. if test -n "$lt_cv_sys_max_cmd_len"; then
  3945. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3947. else
  3948. # Make teststring a little bigger before we do anything with it.
  3949. # a 1K string should be a reasonable start.
  3950. for i in 1 2 3 4 5 6 7 8 ; do
  3951. teststring=$teststring$teststring
  3952. done
  3953. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3954. # If test is not a shell built-in, we'll probably end up computing a
  3955. # maximum length that is only half of the actual maximum length, but
  3956. # we can't tell.
  3957. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3958. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3959. test $i != 17 # 1/2 MB should be enough
  3960. do
  3961. i=`expr $i + 1`
  3962. teststring=$teststring$teststring
  3963. done
  3964. # Only check the string length outside the loop.
  3965. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3966. teststring=
  3967. # Add a significant safety factor because C++ compilers can tack on
  3968. # massive amounts of additional arguments before passing them to the
  3969. # linker. It appears as though 1/2 is a usable value.
  3970. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3971. fi
  3972. ;;
  3973. esac
  3974. fi
  3975. if test -n $lt_cv_sys_max_cmd_len ; then
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3977. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3978. else
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3980. $as_echo "none" >&6; }
  3981. fi
  3982. max_cmd_len=$lt_cv_sys_max_cmd_len
  3983. : ${CP="cp -f"}
  3984. : ${MV="mv -f"}
  3985. : ${RM="rm -f"}
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3987. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3988. # Try some XSI features
  3989. xsi_shell=no
  3990. ( _lt_dummy="a/b/c"
  3991. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  3992. = c,a/b,b/c, \
  3993. && eval 'test $(( 1 + 1 )) -eq 2 \
  3994. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3995. && xsi_shell=yes
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3997. $as_echo "$xsi_shell" >&6; }
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3999. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4000. lt_shell_append=no
  4001. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4002. >/dev/null 2>&1 \
  4003. && lt_shell_append=yes
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4005. $as_echo "$lt_shell_append" >&6; }
  4006. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4007. lt_unset=unset
  4008. else
  4009. lt_unset=false
  4010. fi
  4011. # test EBCDIC or ASCII
  4012. case `echo X|tr X '\101'` in
  4013. A) # ASCII based system
  4014. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4015. lt_SP2NL='tr \040 \012'
  4016. lt_NL2SP='tr \015\012 \040\040'
  4017. ;;
  4018. *) # EBCDIC based system
  4019. lt_SP2NL='tr \100 \n'
  4020. lt_NL2SP='tr \r\n \100\100'
  4021. ;;
  4022. esac
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4024. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4025. if ${lt_cv_to_host_file_cmd+:} false; then :
  4026. $as_echo_n "(cached) " >&6
  4027. else
  4028. case $host in
  4029. *-*-mingw* )
  4030. case $build in
  4031. *-*-mingw* ) # actually msys
  4032. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4033. ;;
  4034. *-*-cygwin* )
  4035. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4036. ;;
  4037. * ) # otherwise, assume *nix
  4038. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4039. ;;
  4040. esac
  4041. ;;
  4042. *-*-cygwin* )
  4043. case $build in
  4044. *-*-mingw* ) # actually msys
  4045. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4046. ;;
  4047. *-*-cygwin* )
  4048. lt_cv_to_host_file_cmd=func_convert_file_noop
  4049. ;;
  4050. * ) # otherwise, assume *nix
  4051. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4052. ;;
  4053. esac
  4054. ;;
  4055. * ) # unhandled hosts (and "normal" native builds)
  4056. lt_cv_to_host_file_cmd=func_convert_file_noop
  4057. ;;
  4058. esac
  4059. fi
  4060. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4062. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4064. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4065. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4066. $as_echo_n "(cached) " >&6
  4067. else
  4068. #assume ordinary cross tools, or native build.
  4069. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4070. case $host in
  4071. *-*-mingw* )
  4072. case $build in
  4073. *-*-mingw* ) # actually msys
  4074. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4075. ;;
  4076. esac
  4077. ;;
  4078. esac
  4079. fi
  4080. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4082. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4084. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4085. if ${lt_cv_ld_reload_flag+:} false; then :
  4086. $as_echo_n "(cached) " >&6
  4087. else
  4088. lt_cv_ld_reload_flag='-r'
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4091. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4092. reload_flag=$lt_cv_ld_reload_flag
  4093. case $reload_flag in
  4094. "" | " "*) ;;
  4095. *) reload_flag=" $reload_flag" ;;
  4096. esac
  4097. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4098. case $host_os in
  4099. cygwin* | mingw* | pw32* | cegcc*)
  4100. if test "$GCC" != yes; then
  4101. reload_cmds=false
  4102. fi
  4103. ;;
  4104. darwin*)
  4105. if test "$GCC" = yes; then
  4106. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4107. else
  4108. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4109. fi
  4110. ;;
  4111. esac
  4112. if test -n "$ac_tool_prefix"; then
  4113. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4114. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4116. $as_echo_n "checking for $ac_word... " >&6; }
  4117. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. if test -n "$OBJDUMP"; then
  4121. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4122. else
  4123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4124. for as_dir in $PATH
  4125. do
  4126. IFS=$as_save_IFS
  4127. test -z "$as_dir" && as_dir=.
  4128. for ac_exec_ext in '' $ac_executable_extensions; do
  4129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4130. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4132. break 2
  4133. fi
  4134. done
  4135. done
  4136. IFS=$as_save_IFS
  4137. fi
  4138. fi
  4139. OBJDUMP=$ac_cv_prog_OBJDUMP
  4140. if test -n "$OBJDUMP"; then
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4142. $as_echo "$OBJDUMP" >&6; }
  4143. else
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4145. $as_echo "no" >&6; }
  4146. fi
  4147. fi
  4148. if test -z "$ac_cv_prog_OBJDUMP"; then
  4149. ac_ct_OBJDUMP=$OBJDUMP
  4150. # Extract the first word of "objdump", so it can be a program name with args.
  4151. set dummy objdump; ac_word=$2
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4153. $as_echo_n "checking for $ac_word... " >&6; }
  4154. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4155. $as_echo_n "(cached) " >&6
  4156. else
  4157. if test -n "$ac_ct_OBJDUMP"; then
  4158. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4159. else
  4160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4161. for as_dir in $PATH
  4162. do
  4163. IFS=$as_save_IFS
  4164. test -z "$as_dir" && as_dir=.
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4167. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4169. break 2
  4170. fi
  4171. done
  4172. done
  4173. IFS=$as_save_IFS
  4174. fi
  4175. fi
  4176. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4177. if test -n "$ac_ct_OBJDUMP"; then
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4179. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4180. else
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. $as_echo "no" >&6; }
  4183. fi
  4184. if test "x$ac_ct_OBJDUMP" = x; then
  4185. OBJDUMP="false"
  4186. else
  4187. case $cross_compiling:$ac_tool_warned in
  4188. yes:)
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4191. ac_tool_warned=yes ;;
  4192. esac
  4193. OBJDUMP=$ac_ct_OBJDUMP
  4194. fi
  4195. else
  4196. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4197. fi
  4198. test -z "$OBJDUMP" && OBJDUMP=objdump
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4200. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4201. if ${lt_cv_deplibs_check_method+:} false; then :
  4202. $as_echo_n "(cached) " >&6
  4203. else
  4204. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4205. lt_cv_file_magic_test_file=
  4206. lt_cv_deplibs_check_method='unknown'
  4207. # Need to set the preceding variable on all platforms that support
  4208. # interlibrary dependencies.
  4209. # 'none' -- dependencies not supported.
  4210. # `unknown' -- same as none, but documents that we really don't know.
  4211. # 'pass_all' -- all dependencies passed with no checks.
  4212. # 'test_compile' -- check by making test program.
  4213. # 'file_magic [[regex]]' -- check by looking for files in library path
  4214. # which responds to the $file_magic_cmd with a given extended regex.
  4215. # If you have `file' or equivalent on your system and you're not sure
  4216. # whether `pass_all' will *always* work, you probably want this one.
  4217. case $host_os in
  4218. aix[4-9]*)
  4219. lt_cv_deplibs_check_method=pass_all
  4220. ;;
  4221. beos*)
  4222. lt_cv_deplibs_check_method=pass_all
  4223. ;;
  4224. bsdi[45]*)
  4225. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4226. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4227. lt_cv_file_magic_test_file=/shlib/libc.so
  4228. ;;
  4229. cygwin*)
  4230. # func_win32_libid is a shell function defined in ltmain.sh
  4231. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4232. lt_cv_file_magic_cmd='func_win32_libid'
  4233. lt_cv_deplibs_check_method=pass_all
  4234. ;;
  4235. mingw* | pw32*)
  4236. # Base MSYS/MinGW do not provide the 'file' command needed by
  4237. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4238. # unless we find 'file', for example because we are cross-compiling.
  4239. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4240. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4242. lt_cv_file_magic_cmd='func_win32_libid'
  4243. else
  4244. # Keep this pattern in sync with the one in func_win32_libid.
  4245. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4246. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4247. fi
  4248. lt_cv_deplibs_check_method=pass_all
  4249. ;;
  4250. cegcc*)
  4251. # use the weaker test based on 'objdump'. See mingw*.
  4252. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4253. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4254. ;;
  4255. darwin* | rhapsody*)
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. freebsd* | dragonfly*)
  4259. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4260. case $host_cpu in
  4261. i*86 )
  4262. # Not sure whether the presence of OpenBSD here was a mistake.
  4263. # Let's accept both of them until this is cleared up.
  4264. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4265. lt_cv_file_magic_cmd=/usr/bin/file
  4266. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4267. ;;
  4268. esac
  4269. else
  4270. lt_cv_deplibs_check_method=pass_all
  4271. fi
  4272. ;;
  4273. gnu*)
  4274. lt_cv_deplibs_check_method=pass_all
  4275. ;;
  4276. haiku*)
  4277. lt_cv_deplibs_check_method=pass_all
  4278. ;;
  4279. hpux10.20* | hpux11*)
  4280. lt_cv_file_magic_cmd=/usr/bin/file
  4281. case $host_cpu in
  4282. ia64*)
  4283. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4284. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4285. ;;
  4286. hppa*64*)
  4287. 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]'
  4288. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4289. ;;
  4290. *)
  4291. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4292. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4293. ;;
  4294. esac
  4295. ;;
  4296. interix[3-9]*)
  4297. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4298. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4299. ;;
  4300. irix5* | irix6* | nonstopux*)
  4301. case $LD in
  4302. *-32|*"-32 ") libmagic=32-bit;;
  4303. *-n32|*"-n32 ") libmagic=N32;;
  4304. *-64|*"-64 ") libmagic=64-bit;;
  4305. *) libmagic=never-match;;
  4306. esac
  4307. lt_cv_deplibs_check_method=pass_all
  4308. ;;
  4309. # This must be glibc/ELF.
  4310. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4311. lt_cv_deplibs_check_method=pass_all
  4312. ;;
  4313. netbsd*)
  4314. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4315. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4316. else
  4317. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4318. fi
  4319. ;;
  4320. newos6*)
  4321. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4322. lt_cv_file_magic_cmd=/usr/bin/file
  4323. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4324. ;;
  4325. *nto* | *qnx*)
  4326. lt_cv_deplibs_check_method=pass_all
  4327. ;;
  4328. openbsd*)
  4329. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4330. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4331. else
  4332. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4333. fi
  4334. ;;
  4335. osf3* | osf4* | osf5*)
  4336. lt_cv_deplibs_check_method=pass_all
  4337. ;;
  4338. rdos*)
  4339. lt_cv_deplibs_check_method=pass_all
  4340. ;;
  4341. solaris*)
  4342. lt_cv_deplibs_check_method=pass_all
  4343. ;;
  4344. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4345. lt_cv_deplibs_check_method=pass_all
  4346. ;;
  4347. sysv4 | sysv4.3*)
  4348. case $host_vendor in
  4349. motorola)
  4350. 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]'
  4351. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4352. ;;
  4353. ncr)
  4354. lt_cv_deplibs_check_method=pass_all
  4355. ;;
  4356. sequent)
  4357. lt_cv_file_magic_cmd='/bin/file'
  4358. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4359. ;;
  4360. sni)
  4361. lt_cv_file_magic_cmd='/bin/file'
  4362. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4363. lt_cv_file_magic_test_file=/lib/libc.so
  4364. ;;
  4365. siemens)
  4366. lt_cv_deplibs_check_method=pass_all
  4367. ;;
  4368. pc)
  4369. lt_cv_deplibs_check_method=pass_all
  4370. ;;
  4371. esac
  4372. ;;
  4373. tpf*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. esac
  4377. fi
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4379. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4380. file_magic_glob=
  4381. want_nocaseglob=no
  4382. if test "$build" = "$host"; then
  4383. case $host_os in
  4384. mingw* | pw32*)
  4385. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4386. want_nocaseglob=yes
  4387. else
  4388. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4389. fi
  4390. ;;
  4391. esac
  4392. fi
  4393. file_magic_cmd=$lt_cv_file_magic_cmd
  4394. deplibs_check_method=$lt_cv_deplibs_check_method
  4395. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4396. if test -n "$ac_tool_prefix"; then
  4397. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4398. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4400. $as_echo_n "checking for $ac_word... " >&6; }
  4401. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4402. $as_echo_n "(cached) " >&6
  4403. else
  4404. if test -n "$DLLTOOL"; then
  4405. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4406. else
  4407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4408. for as_dir in $PATH
  4409. do
  4410. IFS=$as_save_IFS
  4411. test -z "$as_dir" && as_dir=.
  4412. for ac_exec_ext in '' $ac_executable_extensions; do
  4413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4414. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4416. break 2
  4417. fi
  4418. done
  4419. done
  4420. IFS=$as_save_IFS
  4421. fi
  4422. fi
  4423. DLLTOOL=$ac_cv_prog_DLLTOOL
  4424. if test -n "$DLLTOOL"; then
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4426. $as_echo "$DLLTOOL" >&6; }
  4427. else
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4429. $as_echo "no" >&6; }
  4430. fi
  4431. fi
  4432. if test -z "$ac_cv_prog_DLLTOOL"; then
  4433. ac_ct_DLLTOOL=$DLLTOOL
  4434. # Extract the first word of "dlltool", so it can be a program name with args.
  4435. set dummy dlltool; ac_word=$2
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4437. $as_echo_n "checking for $ac_word... " >&6; }
  4438. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$ac_ct_DLLTOOL"; then
  4442. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4443. else
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_exec_ext in '' $ac_executable_extensions; do
  4450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4451. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4453. break 2
  4454. fi
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. fi
  4460. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4461. if test -n "$ac_ct_DLLTOOL"; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4463. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. if test "x$ac_ct_DLLTOOL" = x; then
  4469. DLLTOOL="false"
  4470. else
  4471. case $cross_compiling:$ac_tool_warned in
  4472. yes:)
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4474. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4475. ac_tool_warned=yes ;;
  4476. esac
  4477. DLLTOOL=$ac_ct_DLLTOOL
  4478. fi
  4479. else
  4480. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4481. fi
  4482. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4484. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4485. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4489. case $host_os in
  4490. cygwin* | mingw* | pw32* | cegcc*)
  4491. # two different shell functions defined in ltmain.sh
  4492. # decide which to use based on capabilities of $DLLTOOL
  4493. case `$DLLTOOL --help 2>&1` in
  4494. *--identify-strict*)
  4495. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4496. ;;
  4497. *)
  4498. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4499. ;;
  4500. esac
  4501. ;;
  4502. *)
  4503. # fallback: assume linklib IS sharedlib
  4504. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4505. ;;
  4506. esac
  4507. fi
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4509. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4510. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4511. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4512. if test -n "$ac_tool_prefix"; then
  4513. for ac_prog in ar
  4514. do
  4515. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4516. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4518. $as_echo_n "checking for $ac_word... " >&6; }
  4519. if ${ac_cv_prog_AR+:} false; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. if test -n "$AR"; then
  4523. ac_cv_prog_AR="$AR" # Let the user override the test.
  4524. else
  4525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4526. for as_dir in $PATH
  4527. do
  4528. IFS=$as_save_IFS
  4529. test -z "$as_dir" && as_dir=.
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4532. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4534. break 2
  4535. fi
  4536. done
  4537. done
  4538. IFS=$as_save_IFS
  4539. fi
  4540. fi
  4541. AR=$ac_cv_prog_AR
  4542. if test -n "$AR"; then
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4544. $as_echo "$AR" >&6; }
  4545. else
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4547. $as_echo "no" >&6; }
  4548. fi
  4549. test -n "$AR" && break
  4550. done
  4551. fi
  4552. if test -z "$AR"; then
  4553. ac_ct_AR=$AR
  4554. for ac_prog in ar
  4555. do
  4556. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4557. set dummy $ac_prog; ac_word=$2
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4559. $as_echo_n "checking for $ac_word... " >&6; }
  4560. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if test -n "$ac_ct_AR"; then
  4564. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4565. else
  4566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567. for as_dir in $PATH
  4568. do
  4569. IFS=$as_save_IFS
  4570. test -z "$as_dir" && as_dir=.
  4571. for ac_exec_ext in '' $ac_executable_extensions; do
  4572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4573. ac_cv_prog_ac_ct_AR="$ac_prog"
  4574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4575. break 2
  4576. fi
  4577. done
  4578. done
  4579. IFS=$as_save_IFS
  4580. fi
  4581. fi
  4582. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4583. if test -n "$ac_ct_AR"; then
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4585. $as_echo "$ac_ct_AR" >&6; }
  4586. else
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4588. $as_echo "no" >&6; }
  4589. fi
  4590. test -n "$ac_ct_AR" && break
  4591. done
  4592. if test "x$ac_ct_AR" = x; then
  4593. AR="false"
  4594. else
  4595. case $cross_compiling:$ac_tool_warned in
  4596. yes:)
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4599. ac_tool_warned=yes ;;
  4600. esac
  4601. AR=$ac_ct_AR
  4602. fi
  4603. fi
  4604. : ${AR=ar}
  4605. : ${AR_FLAGS=cru}
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4607. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4608. if ${lt_cv_ar_at_file+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. lt_cv_ar_at_file=no
  4612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4613. /* end confdefs.h. */
  4614. int
  4615. main ()
  4616. {
  4617. ;
  4618. return 0;
  4619. }
  4620. _ACEOF
  4621. if ac_fn_c_try_compile "$LINENO"; then :
  4622. echo conftest.$ac_objext > conftest.lst
  4623. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4624. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4625. (eval $lt_ar_try) 2>&5
  4626. ac_status=$?
  4627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4628. test $ac_status = 0; }
  4629. if test "$ac_status" -eq 0; then
  4630. # Ensure the archiver fails upon bogus file names.
  4631. rm -f conftest.$ac_objext libconftest.a
  4632. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4633. (eval $lt_ar_try) 2>&5
  4634. ac_status=$?
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4636. test $ac_status = 0; }
  4637. if test "$ac_status" -ne 0; then
  4638. lt_cv_ar_at_file=@
  4639. fi
  4640. fi
  4641. rm -f conftest.* libconftest.a
  4642. fi
  4643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4646. $as_echo "$lt_cv_ar_at_file" >&6; }
  4647. if test "x$lt_cv_ar_at_file" = xno; then
  4648. archiver_list_spec=
  4649. else
  4650. archiver_list_spec=$lt_cv_ar_at_file
  4651. fi
  4652. if test -n "$ac_tool_prefix"; then
  4653. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4654. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if ${ac_cv_prog_STRIP+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$STRIP"; then
  4661. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4670. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi
  4678. fi
  4679. STRIP=$ac_cv_prog_STRIP
  4680. if test -n "$STRIP"; then
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4682. $as_echo "$STRIP" >&6; }
  4683. else
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4685. $as_echo "no" >&6; }
  4686. fi
  4687. fi
  4688. if test -z "$ac_cv_prog_STRIP"; then
  4689. ac_ct_STRIP=$STRIP
  4690. # Extract the first word of "strip", so it can be a program name with args.
  4691. set dummy strip; ac_word=$2
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. $as_echo_n "checking for $ac_word... " >&6; }
  4694. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if test -n "$ac_ct_STRIP"; then
  4698. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4699. else
  4700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4701. for as_dir in $PATH
  4702. do
  4703. IFS=$as_save_IFS
  4704. test -z "$as_dir" && as_dir=.
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4707. ac_cv_prog_ac_ct_STRIP="strip"
  4708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4717. if test -n "$ac_ct_STRIP"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4719. $as_echo "$ac_ct_STRIP" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. $as_echo "no" >&6; }
  4723. fi
  4724. if test "x$ac_ct_STRIP" = x; then
  4725. STRIP=":"
  4726. else
  4727. case $cross_compiling:$ac_tool_warned in
  4728. yes:)
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4730. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4731. ac_tool_warned=yes ;;
  4732. esac
  4733. STRIP=$ac_ct_STRIP
  4734. fi
  4735. else
  4736. STRIP="$ac_cv_prog_STRIP"
  4737. fi
  4738. test -z "$STRIP" && STRIP=:
  4739. if test -n "$ac_tool_prefix"; then
  4740. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4741. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4743. $as_echo_n "checking for $ac_word... " >&6; }
  4744. if ${ac_cv_prog_RANLIB+:} false; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. if test -n "$RANLIB"; then
  4748. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4749. else
  4750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4751. for as_dir in $PATH
  4752. do
  4753. IFS=$as_save_IFS
  4754. test -z "$as_dir" && as_dir=.
  4755. for ac_exec_ext in '' $ac_executable_extensions; do
  4756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4757. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4759. break 2
  4760. fi
  4761. done
  4762. done
  4763. IFS=$as_save_IFS
  4764. fi
  4765. fi
  4766. RANLIB=$ac_cv_prog_RANLIB
  4767. if test -n "$RANLIB"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4769. $as_echo "$RANLIB" >&6; }
  4770. else
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. $as_echo "no" >&6; }
  4773. fi
  4774. fi
  4775. if test -z "$ac_cv_prog_RANLIB"; then
  4776. ac_ct_RANLIB=$RANLIB
  4777. # Extract the first word of "ranlib", so it can be a program name with args.
  4778. set dummy ranlib; ac_word=$2
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4780. $as_echo_n "checking for $ac_word... " >&6; }
  4781. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if test -n "$ac_ct_RANLIB"; then
  4785. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4786. else
  4787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788. for as_dir in $PATH
  4789. do
  4790. IFS=$as_save_IFS
  4791. test -z "$as_dir" && as_dir=.
  4792. for ac_exec_ext in '' $ac_executable_extensions; do
  4793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4794. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796. break 2
  4797. fi
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. fi
  4803. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4804. if test -n "$ac_ct_RANLIB"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4806. $as_echo "$ac_ct_RANLIB" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4809. $as_echo "no" >&6; }
  4810. fi
  4811. if test "x$ac_ct_RANLIB" = x; then
  4812. RANLIB=":"
  4813. else
  4814. case $cross_compiling:$ac_tool_warned in
  4815. yes:)
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4818. ac_tool_warned=yes ;;
  4819. esac
  4820. RANLIB=$ac_ct_RANLIB
  4821. fi
  4822. else
  4823. RANLIB="$ac_cv_prog_RANLIB"
  4824. fi
  4825. test -z "$RANLIB" && RANLIB=:
  4826. # Determine commands to create old-style static archives.
  4827. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4828. old_postinstall_cmds='chmod 644 $oldlib'
  4829. old_postuninstall_cmds=
  4830. if test -n "$RANLIB"; then
  4831. case $host_os in
  4832. openbsd*)
  4833. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4834. ;;
  4835. *)
  4836. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4837. ;;
  4838. esac
  4839. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4840. fi
  4841. case $host_os in
  4842. darwin*)
  4843. lock_old_archive_extraction=yes ;;
  4844. *)
  4845. lock_old_archive_extraction=no ;;
  4846. esac
  4847. for ac_prog in gawk mawk nawk awk
  4848. do
  4849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4850. set dummy $ac_prog; ac_word=$2
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4852. $as_echo_n "checking for $ac_word... " >&6; }
  4853. if ${ac_cv_prog_AWK+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if test -n "$AWK"; then
  4857. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4858. else
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4866. ac_cv_prog_AWK="$ac_prog"
  4867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4868. break 2
  4869. fi
  4870. done
  4871. done
  4872. IFS=$as_save_IFS
  4873. fi
  4874. fi
  4875. AWK=$ac_cv_prog_AWK
  4876. if test -n "$AWK"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4878. $as_echo "$AWK" >&6; }
  4879. else
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4881. $as_echo "no" >&6; }
  4882. fi
  4883. test -n "$AWK" && break
  4884. done
  4885. # If no C compiler was specified, use CC.
  4886. LTCC=${LTCC-"$CC"}
  4887. # If no C compiler flags were specified, use CFLAGS.
  4888. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4889. # Allow CC to be a program name with arguments.
  4890. compiler=$CC
  4891. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4893. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4894. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4895. $as_echo_n "(cached) " >&6
  4896. else
  4897. # These are sane defaults that work on at least a few old systems.
  4898. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4899. # Character class describing NM global symbol codes.
  4900. symcode='[BCDEGRST]'
  4901. # Regexp to match symbols that can be accessed directly from C.
  4902. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4903. # Define system-specific variables.
  4904. case $host_os in
  4905. aix*)
  4906. symcode='[BCDT]'
  4907. ;;
  4908. cygwin* | mingw* | pw32* | cegcc*)
  4909. symcode='[ABCDGISTW]'
  4910. ;;
  4911. hpux*)
  4912. if test "$host_cpu" = ia64; then
  4913. symcode='[ABCDEGRST]'
  4914. fi
  4915. ;;
  4916. irix* | nonstopux*)
  4917. symcode='[BCDEGRST]'
  4918. ;;
  4919. osf*)
  4920. symcode='[BCDEGQRST]'
  4921. ;;
  4922. solaris*)
  4923. symcode='[BDRT]'
  4924. ;;
  4925. sco3.2v5*)
  4926. symcode='[DT]'
  4927. ;;
  4928. sysv4.2uw2*)
  4929. symcode='[DT]'
  4930. ;;
  4931. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4932. symcode='[ABDT]'
  4933. ;;
  4934. sysv4)
  4935. symcode='[DFNSTU]'
  4936. ;;
  4937. esac
  4938. # If we're using GNU nm, then use its standard symbol codes.
  4939. case `$NM -V 2>&1` in
  4940. *GNU* | *'with BFD'*)
  4941. symcode='[ABCDGIRSTW]' ;;
  4942. esac
  4943. # Transform an extracted symbol line into a proper C declaration.
  4944. # Some systems (esp. on ia64) link data and code symbols differently,
  4945. # so use this general approach.
  4946. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4947. # Transform an extracted symbol line into symbol name and symbol address
  4948. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4949. 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'"
  4950. # Handle CRLF in mingw tool chain
  4951. opt_cr=
  4952. case $build_os in
  4953. mingw*)
  4954. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4955. ;;
  4956. esac
  4957. # Try without a prefix underscore, then with it.
  4958. for ac_symprfx in "" "_"; do
  4959. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4960. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4961. # Write the raw and C identifiers.
  4962. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4963. # Fake it for dumpbin and say T for any non-static function
  4964. # and D for any global variable.
  4965. # Also find C++ and __fastcall symbols from MSVC++,
  4966. # which start with @ or ?.
  4967. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4968. " {last_section=section; section=\$ 3};"\
  4969. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4970. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4971. " \$ 0!~/External *\|/{next};"\
  4972. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4973. " {if(hide[section]) next};"\
  4974. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4975. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4976. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4977. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4978. " ' prfx=^$ac_symprfx"
  4979. else
  4980. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4981. fi
  4982. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4983. # Check to see that the pipe works correctly.
  4984. pipe_works=no
  4985. rm -f conftest*
  4986. cat > conftest.$ac_ext <<_LT_EOF
  4987. #ifdef __cplusplus
  4988. extern "C" {
  4989. #endif
  4990. char nm_test_var;
  4991. void nm_test_func(void);
  4992. void nm_test_func(void){}
  4993. #ifdef __cplusplus
  4994. }
  4995. #endif
  4996. int main(){nm_test_var='a';nm_test_func();return(0);}
  4997. _LT_EOF
  4998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4999. (eval $ac_compile) 2>&5
  5000. ac_status=$?
  5001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5002. test $ac_status = 0; }; then
  5003. # Now try to grab the symbols.
  5004. nlist=conftest.nm
  5005. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5006. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5007. ac_status=$?
  5008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5009. test $ac_status = 0; } && test -s "$nlist"; then
  5010. # Try sorting and uniquifying the output.
  5011. if sort "$nlist" | uniq > "$nlist"T; then
  5012. mv -f "$nlist"T "$nlist"
  5013. else
  5014. rm -f "$nlist"T
  5015. fi
  5016. # Make sure that we snagged all the symbols we need.
  5017. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5018. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5019. cat <<_LT_EOF > conftest.$ac_ext
  5020. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5021. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5022. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5023. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5024. # define LT_DLSYM_CONST
  5025. #elif defined(__osf__)
  5026. /* This system does not cope well with relocations in const data. */
  5027. # define LT_DLSYM_CONST
  5028. #else
  5029. # define LT_DLSYM_CONST const
  5030. #endif
  5031. #ifdef __cplusplus
  5032. extern "C" {
  5033. #endif
  5034. _LT_EOF
  5035. # Now generate the symbol file.
  5036. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5037. cat <<_LT_EOF >> conftest.$ac_ext
  5038. /* The mapping between symbol names and symbols. */
  5039. LT_DLSYM_CONST struct {
  5040. const char *name;
  5041. void *address;
  5042. }
  5043. lt__PROGRAM__LTX_preloaded_symbols[] =
  5044. {
  5045. { "@PROGRAM@", (void *) 0 },
  5046. _LT_EOF
  5047. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5048. cat <<\_LT_EOF >> conftest.$ac_ext
  5049. {0, (void *) 0}
  5050. };
  5051. /* This works around a problem in FreeBSD linker */
  5052. #ifdef FREEBSD_WORKAROUND
  5053. static const void *lt_preloaded_setup() {
  5054. return lt__PROGRAM__LTX_preloaded_symbols;
  5055. }
  5056. #endif
  5057. #ifdef __cplusplus
  5058. }
  5059. #endif
  5060. _LT_EOF
  5061. # Now try linking the two files.
  5062. mv conftest.$ac_objext conftstm.$ac_objext
  5063. lt_globsym_save_LIBS=$LIBS
  5064. lt_globsym_save_CFLAGS=$CFLAGS
  5065. LIBS="conftstm.$ac_objext"
  5066. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5067. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5068. (eval $ac_link) 2>&5
  5069. ac_status=$?
  5070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5071. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5072. pipe_works=yes
  5073. fi
  5074. LIBS=$lt_globsym_save_LIBS
  5075. CFLAGS=$lt_globsym_save_CFLAGS
  5076. else
  5077. echo "cannot find nm_test_func in $nlist" >&5
  5078. fi
  5079. else
  5080. echo "cannot find nm_test_var in $nlist" >&5
  5081. fi
  5082. else
  5083. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5084. fi
  5085. else
  5086. echo "$progname: failed program was:" >&5
  5087. cat conftest.$ac_ext >&5
  5088. fi
  5089. rm -rf conftest* conftst*
  5090. # Do not use the global_symbol_pipe unless it works.
  5091. if test "$pipe_works" = yes; then
  5092. break
  5093. else
  5094. lt_cv_sys_global_symbol_pipe=
  5095. fi
  5096. done
  5097. fi
  5098. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5099. lt_cv_sys_global_symbol_to_cdecl=
  5100. fi
  5101. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5103. $as_echo "failed" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5106. $as_echo "ok" >&6; }
  5107. fi
  5108. # Response file support.
  5109. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5110. nm_file_list_spec='@'
  5111. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5112. nm_file_list_spec='@'
  5113. fi
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5115. $as_echo_n "checking for sysroot... " >&6; }
  5116. # Check whether --with-sysroot was given.
  5117. if test "${with_sysroot+set}" = set; then :
  5118. withval=$with_sysroot;
  5119. else
  5120. with_sysroot=no
  5121. fi
  5122. lt_sysroot=
  5123. case ${with_sysroot} in #(
  5124. yes)
  5125. if test "$GCC" = yes; then
  5126. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5127. fi
  5128. ;; #(
  5129. /*)
  5130. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5131. ;; #(
  5132. no|'')
  5133. ;; #(
  5134. *)
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5136. $as_echo "${with_sysroot}" >&6; }
  5137. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5138. ;;
  5139. esac
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5141. $as_echo "${lt_sysroot:-no}" >&6; }
  5142. # Check whether --enable-libtool-lock was given.
  5143. if test "${enable_libtool_lock+set}" = set; then :
  5144. enableval=$enable_libtool_lock;
  5145. fi
  5146. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5147. # Some flags need to be propagated to the compiler or linker for good
  5148. # libtool support.
  5149. case $host in
  5150. ia64-*-hpux*)
  5151. # Find out which ABI we are using.
  5152. echo 'int i;' > conftest.$ac_ext
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5154. (eval $ac_compile) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; }; then
  5158. case `/usr/bin/file conftest.$ac_objext` in
  5159. *ELF-32*)
  5160. HPUX_IA64_MODE="32"
  5161. ;;
  5162. *ELF-64*)
  5163. HPUX_IA64_MODE="64"
  5164. ;;
  5165. esac
  5166. fi
  5167. rm -rf conftest*
  5168. ;;
  5169. *-*-irix6*)
  5170. # Find out which ABI we are using.
  5171. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5173. (eval $ac_compile) 2>&5
  5174. ac_status=$?
  5175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5176. test $ac_status = 0; }; then
  5177. if test "$lt_cv_prog_gnu_ld" = yes; then
  5178. case `/usr/bin/file conftest.$ac_objext` in
  5179. *32-bit*)
  5180. LD="${LD-ld} -melf32bsmip"
  5181. ;;
  5182. *N32*)
  5183. LD="${LD-ld} -melf32bmipn32"
  5184. ;;
  5185. *64-bit*)
  5186. LD="${LD-ld} -melf64bmip"
  5187. ;;
  5188. esac
  5189. else
  5190. case `/usr/bin/file conftest.$ac_objext` in
  5191. *32-bit*)
  5192. LD="${LD-ld} -32"
  5193. ;;
  5194. *N32*)
  5195. LD="${LD-ld} -n32"
  5196. ;;
  5197. *64-bit*)
  5198. LD="${LD-ld} -64"
  5199. ;;
  5200. esac
  5201. fi
  5202. fi
  5203. rm -rf conftest*
  5204. ;;
  5205. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5206. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5207. # Find out which ABI we are using.
  5208. echo 'int i;' > conftest.$ac_ext
  5209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5210. (eval $ac_compile) 2>&5
  5211. ac_status=$?
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5213. test $ac_status = 0; }; then
  5214. case `/usr/bin/file conftest.o` in
  5215. *32-bit*)
  5216. case $host in
  5217. x86_64-*kfreebsd*-gnu)
  5218. LD="${LD-ld} -m elf_i386_fbsd"
  5219. ;;
  5220. x86_64-*linux*)
  5221. LD="${LD-ld} -m elf_i386"
  5222. ;;
  5223. ppc64-*linux*|powerpc64-*linux*)
  5224. LD="${LD-ld} -m elf32ppclinux"
  5225. ;;
  5226. s390x-*linux*)
  5227. LD="${LD-ld} -m elf_s390"
  5228. ;;
  5229. sparc64-*linux*)
  5230. LD="${LD-ld} -m elf32_sparc"
  5231. ;;
  5232. esac
  5233. ;;
  5234. *64-bit*)
  5235. case $host in
  5236. x86_64-*kfreebsd*-gnu)
  5237. LD="${LD-ld} -m elf_x86_64_fbsd"
  5238. ;;
  5239. x86_64-*linux*)
  5240. LD="${LD-ld} -m elf_x86_64"
  5241. ;;
  5242. ppc*-*linux*|powerpc*-*linux*)
  5243. LD="${LD-ld} -m elf64ppc"
  5244. ;;
  5245. s390*-*linux*|s390*-*tpf*)
  5246. LD="${LD-ld} -m elf64_s390"
  5247. ;;
  5248. sparc*-*linux*)
  5249. LD="${LD-ld} -m elf64_sparc"
  5250. ;;
  5251. esac
  5252. ;;
  5253. esac
  5254. fi
  5255. rm -rf conftest*
  5256. ;;
  5257. *-*-sco3.2v5*)
  5258. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5259. SAVE_CFLAGS="$CFLAGS"
  5260. CFLAGS="$CFLAGS -belf"
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5262. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5263. if ${lt_cv_cc_needs_belf+:} false; then :
  5264. $as_echo_n "(cached) " >&6
  5265. else
  5266. ac_ext=c
  5267. ac_cpp='$CPP $CPPFLAGS'
  5268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5272. /* end confdefs.h. */
  5273. int
  5274. main ()
  5275. {
  5276. ;
  5277. return 0;
  5278. }
  5279. _ACEOF
  5280. if ac_fn_c_try_link "$LINENO"; then :
  5281. lt_cv_cc_needs_belf=yes
  5282. else
  5283. lt_cv_cc_needs_belf=no
  5284. fi
  5285. rm -f core conftest.err conftest.$ac_objext \
  5286. conftest$ac_exeext conftest.$ac_ext
  5287. ac_ext=c
  5288. ac_cpp='$CPP $CPPFLAGS'
  5289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5292. fi
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5294. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5295. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5296. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5297. CFLAGS="$SAVE_CFLAGS"
  5298. fi
  5299. ;;
  5300. *-*solaris*)
  5301. # Find out which ABI we are using.
  5302. echo 'int i;' > conftest.$ac_ext
  5303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5304. (eval $ac_compile) 2>&5
  5305. ac_status=$?
  5306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5307. test $ac_status = 0; }; then
  5308. case `/usr/bin/file conftest.o` in
  5309. *64-bit*)
  5310. case $lt_cv_prog_gnu_ld in
  5311. yes*)
  5312. case $host in
  5313. i?86-*-solaris*)
  5314. LD="${LD-ld} -m elf_x86_64"
  5315. ;;
  5316. sparc*-*-solaris*)
  5317. LD="${LD-ld} -m elf64_sparc"
  5318. ;;
  5319. esac
  5320. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5321. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5322. LD="${LD-ld}_sol2"
  5323. fi
  5324. ;;
  5325. *)
  5326. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5327. LD="${LD-ld} -64"
  5328. fi
  5329. ;;
  5330. esac
  5331. ;;
  5332. esac
  5333. fi
  5334. rm -rf conftest*
  5335. ;;
  5336. esac
  5337. need_locks="$enable_libtool_lock"
  5338. if test -n "$ac_tool_prefix"; then
  5339. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5340. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. $as_echo_n "checking for $ac_word... " >&6; }
  5343. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. if test -n "$MANIFEST_TOOL"; then
  5347. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5348. else
  5349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5350. for as_dir in $PATH
  5351. do
  5352. IFS=$as_save_IFS
  5353. test -z "$as_dir" && as_dir=.
  5354. for ac_exec_ext in '' $ac_executable_extensions; do
  5355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5356. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5358. break 2
  5359. fi
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. fi
  5364. fi
  5365. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5366. if test -n "$MANIFEST_TOOL"; then
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5368. $as_echo "$MANIFEST_TOOL" >&6; }
  5369. else
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5371. $as_echo "no" >&6; }
  5372. fi
  5373. fi
  5374. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5375. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5376. # Extract the first word of "mt", so it can be a program name with args.
  5377. set dummy mt; ac_word=$2
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5379. $as_echo_n "checking for $ac_word... " >&6; }
  5380. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5384. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5385. else
  5386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5387. for as_dir in $PATH
  5388. do
  5389. IFS=$as_save_IFS
  5390. test -z "$as_dir" && as_dir=.
  5391. for ac_exec_ext in '' $ac_executable_extensions; do
  5392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5393. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5395. break 2
  5396. fi
  5397. done
  5398. done
  5399. IFS=$as_save_IFS
  5400. fi
  5401. fi
  5402. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5403. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5405. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5406. else
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5408. $as_echo "no" >&6; }
  5409. fi
  5410. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5411. MANIFEST_TOOL=":"
  5412. else
  5413. case $cross_compiling:$ac_tool_warned in
  5414. yes:)
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5416. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5417. ac_tool_warned=yes ;;
  5418. esac
  5419. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5420. fi
  5421. else
  5422. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5423. fi
  5424. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5426. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5427. if ${lt_cv_path_mainfest_tool+:} false; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. lt_cv_path_mainfest_tool=no
  5431. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5432. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5433. cat conftest.err >&5
  5434. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5435. lt_cv_path_mainfest_tool=yes
  5436. fi
  5437. rm -f conftest*
  5438. fi
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5440. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5441. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5442. MANIFEST_TOOL=:
  5443. fi
  5444. case $host_os in
  5445. rhapsody* | darwin*)
  5446. if test -n "$ac_tool_prefix"; then
  5447. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5448. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5450. $as_echo_n "checking for $ac_word... " >&6; }
  5451. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5452. $as_echo_n "(cached) " >&6
  5453. else
  5454. if test -n "$DSYMUTIL"; then
  5455. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5456. else
  5457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5458. for as_dir in $PATH
  5459. do
  5460. IFS=$as_save_IFS
  5461. test -z "$as_dir" && as_dir=.
  5462. for ac_exec_ext in '' $ac_executable_extensions; do
  5463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5464. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5466. break 2
  5467. fi
  5468. done
  5469. done
  5470. IFS=$as_save_IFS
  5471. fi
  5472. fi
  5473. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5474. if test -n "$DSYMUTIL"; then
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5476. $as_echo "$DSYMUTIL" >&6; }
  5477. else
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5479. $as_echo "no" >&6; }
  5480. fi
  5481. fi
  5482. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5483. ac_ct_DSYMUTIL=$DSYMUTIL
  5484. # Extract the first word of "dsymutil", so it can be a program name with args.
  5485. set dummy dsymutil; ac_word=$2
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5487. $as_echo_n "checking for $ac_word... " >&6; }
  5488. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5489. $as_echo_n "(cached) " >&6
  5490. else
  5491. if test -n "$ac_ct_DSYMUTIL"; then
  5492. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5493. else
  5494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5495. for as_dir in $PATH
  5496. do
  5497. IFS=$as_save_IFS
  5498. test -z "$as_dir" && as_dir=.
  5499. for ac_exec_ext in '' $ac_executable_extensions; do
  5500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5501. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5503. break 2
  5504. fi
  5505. done
  5506. done
  5507. IFS=$as_save_IFS
  5508. fi
  5509. fi
  5510. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5511. if test -n "$ac_ct_DSYMUTIL"; then
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5513. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5514. else
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5516. $as_echo "no" >&6; }
  5517. fi
  5518. if test "x$ac_ct_DSYMUTIL" = x; then
  5519. DSYMUTIL=":"
  5520. else
  5521. case $cross_compiling:$ac_tool_warned in
  5522. yes:)
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5524. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5525. ac_tool_warned=yes ;;
  5526. esac
  5527. DSYMUTIL=$ac_ct_DSYMUTIL
  5528. fi
  5529. else
  5530. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5531. fi
  5532. if test -n "$ac_tool_prefix"; then
  5533. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5534. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5536. $as_echo_n "checking for $ac_word... " >&6; }
  5537. if ${ac_cv_prog_NMEDIT+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. if test -n "$NMEDIT"; then
  5541. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5542. else
  5543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5544. for as_dir in $PATH
  5545. do
  5546. IFS=$as_save_IFS
  5547. test -z "$as_dir" && as_dir=.
  5548. for ac_exec_ext in '' $ac_executable_extensions; do
  5549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5550. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5552. break 2
  5553. fi
  5554. done
  5555. done
  5556. IFS=$as_save_IFS
  5557. fi
  5558. fi
  5559. NMEDIT=$ac_cv_prog_NMEDIT
  5560. if test -n "$NMEDIT"; then
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5562. $as_echo "$NMEDIT" >&6; }
  5563. else
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5565. $as_echo "no" >&6; }
  5566. fi
  5567. fi
  5568. if test -z "$ac_cv_prog_NMEDIT"; then
  5569. ac_ct_NMEDIT=$NMEDIT
  5570. # Extract the first word of "nmedit", so it can be a program name with args.
  5571. set dummy nmedit; ac_word=$2
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5573. $as_echo_n "checking for $ac_word... " >&6; }
  5574. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. if test -n "$ac_ct_NMEDIT"; then
  5578. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5579. else
  5580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5581. for as_dir in $PATH
  5582. do
  5583. IFS=$as_save_IFS
  5584. test -z "$as_dir" && as_dir=.
  5585. for ac_exec_ext in '' $ac_executable_extensions; do
  5586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5587. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5589. break 2
  5590. fi
  5591. done
  5592. done
  5593. IFS=$as_save_IFS
  5594. fi
  5595. fi
  5596. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5597. if test -n "$ac_ct_NMEDIT"; then
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5599. $as_echo "$ac_ct_NMEDIT" >&6; }
  5600. else
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5602. $as_echo "no" >&6; }
  5603. fi
  5604. if test "x$ac_ct_NMEDIT" = x; then
  5605. NMEDIT=":"
  5606. else
  5607. case $cross_compiling:$ac_tool_warned in
  5608. yes:)
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5610. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5611. ac_tool_warned=yes ;;
  5612. esac
  5613. NMEDIT=$ac_ct_NMEDIT
  5614. fi
  5615. else
  5616. NMEDIT="$ac_cv_prog_NMEDIT"
  5617. fi
  5618. if test -n "$ac_tool_prefix"; then
  5619. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5620. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_LIPO+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$LIPO"; then
  5627. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. LIPO=$ac_cv_prog_LIPO
  5646. if test -n "$LIPO"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5648. $as_echo "$LIPO" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. fi
  5654. if test -z "$ac_cv_prog_LIPO"; then
  5655. ac_ct_LIPO=$LIPO
  5656. # Extract the first word of "lipo", so it can be a program name with args.
  5657. set dummy lipo; ac_word=$2
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. if test -n "$ac_ct_LIPO"; then
  5664. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5665. else
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5673. ac_cv_prog_ac_ct_LIPO="lipo"
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. fi
  5681. fi
  5682. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5683. if test -n "$ac_ct_LIPO"; then
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5685. $as_echo "$ac_ct_LIPO" >&6; }
  5686. else
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5688. $as_echo "no" >&6; }
  5689. fi
  5690. if test "x$ac_ct_LIPO" = x; then
  5691. LIPO=":"
  5692. else
  5693. case $cross_compiling:$ac_tool_warned in
  5694. yes:)
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5697. ac_tool_warned=yes ;;
  5698. esac
  5699. LIPO=$ac_ct_LIPO
  5700. fi
  5701. else
  5702. LIPO="$ac_cv_prog_LIPO"
  5703. fi
  5704. if test -n "$ac_tool_prefix"; then
  5705. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5706. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_OTOOL+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$OTOOL"; then
  5713. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. OTOOL=$ac_cv_prog_OTOOL
  5732. if test -n "$OTOOL"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5734. $as_echo "$OTOOL" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. fi
  5740. if test -z "$ac_cv_prog_OTOOL"; then
  5741. ac_ct_OTOOL=$OTOOL
  5742. # Extract the first word of "otool", so it can be a program name with args.
  5743. set dummy otool; ac_word=$2
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5745. $as_echo_n "checking for $ac_word... " >&6; }
  5746. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. if test -n "$ac_ct_OTOOL"; then
  5750. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. test -z "$as_dir" && as_dir=.
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5759. ac_cv_prog_ac_ct_OTOOL="otool"
  5760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5769. if test -n "$ac_ct_OTOOL"; then
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5771. $as_echo "$ac_ct_OTOOL" >&6; }
  5772. else
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. $as_echo "no" >&6; }
  5775. fi
  5776. if test "x$ac_ct_OTOOL" = x; then
  5777. OTOOL=":"
  5778. else
  5779. case $cross_compiling:$ac_tool_warned in
  5780. yes:)
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5783. ac_tool_warned=yes ;;
  5784. esac
  5785. OTOOL=$ac_ct_OTOOL
  5786. fi
  5787. else
  5788. OTOOL="$ac_cv_prog_OTOOL"
  5789. fi
  5790. if test -n "$ac_tool_prefix"; then
  5791. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5792. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_OTOOL64+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$OTOOL64"; then
  5799. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5808. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. OTOOL64=$ac_cv_prog_OTOOL64
  5818. if test -n "$OTOOL64"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5820. $as_echo "$OTOOL64" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. fi
  5826. if test -z "$ac_cv_prog_OTOOL64"; then
  5827. ac_ct_OTOOL64=$OTOOL64
  5828. # Extract the first word of "otool64", so it can be a program name with args.
  5829. set dummy otool64; ac_word=$2
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5831. $as_echo_n "checking for $ac_word... " >&6; }
  5832. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. if test -n "$ac_ct_OTOOL64"; then
  5836. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5837. else
  5838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5839. for as_dir in $PATH
  5840. do
  5841. IFS=$as_save_IFS
  5842. test -z "$as_dir" && as_dir=.
  5843. for ac_exec_ext in '' $ac_executable_extensions; do
  5844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5845. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5847. break 2
  5848. fi
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. fi
  5853. fi
  5854. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5855. if test -n "$ac_ct_OTOOL64"; then
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5857. $as_echo "$ac_ct_OTOOL64" >&6; }
  5858. else
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5860. $as_echo "no" >&6; }
  5861. fi
  5862. if test "x$ac_ct_OTOOL64" = x; then
  5863. OTOOL64=":"
  5864. else
  5865. case $cross_compiling:$ac_tool_warned in
  5866. yes:)
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5869. ac_tool_warned=yes ;;
  5870. esac
  5871. OTOOL64=$ac_ct_OTOOL64
  5872. fi
  5873. else
  5874. OTOOL64="$ac_cv_prog_OTOOL64"
  5875. fi
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5877. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5878. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. lt_cv_apple_cc_single_mod=no
  5882. if test -z "${LT_MULTI_MODULE}"; then
  5883. # By default we will add the -single_module flag. You can override
  5884. # by either setting the environment variable LT_MULTI_MODULE
  5885. # non-empty at configure time, or by adding -multi_module to the
  5886. # link flags.
  5887. rm -rf libconftest.dylib*
  5888. echo "int foo(void){return 1;}" > conftest.c
  5889. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5890. -dynamiclib -Wl,-single_module conftest.c" >&5
  5891. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5892. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5893. _lt_result=$?
  5894. # If there is a non-empty error log, and "single_module"
  5895. # appears in it, assume the flag caused a linker warning
  5896. if test -s conftest.err && $GREP single_module conftest.err; then
  5897. cat conftest.err >&5
  5898. # Otherwise, if the output was created with a 0 exit code from
  5899. # the compiler, it worked.
  5900. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5901. lt_cv_apple_cc_single_mod=yes
  5902. else
  5903. cat conftest.err >&5
  5904. fi
  5905. rm -rf libconftest.dylib*
  5906. rm -f conftest.*
  5907. fi
  5908. fi
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5910. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5912. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5913. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. lt_cv_ld_exported_symbols_list=no
  5917. save_LDFLAGS=$LDFLAGS
  5918. echo "_main" > conftest.sym
  5919. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5921. /* end confdefs.h. */
  5922. int
  5923. main ()
  5924. {
  5925. ;
  5926. return 0;
  5927. }
  5928. _ACEOF
  5929. if ac_fn_c_try_link "$LINENO"; then :
  5930. lt_cv_ld_exported_symbols_list=yes
  5931. else
  5932. lt_cv_ld_exported_symbols_list=no
  5933. fi
  5934. rm -f core conftest.err conftest.$ac_objext \
  5935. conftest$ac_exeext conftest.$ac_ext
  5936. LDFLAGS="$save_LDFLAGS"
  5937. fi
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5939. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5941. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5942. if ${lt_cv_ld_force_load+:} false; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. lt_cv_ld_force_load=no
  5946. cat > conftest.c << _LT_EOF
  5947. int forced_loaded() { return 2;}
  5948. _LT_EOF
  5949. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5950. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5951. echo "$AR cru libconftest.a conftest.o" >&5
  5952. $AR cru libconftest.a conftest.o 2>&5
  5953. echo "$RANLIB libconftest.a" >&5
  5954. $RANLIB libconftest.a 2>&5
  5955. cat > conftest.c << _LT_EOF
  5956. int main() { return 0;}
  5957. _LT_EOF
  5958. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5959. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5960. _lt_result=$?
  5961. if test -s conftest.err && $GREP force_load conftest.err; then
  5962. cat conftest.err >&5
  5963. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5964. lt_cv_ld_force_load=yes
  5965. else
  5966. cat conftest.err >&5
  5967. fi
  5968. rm -f conftest.err libconftest.a conftest conftest.c
  5969. rm -rf conftest.dSYM
  5970. fi
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5972. $as_echo "$lt_cv_ld_force_load" >&6; }
  5973. case $host_os in
  5974. rhapsody* | darwin1.[012])
  5975. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5976. darwin1.*)
  5977. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5978. darwin*) # darwin 5.x on
  5979. # if running on 10.5 or later, the deployment target defaults
  5980. # to the OS version, if on x86, and 10.4, the deployment
  5981. # target defaults to 10.4. Don't you love it?
  5982. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5983. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5984. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5985. 10.[012]*)
  5986. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5987. 10.*)
  5988. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5989. esac
  5990. ;;
  5991. esac
  5992. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5993. _lt_dar_single_mod='$single_module'
  5994. fi
  5995. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5996. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5997. else
  5998. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5999. fi
  6000. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6001. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6002. else
  6003. _lt_dsymutil=
  6004. fi
  6005. ;;
  6006. esac
  6007. ac_ext=c
  6008. ac_cpp='$CPP $CPPFLAGS'
  6009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6013. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6014. # On Suns, sometimes $CPP names a directory.
  6015. if test -n "$CPP" && test -d "$CPP"; then
  6016. CPP=
  6017. fi
  6018. if test -z "$CPP"; then
  6019. if ${ac_cv_prog_CPP+:} false; then :
  6020. $as_echo_n "(cached) " >&6
  6021. else
  6022. # Double quotes because CPP needs to be expanded
  6023. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6024. do
  6025. ac_preproc_ok=false
  6026. for ac_c_preproc_warn_flag in '' yes
  6027. do
  6028. # Use a header file that comes with gcc, so configuring glibc
  6029. # with a fresh cross-compiler works.
  6030. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6031. # <limits.h> exists even on freestanding compilers.
  6032. # On the NeXT, cc -E runs the code through the compiler's parser,
  6033. # not just through cpp. "Syntax error" is here to catch this case.
  6034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6035. /* end confdefs.h. */
  6036. #ifdef __STDC__
  6037. # include <limits.h>
  6038. #else
  6039. # include <assert.h>
  6040. #endif
  6041. Syntax error
  6042. _ACEOF
  6043. if ac_fn_c_try_cpp "$LINENO"; then :
  6044. else
  6045. # Broken: fails on valid input.
  6046. continue
  6047. fi
  6048. rm -f conftest.err conftest.i conftest.$ac_ext
  6049. # OK, works on sane cases. Now check whether nonexistent headers
  6050. # can be detected and how.
  6051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6052. /* end confdefs.h. */
  6053. #include <ac_nonexistent.h>
  6054. _ACEOF
  6055. if ac_fn_c_try_cpp "$LINENO"; then :
  6056. # Broken: success on invalid input.
  6057. continue
  6058. else
  6059. # Passes both tests.
  6060. ac_preproc_ok=:
  6061. break
  6062. fi
  6063. rm -f conftest.err conftest.i conftest.$ac_ext
  6064. done
  6065. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6066. rm -f conftest.i conftest.err conftest.$ac_ext
  6067. if $ac_preproc_ok; then :
  6068. break
  6069. fi
  6070. done
  6071. ac_cv_prog_CPP=$CPP
  6072. fi
  6073. CPP=$ac_cv_prog_CPP
  6074. else
  6075. ac_cv_prog_CPP=$CPP
  6076. fi
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6078. $as_echo "$CPP" >&6; }
  6079. ac_preproc_ok=false
  6080. for ac_c_preproc_warn_flag in '' yes
  6081. do
  6082. # Use a header file that comes with gcc, so configuring glibc
  6083. # with a fresh cross-compiler works.
  6084. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6085. # <limits.h> exists even on freestanding compilers.
  6086. # On the NeXT, cc -E runs the code through the compiler's parser,
  6087. # not just through cpp. "Syntax error" is here to catch this case.
  6088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6089. /* end confdefs.h. */
  6090. #ifdef __STDC__
  6091. # include <limits.h>
  6092. #else
  6093. # include <assert.h>
  6094. #endif
  6095. Syntax error
  6096. _ACEOF
  6097. if ac_fn_c_try_cpp "$LINENO"; then :
  6098. else
  6099. # Broken: fails on valid input.
  6100. continue
  6101. fi
  6102. rm -f conftest.err conftest.i conftest.$ac_ext
  6103. # OK, works on sane cases. Now check whether nonexistent headers
  6104. # can be detected and how.
  6105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6106. /* end confdefs.h. */
  6107. #include <ac_nonexistent.h>
  6108. _ACEOF
  6109. if ac_fn_c_try_cpp "$LINENO"; then :
  6110. # Broken: success on invalid input.
  6111. continue
  6112. else
  6113. # Passes both tests.
  6114. ac_preproc_ok=:
  6115. break
  6116. fi
  6117. rm -f conftest.err conftest.i conftest.$ac_ext
  6118. done
  6119. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6120. rm -f conftest.i conftest.err conftest.$ac_ext
  6121. if $ac_preproc_ok; then :
  6122. else
  6123. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6125. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6126. See \`config.log' for more details" "$LINENO" 5; }
  6127. fi
  6128. ac_ext=c
  6129. ac_cpp='$CPP $CPPFLAGS'
  6130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6134. $as_echo_n "checking for ANSI C header files... " >&6; }
  6135. if ${ac_cv_header_stdc+:} false; then :
  6136. $as_echo_n "(cached) " >&6
  6137. else
  6138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end confdefs.h. */
  6140. #include <stdlib.h>
  6141. #include <stdarg.h>
  6142. #include <string.h>
  6143. #include <float.h>
  6144. int
  6145. main ()
  6146. {
  6147. ;
  6148. return 0;
  6149. }
  6150. _ACEOF
  6151. if ac_fn_c_try_compile "$LINENO"; then :
  6152. ac_cv_header_stdc=yes
  6153. else
  6154. ac_cv_header_stdc=no
  6155. fi
  6156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6157. if test $ac_cv_header_stdc = yes; then
  6158. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6160. /* end confdefs.h. */
  6161. #include <string.h>
  6162. _ACEOF
  6163. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6164. $EGREP "memchr" >/dev/null 2>&1; then :
  6165. else
  6166. ac_cv_header_stdc=no
  6167. fi
  6168. rm -f conftest*
  6169. fi
  6170. if test $ac_cv_header_stdc = yes; then
  6171. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. #include <stdlib.h>
  6175. _ACEOF
  6176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6177. $EGREP "free" >/dev/null 2>&1; then :
  6178. else
  6179. ac_cv_header_stdc=no
  6180. fi
  6181. rm -f conftest*
  6182. fi
  6183. if test $ac_cv_header_stdc = yes; then
  6184. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6185. if test "$cross_compiling" = yes; then :
  6186. :
  6187. else
  6188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6189. /* end confdefs.h. */
  6190. #include <ctype.h>
  6191. #include <stdlib.h>
  6192. #if ((' ' & 0x0FF) == 0x020)
  6193. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6194. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6195. #else
  6196. # define ISLOWER(c) \
  6197. (('a' <= (c) && (c) <= 'i') \
  6198. || ('j' <= (c) && (c) <= 'r') \
  6199. || ('s' <= (c) && (c) <= 'z'))
  6200. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6201. #endif
  6202. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6203. int
  6204. main ()
  6205. {
  6206. int i;
  6207. for (i = 0; i < 256; i++)
  6208. if (XOR (islower (i), ISLOWER (i))
  6209. || toupper (i) != TOUPPER (i))
  6210. return 2;
  6211. return 0;
  6212. }
  6213. _ACEOF
  6214. if ac_fn_c_try_run "$LINENO"; then :
  6215. else
  6216. ac_cv_header_stdc=no
  6217. fi
  6218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6219. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6220. fi
  6221. fi
  6222. fi
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6224. $as_echo "$ac_cv_header_stdc" >&6; }
  6225. if test $ac_cv_header_stdc = yes; then
  6226. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6227. fi
  6228. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6229. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6230. inttypes.h stdint.h unistd.h
  6231. do :
  6232. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6233. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6234. "
  6235. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6236. cat >>confdefs.h <<_ACEOF
  6237. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6238. _ACEOF
  6239. fi
  6240. done
  6241. for ac_header in dlfcn.h
  6242. do :
  6243. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6244. "
  6245. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6246. cat >>confdefs.h <<_ACEOF
  6247. #define HAVE_DLFCN_H 1
  6248. _ACEOF
  6249. fi
  6250. done
  6251. # Set options
  6252. enable_win32_dll=yes
  6253. case $host in
  6254. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6255. if test -n "$ac_tool_prefix"; then
  6256. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6257. set dummy ${ac_tool_prefix}as; ac_word=$2
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6259. $as_echo_n "checking for $ac_word... " >&6; }
  6260. if ${ac_cv_prog_AS+:} false; then :
  6261. $as_echo_n "(cached) " >&6
  6262. else
  6263. if test -n "$AS"; then
  6264. ac_cv_prog_AS="$AS" # Let the user override the test.
  6265. else
  6266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6267. for as_dir in $PATH
  6268. do
  6269. IFS=$as_save_IFS
  6270. test -z "$as_dir" && as_dir=.
  6271. for ac_exec_ext in '' $ac_executable_extensions; do
  6272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6273. ac_cv_prog_AS="${ac_tool_prefix}as"
  6274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6275. break 2
  6276. fi
  6277. done
  6278. done
  6279. IFS=$as_save_IFS
  6280. fi
  6281. fi
  6282. AS=$ac_cv_prog_AS
  6283. if test -n "$AS"; then
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6285. $as_echo "$AS" >&6; }
  6286. else
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6288. $as_echo "no" >&6; }
  6289. fi
  6290. fi
  6291. if test -z "$ac_cv_prog_AS"; then
  6292. ac_ct_AS=$AS
  6293. # Extract the first word of "as", so it can be a program name with args.
  6294. set dummy as; ac_word=$2
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6296. $as_echo_n "checking for $ac_word... " >&6; }
  6297. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. if test -n "$ac_ct_AS"; then
  6301. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6302. else
  6303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6304. for as_dir in $PATH
  6305. do
  6306. IFS=$as_save_IFS
  6307. test -z "$as_dir" && as_dir=.
  6308. for ac_exec_ext in '' $ac_executable_extensions; do
  6309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6310. ac_cv_prog_ac_ct_AS="as"
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6312. break 2
  6313. fi
  6314. done
  6315. done
  6316. IFS=$as_save_IFS
  6317. fi
  6318. fi
  6319. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6320. if test -n "$ac_ct_AS"; then
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6322. $as_echo "$ac_ct_AS" >&6; }
  6323. else
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6325. $as_echo "no" >&6; }
  6326. fi
  6327. if test "x$ac_ct_AS" = x; then
  6328. AS="false"
  6329. else
  6330. case $cross_compiling:$ac_tool_warned in
  6331. yes:)
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6333. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6334. ac_tool_warned=yes ;;
  6335. esac
  6336. AS=$ac_ct_AS
  6337. fi
  6338. else
  6339. AS="$ac_cv_prog_AS"
  6340. fi
  6341. if test -n "$ac_tool_prefix"; then
  6342. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6343. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6345. $as_echo_n "checking for $ac_word... " >&6; }
  6346. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. if test -n "$DLLTOOL"; then
  6350. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6351. else
  6352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6353. for as_dir in $PATH
  6354. do
  6355. IFS=$as_save_IFS
  6356. test -z "$as_dir" && as_dir=.
  6357. for ac_exec_ext in '' $ac_executable_extensions; do
  6358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6359. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6361. break 2
  6362. fi
  6363. done
  6364. done
  6365. IFS=$as_save_IFS
  6366. fi
  6367. fi
  6368. DLLTOOL=$ac_cv_prog_DLLTOOL
  6369. if test -n "$DLLTOOL"; then
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6371. $as_echo "$DLLTOOL" >&6; }
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6374. $as_echo "no" >&6; }
  6375. fi
  6376. fi
  6377. if test -z "$ac_cv_prog_DLLTOOL"; then
  6378. ac_ct_DLLTOOL=$DLLTOOL
  6379. # Extract the first word of "dlltool", so it can be a program name with args.
  6380. set dummy dlltool; ac_word=$2
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6382. $as_echo_n "checking for $ac_word... " >&6; }
  6383. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. if test -n "$ac_ct_DLLTOOL"; then
  6387. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6388. else
  6389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6390. for as_dir in $PATH
  6391. do
  6392. IFS=$as_save_IFS
  6393. test -z "$as_dir" && as_dir=.
  6394. for ac_exec_ext in '' $ac_executable_extensions; do
  6395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6396. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6398. break 2
  6399. fi
  6400. done
  6401. done
  6402. IFS=$as_save_IFS
  6403. fi
  6404. fi
  6405. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6406. if test -n "$ac_ct_DLLTOOL"; then
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6408. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6409. else
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6411. $as_echo "no" >&6; }
  6412. fi
  6413. if test "x$ac_ct_DLLTOOL" = x; then
  6414. DLLTOOL="false"
  6415. else
  6416. case $cross_compiling:$ac_tool_warned in
  6417. yes:)
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6419. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6420. ac_tool_warned=yes ;;
  6421. esac
  6422. DLLTOOL=$ac_ct_DLLTOOL
  6423. fi
  6424. else
  6425. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6426. fi
  6427. if test -n "$ac_tool_prefix"; then
  6428. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6429. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6431. $as_echo_n "checking for $ac_word... " >&6; }
  6432. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6433. $as_echo_n "(cached) " >&6
  6434. else
  6435. if test -n "$OBJDUMP"; then
  6436. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6437. else
  6438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6439. for as_dir in $PATH
  6440. do
  6441. IFS=$as_save_IFS
  6442. test -z "$as_dir" && as_dir=.
  6443. for ac_exec_ext in '' $ac_executable_extensions; do
  6444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6445. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6447. break 2
  6448. fi
  6449. done
  6450. done
  6451. IFS=$as_save_IFS
  6452. fi
  6453. fi
  6454. OBJDUMP=$ac_cv_prog_OBJDUMP
  6455. if test -n "$OBJDUMP"; then
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6457. $as_echo "$OBJDUMP" >&6; }
  6458. else
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6460. $as_echo "no" >&6; }
  6461. fi
  6462. fi
  6463. if test -z "$ac_cv_prog_OBJDUMP"; then
  6464. ac_ct_OBJDUMP=$OBJDUMP
  6465. # Extract the first word of "objdump", so it can be a program name with args.
  6466. set dummy objdump; ac_word=$2
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6468. $as_echo_n "checking for $ac_word... " >&6; }
  6469. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6470. $as_echo_n "(cached) " >&6
  6471. else
  6472. if test -n "$ac_ct_OBJDUMP"; then
  6473. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6474. else
  6475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6476. for as_dir in $PATH
  6477. do
  6478. IFS=$as_save_IFS
  6479. test -z "$as_dir" && as_dir=.
  6480. for ac_exec_ext in '' $ac_executable_extensions; do
  6481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6482. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6484. break 2
  6485. fi
  6486. done
  6487. done
  6488. IFS=$as_save_IFS
  6489. fi
  6490. fi
  6491. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6492. if test -n "$ac_ct_OBJDUMP"; then
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6494. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6495. else
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6497. $as_echo "no" >&6; }
  6498. fi
  6499. if test "x$ac_ct_OBJDUMP" = x; then
  6500. OBJDUMP="false"
  6501. else
  6502. case $cross_compiling:$ac_tool_warned in
  6503. yes:)
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6506. ac_tool_warned=yes ;;
  6507. esac
  6508. OBJDUMP=$ac_ct_OBJDUMP
  6509. fi
  6510. else
  6511. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6512. fi
  6513. ;;
  6514. esac
  6515. test -z "$AS" && AS=as
  6516. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6517. test -z "$OBJDUMP" && OBJDUMP=objdump
  6518. enable_dlopen=no
  6519. # Check whether --enable-shared was given.
  6520. if test "${enable_shared+set}" = set; then :
  6521. enableval=$enable_shared; p=${PACKAGE-default}
  6522. case $enableval in
  6523. yes) enable_shared=yes ;;
  6524. no) enable_shared=no ;;
  6525. *)
  6526. enable_shared=no
  6527. # Look at the argument we got. We use all the common list separators.
  6528. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6529. for pkg in $enableval; do
  6530. IFS="$lt_save_ifs"
  6531. if test "X$pkg" = "X$p"; then
  6532. enable_shared=yes
  6533. fi
  6534. done
  6535. IFS="$lt_save_ifs"
  6536. ;;
  6537. esac
  6538. else
  6539. enable_shared=yes
  6540. fi
  6541. # Check whether --enable-static was given.
  6542. if test "${enable_static+set}" = set; then :
  6543. enableval=$enable_static; p=${PACKAGE-default}
  6544. case $enableval in
  6545. yes) enable_static=yes ;;
  6546. no) enable_static=no ;;
  6547. *)
  6548. enable_static=no
  6549. # Look at the argument we got. We use all the common list separators.
  6550. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6551. for pkg in $enableval; do
  6552. IFS="$lt_save_ifs"
  6553. if test "X$pkg" = "X$p"; then
  6554. enable_static=yes
  6555. fi
  6556. done
  6557. IFS="$lt_save_ifs"
  6558. ;;
  6559. esac
  6560. else
  6561. enable_static=yes
  6562. fi
  6563. # Check whether --with-pic was given.
  6564. if test "${with_pic+set}" = set; then :
  6565. withval=$with_pic; lt_p=${PACKAGE-default}
  6566. case $withval in
  6567. yes|no) pic_mode=$withval ;;
  6568. *)
  6569. pic_mode=default
  6570. # Look at the argument we got. We use all the common list separators.
  6571. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6572. for lt_pkg in $withval; do
  6573. IFS="$lt_save_ifs"
  6574. if test "X$lt_pkg" = "X$lt_p"; then
  6575. pic_mode=yes
  6576. fi
  6577. done
  6578. IFS="$lt_save_ifs"
  6579. ;;
  6580. esac
  6581. else
  6582. pic_mode=default
  6583. fi
  6584. test -z "$pic_mode" && pic_mode=default
  6585. # Check whether --enable-fast-install was given.
  6586. if test "${enable_fast_install+set}" = set; then :
  6587. enableval=$enable_fast_install; p=${PACKAGE-default}
  6588. case $enableval in
  6589. yes) enable_fast_install=yes ;;
  6590. no) enable_fast_install=no ;;
  6591. *)
  6592. enable_fast_install=no
  6593. # Look at the argument we got. We use all the common list separators.
  6594. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6595. for pkg in $enableval; do
  6596. IFS="$lt_save_ifs"
  6597. if test "X$pkg" = "X$p"; then
  6598. enable_fast_install=yes
  6599. fi
  6600. done
  6601. IFS="$lt_save_ifs"
  6602. ;;
  6603. esac
  6604. else
  6605. enable_fast_install=yes
  6606. fi
  6607. # This can be used to rebuild libtool when needed
  6608. LIBTOOL_DEPS="$ltmain"
  6609. # Always use our own libtool.
  6610. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6611. test -z "$LN_S" && LN_S="ln -s"
  6612. if test -n "${ZSH_VERSION+set}" ; then
  6613. setopt NO_GLOB_SUBST
  6614. fi
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6616. $as_echo_n "checking for objdir... " >&6; }
  6617. if ${lt_cv_objdir+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. rm -f .libs 2>/dev/null
  6621. mkdir .libs 2>/dev/null
  6622. if test -d .libs; then
  6623. lt_cv_objdir=.libs
  6624. else
  6625. # MS-DOS does not allow filenames that begin with a dot.
  6626. lt_cv_objdir=_libs
  6627. fi
  6628. rmdir .libs 2>/dev/null
  6629. fi
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6631. $as_echo "$lt_cv_objdir" >&6; }
  6632. objdir=$lt_cv_objdir
  6633. cat >>confdefs.h <<_ACEOF
  6634. #define LT_OBJDIR "$lt_cv_objdir/"
  6635. _ACEOF
  6636. case $host_os in
  6637. aix3*)
  6638. # AIX sometimes has problems with the GCC collect2 program. For some
  6639. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6640. # vanish in a puff of smoke.
  6641. if test "X${COLLECT_NAMES+set}" != Xset; then
  6642. COLLECT_NAMES=
  6643. export COLLECT_NAMES
  6644. fi
  6645. ;;
  6646. esac
  6647. # Global variables:
  6648. ofile=libtool
  6649. can_build_shared=yes
  6650. # All known linkers require a `.a' archive for static linking (except MSVC,
  6651. # which needs '.lib').
  6652. libext=a
  6653. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6654. old_CC="$CC"
  6655. old_CFLAGS="$CFLAGS"
  6656. # Set sane defaults for various variables
  6657. test -z "$CC" && CC=cc
  6658. test -z "$LTCC" && LTCC=$CC
  6659. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6660. test -z "$LD" && LD=ld
  6661. test -z "$ac_objext" && ac_objext=o
  6662. for cc_temp in $compiler""; do
  6663. case $cc_temp in
  6664. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6665. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6666. \-*) ;;
  6667. *) break;;
  6668. esac
  6669. done
  6670. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6671. # Only perform the check for file, if the check method requires it
  6672. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6673. case $deplibs_check_method in
  6674. file_magic*)
  6675. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6677. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6678. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6679. $as_echo_n "(cached) " >&6
  6680. else
  6681. case $MAGIC_CMD in
  6682. [\\/*] | ?:[\\/]*)
  6683. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6684. ;;
  6685. *)
  6686. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6687. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6688. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6689. for ac_dir in $ac_dummy; do
  6690. IFS="$lt_save_ifs"
  6691. test -z "$ac_dir" && ac_dir=.
  6692. if test -f $ac_dir/${ac_tool_prefix}file; then
  6693. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6694. if test -n "$file_magic_test_file"; then
  6695. case $deplibs_check_method in
  6696. "file_magic "*)
  6697. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6698. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6699. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6700. $EGREP "$file_magic_regex" > /dev/null; then
  6701. :
  6702. else
  6703. cat <<_LT_EOF 1>&2
  6704. *** Warning: the command libtool uses to detect shared libraries,
  6705. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6706. *** The result is that libtool may fail to recognize shared libraries
  6707. *** as such. This will affect the creation of libtool libraries that
  6708. *** depend on shared libraries, but programs linked with such libtool
  6709. *** libraries will work regardless of this problem. Nevertheless, you
  6710. *** may want to report the problem to your system manager and/or to
  6711. *** bug-libtool@gnu.org
  6712. _LT_EOF
  6713. fi ;;
  6714. esac
  6715. fi
  6716. break
  6717. fi
  6718. done
  6719. IFS="$lt_save_ifs"
  6720. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6721. ;;
  6722. esac
  6723. fi
  6724. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6725. if test -n "$MAGIC_CMD"; then
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6727. $as_echo "$MAGIC_CMD" >&6; }
  6728. else
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6730. $as_echo "no" >&6; }
  6731. fi
  6732. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6733. if test -n "$ac_tool_prefix"; then
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6735. $as_echo_n "checking for file... " >&6; }
  6736. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. case $MAGIC_CMD in
  6740. [\\/*] | ?:[\\/]*)
  6741. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6742. ;;
  6743. *)
  6744. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6745. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6746. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6747. for ac_dir in $ac_dummy; do
  6748. IFS="$lt_save_ifs"
  6749. test -z "$ac_dir" && ac_dir=.
  6750. if test -f $ac_dir/file; then
  6751. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6752. if test -n "$file_magic_test_file"; then
  6753. case $deplibs_check_method in
  6754. "file_magic "*)
  6755. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6756. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6757. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6758. $EGREP "$file_magic_regex" > /dev/null; then
  6759. :
  6760. else
  6761. cat <<_LT_EOF 1>&2
  6762. *** Warning: the command libtool uses to detect shared libraries,
  6763. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6764. *** The result is that libtool may fail to recognize shared libraries
  6765. *** as such. This will affect the creation of libtool libraries that
  6766. *** depend on shared libraries, but programs linked with such libtool
  6767. *** libraries will work regardless of this problem. Nevertheless, you
  6768. *** may want to report the problem to your system manager and/or to
  6769. *** bug-libtool@gnu.org
  6770. _LT_EOF
  6771. fi ;;
  6772. esac
  6773. fi
  6774. break
  6775. fi
  6776. done
  6777. IFS="$lt_save_ifs"
  6778. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6779. ;;
  6780. esac
  6781. fi
  6782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6783. if test -n "$MAGIC_CMD"; then
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6785. $as_echo "$MAGIC_CMD" >&6; }
  6786. else
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6788. $as_echo "no" >&6; }
  6789. fi
  6790. else
  6791. MAGIC_CMD=:
  6792. fi
  6793. fi
  6794. fi
  6795. ;;
  6796. esac
  6797. # Use C for the default configuration in the libtool script
  6798. lt_save_CC="$CC"
  6799. ac_ext=c
  6800. ac_cpp='$CPP $CPPFLAGS'
  6801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6804. # Source file extension for C test sources.
  6805. ac_ext=c
  6806. # Object file extension for compiled C test sources.
  6807. objext=o
  6808. objext=$objext
  6809. # Code to be used in simple compile tests
  6810. lt_simple_compile_test_code="int some_variable = 0;"
  6811. # Code to be used in simple link tests
  6812. lt_simple_link_test_code='int main(){return(0);}'
  6813. # If no C compiler was specified, use CC.
  6814. LTCC=${LTCC-"$CC"}
  6815. # If no C compiler flags were specified, use CFLAGS.
  6816. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6817. # Allow CC to be a program name with arguments.
  6818. compiler=$CC
  6819. # Save the default compiler, since it gets overwritten when the other
  6820. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6821. compiler_DEFAULT=$CC
  6822. # save warnings/boilerplate of simple test code
  6823. ac_outfile=conftest.$ac_objext
  6824. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6825. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6826. _lt_compiler_boilerplate=`cat conftest.err`
  6827. $RM conftest*
  6828. ac_outfile=conftest.$ac_objext
  6829. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6830. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6831. _lt_linker_boilerplate=`cat conftest.err`
  6832. $RM -r conftest*
  6833. ## CAVEAT EMPTOR:
  6834. ## There is no encapsulation within the following macros, do not change
  6835. ## the running order or otherwise move them around unless you know exactly
  6836. ## what you are doing...
  6837. if test -n "$compiler"; then
  6838. lt_prog_compiler_no_builtin_flag=
  6839. if test "$GCC" = yes; then
  6840. case $cc_basename in
  6841. nvcc*)
  6842. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6843. *)
  6844. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6845. esac
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6847. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6848. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6849. $as_echo_n "(cached) " >&6
  6850. else
  6851. lt_cv_prog_compiler_rtti_exceptions=no
  6852. ac_outfile=conftest.$ac_objext
  6853. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6854. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6855. # Insert the option either (1) after the last *FLAGS variable, or
  6856. # (2) before a word containing "conftest.", or (3) at the end.
  6857. # Note that $ac_compile itself does not contain backslashes and begins
  6858. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6859. # The option is referenced via a variable to avoid confusing sed.
  6860. lt_compile=`echo "$ac_compile" | $SED \
  6861. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6862. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6863. -e 's:$: $lt_compiler_flag:'`
  6864. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6865. (eval "$lt_compile" 2>conftest.err)
  6866. ac_status=$?
  6867. cat conftest.err >&5
  6868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6869. if (exit $ac_status) && test -s "$ac_outfile"; then
  6870. # The compiler can only warn and ignore the option if not recognized
  6871. # So say no if there are warnings other than the usual output.
  6872. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6873. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6874. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6875. lt_cv_prog_compiler_rtti_exceptions=yes
  6876. fi
  6877. fi
  6878. $RM conftest*
  6879. fi
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6881. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6882. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6883. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6884. else
  6885. :
  6886. fi
  6887. fi
  6888. lt_prog_compiler_wl=
  6889. lt_prog_compiler_pic=
  6890. lt_prog_compiler_static=
  6891. if test "$GCC" = yes; then
  6892. lt_prog_compiler_wl='-Wl,'
  6893. lt_prog_compiler_static='-static'
  6894. case $host_os in
  6895. aix*)
  6896. # All AIX code is PIC.
  6897. if test "$host_cpu" = ia64; then
  6898. # AIX 5 now supports IA64 processor
  6899. lt_prog_compiler_static='-Bstatic'
  6900. fi
  6901. ;;
  6902. amigaos*)
  6903. case $host_cpu in
  6904. powerpc)
  6905. # see comment about AmigaOS4 .so support
  6906. lt_prog_compiler_pic='-fPIC'
  6907. ;;
  6908. m68k)
  6909. # FIXME: we need at least 68020 code to build shared libraries, but
  6910. # adding the `-m68020' flag to GCC prevents building anything better,
  6911. # like `-m68040'.
  6912. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6913. ;;
  6914. esac
  6915. ;;
  6916. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6917. # PIC is the default for these OSes.
  6918. ;;
  6919. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6920. # This hack is so that the source file can tell whether it is being
  6921. # built for inclusion in a dll (and should export symbols for example).
  6922. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6923. # (--disable-auto-import) libraries
  6924. lt_prog_compiler_pic='-DDLL_EXPORT'
  6925. ;;
  6926. darwin* | rhapsody*)
  6927. # PIC is the default on this platform
  6928. # Common symbols not allowed in MH_DYLIB files
  6929. lt_prog_compiler_pic='-fno-common'
  6930. ;;
  6931. haiku*)
  6932. # PIC is the default for Haiku.
  6933. # The "-static" flag exists, but is broken.
  6934. lt_prog_compiler_static=
  6935. ;;
  6936. hpux*)
  6937. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6938. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6939. # sets the default TLS model and affects inlining.
  6940. case $host_cpu in
  6941. hppa*64*)
  6942. # +Z the default
  6943. ;;
  6944. *)
  6945. lt_prog_compiler_pic='-fPIC'
  6946. ;;
  6947. esac
  6948. ;;
  6949. interix[3-9]*)
  6950. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6951. # Instead, we relocate shared libraries at runtime.
  6952. ;;
  6953. msdosdjgpp*)
  6954. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6955. # on systems that don't support them.
  6956. lt_prog_compiler_can_build_shared=no
  6957. enable_shared=no
  6958. ;;
  6959. *nto* | *qnx*)
  6960. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6961. # it will coredump.
  6962. lt_prog_compiler_pic='-fPIC -shared'
  6963. ;;
  6964. sysv4*MP*)
  6965. if test -d /usr/nec; then
  6966. lt_prog_compiler_pic=-Kconform_pic
  6967. fi
  6968. ;;
  6969. *)
  6970. lt_prog_compiler_pic='-fPIC'
  6971. ;;
  6972. esac
  6973. case $cc_basename in
  6974. nvcc*) # Cuda Compiler Driver 2.2
  6975. lt_prog_compiler_wl='-Xlinker '
  6976. if test -n "$lt_prog_compiler_pic"; then
  6977. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6978. fi
  6979. ;;
  6980. esac
  6981. else
  6982. # PORTME Check for flag to pass linker flags through the system compiler.
  6983. case $host_os in
  6984. aix*)
  6985. lt_prog_compiler_wl='-Wl,'
  6986. if test "$host_cpu" = ia64; then
  6987. # AIX 5 now supports IA64 processor
  6988. lt_prog_compiler_static='-Bstatic'
  6989. else
  6990. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6991. fi
  6992. ;;
  6993. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6994. # This hack is so that the source file can tell whether it is being
  6995. # built for inclusion in a dll (and should export symbols for example).
  6996. lt_prog_compiler_pic='-DDLL_EXPORT'
  6997. ;;
  6998. hpux9* | hpux10* | hpux11*)
  6999. lt_prog_compiler_wl='-Wl,'
  7000. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7001. # not for PA HP-UX.
  7002. case $host_cpu in
  7003. hppa*64*|ia64*)
  7004. # +Z the default
  7005. ;;
  7006. *)
  7007. lt_prog_compiler_pic='+Z'
  7008. ;;
  7009. esac
  7010. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7011. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7012. ;;
  7013. irix5* | irix6* | nonstopux*)
  7014. lt_prog_compiler_wl='-Wl,'
  7015. # PIC (with -KPIC) is the default.
  7016. lt_prog_compiler_static='-non_shared'
  7017. ;;
  7018. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7019. case $cc_basename in
  7020. # old Intel for x86_64 which still supported -KPIC.
  7021. ecc*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. lt_prog_compiler_pic='-KPIC'
  7024. lt_prog_compiler_static='-static'
  7025. ;;
  7026. # icc used to be incompatible with GCC.
  7027. # ICC 10 doesn't accept -KPIC any more.
  7028. icc* | ifort*)
  7029. lt_prog_compiler_wl='-Wl,'
  7030. lt_prog_compiler_pic='-fPIC'
  7031. lt_prog_compiler_static='-static'
  7032. ;;
  7033. # Lahey Fortran 8.1.
  7034. lf95*)
  7035. lt_prog_compiler_wl='-Wl,'
  7036. lt_prog_compiler_pic='--shared'
  7037. lt_prog_compiler_static='--static'
  7038. ;;
  7039. nagfor*)
  7040. # NAG Fortran compiler
  7041. lt_prog_compiler_wl='-Wl,-Wl,,'
  7042. lt_prog_compiler_pic='-PIC'
  7043. lt_prog_compiler_static='-Bstatic'
  7044. ;;
  7045. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7046. # Portland Group compilers (*not* the Pentium gcc compiler,
  7047. # which looks to be a dead project)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='-fpic'
  7050. lt_prog_compiler_static='-Bstatic'
  7051. ;;
  7052. ccc*)
  7053. lt_prog_compiler_wl='-Wl,'
  7054. # All Alpha code is PIC.
  7055. lt_prog_compiler_static='-non_shared'
  7056. ;;
  7057. xl* | bgxl* | bgf* | mpixl*)
  7058. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7059. lt_prog_compiler_wl='-Wl,'
  7060. lt_prog_compiler_pic='-qpic'
  7061. lt_prog_compiler_static='-qstaticlink'
  7062. ;;
  7063. *)
  7064. case `$CC -V 2>&1 | sed 5q` in
  7065. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7066. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7067. lt_prog_compiler_pic='-KPIC'
  7068. lt_prog_compiler_static='-Bstatic'
  7069. lt_prog_compiler_wl=''
  7070. ;;
  7071. *Sun\ F* | *Sun*Fortran*)
  7072. lt_prog_compiler_pic='-KPIC'
  7073. lt_prog_compiler_static='-Bstatic'
  7074. lt_prog_compiler_wl='-Qoption ld '
  7075. ;;
  7076. *Sun\ C*)
  7077. # Sun C 5.9
  7078. lt_prog_compiler_pic='-KPIC'
  7079. lt_prog_compiler_static='-Bstatic'
  7080. lt_prog_compiler_wl='-Wl,'
  7081. ;;
  7082. *Intel*\ [CF]*Compiler*)
  7083. lt_prog_compiler_wl='-Wl,'
  7084. lt_prog_compiler_pic='-fPIC'
  7085. lt_prog_compiler_static='-static'
  7086. ;;
  7087. *Portland\ Group*)
  7088. lt_prog_compiler_wl='-Wl,'
  7089. lt_prog_compiler_pic='-fpic'
  7090. lt_prog_compiler_static='-Bstatic'
  7091. ;;
  7092. esac
  7093. ;;
  7094. esac
  7095. ;;
  7096. newsos6)
  7097. lt_prog_compiler_pic='-KPIC'
  7098. lt_prog_compiler_static='-Bstatic'
  7099. ;;
  7100. *nto* | *qnx*)
  7101. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7102. # it will coredump.
  7103. lt_prog_compiler_pic='-fPIC -shared'
  7104. ;;
  7105. osf3* | osf4* | osf5*)
  7106. lt_prog_compiler_wl='-Wl,'
  7107. # All OSF/1 code is PIC.
  7108. lt_prog_compiler_static='-non_shared'
  7109. ;;
  7110. rdos*)
  7111. lt_prog_compiler_static='-non_shared'
  7112. ;;
  7113. solaris*)
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. case $cc_basename in
  7117. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7118. lt_prog_compiler_wl='-Qoption ld ';;
  7119. *)
  7120. lt_prog_compiler_wl='-Wl,';;
  7121. esac
  7122. ;;
  7123. sunos4*)
  7124. lt_prog_compiler_wl='-Qoption ld '
  7125. lt_prog_compiler_pic='-PIC'
  7126. lt_prog_compiler_static='-Bstatic'
  7127. ;;
  7128. sysv4 | sysv4.2uw2* | sysv4.3*)
  7129. lt_prog_compiler_wl='-Wl,'
  7130. lt_prog_compiler_pic='-KPIC'
  7131. lt_prog_compiler_static='-Bstatic'
  7132. ;;
  7133. sysv4*MP*)
  7134. if test -d /usr/nec ;then
  7135. lt_prog_compiler_pic='-Kconform_pic'
  7136. lt_prog_compiler_static='-Bstatic'
  7137. fi
  7138. ;;
  7139. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. lt_prog_compiler_pic='-KPIC'
  7142. lt_prog_compiler_static='-Bstatic'
  7143. ;;
  7144. unicos*)
  7145. lt_prog_compiler_wl='-Wl,'
  7146. lt_prog_compiler_can_build_shared=no
  7147. ;;
  7148. uts4*)
  7149. lt_prog_compiler_pic='-pic'
  7150. lt_prog_compiler_static='-Bstatic'
  7151. ;;
  7152. *)
  7153. lt_prog_compiler_can_build_shared=no
  7154. ;;
  7155. esac
  7156. fi
  7157. case $host_os in
  7158. # For platforms which do not support PIC, -DPIC is meaningless:
  7159. *djgpp*)
  7160. lt_prog_compiler_pic=
  7161. ;;
  7162. *)
  7163. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7164. ;;
  7165. esac
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7167. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7168. if ${lt_cv_prog_compiler_pic+:} false; then :
  7169. $as_echo_n "(cached) " >&6
  7170. else
  7171. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7172. fi
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7174. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7175. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7176. #
  7177. # Check to make sure the PIC flag actually works.
  7178. #
  7179. if test -n "$lt_prog_compiler_pic"; then
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7181. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7182. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. lt_cv_prog_compiler_pic_works=no
  7186. ac_outfile=conftest.$ac_objext
  7187. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7188. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7189. # Insert the option either (1) after the last *FLAGS variable, or
  7190. # (2) before a word containing "conftest.", or (3) at the end.
  7191. # Note that $ac_compile itself does not contain backslashes and begins
  7192. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7193. # The option is referenced via a variable to avoid confusing sed.
  7194. lt_compile=`echo "$ac_compile" | $SED \
  7195. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7196. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7197. -e 's:$: $lt_compiler_flag:'`
  7198. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7199. (eval "$lt_compile" 2>conftest.err)
  7200. ac_status=$?
  7201. cat conftest.err >&5
  7202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7203. if (exit $ac_status) && test -s "$ac_outfile"; then
  7204. # The compiler can only warn and ignore the option if not recognized
  7205. # So say no if there are warnings other than the usual output.
  7206. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7207. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7208. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7209. lt_cv_prog_compiler_pic_works=yes
  7210. fi
  7211. fi
  7212. $RM conftest*
  7213. fi
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7215. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7216. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7217. case $lt_prog_compiler_pic in
  7218. "" | " "*) ;;
  7219. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7220. esac
  7221. else
  7222. lt_prog_compiler_pic=
  7223. lt_prog_compiler_can_build_shared=no
  7224. fi
  7225. fi
  7226. #
  7227. # Check to make sure the static flag actually works.
  7228. #
  7229. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7231. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7232. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7233. $as_echo_n "(cached) " >&6
  7234. else
  7235. lt_cv_prog_compiler_static_works=no
  7236. save_LDFLAGS="$LDFLAGS"
  7237. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7238. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7239. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7240. # The linker can only warn and ignore the option if not recognized
  7241. # So say no if there are warnings
  7242. if test -s conftest.err; then
  7243. # Append any errors to the config.log.
  7244. cat conftest.err 1>&5
  7245. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7246. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7247. if diff conftest.exp conftest.er2 >/dev/null; then
  7248. lt_cv_prog_compiler_static_works=yes
  7249. fi
  7250. else
  7251. lt_cv_prog_compiler_static_works=yes
  7252. fi
  7253. fi
  7254. $RM -r conftest*
  7255. LDFLAGS="$save_LDFLAGS"
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7258. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7259. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7260. :
  7261. else
  7262. lt_prog_compiler_static=
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7265. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7266. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7267. $as_echo_n "(cached) " >&6
  7268. else
  7269. lt_cv_prog_compiler_c_o=no
  7270. $RM -r conftest 2>/dev/null
  7271. mkdir conftest
  7272. cd conftest
  7273. mkdir out
  7274. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7275. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7276. # Insert the option either (1) after the last *FLAGS variable, or
  7277. # (2) before a word containing "conftest.", or (3) at the end.
  7278. # Note that $ac_compile itself does not contain backslashes and begins
  7279. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7280. lt_compile=`echo "$ac_compile" | $SED \
  7281. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7282. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7283. -e 's:$: $lt_compiler_flag:'`
  7284. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7285. (eval "$lt_compile" 2>out/conftest.err)
  7286. ac_status=$?
  7287. cat out/conftest.err >&5
  7288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7289. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7290. then
  7291. # The compiler can only warn and ignore the option if not recognized
  7292. # So say no if there are warnings
  7293. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7294. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7295. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7296. lt_cv_prog_compiler_c_o=yes
  7297. fi
  7298. fi
  7299. chmod u+w . 2>&5
  7300. $RM conftest*
  7301. # SGI C++ compiler will create directory out/ii_files/ for
  7302. # template instantiation
  7303. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7304. $RM out/* && rmdir out
  7305. cd ..
  7306. $RM -r conftest
  7307. $RM conftest*
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7310. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7312. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7313. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. lt_cv_prog_compiler_c_o=no
  7317. $RM -r conftest 2>/dev/null
  7318. mkdir conftest
  7319. cd conftest
  7320. mkdir out
  7321. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7322. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7323. # Insert the option either (1) after the last *FLAGS variable, or
  7324. # (2) before a word containing "conftest.", or (3) at the end.
  7325. # Note that $ac_compile itself does not contain backslashes and begins
  7326. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7327. lt_compile=`echo "$ac_compile" | $SED \
  7328. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7329. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7330. -e 's:$: $lt_compiler_flag:'`
  7331. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7332. (eval "$lt_compile" 2>out/conftest.err)
  7333. ac_status=$?
  7334. cat out/conftest.err >&5
  7335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7336. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7337. then
  7338. # The compiler can only warn and ignore the option if not recognized
  7339. # So say no if there are warnings
  7340. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7341. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7342. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7343. lt_cv_prog_compiler_c_o=yes
  7344. fi
  7345. fi
  7346. chmod u+w . 2>&5
  7347. $RM conftest*
  7348. # SGI C++ compiler will create directory out/ii_files/ for
  7349. # template instantiation
  7350. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7351. $RM out/* && rmdir out
  7352. cd ..
  7353. $RM -r conftest
  7354. $RM conftest*
  7355. fi
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7357. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7358. hard_links="nottested"
  7359. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7360. # do not overwrite the value of need_locks provided by the user
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7362. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7363. hard_links=yes
  7364. $RM conftest*
  7365. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7366. touch conftest.a
  7367. ln conftest.a conftest.b 2>&5 || hard_links=no
  7368. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7370. $as_echo "$hard_links" >&6; }
  7371. if test "$hard_links" = no; then
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7373. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7374. need_locks=warn
  7375. fi
  7376. else
  7377. need_locks=no
  7378. fi
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7380. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7381. runpath_var=
  7382. allow_undefined_flag=
  7383. always_export_symbols=no
  7384. archive_cmds=
  7385. archive_expsym_cmds=
  7386. compiler_needs_object=no
  7387. enable_shared_with_static_runtimes=no
  7388. export_dynamic_flag_spec=
  7389. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7390. hardcode_automatic=no
  7391. hardcode_direct=no
  7392. hardcode_direct_absolute=no
  7393. hardcode_libdir_flag_spec=
  7394. hardcode_libdir_separator=
  7395. hardcode_minus_L=no
  7396. hardcode_shlibpath_var=unsupported
  7397. inherit_rpath=no
  7398. link_all_deplibs=unknown
  7399. module_cmds=
  7400. module_expsym_cmds=
  7401. old_archive_from_new_cmds=
  7402. old_archive_from_expsyms_cmds=
  7403. thread_safe_flag_spec=
  7404. whole_archive_flag_spec=
  7405. # include_expsyms should be a list of space-separated symbols to be *always*
  7406. # included in the symbol list
  7407. include_expsyms=
  7408. # exclude_expsyms can be an extended regexp of symbols to exclude
  7409. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7410. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7411. # as well as any symbol that contains `d'.
  7412. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7413. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7414. # platforms (ab)use it in PIC code, but their linkers get confused if
  7415. # the symbol is explicitly referenced. Since portable code cannot
  7416. # rely on this symbol name, it's probably fine to never include it in
  7417. # preloaded symbol tables.
  7418. # Exclude shared library initialization/finalization symbols.
  7419. extract_expsyms_cmds=
  7420. case $host_os in
  7421. cygwin* | mingw* | pw32* | cegcc*)
  7422. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7423. # When not using gcc, we currently assume that we are using
  7424. # Microsoft Visual C++.
  7425. if test "$GCC" != yes; then
  7426. with_gnu_ld=no
  7427. fi
  7428. ;;
  7429. interix*)
  7430. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7431. with_gnu_ld=yes
  7432. ;;
  7433. openbsd*)
  7434. with_gnu_ld=no
  7435. ;;
  7436. esac
  7437. ld_shlibs=yes
  7438. # On some targets, GNU ld is compatible enough with the native linker
  7439. # that we're better off using the native interface for both.
  7440. lt_use_gnu_ld_interface=no
  7441. if test "$with_gnu_ld" = yes; then
  7442. case $host_os in
  7443. aix*)
  7444. # The AIX port of GNU ld has always aspired to compatibility
  7445. # with the native linker. However, as the warning in the GNU ld
  7446. # block says, versions before 2.19.5* couldn't really create working
  7447. # shared libraries, regardless of the interface used.
  7448. case `$LD -v 2>&1` in
  7449. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7450. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7451. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7452. *)
  7453. lt_use_gnu_ld_interface=yes
  7454. ;;
  7455. esac
  7456. ;;
  7457. *)
  7458. lt_use_gnu_ld_interface=yes
  7459. ;;
  7460. esac
  7461. fi
  7462. if test "$lt_use_gnu_ld_interface" = yes; then
  7463. # If archive_cmds runs LD, not CC, wlarc should be empty
  7464. wlarc='${wl}'
  7465. # Set some defaults for GNU ld with shared library support. These
  7466. # are reset later if shared libraries are not supported. Putting them
  7467. # here allows them to be overridden if necessary.
  7468. runpath_var=LD_RUN_PATH
  7469. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7470. export_dynamic_flag_spec='${wl}--export-dynamic'
  7471. # ancient GNU ld didn't support --whole-archive et. al.
  7472. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7473. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7474. else
  7475. whole_archive_flag_spec=
  7476. fi
  7477. supports_anon_versioning=no
  7478. case `$LD -v 2>&1` in
  7479. *GNU\ gold*) supports_anon_versioning=yes ;;
  7480. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7481. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7482. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7483. *\ 2.11.*) ;; # other 2.11 versions
  7484. *) supports_anon_versioning=yes ;;
  7485. esac
  7486. # See if GNU ld supports shared libraries.
  7487. case $host_os in
  7488. aix[3-9]*)
  7489. # On AIX/PPC, the GNU linker is very broken
  7490. if test "$host_cpu" != ia64; then
  7491. ld_shlibs=no
  7492. cat <<_LT_EOF 1>&2
  7493. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7494. *** to be unable to reliably create shared libraries on AIX.
  7495. *** Therefore, libtool is disabling shared libraries support. If you
  7496. *** really care for shared libraries, you may want to install binutils
  7497. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7498. *** You will then need to restart the configuration process.
  7499. _LT_EOF
  7500. fi
  7501. ;;
  7502. amigaos*)
  7503. case $host_cpu in
  7504. powerpc)
  7505. # see comment about AmigaOS4 .so support
  7506. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7507. archive_expsym_cmds=''
  7508. ;;
  7509. m68k)
  7510. 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)'
  7511. hardcode_libdir_flag_spec='-L$libdir'
  7512. hardcode_minus_L=yes
  7513. ;;
  7514. esac
  7515. ;;
  7516. beos*)
  7517. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7518. allow_undefined_flag=unsupported
  7519. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7520. # support --undefined. This deserves some investigation. FIXME
  7521. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7522. else
  7523. ld_shlibs=no
  7524. fi
  7525. ;;
  7526. cygwin* | mingw* | pw32* | cegcc*)
  7527. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7528. # as there is no search path for DLLs.
  7529. hardcode_libdir_flag_spec='-L$libdir'
  7530. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7531. allow_undefined_flag=unsupported
  7532. always_export_symbols=no
  7533. enable_shared_with_static_runtimes=yes
  7534. 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'
  7535. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7536. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7537. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7538. # If the export-symbols file already is a .def file (1st line
  7539. # is EXPORTS), use it as is; otherwise, prepend...
  7540. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7541. cp $export_symbols $output_objdir/$soname.def;
  7542. else
  7543. echo EXPORTS > $output_objdir/$soname.def;
  7544. cat $export_symbols >> $output_objdir/$soname.def;
  7545. fi~
  7546. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7547. else
  7548. ld_shlibs=no
  7549. fi
  7550. ;;
  7551. haiku*)
  7552. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7553. link_all_deplibs=yes
  7554. ;;
  7555. interix[3-9]*)
  7556. hardcode_direct=no
  7557. hardcode_shlibpath_var=no
  7558. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7559. export_dynamic_flag_spec='${wl}-E'
  7560. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7561. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7562. # default) and relocated if they conflict, which is a slow very memory
  7563. # consuming and fragmenting process. To avoid this, we pick a random,
  7564. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7565. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7566. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7567. 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'
  7568. ;;
  7569. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7570. tmp_diet=no
  7571. if test "$host_os" = linux-dietlibc; then
  7572. case $cc_basename in
  7573. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7574. esac
  7575. fi
  7576. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7577. && test "$tmp_diet" = no
  7578. then
  7579. tmp_addflag=' $pic_flag'
  7580. tmp_sharedflag='-shared'
  7581. case $cc_basename,$host_cpu in
  7582. pgcc*) # Portland Group C compiler
  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'
  7585. ;;
  7586. pgf77* | pgf90* | pgf95* | pgfortran*)
  7587. # Portland Group f77 and f90 compilers
  7588. 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'
  7589. tmp_addflag=' $pic_flag -Mnomain' ;;
  7590. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7591. tmp_addflag=' -i_dynamic' ;;
  7592. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7593. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7594. ifc* | ifort*) # Intel Fortran compiler
  7595. tmp_addflag=' -nofor_main' ;;
  7596. lf95*) # Lahey Fortran 8.1
  7597. whole_archive_flag_spec=
  7598. tmp_sharedflag='--shared' ;;
  7599. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7600. tmp_sharedflag='-qmkshrobj'
  7601. tmp_addflag= ;;
  7602. nvcc*) # Cuda Compiler Driver 2.2
  7603. 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'
  7604. compiler_needs_object=yes
  7605. ;;
  7606. esac
  7607. case `$CC -V 2>&1 | sed 5q` in
  7608. *Sun\ C*) # Sun C 5.9
  7609. 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'
  7610. compiler_needs_object=yes
  7611. tmp_sharedflag='-G' ;;
  7612. *Sun\ F*) # Sun Fortran 8.3
  7613. tmp_sharedflag='-G' ;;
  7614. esac
  7615. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7616. if test "x$supports_anon_versioning" = xyes; then
  7617. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7618. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7619. echo "local: *; };" >> $output_objdir/$libname.ver~
  7620. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7621. fi
  7622. case $cc_basename in
  7623. xlf* | bgf* | bgxlf* | mpixlf*)
  7624. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7625. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7626. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7627. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7628. if test "x$supports_anon_versioning" = xyes; then
  7629. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7630. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7631. echo "local: *; };" >> $output_objdir/$libname.ver~
  7632. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7633. fi
  7634. ;;
  7635. esac
  7636. else
  7637. ld_shlibs=no
  7638. fi
  7639. ;;
  7640. netbsd*)
  7641. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7642. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7643. wlarc=
  7644. else
  7645. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7646. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7647. fi
  7648. ;;
  7649. solaris*)
  7650. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7651. ld_shlibs=no
  7652. cat <<_LT_EOF 1>&2
  7653. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7654. *** create shared libraries on Solaris systems. Therefore, libtool
  7655. *** is disabling shared libraries support. We urge you to upgrade GNU
  7656. *** binutils to release 2.9.1 or newer. Another option is to modify
  7657. *** your PATH or compiler configuration so that the native linker is
  7658. *** used, and then restart.
  7659. _LT_EOF
  7660. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7661. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7662. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7663. else
  7664. ld_shlibs=no
  7665. fi
  7666. ;;
  7667. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7668. case `$LD -v 2>&1` in
  7669. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7670. ld_shlibs=no
  7671. cat <<_LT_EOF 1>&2
  7672. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7673. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7674. *** is disabling shared libraries support. We urge you to upgrade GNU
  7675. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7676. *** your PATH or compiler configuration so that the native linker is
  7677. *** used, and then restart.
  7678. _LT_EOF
  7679. ;;
  7680. *)
  7681. # For security reasons, it is highly recommended that you always
  7682. # use absolute paths for naming shared libraries, and exclude the
  7683. # DT_RUNPATH tag from executables and libraries. But doing so
  7684. # requires that you compile everything twice, which is a pain.
  7685. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7686. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7687. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7688. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. esac
  7694. ;;
  7695. sunos4*)
  7696. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7697. wlarc=
  7698. hardcode_direct=yes
  7699. hardcode_shlibpath_var=no
  7700. ;;
  7701. *)
  7702. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7703. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7704. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7705. else
  7706. ld_shlibs=no
  7707. fi
  7708. ;;
  7709. esac
  7710. if test "$ld_shlibs" = no; then
  7711. runpath_var=
  7712. hardcode_libdir_flag_spec=
  7713. export_dynamic_flag_spec=
  7714. whole_archive_flag_spec=
  7715. fi
  7716. else
  7717. # PORTME fill in a description of your system's linker (not GNU ld)
  7718. case $host_os in
  7719. aix3*)
  7720. allow_undefined_flag=unsupported
  7721. always_export_symbols=yes
  7722. 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'
  7723. # Note: this linker hardcodes the directories in LIBPATH if there
  7724. # are no directories specified by -L.
  7725. hardcode_minus_L=yes
  7726. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7727. # Neither direct hardcoding nor static linking is supported with a
  7728. # broken collect2.
  7729. hardcode_direct=unsupported
  7730. fi
  7731. ;;
  7732. aix[4-9]*)
  7733. if test "$host_cpu" = ia64; then
  7734. # On IA64, the linker does run time linking by default, so we don't
  7735. # have to do anything special.
  7736. aix_use_runtimelinking=no
  7737. exp_sym_flag='-Bexport'
  7738. no_entry_flag=""
  7739. else
  7740. # If we're using GNU nm, then we don't want the "-C" option.
  7741. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7742. # Also, AIX nm treats weak defined symbols like other global
  7743. # defined symbols, whereas GNU nm marks them as "W".
  7744. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7745. 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'
  7746. else
  7747. 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'
  7748. fi
  7749. aix_use_runtimelinking=no
  7750. # Test if we are trying to use run time linking or normal
  7751. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7752. # need to do runtime linking.
  7753. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7754. for ld_flag in $LDFLAGS; do
  7755. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7756. aix_use_runtimelinking=yes
  7757. break
  7758. fi
  7759. done
  7760. ;;
  7761. esac
  7762. exp_sym_flag='-bexport'
  7763. no_entry_flag='-bnoentry'
  7764. fi
  7765. # When large executables or shared objects are built, AIX ld can
  7766. # have problems creating the table of contents. If linking a library
  7767. # or program results in "error TOC overflow" add -mminimal-toc to
  7768. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7769. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7770. archive_cmds=''
  7771. hardcode_direct=yes
  7772. hardcode_direct_absolute=yes
  7773. hardcode_libdir_separator=':'
  7774. link_all_deplibs=yes
  7775. file_list_spec='${wl}-f,'
  7776. if test "$GCC" = yes; then
  7777. case $host_os in aix4.[012]|aix4.[012].*)
  7778. # We only want to do this on AIX 4.2 and lower, the check
  7779. # below for broken collect2 doesn't work under 4.3+
  7780. collect2name=`${CC} -print-prog-name=collect2`
  7781. if test -f "$collect2name" &&
  7782. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7783. then
  7784. # We have reworked collect2
  7785. :
  7786. else
  7787. # We have old collect2
  7788. hardcode_direct=unsupported
  7789. # It fails to find uninstalled libraries when the uninstalled
  7790. # path is not listed in the libpath. Setting hardcode_minus_L
  7791. # to unsupported forces relinking
  7792. hardcode_minus_L=yes
  7793. hardcode_libdir_flag_spec='-L$libdir'
  7794. hardcode_libdir_separator=
  7795. fi
  7796. ;;
  7797. esac
  7798. shared_flag='-shared'
  7799. if test "$aix_use_runtimelinking" = yes; then
  7800. shared_flag="$shared_flag "'${wl}-G'
  7801. fi
  7802. else
  7803. # not using gcc
  7804. if test "$host_cpu" = ia64; then
  7805. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7806. # chokes on -Wl,-G. The following line is correct:
  7807. shared_flag='-G'
  7808. else
  7809. if test "$aix_use_runtimelinking" = yes; then
  7810. shared_flag='${wl}-G'
  7811. else
  7812. shared_flag='${wl}-bM:SRE'
  7813. fi
  7814. fi
  7815. fi
  7816. export_dynamic_flag_spec='${wl}-bexpall'
  7817. # It seems that -bexpall does not export symbols beginning with
  7818. # underscore (_), so it is better to generate a list of symbols to export.
  7819. always_export_symbols=yes
  7820. if test "$aix_use_runtimelinking" = yes; then
  7821. # Warning - without using the other runtime loading flags (-brtl),
  7822. # -berok will link without error, but may produce a broken library.
  7823. allow_undefined_flag='-berok'
  7824. # Determine the default libpath from the value encoded in an
  7825. # empty executable.
  7826. if test "${lt_cv_aix_libpath+set}" = set; then
  7827. aix_libpath=$lt_cv_aix_libpath
  7828. else
  7829. if ${lt_cv_aix_libpath_+:} false; then :
  7830. $as_echo_n "(cached) " >&6
  7831. else
  7832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7833. /* end confdefs.h. */
  7834. int
  7835. main ()
  7836. {
  7837. ;
  7838. return 0;
  7839. }
  7840. _ACEOF
  7841. if ac_fn_c_try_link "$LINENO"; then :
  7842. lt_aix_libpath_sed='
  7843. /Import File Strings/,/^$/ {
  7844. /^0/ {
  7845. s/^0 *\([^ ]*\) *$/\1/
  7846. p
  7847. }
  7848. }'
  7849. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7850. # Check for a 64-bit object if we didn't find anything.
  7851. if test -z "$lt_cv_aix_libpath_"; then
  7852. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7853. fi
  7854. fi
  7855. rm -f core conftest.err conftest.$ac_objext \
  7856. conftest$ac_exeext conftest.$ac_ext
  7857. if test -z "$lt_cv_aix_libpath_"; then
  7858. lt_cv_aix_libpath_="/usr/lib:/lib"
  7859. fi
  7860. fi
  7861. aix_libpath=$lt_cv_aix_libpath_
  7862. fi
  7863. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7864. 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"
  7865. else
  7866. if test "$host_cpu" = ia64; then
  7867. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7868. allow_undefined_flag="-z nodefs"
  7869. 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"
  7870. else
  7871. # Determine the default libpath from the value encoded in an
  7872. # empty executable.
  7873. if test "${lt_cv_aix_libpath+set}" = set; then
  7874. aix_libpath=$lt_cv_aix_libpath
  7875. else
  7876. if ${lt_cv_aix_libpath_+:} false; then :
  7877. $as_echo_n "(cached) " >&6
  7878. else
  7879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7880. /* end confdefs.h. */
  7881. int
  7882. main ()
  7883. {
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. if ac_fn_c_try_link "$LINENO"; then :
  7889. lt_aix_libpath_sed='
  7890. /Import File Strings/,/^$/ {
  7891. /^0/ {
  7892. s/^0 *\([^ ]*\) *$/\1/
  7893. p
  7894. }
  7895. }'
  7896. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7897. # Check for a 64-bit object if we didn't find anything.
  7898. if test -z "$lt_cv_aix_libpath_"; then
  7899. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7900. fi
  7901. fi
  7902. rm -f core conftest.err conftest.$ac_objext \
  7903. conftest$ac_exeext conftest.$ac_ext
  7904. if test -z "$lt_cv_aix_libpath_"; then
  7905. lt_cv_aix_libpath_="/usr/lib:/lib"
  7906. fi
  7907. fi
  7908. aix_libpath=$lt_cv_aix_libpath_
  7909. fi
  7910. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7911. # Warning - without using the other run time loading flags,
  7912. # -berok will link without error, but may produce a broken library.
  7913. no_undefined_flag=' ${wl}-bernotok'
  7914. allow_undefined_flag=' ${wl}-berok'
  7915. if test "$with_gnu_ld" = yes; then
  7916. # We only use this code for GNU lds that support --whole-archive.
  7917. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7918. else
  7919. # Exported symbols can be pulled into shared objects from archives
  7920. whole_archive_flag_spec='$convenience'
  7921. fi
  7922. archive_cmds_need_lc=yes
  7923. # This is similar to how AIX traditionally builds its shared libraries.
  7924. 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'
  7925. fi
  7926. fi
  7927. ;;
  7928. amigaos*)
  7929. case $host_cpu in
  7930. powerpc)
  7931. # see comment about AmigaOS4 .so support
  7932. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7933. archive_expsym_cmds=''
  7934. ;;
  7935. m68k)
  7936. 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)'
  7937. hardcode_libdir_flag_spec='-L$libdir'
  7938. hardcode_minus_L=yes
  7939. ;;
  7940. esac
  7941. ;;
  7942. bsdi[45]*)
  7943. export_dynamic_flag_spec=-rdynamic
  7944. ;;
  7945. cygwin* | mingw* | pw32* | cegcc*)
  7946. # When not using gcc, we currently assume that we are using
  7947. # Microsoft Visual C++.
  7948. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7949. # no search path for DLLs.
  7950. case $cc_basename in
  7951. cl*)
  7952. # Native MSVC
  7953. hardcode_libdir_flag_spec=' '
  7954. allow_undefined_flag=unsupported
  7955. always_export_symbols=yes
  7956. file_list_spec='@'
  7957. # Tell ltmain to make .lib files, not .a files.
  7958. libext=lib
  7959. # Tell ltmain to make .dll files, not .so files.
  7960. shrext_cmds=".dll"
  7961. # FIXME: Setting linknames here is a bad hack.
  7962. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7963. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7964. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7965. else
  7966. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7967. fi~
  7968. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7969. linknames='
  7970. # The linker will not automatically build a static lib if we build a DLL.
  7971. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7972. enable_shared_with_static_runtimes=yes
  7973. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7974. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7975. # Don't use ranlib
  7976. old_postinstall_cmds='chmod 644 $oldlib'
  7977. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7978. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7979. case $lt_outputfile in
  7980. *.exe|*.EXE) ;;
  7981. *)
  7982. lt_outputfile="$lt_outputfile.exe"
  7983. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7984. ;;
  7985. esac~
  7986. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7987. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7988. $RM "$lt_outputfile.manifest";
  7989. fi'
  7990. ;;
  7991. *)
  7992. # Assume MSVC wrapper
  7993. hardcode_libdir_flag_spec=' '
  7994. allow_undefined_flag=unsupported
  7995. # Tell ltmain to make .lib files, not .a files.
  7996. libext=lib
  7997. # Tell ltmain to make .dll files, not .so files.
  7998. shrext_cmds=".dll"
  7999. # FIXME: Setting linknames here is a bad hack.
  8000. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8001. # The linker will automatically build a .lib file if we build a DLL.
  8002. old_archive_from_new_cmds='true'
  8003. # FIXME: Should let the user specify the lib program.
  8004. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8005. enable_shared_with_static_runtimes=yes
  8006. ;;
  8007. esac
  8008. ;;
  8009. darwin* | rhapsody*)
  8010. archive_cmds_need_lc=no
  8011. hardcode_direct=no
  8012. hardcode_automatic=yes
  8013. hardcode_shlibpath_var=unsupported
  8014. if test "$lt_cv_ld_force_load" = "yes"; then
  8015. 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\"`'
  8016. else
  8017. whole_archive_flag_spec=''
  8018. fi
  8019. link_all_deplibs=yes
  8020. allow_undefined_flag="$_lt_dar_allow_undefined"
  8021. case $cc_basename in
  8022. ifort*) _lt_dar_can_shared=yes ;;
  8023. *) _lt_dar_can_shared=$GCC ;;
  8024. esac
  8025. if test "$_lt_dar_can_shared" = "yes"; then
  8026. output_verbose_link_cmd=func_echo_all
  8027. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8028. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8029. 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}"
  8030. 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}"
  8031. else
  8032. ld_shlibs=no
  8033. fi
  8034. ;;
  8035. dgux*)
  8036. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8037. hardcode_libdir_flag_spec='-L$libdir'
  8038. hardcode_shlibpath_var=no
  8039. ;;
  8040. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8041. # support. Future versions do this automatically, but an explicit c++rt0.o
  8042. # does not break anything, and helps significantly (at the cost of a little
  8043. # extra space).
  8044. freebsd2.2*)
  8045. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8046. hardcode_libdir_flag_spec='-R$libdir'
  8047. hardcode_direct=yes
  8048. hardcode_shlibpath_var=no
  8049. ;;
  8050. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8051. freebsd2.*)
  8052. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8053. hardcode_direct=yes
  8054. hardcode_minus_L=yes
  8055. hardcode_shlibpath_var=no
  8056. ;;
  8057. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8058. freebsd* | dragonfly*)
  8059. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8060. hardcode_libdir_flag_spec='-R$libdir'
  8061. hardcode_direct=yes
  8062. hardcode_shlibpath_var=no
  8063. ;;
  8064. hpux9*)
  8065. if test "$GCC" = yes; then
  8066. 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'
  8067. else
  8068. 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'
  8069. fi
  8070. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8071. hardcode_libdir_separator=:
  8072. hardcode_direct=yes
  8073. # hardcode_minus_L: Not really in the search PATH,
  8074. # but as the default location of the library.
  8075. hardcode_minus_L=yes
  8076. export_dynamic_flag_spec='${wl}-E'
  8077. ;;
  8078. hpux10*)
  8079. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8080. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8081. else
  8082. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8083. fi
  8084. if test "$with_gnu_ld" = no; then
  8085. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8086. hardcode_libdir_separator=:
  8087. hardcode_direct=yes
  8088. hardcode_direct_absolute=yes
  8089. export_dynamic_flag_spec='${wl}-E'
  8090. # hardcode_minus_L: Not really in the search PATH,
  8091. # but as the default location of the library.
  8092. hardcode_minus_L=yes
  8093. fi
  8094. ;;
  8095. hpux11*)
  8096. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8097. case $host_cpu in
  8098. hppa*64*)
  8099. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8100. ;;
  8101. ia64*)
  8102. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8103. ;;
  8104. *)
  8105. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8106. ;;
  8107. esac
  8108. else
  8109. case $host_cpu in
  8110. hppa*64*)
  8111. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8112. ;;
  8113. ia64*)
  8114. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8115. ;;
  8116. *)
  8117. # Older versions of the 11.00 compiler do not understand -b yet
  8118. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8120. $as_echo_n "checking if $CC understands -b... " >&6; }
  8121. if ${lt_cv_prog_compiler__b+:} false; then :
  8122. $as_echo_n "(cached) " >&6
  8123. else
  8124. lt_cv_prog_compiler__b=no
  8125. save_LDFLAGS="$LDFLAGS"
  8126. LDFLAGS="$LDFLAGS -b"
  8127. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8128. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8129. # The linker can only warn and ignore the option if not recognized
  8130. # So say no if there are warnings
  8131. if test -s conftest.err; then
  8132. # Append any errors to the config.log.
  8133. cat conftest.err 1>&5
  8134. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8135. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8136. if diff conftest.exp conftest.er2 >/dev/null; then
  8137. lt_cv_prog_compiler__b=yes
  8138. fi
  8139. else
  8140. lt_cv_prog_compiler__b=yes
  8141. fi
  8142. fi
  8143. $RM -r conftest*
  8144. LDFLAGS="$save_LDFLAGS"
  8145. fi
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8147. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8148. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8149. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8150. else
  8151. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8152. fi
  8153. ;;
  8154. esac
  8155. fi
  8156. if test "$with_gnu_ld" = no; then
  8157. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8158. hardcode_libdir_separator=:
  8159. case $host_cpu in
  8160. hppa*64*|ia64*)
  8161. hardcode_direct=no
  8162. hardcode_shlibpath_var=no
  8163. ;;
  8164. *)
  8165. hardcode_direct=yes
  8166. hardcode_direct_absolute=yes
  8167. export_dynamic_flag_spec='${wl}-E'
  8168. # hardcode_minus_L: Not really in the search PATH,
  8169. # but as the default location of the library.
  8170. hardcode_minus_L=yes
  8171. ;;
  8172. esac
  8173. fi
  8174. ;;
  8175. irix5* | irix6* | nonstopux*)
  8176. if test "$GCC" = yes; then
  8177. 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'
  8178. # Try to use the -exported_symbol ld option, if it does not
  8179. # work, assume that -exports_file does not work either and
  8180. # implicitly export all symbols.
  8181. # This should be the same for all languages, so no per-tag cache variable.
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8183. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8184. if ${lt_cv_irix_exported_symbol+:} false; then :
  8185. $as_echo_n "(cached) " >&6
  8186. else
  8187. save_LDFLAGS="$LDFLAGS"
  8188. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8190. /* end confdefs.h. */
  8191. int foo (void) { return 0; }
  8192. _ACEOF
  8193. if ac_fn_c_try_link "$LINENO"; then :
  8194. lt_cv_irix_exported_symbol=yes
  8195. else
  8196. lt_cv_irix_exported_symbol=no
  8197. fi
  8198. rm -f core conftest.err conftest.$ac_objext \
  8199. conftest$ac_exeext conftest.$ac_ext
  8200. LDFLAGS="$save_LDFLAGS"
  8201. fi
  8202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8203. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8204. if test "$lt_cv_irix_exported_symbol" = yes; then
  8205. 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'
  8206. fi
  8207. else
  8208. 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'
  8209. 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'
  8210. fi
  8211. archive_cmds_need_lc='no'
  8212. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8213. hardcode_libdir_separator=:
  8214. inherit_rpath=yes
  8215. link_all_deplibs=yes
  8216. ;;
  8217. netbsd*)
  8218. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8220. else
  8221. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8222. fi
  8223. hardcode_libdir_flag_spec='-R$libdir'
  8224. hardcode_direct=yes
  8225. hardcode_shlibpath_var=no
  8226. ;;
  8227. newsos6)
  8228. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8229. hardcode_direct=yes
  8230. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8231. hardcode_libdir_separator=:
  8232. hardcode_shlibpath_var=no
  8233. ;;
  8234. *nto* | *qnx*)
  8235. ;;
  8236. openbsd*)
  8237. if test -f /usr/libexec/ld.so; then
  8238. hardcode_direct=yes
  8239. hardcode_shlibpath_var=no
  8240. hardcode_direct_absolute=yes
  8241. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8242. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8243. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8244. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8245. export_dynamic_flag_spec='${wl}-E'
  8246. else
  8247. case $host_os in
  8248. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8249. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8250. hardcode_libdir_flag_spec='-R$libdir'
  8251. ;;
  8252. *)
  8253. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8254. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8255. ;;
  8256. esac
  8257. fi
  8258. else
  8259. ld_shlibs=no
  8260. fi
  8261. ;;
  8262. os2*)
  8263. hardcode_libdir_flag_spec='-L$libdir'
  8264. hardcode_minus_L=yes
  8265. allow_undefined_flag=unsupported
  8266. 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'
  8267. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8268. ;;
  8269. osf3*)
  8270. if test "$GCC" = yes; then
  8271. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8272. 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'
  8273. else
  8274. allow_undefined_flag=' -expect_unresolved \*'
  8275. 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'
  8276. fi
  8277. archive_cmds_need_lc='no'
  8278. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8279. hardcode_libdir_separator=:
  8280. ;;
  8281. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8282. if test "$GCC" = yes; then
  8283. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8284. 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'
  8285. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8286. else
  8287. allow_undefined_flag=' -expect_unresolved \*'
  8288. 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'
  8289. 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~
  8290. $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'
  8291. # Both c and cxx compiler support -rpath directly
  8292. hardcode_libdir_flag_spec='-rpath $libdir'
  8293. fi
  8294. archive_cmds_need_lc='no'
  8295. hardcode_libdir_separator=:
  8296. ;;
  8297. solaris*)
  8298. no_undefined_flag=' -z defs'
  8299. if test "$GCC" = yes; then
  8300. wlarc='${wl}'
  8301. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8302. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8303. $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'
  8304. else
  8305. case `$CC -V 2>&1` in
  8306. *"Compilers 5.0"*)
  8307. wlarc=''
  8308. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8309. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8310. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8311. ;;
  8312. *)
  8313. wlarc='${wl}'
  8314. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8315. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8316. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8317. ;;
  8318. esac
  8319. fi
  8320. hardcode_libdir_flag_spec='-R$libdir'
  8321. hardcode_shlibpath_var=no
  8322. case $host_os in
  8323. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8324. *)
  8325. # The compiler driver will combine and reorder linker options,
  8326. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8327. # but is careful enough not to reorder.
  8328. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8329. if test "$GCC" = yes; then
  8330. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8331. else
  8332. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8333. fi
  8334. ;;
  8335. esac
  8336. link_all_deplibs=yes
  8337. ;;
  8338. sunos4*)
  8339. if test "x$host_vendor" = xsequent; then
  8340. # Use $CC to link under sequent, because it throws in some extra .o
  8341. # files that make .init and .fini sections work.
  8342. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8343. else
  8344. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8345. fi
  8346. hardcode_libdir_flag_spec='-L$libdir'
  8347. hardcode_direct=yes
  8348. hardcode_minus_L=yes
  8349. hardcode_shlibpath_var=no
  8350. ;;
  8351. sysv4)
  8352. case $host_vendor in
  8353. sni)
  8354. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8355. hardcode_direct=yes # is this really true???
  8356. ;;
  8357. siemens)
  8358. ## LD is ld it makes a PLAMLIB
  8359. ## CC just makes a GrossModule.
  8360. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8361. reload_cmds='$CC -r -o $output$reload_objs'
  8362. hardcode_direct=no
  8363. ;;
  8364. motorola)
  8365. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8366. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8367. ;;
  8368. esac
  8369. runpath_var='LD_RUN_PATH'
  8370. hardcode_shlibpath_var=no
  8371. ;;
  8372. sysv4.3*)
  8373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8374. hardcode_shlibpath_var=no
  8375. export_dynamic_flag_spec='-Bexport'
  8376. ;;
  8377. sysv4*MP*)
  8378. if test -d /usr/nec; then
  8379. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8380. hardcode_shlibpath_var=no
  8381. runpath_var=LD_RUN_PATH
  8382. hardcode_runpath_var=yes
  8383. ld_shlibs=yes
  8384. fi
  8385. ;;
  8386. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8387. no_undefined_flag='${wl}-z,text'
  8388. archive_cmds_need_lc=no
  8389. hardcode_shlibpath_var=no
  8390. runpath_var='LD_RUN_PATH'
  8391. if test "$GCC" = yes; then
  8392. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8393. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8394. else
  8395. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8396. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8397. fi
  8398. ;;
  8399. sysv5* | sco3.2v5* | sco5v6*)
  8400. # Note: We can NOT use -z defs as we might desire, because we do not
  8401. # link with -lc, and that would cause any symbols used from libc to
  8402. # always be unresolved, which means just about no library would
  8403. # ever link correctly. If we're not using GNU ld we use -z text
  8404. # though, which does catch some bad symbols but isn't as heavy-handed
  8405. # as -z defs.
  8406. no_undefined_flag='${wl}-z,text'
  8407. allow_undefined_flag='${wl}-z,nodefs'
  8408. archive_cmds_need_lc=no
  8409. hardcode_shlibpath_var=no
  8410. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8411. hardcode_libdir_separator=':'
  8412. link_all_deplibs=yes
  8413. export_dynamic_flag_spec='${wl}-Bexport'
  8414. runpath_var='LD_RUN_PATH'
  8415. if test "$GCC" = yes; then
  8416. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8417. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8418. else
  8419. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8420. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8421. fi
  8422. ;;
  8423. uts4*)
  8424. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8425. hardcode_libdir_flag_spec='-L$libdir'
  8426. hardcode_shlibpath_var=no
  8427. ;;
  8428. *)
  8429. ld_shlibs=no
  8430. ;;
  8431. esac
  8432. if test x$host_vendor = xsni; then
  8433. case $host in
  8434. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8435. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8436. ;;
  8437. esac
  8438. fi
  8439. fi
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8441. $as_echo "$ld_shlibs" >&6; }
  8442. test "$ld_shlibs" = no && can_build_shared=no
  8443. with_gnu_ld=$with_gnu_ld
  8444. #
  8445. # Do we need to explicitly link libc?
  8446. #
  8447. case "x$archive_cmds_need_lc" in
  8448. x|xyes)
  8449. # Assume -lc should be added
  8450. archive_cmds_need_lc=yes
  8451. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8452. case $archive_cmds in
  8453. *'~'*)
  8454. # FIXME: we may have to deal with multi-command sequences.
  8455. ;;
  8456. '$CC '*)
  8457. # Test whether the compiler implicitly links with -lc since on some
  8458. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8459. # to ld, don't add -lc before -lgcc.
  8460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8461. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8462. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8463. $as_echo_n "(cached) " >&6
  8464. else
  8465. $RM conftest*
  8466. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8467. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8468. (eval $ac_compile) 2>&5
  8469. ac_status=$?
  8470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8471. test $ac_status = 0; } 2>conftest.err; then
  8472. soname=conftest
  8473. lib=conftest
  8474. libobjs=conftest.$ac_objext
  8475. deplibs=
  8476. wl=$lt_prog_compiler_wl
  8477. pic_flag=$lt_prog_compiler_pic
  8478. compiler_flags=-v
  8479. linker_flags=-v
  8480. verstring=
  8481. output_objdir=.
  8482. libname=conftest
  8483. lt_save_allow_undefined_flag=$allow_undefined_flag
  8484. allow_undefined_flag=
  8485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8486. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8487. ac_status=$?
  8488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8489. test $ac_status = 0; }
  8490. then
  8491. lt_cv_archive_cmds_need_lc=no
  8492. else
  8493. lt_cv_archive_cmds_need_lc=yes
  8494. fi
  8495. allow_undefined_flag=$lt_save_allow_undefined_flag
  8496. else
  8497. cat conftest.err 1>&5
  8498. fi
  8499. $RM conftest*
  8500. fi
  8501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8502. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8503. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8504. ;;
  8505. esac
  8506. fi
  8507. ;;
  8508. esac
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8510. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8511. if test "$GCC" = yes; then
  8512. case $host_os in
  8513. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8514. *) lt_awk_arg="/^libraries:/" ;;
  8515. esac
  8516. case $host_os in
  8517. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8518. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8519. esac
  8520. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8521. case $lt_search_path_spec in
  8522. *\;*)
  8523. # if the path contains ";" then we assume it to be the separator
  8524. # otherwise default to the standard path separator (i.e. ":") - it is
  8525. # assumed that no part of a normal pathname contains ";" but that should
  8526. # okay in the real world where ";" in dirpaths is itself problematic.
  8527. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8528. ;;
  8529. *)
  8530. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8531. ;;
  8532. esac
  8533. # Ok, now we have the path, separated by spaces, we can step through it
  8534. # and add multilib dir if necessary.
  8535. lt_tmp_lt_search_path_spec=
  8536. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8537. for lt_sys_path in $lt_search_path_spec; do
  8538. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8539. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8540. else
  8541. test -d "$lt_sys_path" && \
  8542. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8543. fi
  8544. done
  8545. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8546. BEGIN {RS=" "; FS="/|\n";} {
  8547. lt_foo="";
  8548. lt_count=0;
  8549. for (lt_i = NF; lt_i > 0; lt_i--) {
  8550. if ($lt_i != "" && $lt_i != ".") {
  8551. if ($lt_i == "..") {
  8552. lt_count++;
  8553. } else {
  8554. if (lt_count == 0) {
  8555. lt_foo="/" $lt_i lt_foo;
  8556. } else {
  8557. lt_count--;
  8558. }
  8559. }
  8560. }
  8561. }
  8562. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8563. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8564. }'`
  8565. # AWK program above erroneously prepends '/' to C:/dos/paths
  8566. # for these hosts.
  8567. case $host_os in
  8568. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8569. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8570. esac
  8571. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8572. else
  8573. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8574. fi
  8575. library_names_spec=
  8576. libname_spec='lib$name'
  8577. soname_spec=
  8578. shrext_cmds=".so"
  8579. postinstall_cmds=
  8580. postuninstall_cmds=
  8581. finish_cmds=
  8582. finish_eval=
  8583. shlibpath_var=
  8584. shlibpath_overrides_runpath=unknown
  8585. version_type=none
  8586. dynamic_linker="$host_os ld.so"
  8587. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8588. need_lib_prefix=unknown
  8589. hardcode_into_libs=no
  8590. # when you set need_version to no, make sure it does not cause -set_version
  8591. # flags to be left without arguments
  8592. need_version=unknown
  8593. case $host_os in
  8594. aix3*)
  8595. version_type=linux # correct to gnu/linux during the next big refactor
  8596. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8597. shlibpath_var=LIBPATH
  8598. # AIX 3 has no versioning support, so we append a major version to the name.
  8599. soname_spec='${libname}${release}${shared_ext}$major'
  8600. ;;
  8601. aix[4-9]*)
  8602. version_type=linux # correct to gnu/linux during the next big refactor
  8603. need_lib_prefix=no
  8604. need_version=no
  8605. hardcode_into_libs=yes
  8606. if test "$host_cpu" = ia64; then
  8607. # AIX 5 supports IA64
  8608. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8609. shlibpath_var=LD_LIBRARY_PATH
  8610. else
  8611. # With GCC up to 2.95.x, collect2 would create an import file
  8612. # for dependence libraries. The import file would start with
  8613. # the line `#! .'. This would cause the generated library to
  8614. # depend on `.', always an invalid library. This was fixed in
  8615. # development snapshots of GCC prior to 3.0.
  8616. case $host_os in
  8617. aix4 | aix4.[01] | aix4.[01].*)
  8618. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8619. echo ' yes '
  8620. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8621. :
  8622. else
  8623. can_build_shared=no
  8624. fi
  8625. ;;
  8626. esac
  8627. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8628. # soname into executable. Probably we can add versioning support to
  8629. # collect2, so additional links can be useful in future.
  8630. if test "$aix_use_runtimelinking" = yes; then
  8631. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8632. # instead of lib<name>.a to let people know that these are not
  8633. # typical AIX shared libraries.
  8634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8635. else
  8636. # We preserve .a as extension for shared libraries through AIX4.2
  8637. # and later when we are not doing run time linking.
  8638. library_names_spec='${libname}${release}.a $libname.a'
  8639. soname_spec='${libname}${release}${shared_ext}$major'
  8640. fi
  8641. shlibpath_var=LIBPATH
  8642. fi
  8643. ;;
  8644. amigaos*)
  8645. case $host_cpu in
  8646. powerpc)
  8647. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8648. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8650. ;;
  8651. m68k)
  8652. library_names_spec='$libname.ixlibrary $libname.a'
  8653. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8654. 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'
  8655. ;;
  8656. esac
  8657. ;;
  8658. beos*)
  8659. library_names_spec='${libname}${shared_ext}'
  8660. dynamic_linker="$host_os ld.so"
  8661. shlibpath_var=LIBRARY_PATH
  8662. ;;
  8663. bsdi[45]*)
  8664. version_type=linux # correct to gnu/linux during the next big refactor
  8665. need_version=no
  8666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8667. soname_spec='${libname}${release}${shared_ext}$major'
  8668. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8669. shlibpath_var=LD_LIBRARY_PATH
  8670. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8671. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8672. # the default ld.so.conf also contains /usr/contrib/lib and
  8673. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8674. # libtool to hard-code these into programs
  8675. ;;
  8676. cygwin* | mingw* | pw32* | cegcc*)
  8677. version_type=windows
  8678. shrext_cmds=".dll"
  8679. need_version=no
  8680. need_lib_prefix=no
  8681. case $GCC,$cc_basename in
  8682. yes,*)
  8683. # gcc
  8684. library_names_spec='$libname.dll.a'
  8685. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8686. postinstall_cmds='base_file=`basename \${file}`~
  8687. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8688. dldir=$destdir/`dirname \$dlpath`~
  8689. test -d \$dldir || mkdir -p \$dldir~
  8690. $install_prog $dir/$dlname \$dldir/$dlname~
  8691. chmod a+x \$dldir/$dlname~
  8692. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8693. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8694. fi'
  8695. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8696. dlpath=$dir/\$dldll~
  8697. $RM \$dlpath'
  8698. shlibpath_overrides_runpath=yes
  8699. case $host_os in
  8700. cygwin*)
  8701. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8702. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8703. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8704. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8705. ;;
  8706. mingw* | cegcc*)
  8707. # MinGW DLLs use traditional 'lib' prefix
  8708. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8709. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8710. ;;
  8711. pw32*)
  8712. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8713. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8714. ;;
  8715. esac
  8716. dynamic_linker='Win32 ld.exe'
  8717. ;;
  8718. *,cl*)
  8719. # Native MSVC
  8720. libname_spec='$name'
  8721. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8722. library_names_spec='${libname}.dll.lib'
  8723. case $build_os in
  8724. mingw*)
  8725. sys_lib_search_path_spec=
  8726. lt_save_ifs=$IFS
  8727. IFS=';'
  8728. for lt_path in $LIB
  8729. do
  8730. IFS=$lt_save_ifs
  8731. # Let DOS variable expansion print the short 8.3 style file name.
  8732. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8733. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8734. done
  8735. IFS=$lt_save_ifs
  8736. # Convert to MSYS style.
  8737. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8738. ;;
  8739. cygwin*)
  8740. # Convert to unix form, then to dos form, then back to unix form
  8741. # but this time dos style (no spaces!) so that the unix form looks
  8742. # like /cygdrive/c/PROGRA~1:/cygdr...
  8743. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8744. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8745. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8746. ;;
  8747. *)
  8748. sys_lib_search_path_spec="$LIB"
  8749. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8750. # It is most probably a Windows format PATH.
  8751. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8752. else
  8753. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8754. fi
  8755. # FIXME: find the short name or the path components, as spaces are
  8756. # common. (e.g. "Program Files" -> "PROGRA~1")
  8757. ;;
  8758. esac
  8759. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8760. postinstall_cmds='base_file=`basename \${file}`~
  8761. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8762. dldir=$destdir/`dirname \$dlpath`~
  8763. test -d \$dldir || mkdir -p \$dldir~
  8764. $install_prog $dir/$dlname \$dldir/$dlname'
  8765. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8766. dlpath=$dir/\$dldll~
  8767. $RM \$dlpath'
  8768. shlibpath_overrides_runpath=yes
  8769. dynamic_linker='Win32 link.exe'
  8770. ;;
  8771. *)
  8772. # Assume MSVC wrapper
  8773. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8774. dynamic_linker='Win32 ld.exe'
  8775. ;;
  8776. esac
  8777. # FIXME: first we should search . and the directory the executable is in
  8778. shlibpath_var=PATH
  8779. ;;
  8780. darwin* | rhapsody*)
  8781. dynamic_linker="$host_os dyld"
  8782. version_type=darwin
  8783. need_lib_prefix=no
  8784. need_version=no
  8785. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8786. soname_spec='${libname}${release}${major}$shared_ext'
  8787. shlibpath_overrides_runpath=yes
  8788. shlibpath_var=DYLD_LIBRARY_PATH
  8789. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8790. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8791. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8792. ;;
  8793. dgux*)
  8794. version_type=linux # correct to gnu/linux during the next big refactor
  8795. need_lib_prefix=no
  8796. need_version=no
  8797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8798. soname_spec='${libname}${release}${shared_ext}$major'
  8799. shlibpath_var=LD_LIBRARY_PATH
  8800. ;;
  8801. freebsd* | dragonfly*)
  8802. # DragonFly does not have aout. When/if they implement a new
  8803. # versioning mechanism, adjust this.
  8804. if test -x /usr/bin/objformat; then
  8805. objformat=`/usr/bin/objformat`
  8806. else
  8807. case $host_os in
  8808. freebsd[23].*) objformat=aout ;;
  8809. *) objformat=elf ;;
  8810. esac
  8811. fi
  8812. version_type=freebsd-$objformat
  8813. case $version_type in
  8814. freebsd-elf*)
  8815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8816. need_version=no
  8817. need_lib_prefix=no
  8818. ;;
  8819. freebsd-*)
  8820. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8821. need_version=yes
  8822. ;;
  8823. esac
  8824. shlibpath_var=LD_LIBRARY_PATH
  8825. case $host_os in
  8826. freebsd2.*)
  8827. shlibpath_overrides_runpath=yes
  8828. ;;
  8829. freebsd3.[01]* | freebsdelf3.[01]*)
  8830. shlibpath_overrides_runpath=yes
  8831. hardcode_into_libs=yes
  8832. ;;
  8833. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8834. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8835. shlibpath_overrides_runpath=no
  8836. hardcode_into_libs=yes
  8837. ;;
  8838. *) # from 4.6 on, and DragonFly
  8839. shlibpath_overrides_runpath=yes
  8840. hardcode_into_libs=yes
  8841. ;;
  8842. esac
  8843. ;;
  8844. gnu*)
  8845. version_type=linux # correct to gnu/linux during the next big refactor
  8846. need_lib_prefix=no
  8847. need_version=no
  8848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8849. soname_spec='${libname}${release}${shared_ext}$major'
  8850. shlibpath_var=LD_LIBRARY_PATH
  8851. shlibpath_overrides_runpath=no
  8852. hardcode_into_libs=yes
  8853. ;;
  8854. haiku*)
  8855. version_type=linux # correct to gnu/linux during the next big refactor
  8856. need_lib_prefix=no
  8857. need_version=no
  8858. dynamic_linker="$host_os runtime_loader"
  8859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8860. soname_spec='${libname}${release}${shared_ext}$major'
  8861. shlibpath_var=LIBRARY_PATH
  8862. shlibpath_overrides_runpath=yes
  8863. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8864. hardcode_into_libs=yes
  8865. ;;
  8866. hpux9* | hpux10* | hpux11*)
  8867. # Give a soname corresponding to the major version so that dld.sl refuses to
  8868. # link against other versions.
  8869. version_type=sunos
  8870. need_lib_prefix=no
  8871. need_version=no
  8872. case $host_cpu in
  8873. ia64*)
  8874. shrext_cmds='.so'
  8875. hardcode_into_libs=yes
  8876. dynamic_linker="$host_os dld.so"
  8877. shlibpath_var=LD_LIBRARY_PATH
  8878. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8880. soname_spec='${libname}${release}${shared_ext}$major'
  8881. if test "X$HPUX_IA64_MODE" = X32; then
  8882. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8883. else
  8884. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8885. fi
  8886. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8887. ;;
  8888. hppa*64*)
  8889. shrext_cmds='.sl'
  8890. hardcode_into_libs=yes
  8891. dynamic_linker="$host_os dld.sl"
  8892. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8893. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8895. soname_spec='${libname}${release}${shared_ext}$major'
  8896. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8897. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8898. ;;
  8899. *)
  8900. shrext_cmds='.sl'
  8901. dynamic_linker="$host_os dld.sl"
  8902. shlibpath_var=SHLIB_PATH
  8903. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. ;;
  8907. esac
  8908. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8909. postinstall_cmds='chmod 555 $lib'
  8910. # or fails outright, so override atomically:
  8911. install_override_mode=555
  8912. ;;
  8913. interix[3-9]*)
  8914. version_type=linux # correct to gnu/linux during the next big refactor
  8915. need_lib_prefix=no
  8916. need_version=no
  8917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8918. soname_spec='${libname}${release}${shared_ext}$major'
  8919. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8920. shlibpath_var=LD_LIBRARY_PATH
  8921. shlibpath_overrides_runpath=no
  8922. hardcode_into_libs=yes
  8923. ;;
  8924. irix5* | irix6* | nonstopux*)
  8925. case $host_os in
  8926. nonstopux*) version_type=nonstopux ;;
  8927. *)
  8928. if test "$lt_cv_prog_gnu_ld" = yes; then
  8929. version_type=linux # correct to gnu/linux during the next big refactor
  8930. else
  8931. version_type=irix
  8932. fi ;;
  8933. esac
  8934. need_lib_prefix=no
  8935. need_version=no
  8936. soname_spec='${libname}${release}${shared_ext}$major'
  8937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8938. case $host_os in
  8939. irix5* | nonstopux*)
  8940. libsuff= shlibsuff=
  8941. ;;
  8942. *)
  8943. case $LD in # libtool.m4 will add one of these switches to LD
  8944. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8945. libsuff= shlibsuff= libmagic=32-bit;;
  8946. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8947. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8948. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8949. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8950. *) libsuff= shlibsuff= libmagic=never-match;;
  8951. esac
  8952. ;;
  8953. esac
  8954. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8955. shlibpath_overrides_runpath=no
  8956. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8957. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8958. hardcode_into_libs=yes
  8959. ;;
  8960. # No shared lib support for Linux oldld, aout, or coff.
  8961. linux*oldld* | linux*aout* | linux*coff*)
  8962. dynamic_linker=no
  8963. ;;
  8964. # This must be glibc/ELF.
  8965. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8966. version_type=linux # correct to gnu/linux during the next big refactor
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. shlibpath_overrides_runpath=no
  8974. # Some binutils ld are patched to set DT_RUNPATH
  8975. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8976. $as_echo_n "(cached) " >&6
  8977. else
  8978. lt_cv_shlibpath_overrides_runpath=no
  8979. save_LDFLAGS=$LDFLAGS
  8980. save_libdir=$libdir
  8981. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8982. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8984. /* end confdefs.h. */
  8985. int
  8986. main ()
  8987. {
  8988. ;
  8989. return 0;
  8990. }
  8991. _ACEOF
  8992. if ac_fn_c_try_link "$LINENO"; then :
  8993. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8994. lt_cv_shlibpath_overrides_runpath=yes
  8995. fi
  8996. fi
  8997. rm -f core conftest.err conftest.$ac_objext \
  8998. conftest$ac_exeext conftest.$ac_ext
  8999. LDFLAGS=$save_LDFLAGS
  9000. libdir=$save_libdir
  9001. fi
  9002. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9003. # This implies no fast_install, which is unacceptable.
  9004. # Some rework will be needed to allow for fast_install
  9005. # before this can be enabled.
  9006. hardcode_into_libs=yes
  9007. # Append ld.so.conf contents to the search path
  9008. if test -f /etc/ld.so.conf; then
  9009. 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' ' '`
  9010. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9011. fi
  9012. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9013. # powerpc, because MkLinux only supported shared libraries with the
  9014. # GNU dynamic linker. Since this was broken with cross compilers,
  9015. # most powerpc-linux boxes support dynamic linking these days and
  9016. # people can always --disable-shared, the test was removed, and we
  9017. # assume the GNU/Linux dynamic linker is in use.
  9018. dynamic_linker='GNU/Linux ld.so'
  9019. ;;
  9020. netbsd*)
  9021. version_type=sunos
  9022. need_lib_prefix=no
  9023. need_version=no
  9024. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9026. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9027. dynamic_linker='NetBSD (a.out) ld.so'
  9028. else
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. dynamic_linker='NetBSD ld.elf_so'
  9032. fi
  9033. shlibpath_var=LD_LIBRARY_PATH
  9034. shlibpath_overrides_runpath=yes
  9035. hardcode_into_libs=yes
  9036. ;;
  9037. newsos6)
  9038. version_type=linux # correct to gnu/linux during the next big refactor
  9039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9040. shlibpath_var=LD_LIBRARY_PATH
  9041. shlibpath_overrides_runpath=yes
  9042. ;;
  9043. *nto* | *qnx*)
  9044. version_type=qnx
  9045. need_lib_prefix=no
  9046. need_version=no
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. soname_spec='${libname}${release}${shared_ext}$major'
  9049. shlibpath_var=LD_LIBRARY_PATH
  9050. shlibpath_overrides_runpath=no
  9051. hardcode_into_libs=yes
  9052. dynamic_linker='ldqnx.so'
  9053. ;;
  9054. openbsd*)
  9055. version_type=sunos
  9056. sys_lib_dlsearch_path_spec="/usr/lib"
  9057. need_lib_prefix=no
  9058. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9059. case $host_os in
  9060. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9061. *) need_version=no ;;
  9062. esac
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9064. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9065. shlibpath_var=LD_LIBRARY_PATH
  9066. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9067. case $host_os in
  9068. openbsd2.[89] | openbsd2.[89].*)
  9069. shlibpath_overrides_runpath=no
  9070. ;;
  9071. *)
  9072. shlibpath_overrides_runpath=yes
  9073. ;;
  9074. esac
  9075. else
  9076. shlibpath_overrides_runpath=yes
  9077. fi
  9078. ;;
  9079. os2*)
  9080. libname_spec='$name'
  9081. shrext_cmds=".dll"
  9082. need_lib_prefix=no
  9083. library_names_spec='$libname${shared_ext} $libname.a'
  9084. dynamic_linker='OS/2 ld.exe'
  9085. shlibpath_var=LIBPATH
  9086. ;;
  9087. osf3* | osf4* | osf5*)
  9088. version_type=osf
  9089. need_lib_prefix=no
  9090. need_version=no
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9095. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9096. ;;
  9097. rdos*)
  9098. dynamic_linker=no
  9099. ;;
  9100. solaris*)
  9101. version_type=linux # correct to gnu/linux during the next big refactor
  9102. need_lib_prefix=no
  9103. need_version=no
  9104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9105. soname_spec='${libname}${release}${shared_ext}$major'
  9106. shlibpath_var=LD_LIBRARY_PATH
  9107. shlibpath_overrides_runpath=yes
  9108. hardcode_into_libs=yes
  9109. # ldd complains unless libraries are executable
  9110. postinstall_cmds='chmod +x $lib'
  9111. ;;
  9112. sunos4*)
  9113. version_type=sunos
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9115. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9116. shlibpath_var=LD_LIBRARY_PATH
  9117. shlibpath_overrides_runpath=yes
  9118. if test "$with_gnu_ld" = yes; then
  9119. need_lib_prefix=no
  9120. fi
  9121. need_version=yes
  9122. ;;
  9123. sysv4 | sysv4.3*)
  9124. version_type=linux # correct to gnu/linux during the next big refactor
  9125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9126. soname_spec='${libname}${release}${shared_ext}$major'
  9127. shlibpath_var=LD_LIBRARY_PATH
  9128. case $host_vendor in
  9129. sni)
  9130. shlibpath_overrides_runpath=no
  9131. need_lib_prefix=no
  9132. runpath_var=LD_RUN_PATH
  9133. ;;
  9134. siemens)
  9135. need_lib_prefix=no
  9136. ;;
  9137. motorola)
  9138. need_lib_prefix=no
  9139. need_version=no
  9140. shlibpath_overrides_runpath=no
  9141. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9142. ;;
  9143. esac
  9144. ;;
  9145. sysv4*MP*)
  9146. if test -d /usr/nec ;then
  9147. version_type=linux # correct to gnu/linux during the next big refactor
  9148. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9149. soname_spec='$libname${shared_ext}.$major'
  9150. shlibpath_var=LD_LIBRARY_PATH
  9151. fi
  9152. ;;
  9153. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9154. version_type=freebsd-elf
  9155. need_lib_prefix=no
  9156. need_version=no
  9157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9158. soname_spec='${libname}${release}${shared_ext}$major'
  9159. shlibpath_var=LD_LIBRARY_PATH
  9160. shlibpath_overrides_runpath=yes
  9161. hardcode_into_libs=yes
  9162. if test "$with_gnu_ld" = yes; then
  9163. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9164. else
  9165. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9166. case $host_os in
  9167. sco3.2v5*)
  9168. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9169. ;;
  9170. esac
  9171. fi
  9172. sys_lib_dlsearch_path_spec='/usr/lib'
  9173. ;;
  9174. tpf*)
  9175. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9176. version_type=linux # correct to gnu/linux during the next big refactor
  9177. need_lib_prefix=no
  9178. need_version=no
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9180. shlibpath_var=LD_LIBRARY_PATH
  9181. shlibpath_overrides_runpath=no
  9182. hardcode_into_libs=yes
  9183. ;;
  9184. uts4*)
  9185. version_type=linux # correct to gnu/linux during the next big refactor
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9187. soname_spec='${libname}${release}${shared_ext}$major'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. ;;
  9190. *)
  9191. dynamic_linker=no
  9192. ;;
  9193. esac
  9194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9195. $as_echo "$dynamic_linker" >&6; }
  9196. test "$dynamic_linker" = no && can_build_shared=no
  9197. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9198. if test "$GCC" = yes; then
  9199. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9200. fi
  9201. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9202. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9203. fi
  9204. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9205. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9206. fi
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9208. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9209. hardcode_action=
  9210. if test -n "$hardcode_libdir_flag_spec" ||
  9211. test -n "$runpath_var" ||
  9212. test "X$hardcode_automatic" = "Xyes" ; then
  9213. # We can hardcode non-existent directories.
  9214. if test "$hardcode_direct" != no &&
  9215. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9216. # have to relink, otherwise we might link with an installed library
  9217. # when we should be linking with a yet-to-be-installed one
  9218. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9219. test "$hardcode_minus_L" != no; then
  9220. # Linking always hardcodes the temporary library directory.
  9221. hardcode_action=relink
  9222. else
  9223. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9224. hardcode_action=immediate
  9225. fi
  9226. else
  9227. # We cannot hardcode anything, or else we can only hardcode existing
  9228. # directories.
  9229. hardcode_action=unsupported
  9230. fi
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9232. $as_echo "$hardcode_action" >&6; }
  9233. if test "$hardcode_action" = relink ||
  9234. test "$inherit_rpath" = yes; then
  9235. # Fast installation is not supported
  9236. enable_fast_install=no
  9237. elif test "$shlibpath_overrides_runpath" = yes ||
  9238. test "$enable_shared" = no; then
  9239. # Fast installation is not necessary
  9240. enable_fast_install=needless
  9241. fi
  9242. if test "x$enable_dlopen" != xyes; then
  9243. enable_dlopen=unknown
  9244. enable_dlopen_self=unknown
  9245. enable_dlopen_self_static=unknown
  9246. else
  9247. lt_cv_dlopen=no
  9248. lt_cv_dlopen_libs=
  9249. case $host_os in
  9250. beos*)
  9251. lt_cv_dlopen="load_add_on"
  9252. lt_cv_dlopen_libs=
  9253. lt_cv_dlopen_self=yes
  9254. ;;
  9255. mingw* | pw32* | cegcc*)
  9256. lt_cv_dlopen="LoadLibrary"
  9257. lt_cv_dlopen_libs=
  9258. ;;
  9259. cygwin*)
  9260. lt_cv_dlopen="dlopen"
  9261. lt_cv_dlopen_libs=
  9262. ;;
  9263. darwin*)
  9264. # if libdl is installed we need to link against it
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9266. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9267. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9268. $as_echo_n "(cached) " >&6
  9269. else
  9270. ac_check_lib_save_LIBS=$LIBS
  9271. LIBS="-ldl $LIBS"
  9272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9273. /* end confdefs.h. */
  9274. /* Override any GCC internal prototype to avoid an error.
  9275. Use char because int might match the return type of a GCC
  9276. builtin and then its argument prototype would still apply. */
  9277. #ifdef __cplusplus
  9278. extern "C"
  9279. #endif
  9280. char dlopen ();
  9281. int
  9282. main ()
  9283. {
  9284. return dlopen ();
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. if ac_fn_c_try_link "$LINENO"; then :
  9290. ac_cv_lib_dl_dlopen=yes
  9291. else
  9292. ac_cv_lib_dl_dlopen=no
  9293. fi
  9294. rm -f core conftest.err conftest.$ac_objext \
  9295. conftest$ac_exeext conftest.$ac_ext
  9296. LIBS=$ac_check_lib_save_LIBS
  9297. fi
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9299. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9300. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9301. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9302. else
  9303. lt_cv_dlopen="dyld"
  9304. lt_cv_dlopen_libs=
  9305. lt_cv_dlopen_self=yes
  9306. fi
  9307. ;;
  9308. *)
  9309. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9310. if test "x$ac_cv_func_shl_load" = xyes; then :
  9311. lt_cv_dlopen="shl_load"
  9312. else
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9314. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9315. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9316. $as_echo_n "(cached) " >&6
  9317. else
  9318. ac_check_lib_save_LIBS=$LIBS
  9319. LIBS="-ldld $LIBS"
  9320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9321. /* end confdefs.h. */
  9322. /* Override any GCC internal prototype to avoid an error.
  9323. Use char because int might match the return type of a GCC
  9324. builtin and then its argument prototype would still apply. */
  9325. #ifdef __cplusplus
  9326. extern "C"
  9327. #endif
  9328. char shl_load ();
  9329. int
  9330. main ()
  9331. {
  9332. return shl_load ();
  9333. ;
  9334. return 0;
  9335. }
  9336. _ACEOF
  9337. if ac_fn_c_try_link "$LINENO"; then :
  9338. ac_cv_lib_dld_shl_load=yes
  9339. else
  9340. ac_cv_lib_dld_shl_load=no
  9341. fi
  9342. rm -f core conftest.err conftest.$ac_objext \
  9343. conftest$ac_exeext conftest.$ac_ext
  9344. LIBS=$ac_check_lib_save_LIBS
  9345. fi
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9347. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9348. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9349. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9350. else
  9351. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9352. if test "x$ac_cv_func_dlopen" = xyes; then :
  9353. lt_cv_dlopen="dlopen"
  9354. else
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9356. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9357. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9358. $as_echo_n "(cached) " >&6
  9359. else
  9360. ac_check_lib_save_LIBS=$LIBS
  9361. LIBS="-ldl $LIBS"
  9362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9363. /* end confdefs.h. */
  9364. /* Override any GCC internal prototype to avoid an error.
  9365. Use char because int might match the return type of a GCC
  9366. builtin and then its argument prototype would still apply. */
  9367. #ifdef __cplusplus
  9368. extern "C"
  9369. #endif
  9370. char dlopen ();
  9371. int
  9372. main ()
  9373. {
  9374. return dlopen ();
  9375. ;
  9376. return 0;
  9377. }
  9378. _ACEOF
  9379. if ac_fn_c_try_link "$LINENO"; then :
  9380. ac_cv_lib_dl_dlopen=yes
  9381. else
  9382. ac_cv_lib_dl_dlopen=no
  9383. fi
  9384. rm -f core conftest.err conftest.$ac_objext \
  9385. conftest$ac_exeext conftest.$ac_ext
  9386. LIBS=$ac_check_lib_save_LIBS
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9389. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9390. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9391. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9392. else
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9394. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9395. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9396. $as_echo_n "(cached) " >&6
  9397. else
  9398. ac_check_lib_save_LIBS=$LIBS
  9399. LIBS="-lsvld $LIBS"
  9400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9401. /* end confdefs.h. */
  9402. /* Override any GCC internal prototype to avoid an error.
  9403. Use char because int might match the return type of a GCC
  9404. builtin and then its argument prototype would still apply. */
  9405. #ifdef __cplusplus
  9406. extern "C"
  9407. #endif
  9408. char dlopen ();
  9409. int
  9410. main ()
  9411. {
  9412. return dlopen ();
  9413. ;
  9414. return 0;
  9415. }
  9416. _ACEOF
  9417. if ac_fn_c_try_link "$LINENO"; then :
  9418. ac_cv_lib_svld_dlopen=yes
  9419. else
  9420. ac_cv_lib_svld_dlopen=no
  9421. fi
  9422. rm -f core conftest.err conftest.$ac_objext \
  9423. conftest$ac_exeext conftest.$ac_ext
  9424. LIBS=$ac_check_lib_save_LIBS
  9425. fi
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9427. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9428. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9429. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9430. else
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9432. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9433. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9434. $as_echo_n "(cached) " >&6
  9435. else
  9436. ac_check_lib_save_LIBS=$LIBS
  9437. LIBS="-ldld $LIBS"
  9438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9439. /* end confdefs.h. */
  9440. /* Override any GCC internal prototype to avoid an error.
  9441. Use char because int might match the return type of a GCC
  9442. builtin and then its argument prototype would still apply. */
  9443. #ifdef __cplusplus
  9444. extern "C"
  9445. #endif
  9446. char dld_link ();
  9447. int
  9448. main ()
  9449. {
  9450. return dld_link ();
  9451. ;
  9452. return 0;
  9453. }
  9454. _ACEOF
  9455. if ac_fn_c_try_link "$LINENO"; then :
  9456. ac_cv_lib_dld_dld_link=yes
  9457. else
  9458. ac_cv_lib_dld_dld_link=no
  9459. fi
  9460. rm -f core conftest.err conftest.$ac_objext \
  9461. conftest$ac_exeext conftest.$ac_ext
  9462. LIBS=$ac_check_lib_save_LIBS
  9463. fi
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9465. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9466. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9467. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9468. fi
  9469. fi
  9470. fi
  9471. fi
  9472. fi
  9473. fi
  9474. ;;
  9475. esac
  9476. if test "x$lt_cv_dlopen" != xno; then
  9477. enable_dlopen=yes
  9478. else
  9479. enable_dlopen=no
  9480. fi
  9481. case $lt_cv_dlopen in
  9482. dlopen)
  9483. save_CPPFLAGS="$CPPFLAGS"
  9484. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9485. save_LDFLAGS="$LDFLAGS"
  9486. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9487. save_LIBS="$LIBS"
  9488. LIBS="$lt_cv_dlopen_libs $LIBS"
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9490. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9491. if ${lt_cv_dlopen_self+:} false; then :
  9492. $as_echo_n "(cached) " >&6
  9493. else
  9494. if test "$cross_compiling" = yes; then :
  9495. lt_cv_dlopen_self=cross
  9496. else
  9497. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9498. lt_status=$lt_dlunknown
  9499. cat > conftest.$ac_ext <<_LT_EOF
  9500. #line $LINENO "configure"
  9501. #include "confdefs.h"
  9502. #if HAVE_DLFCN_H
  9503. #include <dlfcn.h>
  9504. #endif
  9505. #include <stdio.h>
  9506. #ifdef RTLD_GLOBAL
  9507. # define LT_DLGLOBAL RTLD_GLOBAL
  9508. #else
  9509. # ifdef DL_GLOBAL
  9510. # define LT_DLGLOBAL DL_GLOBAL
  9511. # else
  9512. # define LT_DLGLOBAL 0
  9513. # endif
  9514. #endif
  9515. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9516. find out it does not work in some platform. */
  9517. #ifndef LT_DLLAZY_OR_NOW
  9518. # ifdef RTLD_LAZY
  9519. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9520. # else
  9521. # ifdef DL_LAZY
  9522. # define LT_DLLAZY_OR_NOW DL_LAZY
  9523. # else
  9524. # ifdef RTLD_NOW
  9525. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9526. # else
  9527. # ifdef DL_NOW
  9528. # define LT_DLLAZY_OR_NOW DL_NOW
  9529. # else
  9530. # define LT_DLLAZY_OR_NOW 0
  9531. # endif
  9532. # endif
  9533. # endif
  9534. # endif
  9535. #endif
  9536. /* When -fvisbility=hidden is used, assume the code has been annotated
  9537. correspondingly for the symbols needed. */
  9538. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9539. int fnord () __attribute__((visibility("default")));
  9540. #endif
  9541. int fnord () { return 42; }
  9542. int main ()
  9543. {
  9544. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9545. int status = $lt_dlunknown;
  9546. if (self)
  9547. {
  9548. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9549. else
  9550. {
  9551. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9552. else puts (dlerror ());
  9553. }
  9554. /* dlclose (self); */
  9555. }
  9556. else
  9557. puts (dlerror ());
  9558. return status;
  9559. }
  9560. _LT_EOF
  9561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9562. (eval $ac_link) 2>&5
  9563. ac_status=$?
  9564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9565. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9566. (./conftest; exit; ) >&5 2>/dev/null
  9567. lt_status=$?
  9568. case x$lt_status in
  9569. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9570. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9571. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9572. esac
  9573. else :
  9574. # compilation failed
  9575. lt_cv_dlopen_self=no
  9576. fi
  9577. fi
  9578. rm -fr conftest*
  9579. fi
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9581. $as_echo "$lt_cv_dlopen_self" >&6; }
  9582. if test "x$lt_cv_dlopen_self" = xyes; then
  9583. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9585. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9586. if ${lt_cv_dlopen_self_static+:} false; then :
  9587. $as_echo_n "(cached) " >&6
  9588. else
  9589. if test "$cross_compiling" = yes; then :
  9590. lt_cv_dlopen_self_static=cross
  9591. else
  9592. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9593. lt_status=$lt_dlunknown
  9594. cat > conftest.$ac_ext <<_LT_EOF
  9595. #line $LINENO "configure"
  9596. #include "confdefs.h"
  9597. #if HAVE_DLFCN_H
  9598. #include <dlfcn.h>
  9599. #endif
  9600. #include <stdio.h>
  9601. #ifdef RTLD_GLOBAL
  9602. # define LT_DLGLOBAL RTLD_GLOBAL
  9603. #else
  9604. # ifdef DL_GLOBAL
  9605. # define LT_DLGLOBAL DL_GLOBAL
  9606. # else
  9607. # define LT_DLGLOBAL 0
  9608. # endif
  9609. #endif
  9610. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9611. find out it does not work in some platform. */
  9612. #ifndef LT_DLLAZY_OR_NOW
  9613. # ifdef RTLD_LAZY
  9614. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9615. # else
  9616. # ifdef DL_LAZY
  9617. # define LT_DLLAZY_OR_NOW DL_LAZY
  9618. # else
  9619. # ifdef RTLD_NOW
  9620. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9621. # else
  9622. # ifdef DL_NOW
  9623. # define LT_DLLAZY_OR_NOW DL_NOW
  9624. # else
  9625. # define LT_DLLAZY_OR_NOW 0
  9626. # endif
  9627. # endif
  9628. # endif
  9629. # endif
  9630. #endif
  9631. /* When -fvisbility=hidden is used, assume the code has been annotated
  9632. correspondingly for the symbols needed. */
  9633. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9634. int fnord () __attribute__((visibility("default")));
  9635. #endif
  9636. int fnord () { return 42; }
  9637. int main ()
  9638. {
  9639. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9640. int status = $lt_dlunknown;
  9641. if (self)
  9642. {
  9643. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9644. else
  9645. {
  9646. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9647. else puts (dlerror ());
  9648. }
  9649. /* dlclose (self); */
  9650. }
  9651. else
  9652. puts (dlerror ());
  9653. return status;
  9654. }
  9655. _LT_EOF
  9656. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9657. (eval $ac_link) 2>&5
  9658. ac_status=$?
  9659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9660. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9661. (./conftest; exit; ) >&5 2>/dev/null
  9662. lt_status=$?
  9663. case x$lt_status in
  9664. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9665. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9666. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9667. esac
  9668. else :
  9669. # compilation failed
  9670. lt_cv_dlopen_self_static=no
  9671. fi
  9672. fi
  9673. rm -fr conftest*
  9674. fi
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9676. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9677. fi
  9678. CPPFLAGS="$save_CPPFLAGS"
  9679. LDFLAGS="$save_LDFLAGS"
  9680. LIBS="$save_LIBS"
  9681. ;;
  9682. esac
  9683. case $lt_cv_dlopen_self in
  9684. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9685. *) enable_dlopen_self=unknown ;;
  9686. esac
  9687. case $lt_cv_dlopen_self_static in
  9688. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9689. *) enable_dlopen_self_static=unknown ;;
  9690. esac
  9691. fi
  9692. striplib=
  9693. old_striplib=
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9695. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9696. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9697. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9698. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9700. $as_echo "yes" >&6; }
  9701. else
  9702. # FIXME - insert some real tests, host_os isn't really good enough
  9703. case $host_os in
  9704. darwin*)
  9705. if test -n "$STRIP" ; then
  9706. striplib="$STRIP -x"
  9707. old_striplib="$STRIP -S"
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9709. $as_echo "yes" >&6; }
  9710. else
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9712. $as_echo "no" >&6; }
  9713. fi
  9714. ;;
  9715. *)
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9717. $as_echo "no" >&6; }
  9718. ;;
  9719. esac
  9720. fi
  9721. # Report which library types will actually be built
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9723. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9725. $as_echo "$can_build_shared" >&6; }
  9726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9727. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9728. test "$can_build_shared" = "no" && enable_shared=no
  9729. # On AIX, shared libraries and static libraries use the same namespace, and
  9730. # are all built from PIC.
  9731. case $host_os in
  9732. aix3*)
  9733. test "$enable_shared" = yes && enable_static=no
  9734. if test -n "$RANLIB"; then
  9735. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9736. postinstall_cmds='$RANLIB $lib'
  9737. fi
  9738. ;;
  9739. aix[4-9]*)
  9740. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9741. test "$enable_shared" = yes && enable_static=no
  9742. fi
  9743. ;;
  9744. esac
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9746. $as_echo "$enable_shared" >&6; }
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9748. $as_echo_n "checking whether to build static libraries... " >&6; }
  9749. # Make sure either enable_shared or enable_static is yes.
  9750. test "$enable_shared" = yes || enable_static=yes
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9752. $as_echo "$enable_static" >&6; }
  9753. fi
  9754. ac_ext=c
  9755. ac_cpp='$CPP $CPPFLAGS'
  9756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9759. CC="$lt_save_CC"
  9760. ac_config_commands="$ac_config_commands libtool"
  9761. # Only expand once:
  9762. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9763. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9764. LT_REVISION=$SDL_INTERFACE_AGE
  9765. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9766. ac_ext=c
  9767. ac_cpp='$CPP $CPPFLAGS'
  9768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9771. if test -n "$ac_tool_prefix"; then
  9772. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9773. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9775. $as_echo_n "checking for $ac_word... " >&6; }
  9776. if ${ac_cv_prog_CC+:} false; then :
  9777. $as_echo_n "(cached) " >&6
  9778. else
  9779. if test -n "$CC"; then
  9780. ac_cv_prog_CC="$CC" # Let the user override the test.
  9781. else
  9782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9783. for as_dir in $PATH
  9784. do
  9785. IFS=$as_save_IFS
  9786. test -z "$as_dir" && as_dir=.
  9787. for ac_exec_ext in '' $ac_executable_extensions; do
  9788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9789. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9791. break 2
  9792. fi
  9793. done
  9794. done
  9795. IFS=$as_save_IFS
  9796. fi
  9797. fi
  9798. CC=$ac_cv_prog_CC
  9799. if test -n "$CC"; then
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9801. $as_echo "$CC" >&6; }
  9802. else
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9804. $as_echo "no" >&6; }
  9805. fi
  9806. fi
  9807. if test -z "$ac_cv_prog_CC"; then
  9808. ac_ct_CC=$CC
  9809. # Extract the first word of "gcc", so it can be a program name with args.
  9810. set dummy gcc; ac_word=$2
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9812. $as_echo_n "checking for $ac_word... " >&6; }
  9813. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9814. $as_echo_n "(cached) " >&6
  9815. else
  9816. if test -n "$ac_ct_CC"; then
  9817. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9818. else
  9819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9820. for as_dir in $PATH
  9821. do
  9822. IFS=$as_save_IFS
  9823. test -z "$as_dir" && as_dir=.
  9824. for ac_exec_ext in '' $ac_executable_extensions; do
  9825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9826. ac_cv_prog_ac_ct_CC="gcc"
  9827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9828. break 2
  9829. fi
  9830. done
  9831. done
  9832. IFS=$as_save_IFS
  9833. fi
  9834. fi
  9835. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9836. if test -n "$ac_ct_CC"; then
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9838. $as_echo "$ac_ct_CC" >&6; }
  9839. else
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9841. $as_echo "no" >&6; }
  9842. fi
  9843. if test "x$ac_ct_CC" = x; then
  9844. CC=""
  9845. else
  9846. case $cross_compiling:$ac_tool_warned in
  9847. yes:)
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9850. ac_tool_warned=yes ;;
  9851. esac
  9852. CC=$ac_ct_CC
  9853. fi
  9854. else
  9855. CC="$ac_cv_prog_CC"
  9856. fi
  9857. if test -z "$CC"; then
  9858. if test -n "$ac_tool_prefix"; then
  9859. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9860. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9862. $as_echo_n "checking for $ac_word... " >&6; }
  9863. if ${ac_cv_prog_CC+:} false; then :
  9864. $as_echo_n "(cached) " >&6
  9865. else
  9866. if test -n "$CC"; then
  9867. ac_cv_prog_CC="$CC" # Let the user override the test.
  9868. else
  9869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9870. for as_dir in $PATH
  9871. do
  9872. IFS=$as_save_IFS
  9873. test -z "$as_dir" && as_dir=.
  9874. for ac_exec_ext in '' $ac_executable_extensions; do
  9875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9876. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9878. break 2
  9879. fi
  9880. done
  9881. done
  9882. IFS=$as_save_IFS
  9883. fi
  9884. fi
  9885. CC=$ac_cv_prog_CC
  9886. if test -n "$CC"; then
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9888. $as_echo "$CC" >&6; }
  9889. else
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9891. $as_echo "no" >&6; }
  9892. fi
  9893. fi
  9894. fi
  9895. if test -z "$CC"; then
  9896. # Extract the first word of "cc", so it can be a program name with args.
  9897. set dummy cc; ac_word=$2
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9899. $as_echo_n "checking for $ac_word... " >&6; }
  9900. if ${ac_cv_prog_CC+:} false; then :
  9901. $as_echo_n "(cached) " >&6
  9902. else
  9903. if test -n "$CC"; then
  9904. ac_cv_prog_CC="$CC" # Let the user override the test.
  9905. else
  9906. ac_prog_rejected=no
  9907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9908. for as_dir in $PATH
  9909. do
  9910. IFS=$as_save_IFS
  9911. test -z "$as_dir" && as_dir=.
  9912. for ac_exec_ext in '' $ac_executable_extensions; do
  9913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9914. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9915. ac_prog_rejected=yes
  9916. continue
  9917. fi
  9918. ac_cv_prog_CC="cc"
  9919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9920. break 2
  9921. fi
  9922. done
  9923. done
  9924. IFS=$as_save_IFS
  9925. if test $ac_prog_rejected = yes; then
  9926. # We found a bogon in the path, so make sure we never use it.
  9927. set dummy $ac_cv_prog_CC
  9928. shift
  9929. if test $# != 0; then
  9930. # We chose a different compiler from the bogus one.
  9931. # However, it has the same basename, so the bogon will be chosen
  9932. # first if we set CC to just the basename; use the full file name.
  9933. shift
  9934. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9935. fi
  9936. fi
  9937. fi
  9938. fi
  9939. CC=$ac_cv_prog_CC
  9940. if test -n "$CC"; then
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9942. $as_echo "$CC" >&6; }
  9943. else
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9945. $as_echo "no" >&6; }
  9946. fi
  9947. fi
  9948. if test -z "$CC"; then
  9949. if test -n "$ac_tool_prefix"; then
  9950. for ac_prog in cl.exe
  9951. do
  9952. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9953. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9955. $as_echo_n "checking for $ac_word... " >&6; }
  9956. if ${ac_cv_prog_CC+:} false; then :
  9957. $as_echo_n "(cached) " >&6
  9958. else
  9959. if test -n "$CC"; then
  9960. ac_cv_prog_CC="$CC" # Let the user override the test.
  9961. else
  9962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9963. for as_dir in $PATH
  9964. do
  9965. IFS=$as_save_IFS
  9966. test -z "$as_dir" && as_dir=.
  9967. for ac_exec_ext in '' $ac_executable_extensions; do
  9968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9969. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9971. break 2
  9972. fi
  9973. done
  9974. done
  9975. IFS=$as_save_IFS
  9976. fi
  9977. fi
  9978. CC=$ac_cv_prog_CC
  9979. if test -n "$CC"; then
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9981. $as_echo "$CC" >&6; }
  9982. else
  9983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9984. $as_echo "no" >&6; }
  9985. fi
  9986. test -n "$CC" && break
  9987. done
  9988. fi
  9989. if test -z "$CC"; then
  9990. ac_ct_CC=$CC
  9991. for ac_prog in cl.exe
  9992. do
  9993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9994. set dummy $ac_prog; ac_word=$2
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9996. $as_echo_n "checking for $ac_word... " >&6; }
  9997. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9998. $as_echo_n "(cached) " >&6
  9999. else
  10000. if test -n "$ac_ct_CC"; then
  10001. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10002. else
  10003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10004. for as_dir in $PATH
  10005. do
  10006. IFS=$as_save_IFS
  10007. test -z "$as_dir" && as_dir=.
  10008. for ac_exec_ext in '' $ac_executable_extensions; do
  10009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10010. ac_cv_prog_ac_ct_CC="$ac_prog"
  10011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10012. break 2
  10013. fi
  10014. done
  10015. done
  10016. IFS=$as_save_IFS
  10017. fi
  10018. fi
  10019. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10020. if test -n "$ac_ct_CC"; then
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10022. $as_echo "$ac_ct_CC" >&6; }
  10023. else
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10025. $as_echo "no" >&6; }
  10026. fi
  10027. test -n "$ac_ct_CC" && break
  10028. done
  10029. if test "x$ac_ct_CC" = x; then
  10030. CC=""
  10031. else
  10032. case $cross_compiling:$ac_tool_warned in
  10033. yes:)
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10036. ac_tool_warned=yes ;;
  10037. esac
  10038. CC=$ac_ct_CC
  10039. fi
  10040. fi
  10041. fi
  10042. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10044. as_fn_error $? "no acceptable C compiler found in \$PATH
  10045. See \`config.log' for more details" "$LINENO" 5; }
  10046. # Provide some information about the compiler.
  10047. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10048. set X $ac_compile
  10049. ac_compiler=$2
  10050. for ac_option in --version -v -V -qversion; do
  10051. { { ac_try="$ac_compiler $ac_option >&5"
  10052. case "(($ac_try" in
  10053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10054. *) ac_try_echo=$ac_try;;
  10055. esac
  10056. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10057. $as_echo "$ac_try_echo"; } >&5
  10058. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10059. ac_status=$?
  10060. if test -s conftest.err; then
  10061. sed '10a\
  10062. ... rest of stderr output deleted ...
  10063. 10q' conftest.err >conftest.er1
  10064. cat conftest.er1 >&5
  10065. fi
  10066. rm -f conftest.er1 conftest.err
  10067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10068. test $ac_status = 0; }
  10069. done
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10071. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10072. if ${ac_cv_c_compiler_gnu+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10076. /* end confdefs.h. */
  10077. int
  10078. main ()
  10079. {
  10080. #ifndef __GNUC__
  10081. choke me
  10082. #endif
  10083. ;
  10084. return 0;
  10085. }
  10086. _ACEOF
  10087. if ac_fn_c_try_compile "$LINENO"; then :
  10088. ac_compiler_gnu=yes
  10089. else
  10090. ac_compiler_gnu=no
  10091. fi
  10092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10093. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10094. fi
  10095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10096. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10097. if test $ac_compiler_gnu = yes; then
  10098. GCC=yes
  10099. else
  10100. GCC=
  10101. fi
  10102. ac_test_CFLAGS=${CFLAGS+set}
  10103. ac_save_CFLAGS=$CFLAGS
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10105. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10106. if ${ac_cv_prog_cc_g+:} false; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. ac_save_c_werror_flag=$ac_c_werror_flag
  10110. ac_c_werror_flag=yes
  10111. ac_cv_prog_cc_g=no
  10112. CFLAGS="-g"
  10113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10114. /* end confdefs.h. */
  10115. int
  10116. main ()
  10117. {
  10118. ;
  10119. return 0;
  10120. }
  10121. _ACEOF
  10122. if ac_fn_c_try_compile "$LINENO"; then :
  10123. ac_cv_prog_cc_g=yes
  10124. else
  10125. CFLAGS=""
  10126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10127. /* end confdefs.h. */
  10128. int
  10129. main ()
  10130. {
  10131. ;
  10132. return 0;
  10133. }
  10134. _ACEOF
  10135. if ac_fn_c_try_compile "$LINENO"; then :
  10136. else
  10137. ac_c_werror_flag=$ac_save_c_werror_flag
  10138. CFLAGS="-g"
  10139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10140. /* end confdefs.h. */
  10141. int
  10142. main ()
  10143. {
  10144. ;
  10145. return 0;
  10146. }
  10147. _ACEOF
  10148. if ac_fn_c_try_compile "$LINENO"; then :
  10149. ac_cv_prog_cc_g=yes
  10150. fi
  10151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10152. fi
  10153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10154. fi
  10155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10156. ac_c_werror_flag=$ac_save_c_werror_flag
  10157. fi
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10159. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10160. if test "$ac_test_CFLAGS" = set; then
  10161. CFLAGS=$ac_save_CFLAGS
  10162. elif test $ac_cv_prog_cc_g = yes; then
  10163. if test "$GCC" = yes; then
  10164. CFLAGS="-g -O2"
  10165. else
  10166. CFLAGS="-g"
  10167. fi
  10168. else
  10169. if test "$GCC" = yes; then
  10170. CFLAGS="-O2"
  10171. else
  10172. CFLAGS=
  10173. fi
  10174. fi
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10176. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10177. if ${ac_cv_prog_cc_c89+:} false; then :
  10178. $as_echo_n "(cached) " >&6
  10179. else
  10180. ac_cv_prog_cc_c89=no
  10181. ac_save_CC=$CC
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. #include <stdarg.h>
  10185. #include <stdio.h>
  10186. struct stat;
  10187. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10188. struct buf { int x; };
  10189. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10190. static char *e (p, i)
  10191. char **p;
  10192. int i;
  10193. {
  10194. return p[i];
  10195. }
  10196. static char *f (char * (*g) (char **, int), char **p, ...)
  10197. {
  10198. char *s;
  10199. va_list v;
  10200. va_start (v,p);
  10201. s = g (p, va_arg (v,int));
  10202. va_end (v);
  10203. return s;
  10204. }
  10205. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10206. function prototypes and stuff, but not '\xHH' hex character constants.
  10207. These don't provoke an error unfortunately, instead are silently treated
  10208. as 'x'. The following induces an error, until -std is added to get
  10209. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10210. array size at least. It's necessary to write '\x00'==0 to get something
  10211. that's true only with -std. */
  10212. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10213. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10214. inside strings and character constants. */
  10215. #define FOO(x) 'x'
  10216. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10217. int test (int i, double x);
  10218. struct s1 {int (*f) (int a);};
  10219. struct s2 {int (*f) (double a);};
  10220. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10221. int argc;
  10222. char **argv;
  10223. int
  10224. main ()
  10225. {
  10226. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10227. ;
  10228. return 0;
  10229. }
  10230. _ACEOF
  10231. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10232. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10233. do
  10234. CC="$ac_save_CC $ac_arg"
  10235. if ac_fn_c_try_compile "$LINENO"; then :
  10236. ac_cv_prog_cc_c89=$ac_arg
  10237. fi
  10238. rm -f core conftest.err conftest.$ac_objext
  10239. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10240. done
  10241. rm -f conftest.$ac_ext
  10242. CC=$ac_save_CC
  10243. fi
  10244. # AC_CACHE_VAL
  10245. case "x$ac_cv_prog_cc_c89" in
  10246. x)
  10247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10248. $as_echo "none needed" >&6; } ;;
  10249. xno)
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10251. $as_echo "unsupported" >&6; } ;;
  10252. *)
  10253. CC="$CC $ac_cv_prog_cc_c89"
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10255. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10256. esac
  10257. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10258. fi
  10259. ac_ext=c
  10260. ac_cpp='$CPP $CPPFLAGS'
  10261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10264. ac_ext=cpp
  10265. ac_cpp='$CXXCPP $CPPFLAGS'
  10266. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10267. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10268. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10269. if test -z "$CXX"; then
  10270. if test -n "$CCC"; then
  10271. CXX=$CCC
  10272. else
  10273. if test -n "$ac_tool_prefix"; then
  10274. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10275. do
  10276. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10277. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10279. $as_echo_n "checking for $ac_word... " >&6; }
  10280. if ${ac_cv_prog_CXX+:} false; then :
  10281. $as_echo_n "(cached) " >&6
  10282. else
  10283. if test -n "$CXX"; then
  10284. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10285. else
  10286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10287. for as_dir in $PATH
  10288. do
  10289. IFS=$as_save_IFS
  10290. test -z "$as_dir" && as_dir=.
  10291. for ac_exec_ext in '' $ac_executable_extensions; do
  10292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10293. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10295. break 2
  10296. fi
  10297. done
  10298. done
  10299. IFS=$as_save_IFS
  10300. fi
  10301. fi
  10302. CXX=$ac_cv_prog_CXX
  10303. if test -n "$CXX"; then
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10305. $as_echo "$CXX" >&6; }
  10306. else
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10308. $as_echo "no" >&6; }
  10309. fi
  10310. test -n "$CXX" && break
  10311. done
  10312. fi
  10313. if test -z "$CXX"; then
  10314. ac_ct_CXX=$CXX
  10315. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10316. do
  10317. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10318. set dummy $ac_prog; ac_word=$2
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10320. $as_echo_n "checking for $ac_word... " >&6; }
  10321. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10322. $as_echo_n "(cached) " >&6
  10323. else
  10324. if test -n "$ac_ct_CXX"; then
  10325. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10326. else
  10327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10328. for as_dir in $PATH
  10329. do
  10330. IFS=$as_save_IFS
  10331. test -z "$as_dir" && as_dir=.
  10332. for ac_exec_ext in '' $ac_executable_extensions; do
  10333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10334. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10336. break 2
  10337. fi
  10338. done
  10339. done
  10340. IFS=$as_save_IFS
  10341. fi
  10342. fi
  10343. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10344. if test -n "$ac_ct_CXX"; then
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10346. $as_echo "$ac_ct_CXX" >&6; }
  10347. else
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. fi
  10351. test -n "$ac_ct_CXX" && break
  10352. done
  10353. if test "x$ac_ct_CXX" = x; then
  10354. CXX="g++"
  10355. else
  10356. case $cross_compiling:$ac_tool_warned in
  10357. yes:)
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10360. ac_tool_warned=yes ;;
  10361. esac
  10362. CXX=$ac_ct_CXX
  10363. fi
  10364. fi
  10365. fi
  10366. fi
  10367. # Provide some information about the compiler.
  10368. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10369. set X $ac_compile
  10370. ac_compiler=$2
  10371. for ac_option in --version -v -V -qversion; do
  10372. { { ac_try="$ac_compiler $ac_option >&5"
  10373. case "(($ac_try" in
  10374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10375. *) ac_try_echo=$ac_try;;
  10376. esac
  10377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10378. $as_echo "$ac_try_echo"; } >&5
  10379. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10380. ac_status=$?
  10381. if test -s conftest.err; then
  10382. sed '10a\
  10383. ... rest of stderr output deleted ...
  10384. 10q' conftest.err >conftest.er1
  10385. cat conftest.er1 >&5
  10386. fi
  10387. rm -f conftest.er1 conftest.err
  10388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10389. test $ac_status = 0; }
  10390. done
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10392. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10393. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10394. $as_echo_n "(cached) " >&6
  10395. else
  10396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10397. /* end confdefs.h. */
  10398. int
  10399. main ()
  10400. {
  10401. #ifndef __GNUC__
  10402. choke me
  10403. #endif
  10404. ;
  10405. return 0;
  10406. }
  10407. _ACEOF
  10408. if ac_fn_cxx_try_compile "$LINENO"; then :
  10409. ac_compiler_gnu=yes
  10410. else
  10411. ac_compiler_gnu=no
  10412. fi
  10413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10414. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10415. fi
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10417. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10418. if test $ac_compiler_gnu = yes; then
  10419. GXX=yes
  10420. else
  10421. GXX=
  10422. fi
  10423. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10424. ac_save_CXXFLAGS=$CXXFLAGS
  10425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10426. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10427. if ${ac_cv_prog_cxx_g+:} false; then :
  10428. $as_echo_n "(cached) " >&6
  10429. else
  10430. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10431. ac_cxx_werror_flag=yes
  10432. ac_cv_prog_cxx_g=no
  10433. CXXFLAGS="-g"
  10434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10435. /* end confdefs.h. */
  10436. int
  10437. main ()
  10438. {
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_cxx_try_compile "$LINENO"; then :
  10444. ac_cv_prog_cxx_g=yes
  10445. else
  10446. CXXFLAGS=""
  10447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10448. /* end confdefs.h. */
  10449. int
  10450. main ()
  10451. {
  10452. ;
  10453. return 0;
  10454. }
  10455. _ACEOF
  10456. if ac_fn_cxx_try_compile "$LINENO"; then :
  10457. else
  10458. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10459. CXXFLAGS="-g"
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. int
  10463. main ()
  10464. {
  10465. ;
  10466. return 0;
  10467. }
  10468. _ACEOF
  10469. if ac_fn_cxx_try_compile "$LINENO"; then :
  10470. ac_cv_prog_cxx_g=yes
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10473. fi
  10474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10475. fi
  10476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10477. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10478. fi
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10480. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10481. if test "$ac_test_CXXFLAGS" = set; then
  10482. CXXFLAGS=$ac_save_CXXFLAGS
  10483. elif test $ac_cv_prog_cxx_g = yes; then
  10484. if test "$GXX" = yes; then
  10485. CXXFLAGS="-g -O2"
  10486. else
  10487. CXXFLAGS="-g"
  10488. fi
  10489. else
  10490. if test "$GXX" = yes; then
  10491. CXXFLAGS="-O2"
  10492. else
  10493. CXXFLAGS=
  10494. fi
  10495. fi
  10496. ac_ext=c
  10497. ac_cpp='$CPP $CPPFLAGS'
  10498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10501. func_stripname_cnf ()
  10502. {
  10503. case ${2} in
  10504. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10505. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10506. esac
  10507. } # func_stripname_cnf
  10508. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10509. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10510. (test "X$CXX" != "Xg++"))) ; then
  10511. ac_ext=cpp
  10512. ac_cpp='$CXXCPP $CPPFLAGS'
  10513. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10514. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10515. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10517. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10518. if test -z "$CXXCPP"; then
  10519. if ${ac_cv_prog_CXXCPP+:} false; then :
  10520. $as_echo_n "(cached) " >&6
  10521. else
  10522. # Double quotes because CXXCPP needs to be expanded
  10523. for CXXCPP in "$CXX -E" "/lib/cpp"
  10524. do
  10525. ac_preproc_ok=false
  10526. for ac_cxx_preproc_warn_flag in '' yes
  10527. do
  10528. # Use a header file that comes with gcc, so configuring glibc
  10529. # with a fresh cross-compiler works.
  10530. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10531. # <limits.h> exists even on freestanding compilers.
  10532. # On the NeXT, cc -E runs the code through the compiler's parser,
  10533. # not just through cpp. "Syntax error" is here to catch this case.
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. #ifdef __STDC__
  10537. # include <limits.h>
  10538. #else
  10539. # include <assert.h>
  10540. #endif
  10541. Syntax error
  10542. _ACEOF
  10543. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10544. else
  10545. # Broken: fails on valid input.
  10546. continue
  10547. fi
  10548. rm -f conftest.err conftest.i conftest.$ac_ext
  10549. # OK, works on sane cases. Now check whether nonexistent headers
  10550. # can be detected and how.
  10551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10552. /* end confdefs.h. */
  10553. #include <ac_nonexistent.h>
  10554. _ACEOF
  10555. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10556. # Broken: success on invalid input.
  10557. continue
  10558. else
  10559. # Passes both tests.
  10560. ac_preproc_ok=:
  10561. break
  10562. fi
  10563. rm -f conftest.err conftest.i conftest.$ac_ext
  10564. done
  10565. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10566. rm -f conftest.i conftest.err conftest.$ac_ext
  10567. if $ac_preproc_ok; then :
  10568. break
  10569. fi
  10570. done
  10571. ac_cv_prog_CXXCPP=$CXXCPP
  10572. fi
  10573. CXXCPP=$ac_cv_prog_CXXCPP
  10574. else
  10575. ac_cv_prog_CXXCPP=$CXXCPP
  10576. fi
  10577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10578. $as_echo "$CXXCPP" >&6; }
  10579. ac_preproc_ok=false
  10580. for ac_cxx_preproc_warn_flag in '' yes
  10581. do
  10582. # Use a header file that comes with gcc, so configuring glibc
  10583. # with a fresh cross-compiler works.
  10584. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10585. # <limits.h> exists even on freestanding compilers.
  10586. # On the NeXT, cc -E runs the code through the compiler's parser,
  10587. # not just through cpp. "Syntax error" is here to catch this case.
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. #ifdef __STDC__
  10591. # include <limits.h>
  10592. #else
  10593. # include <assert.h>
  10594. #endif
  10595. Syntax error
  10596. _ACEOF
  10597. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10598. else
  10599. # Broken: fails on valid input.
  10600. continue
  10601. fi
  10602. rm -f conftest.err conftest.i conftest.$ac_ext
  10603. # OK, works on sane cases. Now check whether nonexistent headers
  10604. # can be detected and how.
  10605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10606. /* end confdefs.h. */
  10607. #include <ac_nonexistent.h>
  10608. _ACEOF
  10609. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10610. # Broken: success on invalid input.
  10611. continue
  10612. else
  10613. # Passes both tests.
  10614. ac_preproc_ok=:
  10615. break
  10616. fi
  10617. rm -f conftest.err conftest.i conftest.$ac_ext
  10618. done
  10619. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10620. rm -f conftest.i conftest.err conftest.$ac_ext
  10621. if $ac_preproc_ok; then :
  10622. else
  10623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10625. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10626. See \`config.log' for more details" "$LINENO" 5; }
  10627. fi
  10628. ac_ext=c
  10629. ac_cpp='$CPP $CPPFLAGS'
  10630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10633. else
  10634. _lt_caught_CXX_error=yes
  10635. fi
  10636. ac_ext=cpp
  10637. ac_cpp='$CXXCPP $CPPFLAGS'
  10638. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10639. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10640. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10641. archive_cmds_need_lc_CXX=no
  10642. allow_undefined_flag_CXX=
  10643. always_export_symbols_CXX=no
  10644. archive_expsym_cmds_CXX=
  10645. compiler_needs_object_CXX=no
  10646. export_dynamic_flag_spec_CXX=
  10647. hardcode_direct_CXX=no
  10648. hardcode_direct_absolute_CXX=no
  10649. hardcode_libdir_flag_spec_CXX=
  10650. hardcode_libdir_separator_CXX=
  10651. hardcode_minus_L_CXX=no
  10652. hardcode_shlibpath_var_CXX=unsupported
  10653. hardcode_automatic_CXX=no
  10654. inherit_rpath_CXX=no
  10655. module_cmds_CXX=
  10656. module_expsym_cmds_CXX=
  10657. link_all_deplibs_CXX=unknown
  10658. old_archive_cmds_CXX=$old_archive_cmds
  10659. reload_flag_CXX=$reload_flag
  10660. reload_cmds_CXX=$reload_cmds
  10661. no_undefined_flag_CXX=
  10662. whole_archive_flag_spec_CXX=
  10663. enable_shared_with_static_runtimes_CXX=no
  10664. # Source file extension for C++ test sources.
  10665. ac_ext=cpp
  10666. # Object file extension for compiled C++ test sources.
  10667. objext=o
  10668. objext_CXX=$objext
  10669. # No sense in running all these tests if we already determined that
  10670. # the CXX compiler isn't working. Some variables (like enable_shared)
  10671. # are currently assumed to apply to all compilers on this platform,
  10672. # and will be corrupted by setting them based on a non-working compiler.
  10673. if test "$_lt_caught_CXX_error" != yes; then
  10674. # Code to be used in simple compile tests
  10675. lt_simple_compile_test_code="int some_variable = 0;"
  10676. # Code to be used in simple link tests
  10677. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10678. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10679. # If no C compiler was specified, use CC.
  10680. LTCC=${LTCC-"$CC"}
  10681. # If no C compiler flags were specified, use CFLAGS.
  10682. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10683. # Allow CC to be a program name with arguments.
  10684. compiler=$CC
  10685. # save warnings/boilerplate of simple test code
  10686. ac_outfile=conftest.$ac_objext
  10687. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10688. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10689. _lt_compiler_boilerplate=`cat conftest.err`
  10690. $RM conftest*
  10691. ac_outfile=conftest.$ac_objext
  10692. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10693. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10694. _lt_linker_boilerplate=`cat conftest.err`
  10695. $RM -r conftest*
  10696. # Allow CC to be a program name with arguments.
  10697. lt_save_CC=$CC
  10698. lt_save_CFLAGS=$CFLAGS
  10699. lt_save_LD=$LD
  10700. lt_save_GCC=$GCC
  10701. GCC=$GXX
  10702. lt_save_with_gnu_ld=$with_gnu_ld
  10703. lt_save_path_LD=$lt_cv_path_LD
  10704. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10705. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10706. else
  10707. $as_unset lt_cv_prog_gnu_ld
  10708. fi
  10709. if test -n "${lt_cv_path_LDCXX+set}"; then
  10710. lt_cv_path_LD=$lt_cv_path_LDCXX
  10711. else
  10712. $as_unset lt_cv_path_LD
  10713. fi
  10714. test -z "${LDCXX+set}" || LD=$LDCXX
  10715. CC=${CXX-"c++"}
  10716. CFLAGS=$CXXFLAGS
  10717. compiler=$CC
  10718. compiler_CXX=$CC
  10719. for cc_temp in $compiler""; do
  10720. case $cc_temp in
  10721. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10722. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10723. \-*) ;;
  10724. *) break;;
  10725. esac
  10726. done
  10727. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10728. if test -n "$compiler"; then
  10729. # We don't want -fno-exception when compiling C++ code, so set the
  10730. # no_builtin_flag separately
  10731. if test "$GXX" = yes; then
  10732. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10733. else
  10734. lt_prog_compiler_no_builtin_flag_CXX=
  10735. fi
  10736. if test "$GXX" = yes; then
  10737. # Set up default GNU C++ configuration
  10738. # Check whether --with-gnu-ld was given.
  10739. if test "${with_gnu_ld+set}" = set; then :
  10740. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10741. else
  10742. with_gnu_ld=no
  10743. fi
  10744. ac_prog=ld
  10745. if test "$GCC" = yes; then
  10746. # Check if gcc -print-prog-name=ld gives a path.
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10748. $as_echo_n "checking for ld used by $CC... " >&6; }
  10749. case $host in
  10750. *-*-mingw*)
  10751. # gcc leaves a trailing carriage return which upsets mingw
  10752. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10753. *)
  10754. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10755. esac
  10756. case $ac_prog in
  10757. # Accept absolute paths.
  10758. [\\/]* | ?:[\\/]*)
  10759. re_direlt='/[^/][^/]*/\.\./'
  10760. # Canonicalize the pathname of ld
  10761. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10762. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10763. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10764. done
  10765. test -z "$LD" && LD="$ac_prog"
  10766. ;;
  10767. "")
  10768. # If it fails, then pretend we aren't using GCC.
  10769. ac_prog=ld
  10770. ;;
  10771. *)
  10772. # If it is relative, then search for the first ld in PATH.
  10773. with_gnu_ld=unknown
  10774. ;;
  10775. esac
  10776. elif test "$with_gnu_ld" = yes; then
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10778. $as_echo_n "checking for GNU ld... " >&6; }
  10779. else
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10781. $as_echo_n "checking for non-GNU ld... " >&6; }
  10782. fi
  10783. if ${lt_cv_path_LD+:} false; then :
  10784. $as_echo_n "(cached) " >&6
  10785. else
  10786. if test -z "$LD"; then
  10787. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10788. for ac_dir in $PATH; do
  10789. IFS="$lt_save_ifs"
  10790. test -z "$ac_dir" && ac_dir=.
  10791. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10792. lt_cv_path_LD="$ac_dir/$ac_prog"
  10793. # Check to see if the program is GNU ld. I'd rather use --version,
  10794. # but apparently some variants of GNU ld only accept -v.
  10795. # Break only if it was the GNU/non-GNU ld that we prefer.
  10796. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10797. *GNU* | *'with BFD'*)
  10798. test "$with_gnu_ld" != no && break
  10799. ;;
  10800. *)
  10801. test "$with_gnu_ld" != yes && break
  10802. ;;
  10803. esac
  10804. fi
  10805. done
  10806. IFS="$lt_save_ifs"
  10807. else
  10808. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10809. fi
  10810. fi
  10811. LD="$lt_cv_path_LD"
  10812. if test -n "$LD"; then
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10814. $as_echo "$LD" >&6; }
  10815. else
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10817. $as_echo "no" >&6; }
  10818. fi
  10819. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10821. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10822. if ${lt_cv_prog_gnu_ld+:} false; then :
  10823. $as_echo_n "(cached) " >&6
  10824. else
  10825. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10826. case `$LD -v 2>&1 </dev/null` in
  10827. *GNU* | *'with BFD'*)
  10828. lt_cv_prog_gnu_ld=yes
  10829. ;;
  10830. *)
  10831. lt_cv_prog_gnu_ld=no
  10832. ;;
  10833. esac
  10834. fi
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10836. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10837. with_gnu_ld=$lt_cv_prog_gnu_ld
  10838. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10839. # archiving commands below assume that GNU ld is being used.
  10840. if test "$with_gnu_ld" = yes; then
  10841. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10842. 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'
  10843. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10844. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10845. # If archive_cmds runs LD, not CC, wlarc should be empty
  10846. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10847. # investigate it a little bit more. (MM)
  10848. wlarc='${wl}'
  10849. # ancient GNU ld didn't support --whole-archive et. al.
  10850. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10851. $GREP 'no-whole-archive' > /dev/null; then
  10852. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10853. else
  10854. whole_archive_flag_spec_CXX=
  10855. fi
  10856. else
  10857. with_gnu_ld=no
  10858. wlarc=
  10859. # A generic and very simple default shared library creation
  10860. # command for GNU C++ for the case where it uses the native
  10861. # linker, instead of GNU ld. If possible, this setting should
  10862. # overridden to take advantage of the native linker features on
  10863. # the platform it is being used on.
  10864. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10865. fi
  10866. # Commands to make compiler produce verbose output that lists
  10867. # what "hidden" libraries, object files and flags are used when
  10868. # linking a shared library.
  10869. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10870. else
  10871. GXX=no
  10872. with_gnu_ld=no
  10873. wlarc=
  10874. fi
  10875. # PORTME: fill in a description of your system's C++ link characteristics
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10877. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10878. ld_shlibs_CXX=yes
  10879. case $host_os in
  10880. aix3*)
  10881. # FIXME: insert proper C++ library support
  10882. ld_shlibs_CXX=no
  10883. ;;
  10884. aix[4-9]*)
  10885. if test "$host_cpu" = ia64; then
  10886. # On IA64, the linker does run time linking by default, so we don't
  10887. # have to do anything special.
  10888. aix_use_runtimelinking=no
  10889. exp_sym_flag='-Bexport'
  10890. no_entry_flag=""
  10891. else
  10892. aix_use_runtimelinking=no
  10893. # Test if we are trying to use run time linking or normal
  10894. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10895. # need to do runtime linking.
  10896. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10897. for ld_flag in $LDFLAGS; do
  10898. case $ld_flag in
  10899. *-brtl*)
  10900. aix_use_runtimelinking=yes
  10901. break
  10902. ;;
  10903. esac
  10904. done
  10905. ;;
  10906. esac
  10907. exp_sym_flag='-bexport'
  10908. no_entry_flag='-bnoentry'
  10909. fi
  10910. # When large executables or shared objects are built, AIX ld can
  10911. # have problems creating the table of contents. If linking a library
  10912. # or program results in "error TOC overflow" add -mminimal-toc to
  10913. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10914. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10915. archive_cmds_CXX=''
  10916. hardcode_direct_CXX=yes
  10917. hardcode_direct_absolute_CXX=yes
  10918. hardcode_libdir_separator_CXX=':'
  10919. link_all_deplibs_CXX=yes
  10920. file_list_spec_CXX='${wl}-f,'
  10921. if test "$GXX" = yes; then
  10922. case $host_os in aix4.[012]|aix4.[012].*)
  10923. # We only want to do this on AIX 4.2 and lower, the check
  10924. # below for broken collect2 doesn't work under 4.3+
  10925. collect2name=`${CC} -print-prog-name=collect2`
  10926. if test -f "$collect2name" &&
  10927. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10928. then
  10929. # We have reworked collect2
  10930. :
  10931. else
  10932. # We have old collect2
  10933. hardcode_direct_CXX=unsupported
  10934. # It fails to find uninstalled libraries when the uninstalled
  10935. # path is not listed in the libpath. Setting hardcode_minus_L
  10936. # to unsupported forces relinking
  10937. hardcode_minus_L_CXX=yes
  10938. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10939. hardcode_libdir_separator_CXX=
  10940. fi
  10941. esac
  10942. shared_flag='-shared'
  10943. if test "$aix_use_runtimelinking" = yes; then
  10944. shared_flag="$shared_flag "'${wl}-G'
  10945. fi
  10946. else
  10947. # not using gcc
  10948. if test "$host_cpu" = ia64; then
  10949. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10950. # chokes on -Wl,-G. The following line is correct:
  10951. shared_flag='-G'
  10952. else
  10953. if test "$aix_use_runtimelinking" = yes; then
  10954. shared_flag='${wl}-G'
  10955. else
  10956. shared_flag='${wl}-bM:SRE'
  10957. fi
  10958. fi
  10959. fi
  10960. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10961. # It seems that -bexpall does not export symbols beginning with
  10962. # underscore (_), so it is better to generate a list of symbols to
  10963. # export.
  10964. always_export_symbols_CXX=yes
  10965. if test "$aix_use_runtimelinking" = yes; then
  10966. # Warning - without using the other runtime loading flags (-brtl),
  10967. # -berok will link without error, but may produce a broken library.
  10968. allow_undefined_flag_CXX='-berok'
  10969. # Determine the default libpath from the value encoded in an empty
  10970. # executable.
  10971. if test "${lt_cv_aix_libpath+set}" = set; then
  10972. aix_libpath=$lt_cv_aix_libpath
  10973. else
  10974. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10978. /* end confdefs.h. */
  10979. int
  10980. main ()
  10981. {
  10982. ;
  10983. return 0;
  10984. }
  10985. _ACEOF
  10986. if ac_fn_cxx_try_link "$LINENO"; then :
  10987. lt_aix_libpath_sed='
  10988. /Import File Strings/,/^$/ {
  10989. /^0/ {
  10990. s/^0 *\([^ ]*\) *$/\1/
  10991. p
  10992. }
  10993. }'
  10994. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10995. # Check for a 64-bit object if we didn't find anything.
  10996. if test -z "$lt_cv_aix_libpath__CXX"; then
  10997. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10998. fi
  10999. fi
  11000. rm -f core conftest.err conftest.$ac_objext \
  11001. conftest$ac_exeext conftest.$ac_ext
  11002. if test -z "$lt_cv_aix_libpath__CXX"; then
  11003. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11004. fi
  11005. fi
  11006. aix_libpath=$lt_cv_aix_libpath__CXX
  11007. fi
  11008. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11009. 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"
  11010. else
  11011. if test "$host_cpu" = ia64; then
  11012. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11013. allow_undefined_flag_CXX="-z nodefs"
  11014. 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"
  11015. else
  11016. # Determine the default libpath from the value encoded in an
  11017. # empty executable.
  11018. if test "${lt_cv_aix_libpath+set}" = set; then
  11019. aix_libpath=$lt_cv_aix_libpath
  11020. else
  11021. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11022. $as_echo_n "(cached) " >&6
  11023. else
  11024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11025. /* end confdefs.h. */
  11026. int
  11027. main ()
  11028. {
  11029. ;
  11030. return 0;
  11031. }
  11032. _ACEOF
  11033. if ac_fn_cxx_try_link "$LINENO"; then :
  11034. lt_aix_libpath_sed='
  11035. /Import File Strings/,/^$/ {
  11036. /^0/ {
  11037. s/^0 *\([^ ]*\) *$/\1/
  11038. p
  11039. }
  11040. }'
  11041. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11042. # Check for a 64-bit object if we didn't find anything.
  11043. if test -z "$lt_cv_aix_libpath__CXX"; then
  11044. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11045. fi
  11046. fi
  11047. rm -f core conftest.err conftest.$ac_objext \
  11048. conftest$ac_exeext conftest.$ac_ext
  11049. if test -z "$lt_cv_aix_libpath__CXX"; then
  11050. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11051. fi
  11052. fi
  11053. aix_libpath=$lt_cv_aix_libpath__CXX
  11054. fi
  11055. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11056. # Warning - without using the other run time loading flags,
  11057. # -berok will link without error, but may produce a broken library.
  11058. no_undefined_flag_CXX=' ${wl}-bernotok'
  11059. allow_undefined_flag_CXX=' ${wl}-berok'
  11060. if test "$with_gnu_ld" = yes; then
  11061. # We only use this code for GNU lds that support --whole-archive.
  11062. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11063. else
  11064. # Exported symbols can be pulled into shared objects from archives
  11065. whole_archive_flag_spec_CXX='$convenience'
  11066. fi
  11067. archive_cmds_need_lc_CXX=yes
  11068. # This is similar to how AIX traditionally builds its shared
  11069. # libraries.
  11070. 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'
  11071. fi
  11072. fi
  11073. ;;
  11074. beos*)
  11075. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11076. allow_undefined_flag_CXX=unsupported
  11077. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11078. # support --undefined. This deserves some investigation. FIXME
  11079. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11080. else
  11081. ld_shlibs_CXX=no
  11082. fi
  11083. ;;
  11084. chorus*)
  11085. case $cc_basename in
  11086. *)
  11087. # FIXME: insert proper C++ library support
  11088. ld_shlibs_CXX=no
  11089. ;;
  11090. esac
  11091. ;;
  11092. cygwin* | mingw* | pw32* | cegcc*)
  11093. case $GXX,$cc_basename in
  11094. ,cl* | no,cl*)
  11095. # Native MSVC
  11096. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11097. # no search path for DLLs.
  11098. hardcode_libdir_flag_spec_CXX=' '
  11099. allow_undefined_flag_CXX=unsupported
  11100. always_export_symbols_CXX=yes
  11101. file_list_spec_CXX='@'
  11102. # Tell ltmain to make .lib files, not .a files.
  11103. libext=lib
  11104. # Tell ltmain to make .dll files, not .so files.
  11105. shrext_cmds=".dll"
  11106. # FIXME: Setting linknames here is a bad hack.
  11107. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11108. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11109. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11110. else
  11111. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11112. fi~
  11113. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11114. linknames='
  11115. # The linker will not automatically build a static lib if we build a DLL.
  11116. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11117. enable_shared_with_static_runtimes_CXX=yes
  11118. # Don't use ranlib
  11119. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11120. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11121. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11122. case $lt_outputfile in
  11123. *.exe|*.EXE) ;;
  11124. *)
  11125. lt_outputfile="$lt_outputfile.exe"
  11126. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11127. ;;
  11128. esac~
  11129. func_to_tool_file "$lt_outputfile"~
  11130. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11131. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11132. $RM "$lt_outputfile.manifest";
  11133. fi'
  11134. ;;
  11135. *)
  11136. # g++
  11137. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11138. # as there is no search path for DLLs.
  11139. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11140. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11141. allow_undefined_flag_CXX=unsupported
  11142. always_export_symbols_CXX=no
  11143. enable_shared_with_static_runtimes_CXX=yes
  11144. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11145. 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'
  11146. # If the export-symbols file already is a .def file (1st line
  11147. # is EXPORTS), use it as is; otherwise, prepend...
  11148. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11149. cp $export_symbols $output_objdir/$soname.def;
  11150. else
  11151. echo EXPORTS > $output_objdir/$soname.def;
  11152. cat $export_symbols >> $output_objdir/$soname.def;
  11153. fi~
  11154. $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'
  11155. else
  11156. ld_shlibs_CXX=no
  11157. fi
  11158. ;;
  11159. esac
  11160. ;;
  11161. darwin* | rhapsody*)
  11162. archive_cmds_need_lc_CXX=no
  11163. hardcode_direct_CXX=no
  11164. hardcode_automatic_CXX=yes
  11165. hardcode_shlibpath_var_CXX=unsupported
  11166. if test "$lt_cv_ld_force_load" = "yes"; then
  11167. 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\"`'
  11168. else
  11169. whole_archive_flag_spec_CXX=''
  11170. fi
  11171. link_all_deplibs_CXX=yes
  11172. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11173. case $cc_basename in
  11174. ifort*) _lt_dar_can_shared=yes ;;
  11175. *) _lt_dar_can_shared=$GCC ;;
  11176. esac
  11177. if test "$_lt_dar_can_shared" = "yes"; then
  11178. output_verbose_link_cmd=func_echo_all
  11179. 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}"
  11180. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11181. 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}"
  11182. 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}"
  11183. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11184. 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}"
  11185. 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}"
  11186. fi
  11187. else
  11188. ld_shlibs_CXX=no
  11189. fi
  11190. ;;
  11191. dgux*)
  11192. case $cc_basename in
  11193. ec++*)
  11194. # FIXME: insert proper C++ library support
  11195. ld_shlibs_CXX=no
  11196. ;;
  11197. ghcx*)
  11198. # Green Hills C++ Compiler
  11199. # FIXME: insert proper C++ library support
  11200. ld_shlibs_CXX=no
  11201. ;;
  11202. *)
  11203. # FIXME: insert proper C++ library support
  11204. ld_shlibs_CXX=no
  11205. ;;
  11206. esac
  11207. ;;
  11208. freebsd2.*)
  11209. # C++ shared libraries reported to be fairly broken before
  11210. # switch to ELF
  11211. ld_shlibs_CXX=no
  11212. ;;
  11213. freebsd-elf*)
  11214. archive_cmds_need_lc_CXX=no
  11215. ;;
  11216. freebsd* | dragonfly*)
  11217. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11218. # conventions
  11219. ld_shlibs_CXX=yes
  11220. ;;
  11221. gnu*)
  11222. ;;
  11223. haiku*)
  11224. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11225. link_all_deplibs_CXX=yes
  11226. ;;
  11227. hpux9*)
  11228. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11229. hardcode_libdir_separator_CXX=:
  11230. export_dynamic_flag_spec_CXX='${wl}-E'
  11231. hardcode_direct_CXX=yes
  11232. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11233. # but as the default
  11234. # location of the library.
  11235. case $cc_basename in
  11236. CC*)
  11237. # FIXME: insert proper C++ library support
  11238. ld_shlibs_CXX=no
  11239. ;;
  11240. aCC*)
  11241. 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'
  11242. # Commands to make compiler produce verbose output that lists
  11243. # what "hidden" libraries, object files and flags are used when
  11244. # linking a shared library.
  11245. #
  11246. # There doesn't appear to be a way to prevent this compiler from
  11247. # explicitly linking system object files so we need to strip them
  11248. # from the output so that they don't get included in the library
  11249. # dependencies.
  11250. 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"'
  11251. ;;
  11252. *)
  11253. if test "$GXX" = yes; then
  11254. 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'
  11255. else
  11256. # FIXME: insert proper C++ library support
  11257. ld_shlibs_CXX=no
  11258. fi
  11259. ;;
  11260. esac
  11261. ;;
  11262. hpux10*|hpux11*)
  11263. if test $with_gnu_ld = no; then
  11264. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11265. hardcode_libdir_separator_CXX=:
  11266. case $host_cpu in
  11267. hppa*64*|ia64*)
  11268. ;;
  11269. *)
  11270. export_dynamic_flag_spec_CXX='${wl}-E'
  11271. ;;
  11272. esac
  11273. fi
  11274. case $host_cpu in
  11275. hppa*64*|ia64*)
  11276. hardcode_direct_CXX=no
  11277. hardcode_shlibpath_var_CXX=no
  11278. ;;
  11279. *)
  11280. hardcode_direct_CXX=yes
  11281. hardcode_direct_absolute_CXX=yes
  11282. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11283. # but as the default
  11284. # location of the library.
  11285. ;;
  11286. esac
  11287. case $cc_basename in
  11288. CC*)
  11289. # FIXME: insert proper C++ library support
  11290. ld_shlibs_CXX=no
  11291. ;;
  11292. aCC*)
  11293. case $host_cpu in
  11294. hppa*64*)
  11295. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11296. ;;
  11297. ia64*)
  11298. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11299. ;;
  11300. *)
  11301. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11302. ;;
  11303. esac
  11304. # Commands to make compiler produce verbose output that lists
  11305. # what "hidden" libraries, object files and flags are used when
  11306. # linking a shared library.
  11307. #
  11308. # There doesn't appear to be a way to prevent this compiler from
  11309. # explicitly linking system object files so we need to strip them
  11310. # from the output so that they don't get included in the library
  11311. # dependencies.
  11312. 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"'
  11313. ;;
  11314. *)
  11315. if test "$GXX" = yes; then
  11316. if test $with_gnu_ld = no; then
  11317. case $host_cpu in
  11318. hppa*64*)
  11319. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11320. ;;
  11321. ia64*)
  11322. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11323. ;;
  11324. *)
  11325. 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'
  11326. ;;
  11327. esac
  11328. fi
  11329. else
  11330. # FIXME: insert proper C++ library support
  11331. ld_shlibs_CXX=no
  11332. fi
  11333. ;;
  11334. esac
  11335. ;;
  11336. interix[3-9]*)
  11337. hardcode_direct_CXX=no
  11338. hardcode_shlibpath_var_CXX=no
  11339. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11340. export_dynamic_flag_spec_CXX='${wl}-E'
  11341. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11342. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11343. # default) and relocated if they conflict, which is a slow very memory
  11344. # consuming and fragmenting process. To avoid this, we pick a random,
  11345. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11346. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11347. 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'
  11348. 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'
  11349. ;;
  11350. irix5* | irix6*)
  11351. case $cc_basename in
  11352. CC*)
  11353. # SGI C++
  11354. 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'
  11355. # Archives containing C++ object files must be created using
  11356. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11357. # necessary to make sure instantiated templates are included
  11358. # in the archive.
  11359. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11360. ;;
  11361. *)
  11362. if test "$GXX" = yes; then
  11363. if test "$with_gnu_ld" = no; then
  11364. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11365. else
  11366. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11367. fi
  11368. fi
  11369. link_all_deplibs_CXX=yes
  11370. ;;
  11371. esac
  11372. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11373. hardcode_libdir_separator_CXX=:
  11374. inherit_rpath_CXX=yes
  11375. ;;
  11376. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11377. case $cc_basename in
  11378. KCC*)
  11379. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11380. # KCC will only create a shared library if the output file
  11381. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11382. # to its proper name (with version) after linking.
  11383. 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'
  11384. 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'
  11385. # Commands to make compiler produce verbose output that lists
  11386. # what "hidden" libraries, object files and flags are used when
  11387. # linking a shared library.
  11388. #
  11389. # There doesn't appear to be a way to prevent this compiler from
  11390. # explicitly linking system object files so we need to strip them
  11391. # from the output so that they don't get included in the library
  11392. # dependencies.
  11393. 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"'
  11394. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11395. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11396. # Archives containing C++ object files must be created using
  11397. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11398. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11399. ;;
  11400. icpc* | ecpc* )
  11401. # Intel C++
  11402. with_gnu_ld=yes
  11403. # version 8.0 and above of icpc choke on multiply defined symbols
  11404. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11405. # earlier do not add the objects themselves.
  11406. case `$CC -V 2>&1` in
  11407. *"Version 7."*)
  11408. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11409. 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'
  11410. ;;
  11411. *) # Version 8.0 or newer
  11412. tmp_idyn=
  11413. case $host_cpu in
  11414. ia64*) tmp_idyn=' -i_dynamic';;
  11415. esac
  11416. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11417. 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'
  11418. ;;
  11419. esac
  11420. archive_cmds_need_lc_CXX=no
  11421. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11422. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11423. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11424. ;;
  11425. pgCC* | pgcpp*)
  11426. # Portland Group C++ compiler
  11427. case `$CC -V` in
  11428. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11429. prelink_cmds_CXX='tpldir=Template.dir~
  11430. rm -rf $tpldir~
  11431. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11432. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11433. old_archive_cmds_CXX='tpldir=Template.dir~
  11434. rm -rf $tpldir~
  11435. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11436. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11437. $RANLIB $oldlib'
  11438. archive_cmds_CXX='tpldir=Template.dir~
  11439. rm -rf $tpldir~
  11440. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11441. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11442. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11443. rm -rf $tpldir~
  11444. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11445. $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'
  11446. ;;
  11447. *) # Version 6 and above use weak symbols
  11448. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11449. 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'
  11450. ;;
  11451. esac
  11452. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11453. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11454. 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'
  11455. ;;
  11456. cxx*)
  11457. # Compaq C++
  11458. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11459. 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'
  11460. runpath_var=LD_RUN_PATH
  11461. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11462. hardcode_libdir_separator_CXX=:
  11463. # Commands to make compiler produce verbose output that lists
  11464. # what "hidden" libraries, object files and flags are used when
  11465. # linking a shared library.
  11466. #
  11467. # There doesn't appear to be a way to prevent this compiler from
  11468. # explicitly linking system object files so we need to strip them
  11469. # from the output so that they don't get included in the library
  11470. # dependencies.
  11471. 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'
  11472. ;;
  11473. xl* | mpixl* | bgxl*)
  11474. # IBM XL 8.0 on PPC, with GNU ld
  11475. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11476. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11477. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11478. if test "x$supports_anon_versioning" = xyes; then
  11479. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11480. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11481. echo "local: *; };" >> $output_objdir/$libname.ver~
  11482. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11483. fi
  11484. ;;
  11485. *)
  11486. case `$CC -V 2>&1 | sed 5q` in
  11487. *Sun\ C*)
  11488. # Sun C++ 5.9
  11489. no_undefined_flag_CXX=' -zdefs'
  11490. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11491. 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'
  11492. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11493. 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'
  11494. compiler_needs_object_CXX=yes
  11495. # Not sure whether something based on
  11496. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11497. # would be better.
  11498. output_verbose_link_cmd='func_echo_all'
  11499. # Archives containing C++ object files must be created using
  11500. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11501. # necessary to make sure instantiated templates are included
  11502. # in the archive.
  11503. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11504. ;;
  11505. esac
  11506. ;;
  11507. esac
  11508. ;;
  11509. lynxos*)
  11510. # FIXME: insert proper C++ library support
  11511. ld_shlibs_CXX=no
  11512. ;;
  11513. m88k*)
  11514. # FIXME: insert proper C++ library support
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. mvs*)
  11518. case $cc_basename in
  11519. cxx*)
  11520. # FIXME: insert proper C++ library support
  11521. ld_shlibs_CXX=no
  11522. ;;
  11523. *)
  11524. # FIXME: insert proper C++ library support
  11525. ld_shlibs_CXX=no
  11526. ;;
  11527. esac
  11528. ;;
  11529. netbsd*)
  11530. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11531. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11532. wlarc=
  11533. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11534. hardcode_direct_CXX=yes
  11535. hardcode_shlibpath_var_CXX=no
  11536. fi
  11537. # Workaround some broken pre-1.5 toolchains
  11538. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11539. ;;
  11540. *nto* | *qnx*)
  11541. ld_shlibs_CXX=yes
  11542. ;;
  11543. openbsd2*)
  11544. # C++ shared libraries are fairly broken
  11545. ld_shlibs_CXX=no
  11546. ;;
  11547. openbsd*)
  11548. if test -f /usr/libexec/ld.so; then
  11549. hardcode_direct_CXX=yes
  11550. hardcode_shlibpath_var_CXX=no
  11551. hardcode_direct_absolute_CXX=yes
  11552. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11553. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11554. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11555. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11556. export_dynamic_flag_spec_CXX='${wl}-E'
  11557. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11558. fi
  11559. output_verbose_link_cmd=func_echo_all
  11560. else
  11561. ld_shlibs_CXX=no
  11562. fi
  11563. ;;
  11564. osf3* | osf4* | osf5*)
  11565. case $cc_basename in
  11566. KCC*)
  11567. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11568. # KCC will only create a shared library if the output file
  11569. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11570. # to its proper name (with version) after linking.
  11571. 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'
  11572. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11573. hardcode_libdir_separator_CXX=:
  11574. # Archives containing C++ object files must be created using
  11575. # the KAI C++ compiler.
  11576. case $host in
  11577. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11578. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11579. esac
  11580. ;;
  11581. RCC*)
  11582. # Rational C++ 2.4.1
  11583. # FIXME: insert proper C++ library support
  11584. ld_shlibs_CXX=no
  11585. ;;
  11586. cxx*)
  11587. case $host in
  11588. osf3*)
  11589. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11590. 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'
  11591. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11592. ;;
  11593. *)
  11594. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11595. 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'
  11596. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11597. echo "-hidden">> $lib.exp~
  11598. $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~
  11599. $RM $lib.exp'
  11600. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11601. ;;
  11602. esac
  11603. hardcode_libdir_separator_CXX=:
  11604. # Commands to make compiler produce verbose output that lists
  11605. # what "hidden" libraries, object files and flags are used when
  11606. # linking a shared library.
  11607. #
  11608. # There doesn't appear to be a way to prevent this compiler from
  11609. # explicitly linking system object files so we need to strip them
  11610. # from the output so that they don't get included in the library
  11611. # dependencies.
  11612. 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"'
  11613. ;;
  11614. *)
  11615. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11616. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11617. case $host in
  11618. osf3*)
  11619. 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'
  11620. ;;
  11621. *)
  11622. 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'
  11623. ;;
  11624. esac
  11625. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11626. hardcode_libdir_separator_CXX=:
  11627. # Commands to make compiler produce verbose output that lists
  11628. # what "hidden" libraries, object files and flags are used when
  11629. # linking a shared library.
  11630. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11631. else
  11632. # FIXME: insert proper C++ library support
  11633. ld_shlibs_CXX=no
  11634. fi
  11635. ;;
  11636. esac
  11637. ;;
  11638. psos*)
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. sunos4*)
  11643. case $cc_basename in
  11644. CC*)
  11645. # Sun C++ 4.x
  11646. # FIXME: insert proper C++ library support
  11647. ld_shlibs_CXX=no
  11648. ;;
  11649. lcc*)
  11650. # Lucid
  11651. # FIXME: insert proper C++ library support
  11652. ld_shlibs_CXX=no
  11653. ;;
  11654. *)
  11655. # FIXME: insert proper C++ library support
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. esac
  11659. ;;
  11660. solaris*)
  11661. case $cc_basename in
  11662. CC* | sunCC*)
  11663. # Sun C++ 4.2, 5.x and Centerline C++
  11664. archive_cmds_need_lc_CXX=yes
  11665. no_undefined_flag_CXX=' -zdefs'
  11666. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11667. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11668. $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'
  11669. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11670. hardcode_shlibpath_var_CXX=no
  11671. case $host_os in
  11672. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11673. *)
  11674. # The compiler driver will combine and reorder linker options,
  11675. # but understands `-z linker_flag'.
  11676. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11677. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11678. ;;
  11679. esac
  11680. link_all_deplibs_CXX=yes
  11681. output_verbose_link_cmd='func_echo_all'
  11682. # Archives containing C++ object files must be created using
  11683. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11684. # necessary to make sure instantiated templates are included
  11685. # in the archive.
  11686. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11687. ;;
  11688. gcx*)
  11689. # Green Hills C++ Compiler
  11690. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11691. # The C++ compiler must be used to create the archive.
  11692. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11693. ;;
  11694. *)
  11695. # GNU C++ compiler with Solaris linker
  11696. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11697. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11698. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11699. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11700. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11701. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11702. # Commands to make compiler produce verbose output that lists
  11703. # what "hidden" libraries, object files and flags are used when
  11704. # linking a shared library.
  11705. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11706. else
  11707. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11708. # platform.
  11709. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11710. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11711. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11712. # Commands to make compiler produce verbose output that lists
  11713. # what "hidden" libraries, object files and flags are used when
  11714. # linking a shared library.
  11715. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11716. fi
  11717. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11718. case $host_os in
  11719. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11720. *)
  11721. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11722. ;;
  11723. esac
  11724. fi
  11725. ;;
  11726. esac
  11727. ;;
  11728. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11729. no_undefined_flag_CXX='${wl}-z,text'
  11730. archive_cmds_need_lc_CXX=no
  11731. hardcode_shlibpath_var_CXX=no
  11732. runpath_var='LD_RUN_PATH'
  11733. case $cc_basename in
  11734. CC*)
  11735. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11736. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11737. ;;
  11738. *)
  11739. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11740. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11741. ;;
  11742. esac
  11743. ;;
  11744. sysv5* | sco3.2v5* | sco5v6*)
  11745. # Note: We can NOT use -z defs as we might desire, because we do not
  11746. # link with -lc, and that would cause any symbols used from libc to
  11747. # always be unresolved, which means just about no library would
  11748. # ever link correctly. If we're not using GNU ld we use -z text
  11749. # though, which does catch some bad symbols but isn't as heavy-handed
  11750. # as -z defs.
  11751. no_undefined_flag_CXX='${wl}-z,text'
  11752. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11753. archive_cmds_need_lc_CXX=no
  11754. hardcode_shlibpath_var_CXX=no
  11755. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11756. hardcode_libdir_separator_CXX=':'
  11757. link_all_deplibs_CXX=yes
  11758. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11759. runpath_var='LD_RUN_PATH'
  11760. case $cc_basename in
  11761. CC*)
  11762. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11763. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11764. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11765. '"$old_archive_cmds_CXX"
  11766. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11767. '"$reload_cmds_CXX"
  11768. ;;
  11769. *)
  11770. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11771. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11772. ;;
  11773. esac
  11774. ;;
  11775. tandem*)
  11776. case $cc_basename in
  11777. NCC*)
  11778. # NonStop-UX NCC 3.20
  11779. # FIXME: insert proper C++ library support
  11780. ld_shlibs_CXX=no
  11781. ;;
  11782. *)
  11783. # FIXME: insert proper C++ library support
  11784. ld_shlibs_CXX=no
  11785. ;;
  11786. esac
  11787. ;;
  11788. vxworks*)
  11789. # FIXME: insert proper C++ library support
  11790. ld_shlibs_CXX=no
  11791. ;;
  11792. *)
  11793. # FIXME: insert proper C++ library support
  11794. ld_shlibs_CXX=no
  11795. ;;
  11796. esac
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11798. $as_echo "$ld_shlibs_CXX" >&6; }
  11799. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11800. GCC_CXX="$GXX"
  11801. LD_CXX="$LD"
  11802. ## CAVEAT EMPTOR:
  11803. ## There is no encapsulation within the following macros, do not change
  11804. ## the running order or otherwise move them around unless you know exactly
  11805. ## what you are doing...
  11806. # Dependencies to place before and after the object being linked:
  11807. predep_objects_CXX=
  11808. postdep_objects_CXX=
  11809. predeps_CXX=
  11810. postdeps_CXX=
  11811. compiler_lib_search_path_CXX=
  11812. cat > conftest.$ac_ext <<_LT_EOF
  11813. class Foo
  11814. {
  11815. public:
  11816. Foo (void) { a = 0; }
  11817. private:
  11818. int a;
  11819. };
  11820. _LT_EOF
  11821. _lt_libdeps_save_CFLAGS=$CFLAGS
  11822. case "$CC $CFLAGS " in #(
  11823. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11824. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11825. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11826. esac
  11827. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11828. (eval $ac_compile) 2>&5
  11829. ac_status=$?
  11830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11831. test $ac_status = 0; }; then
  11832. # Parse the compiler output and extract the necessary
  11833. # objects, libraries and library flags.
  11834. # Sentinel used to keep track of whether or not we are before
  11835. # the conftest object file.
  11836. pre_test_object_deps_done=no
  11837. for p in `eval "$output_verbose_link_cmd"`; do
  11838. case ${prev}${p} in
  11839. -L* | -R* | -l*)
  11840. # Some compilers place space between "-{L,R}" and the path.
  11841. # Remove the space.
  11842. if test $p = "-L" ||
  11843. test $p = "-R"; then
  11844. prev=$p
  11845. continue
  11846. fi
  11847. # Expand the sysroot to ease extracting the directories later.
  11848. if test -z "$prev"; then
  11849. case $p in
  11850. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11851. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11852. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11853. esac
  11854. fi
  11855. case $p in
  11856. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11857. esac
  11858. if test "$pre_test_object_deps_done" = no; then
  11859. case ${prev} in
  11860. -L | -R)
  11861. # Internal compiler library paths should come after those
  11862. # provided the user. The postdeps already come after the
  11863. # user supplied libs so there is no need to process them.
  11864. if test -z "$compiler_lib_search_path_CXX"; then
  11865. compiler_lib_search_path_CXX="${prev}${p}"
  11866. else
  11867. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11868. fi
  11869. ;;
  11870. # The "-l" case would never come before the object being
  11871. # linked, so don't bother handling this case.
  11872. esac
  11873. else
  11874. if test -z "$postdeps_CXX"; then
  11875. postdeps_CXX="${prev}${p}"
  11876. else
  11877. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11878. fi
  11879. fi
  11880. prev=
  11881. ;;
  11882. *.lto.$objext) ;; # Ignore GCC LTO objects
  11883. *.$objext)
  11884. # This assumes that the test object file only shows up
  11885. # once in the compiler output.
  11886. if test "$p" = "conftest.$objext"; then
  11887. pre_test_object_deps_done=yes
  11888. continue
  11889. fi
  11890. if test "$pre_test_object_deps_done" = no; then
  11891. if test -z "$predep_objects_CXX"; then
  11892. predep_objects_CXX="$p"
  11893. else
  11894. predep_objects_CXX="$predep_objects_CXX $p"
  11895. fi
  11896. else
  11897. if test -z "$postdep_objects_CXX"; then
  11898. postdep_objects_CXX="$p"
  11899. else
  11900. postdep_objects_CXX="$postdep_objects_CXX $p"
  11901. fi
  11902. fi
  11903. ;;
  11904. *) ;; # Ignore the rest.
  11905. esac
  11906. done
  11907. # Clean up.
  11908. rm -f a.out a.exe
  11909. else
  11910. echo "libtool.m4: error: problem compiling CXX test program"
  11911. fi
  11912. $RM -f confest.$objext
  11913. CFLAGS=$_lt_libdeps_save_CFLAGS
  11914. # PORTME: override above test on systems where it is broken
  11915. case $host_os in
  11916. interix[3-9]*)
  11917. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11918. # hack all around it, let's just trust "g++" to DTRT.
  11919. predep_objects_CXX=
  11920. postdep_objects_CXX=
  11921. postdeps_CXX=
  11922. ;;
  11923. linux*)
  11924. case `$CC -V 2>&1 | sed 5q` in
  11925. *Sun\ C*)
  11926. # Sun C++ 5.9
  11927. # The more standards-conforming stlport4 library is
  11928. # incompatible with the Cstd library. Avoid specifying
  11929. # it if it's in CXXFLAGS. Ignore libCrun as
  11930. # -library=stlport4 depends on it.
  11931. case " $CXX $CXXFLAGS " in
  11932. *" -library=stlport4 "*)
  11933. solaris_use_stlport4=yes
  11934. ;;
  11935. esac
  11936. if test "$solaris_use_stlport4" != yes; then
  11937. postdeps_CXX='-library=Cstd -library=Crun'
  11938. fi
  11939. ;;
  11940. esac
  11941. ;;
  11942. solaris*)
  11943. case $cc_basename in
  11944. CC* | sunCC*)
  11945. # The more standards-conforming stlport4 library is
  11946. # incompatible with the Cstd library. Avoid specifying
  11947. # it if it's in CXXFLAGS. Ignore libCrun as
  11948. # -library=stlport4 depends on it.
  11949. case " $CXX $CXXFLAGS " in
  11950. *" -library=stlport4 "*)
  11951. solaris_use_stlport4=yes
  11952. ;;
  11953. esac
  11954. # Adding this requires a known-good setup of shared libraries for
  11955. # Sun compiler versions before 5.6, else PIC objects from an old
  11956. # archive will be linked into the output, leading to subtle bugs.
  11957. if test "$solaris_use_stlport4" != yes; then
  11958. postdeps_CXX='-library=Cstd -library=Crun'
  11959. fi
  11960. ;;
  11961. esac
  11962. ;;
  11963. esac
  11964. case " $postdeps_CXX " in
  11965. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11966. esac
  11967. compiler_lib_search_dirs_CXX=
  11968. if test -n "${compiler_lib_search_path_CXX}"; then
  11969. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11970. fi
  11971. lt_prog_compiler_wl_CXX=
  11972. lt_prog_compiler_pic_CXX=
  11973. lt_prog_compiler_static_CXX=
  11974. # C++ specific cases for pic, static, wl, etc.
  11975. if test "$GXX" = yes; then
  11976. lt_prog_compiler_wl_CXX='-Wl,'
  11977. lt_prog_compiler_static_CXX='-static'
  11978. case $host_os in
  11979. aix*)
  11980. # All AIX code is PIC.
  11981. if test "$host_cpu" = ia64; then
  11982. # AIX 5 now supports IA64 processor
  11983. lt_prog_compiler_static_CXX='-Bstatic'
  11984. fi
  11985. ;;
  11986. amigaos*)
  11987. case $host_cpu in
  11988. powerpc)
  11989. # see comment about AmigaOS4 .so support
  11990. lt_prog_compiler_pic_CXX='-fPIC'
  11991. ;;
  11992. m68k)
  11993. # FIXME: we need at least 68020 code to build shared libraries, but
  11994. # adding the `-m68020' flag to GCC prevents building anything better,
  11995. # like `-m68040'.
  11996. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11997. ;;
  11998. esac
  11999. ;;
  12000. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12001. # PIC is the default for these OSes.
  12002. ;;
  12003. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12004. # This hack is so that the source file can tell whether it is being
  12005. # built for inclusion in a dll (and should export symbols for example).
  12006. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12007. # (--disable-auto-import) libraries
  12008. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12009. ;;
  12010. darwin* | rhapsody*)
  12011. # PIC is the default on this platform
  12012. # Common symbols not allowed in MH_DYLIB files
  12013. lt_prog_compiler_pic_CXX='-fno-common'
  12014. ;;
  12015. *djgpp*)
  12016. # DJGPP does not support shared libraries at all
  12017. lt_prog_compiler_pic_CXX=
  12018. ;;
  12019. haiku*)
  12020. # PIC is the default for Haiku.
  12021. # The "-static" flag exists, but is broken.
  12022. lt_prog_compiler_static_CXX=
  12023. ;;
  12024. interix[3-9]*)
  12025. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12026. # Instead, we relocate shared libraries at runtime.
  12027. ;;
  12028. sysv4*MP*)
  12029. if test -d /usr/nec; then
  12030. lt_prog_compiler_pic_CXX=-Kconform_pic
  12031. fi
  12032. ;;
  12033. hpux*)
  12034. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12035. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12036. # sets the default TLS model and affects inlining.
  12037. case $host_cpu in
  12038. hppa*64*)
  12039. ;;
  12040. *)
  12041. lt_prog_compiler_pic_CXX='-fPIC'
  12042. ;;
  12043. esac
  12044. ;;
  12045. *qnx* | *nto*)
  12046. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12047. # it will coredump.
  12048. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12049. ;;
  12050. *)
  12051. lt_prog_compiler_pic_CXX='-fPIC'
  12052. ;;
  12053. esac
  12054. else
  12055. case $host_os in
  12056. aix[4-9]*)
  12057. # All AIX code is PIC.
  12058. if test "$host_cpu" = ia64; then
  12059. # AIX 5 now supports IA64 processor
  12060. lt_prog_compiler_static_CXX='-Bstatic'
  12061. else
  12062. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12063. fi
  12064. ;;
  12065. chorus*)
  12066. case $cc_basename in
  12067. cxch68*)
  12068. # Green Hills C++ Compiler
  12069. # _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"
  12070. ;;
  12071. esac
  12072. ;;
  12073. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12074. # This hack is so that the source file can tell whether it is being
  12075. # built for inclusion in a dll (and should export symbols for example).
  12076. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12077. ;;
  12078. dgux*)
  12079. case $cc_basename in
  12080. ec++*)
  12081. lt_prog_compiler_pic_CXX='-KPIC'
  12082. ;;
  12083. ghcx*)
  12084. # Green Hills C++ Compiler
  12085. lt_prog_compiler_pic_CXX='-pic'
  12086. ;;
  12087. *)
  12088. ;;
  12089. esac
  12090. ;;
  12091. freebsd* | dragonfly*)
  12092. # FreeBSD uses GNU C++
  12093. ;;
  12094. hpux9* | hpux10* | hpux11*)
  12095. case $cc_basename in
  12096. CC*)
  12097. lt_prog_compiler_wl_CXX='-Wl,'
  12098. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12099. if test "$host_cpu" != ia64; then
  12100. lt_prog_compiler_pic_CXX='+Z'
  12101. fi
  12102. ;;
  12103. aCC*)
  12104. lt_prog_compiler_wl_CXX='-Wl,'
  12105. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12106. case $host_cpu in
  12107. hppa*64*|ia64*)
  12108. # +Z the default
  12109. ;;
  12110. *)
  12111. lt_prog_compiler_pic_CXX='+Z'
  12112. ;;
  12113. esac
  12114. ;;
  12115. *)
  12116. ;;
  12117. esac
  12118. ;;
  12119. interix*)
  12120. # This is c89, which is MS Visual C++ (no shared libs)
  12121. # Anyone wants to do a port?
  12122. ;;
  12123. irix5* | irix6* | nonstopux*)
  12124. case $cc_basename in
  12125. CC*)
  12126. lt_prog_compiler_wl_CXX='-Wl,'
  12127. lt_prog_compiler_static_CXX='-non_shared'
  12128. # CC pic flag -KPIC is the default.
  12129. ;;
  12130. *)
  12131. ;;
  12132. esac
  12133. ;;
  12134. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12135. case $cc_basename in
  12136. KCC*)
  12137. # KAI C++ Compiler
  12138. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12139. lt_prog_compiler_pic_CXX='-fPIC'
  12140. ;;
  12141. ecpc* )
  12142. # old Intel C++ for x86_64 which still supported -KPIC.
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_pic_CXX='-KPIC'
  12145. lt_prog_compiler_static_CXX='-static'
  12146. ;;
  12147. icpc* )
  12148. # Intel C++, used to be incompatible with GCC.
  12149. # ICC 10 doesn't accept -KPIC any more.
  12150. lt_prog_compiler_wl_CXX='-Wl,'
  12151. lt_prog_compiler_pic_CXX='-fPIC'
  12152. lt_prog_compiler_static_CXX='-static'
  12153. ;;
  12154. pgCC* | pgcpp*)
  12155. # Portland Group C++ compiler
  12156. lt_prog_compiler_wl_CXX='-Wl,'
  12157. lt_prog_compiler_pic_CXX='-fpic'
  12158. lt_prog_compiler_static_CXX='-Bstatic'
  12159. ;;
  12160. cxx*)
  12161. # Compaq C++
  12162. # Make sure the PIC flag is empty. It appears that all Alpha
  12163. # Linux and Compaq Tru64 Unix objects are PIC.
  12164. lt_prog_compiler_pic_CXX=
  12165. lt_prog_compiler_static_CXX='-non_shared'
  12166. ;;
  12167. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12168. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12169. lt_prog_compiler_wl_CXX='-Wl,'
  12170. lt_prog_compiler_pic_CXX='-qpic'
  12171. lt_prog_compiler_static_CXX='-qstaticlink'
  12172. ;;
  12173. *)
  12174. case `$CC -V 2>&1 | sed 5q` in
  12175. *Sun\ C*)
  12176. # Sun C++ 5.9
  12177. lt_prog_compiler_pic_CXX='-KPIC'
  12178. lt_prog_compiler_static_CXX='-Bstatic'
  12179. lt_prog_compiler_wl_CXX='-Qoption ld '
  12180. ;;
  12181. esac
  12182. ;;
  12183. esac
  12184. ;;
  12185. lynxos*)
  12186. ;;
  12187. m88k*)
  12188. ;;
  12189. mvs*)
  12190. case $cc_basename in
  12191. cxx*)
  12192. lt_prog_compiler_pic_CXX='-W c,exportall'
  12193. ;;
  12194. *)
  12195. ;;
  12196. esac
  12197. ;;
  12198. netbsd*)
  12199. ;;
  12200. *qnx* | *nto*)
  12201. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12202. # it will coredump.
  12203. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12204. ;;
  12205. osf3* | osf4* | osf5*)
  12206. case $cc_basename in
  12207. KCC*)
  12208. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12209. ;;
  12210. RCC*)
  12211. # Rational C++ 2.4.1
  12212. lt_prog_compiler_pic_CXX='-pic'
  12213. ;;
  12214. cxx*)
  12215. # Digital/Compaq C++
  12216. lt_prog_compiler_wl_CXX='-Wl,'
  12217. # Make sure the PIC flag is empty. It appears that all Alpha
  12218. # Linux and Compaq Tru64 Unix objects are PIC.
  12219. lt_prog_compiler_pic_CXX=
  12220. lt_prog_compiler_static_CXX='-non_shared'
  12221. ;;
  12222. *)
  12223. ;;
  12224. esac
  12225. ;;
  12226. psos*)
  12227. ;;
  12228. solaris*)
  12229. case $cc_basename in
  12230. CC* | sunCC*)
  12231. # Sun C++ 4.2, 5.x and Centerline C++
  12232. lt_prog_compiler_pic_CXX='-KPIC'
  12233. lt_prog_compiler_static_CXX='-Bstatic'
  12234. lt_prog_compiler_wl_CXX='-Qoption ld '
  12235. ;;
  12236. gcx*)
  12237. # Green Hills C++ Compiler
  12238. lt_prog_compiler_pic_CXX='-PIC'
  12239. ;;
  12240. *)
  12241. ;;
  12242. esac
  12243. ;;
  12244. sunos4*)
  12245. case $cc_basename in
  12246. CC*)
  12247. # Sun C++ 4.x
  12248. lt_prog_compiler_pic_CXX='-pic'
  12249. lt_prog_compiler_static_CXX='-Bstatic'
  12250. ;;
  12251. lcc*)
  12252. # Lucid
  12253. lt_prog_compiler_pic_CXX='-pic'
  12254. ;;
  12255. *)
  12256. ;;
  12257. esac
  12258. ;;
  12259. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12260. case $cc_basename in
  12261. CC*)
  12262. lt_prog_compiler_wl_CXX='-Wl,'
  12263. lt_prog_compiler_pic_CXX='-KPIC'
  12264. lt_prog_compiler_static_CXX='-Bstatic'
  12265. ;;
  12266. esac
  12267. ;;
  12268. tandem*)
  12269. case $cc_basename in
  12270. NCC*)
  12271. # NonStop-UX NCC 3.20
  12272. lt_prog_compiler_pic_CXX='-KPIC'
  12273. ;;
  12274. *)
  12275. ;;
  12276. esac
  12277. ;;
  12278. vxworks*)
  12279. ;;
  12280. *)
  12281. lt_prog_compiler_can_build_shared_CXX=no
  12282. ;;
  12283. esac
  12284. fi
  12285. case $host_os in
  12286. # For platforms which do not support PIC, -DPIC is meaningless:
  12287. *djgpp*)
  12288. lt_prog_compiler_pic_CXX=
  12289. ;;
  12290. *)
  12291. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12292. ;;
  12293. esac
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12295. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12296. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12297. $as_echo_n "(cached) " >&6
  12298. else
  12299. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12300. fi
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12302. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12303. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12304. #
  12305. # Check to make sure the PIC flag actually works.
  12306. #
  12307. if test -n "$lt_prog_compiler_pic_CXX"; then
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12309. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12310. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12311. $as_echo_n "(cached) " >&6
  12312. else
  12313. lt_cv_prog_compiler_pic_works_CXX=no
  12314. ac_outfile=conftest.$ac_objext
  12315. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12316. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12317. # Insert the option either (1) after the last *FLAGS variable, or
  12318. # (2) before a word containing "conftest.", or (3) at the end.
  12319. # Note that $ac_compile itself does not contain backslashes and begins
  12320. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12321. # The option is referenced via a variable to avoid confusing sed.
  12322. lt_compile=`echo "$ac_compile" | $SED \
  12323. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12324. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12325. -e 's:$: $lt_compiler_flag:'`
  12326. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12327. (eval "$lt_compile" 2>conftest.err)
  12328. ac_status=$?
  12329. cat conftest.err >&5
  12330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12331. if (exit $ac_status) && test -s "$ac_outfile"; then
  12332. # The compiler can only warn and ignore the option if not recognized
  12333. # So say no if there are warnings other than the usual output.
  12334. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12335. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12336. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12337. lt_cv_prog_compiler_pic_works_CXX=yes
  12338. fi
  12339. fi
  12340. $RM conftest*
  12341. fi
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12343. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12344. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12345. case $lt_prog_compiler_pic_CXX in
  12346. "" | " "*) ;;
  12347. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12348. esac
  12349. else
  12350. lt_prog_compiler_pic_CXX=
  12351. lt_prog_compiler_can_build_shared_CXX=no
  12352. fi
  12353. fi
  12354. #
  12355. # Check to make sure the static flag actually works.
  12356. #
  12357. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12359. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12360. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12361. $as_echo_n "(cached) " >&6
  12362. else
  12363. lt_cv_prog_compiler_static_works_CXX=no
  12364. save_LDFLAGS="$LDFLAGS"
  12365. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12366. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12367. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12368. # The linker can only warn and ignore the option if not recognized
  12369. # So say no if there are warnings
  12370. if test -s conftest.err; then
  12371. # Append any errors to the config.log.
  12372. cat conftest.err 1>&5
  12373. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12375. if diff conftest.exp conftest.er2 >/dev/null; then
  12376. lt_cv_prog_compiler_static_works_CXX=yes
  12377. fi
  12378. else
  12379. lt_cv_prog_compiler_static_works_CXX=yes
  12380. fi
  12381. fi
  12382. $RM -r conftest*
  12383. LDFLAGS="$save_LDFLAGS"
  12384. fi
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12386. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12387. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12388. :
  12389. else
  12390. lt_prog_compiler_static_CXX=
  12391. fi
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12393. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12394. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12395. $as_echo_n "(cached) " >&6
  12396. else
  12397. lt_cv_prog_compiler_c_o_CXX=no
  12398. $RM -r conftest 2>/dev/null
  12399. mkdir conftest
  12400. cd conftest
  12401. mkdir out
  12402. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12403. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12404. # Insert the option either (1) after the last *FLAGS variable, or
  12405. # (2) before a word containing "conftest.", or (3) at the end.
  12406. # Note that $ac_compile itself does not contain backslashes and begins
  12407. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12408. lt_compile=`echo "$ac_compile" | $SED \
  12409. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12410. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12411. -e 's:$: $lt_compiler_flag:'`
  12412. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12413. (eval "$lt_compile" 2>out/conftest.err)
  12414. ac_status=$?
  12415. cat out/conftest.err >&5
  12416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12417. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12418. then
  12419. # The compiler can only warn and ignore the option if not recognized
  12420. # So say no if there are warnings
  12421. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12422. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12423. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12424. lt_cv_prog_compiler_c_o_CXX=yes
  12425. fi
  12426. fi
  12427. chmod u+w . 2>&5
  12428. $RM conftest*
  12429. # SGI C++ compiler will create directory out/ii_files/ for
  12430. # template instantiation
  12431. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12432. $RM out/* && rmdir out
  12433. cd ..
  12434. $RM -r conftest
  12435. $RM conftest*
  12436. fi
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12438. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12440. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12441. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. lt_cv_prog_compiler_c_o_CXX=no
  12445. $RM -r conftest 2>/dev/null
  12446. mkdir conftest
  12447. cd conftest
  12448. mkdir out
  12449. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12450. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12451. # Insert the option either (1) after the last *FLAGS variable, or
  12452. # (2) before a word containing "conftest.", or (3) at the end.
  12453. # Note that $ac_compile itself does not contain backslashes and begins
  12454. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12455. lt_compile=`echo "$ac_compile" | $SED \
  12456. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12457. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12458. -e 's:$: $lt_compiler_flag:'`
  12459. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12460. (eval "$lt_compile" 2>out/conftest.err)
  12461. ac_status=$?
  12462. cat out/conftest.err >&5
  12463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12464. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12465. then
  12466. # The compiler can only warn and ignore the option if not recognized
  12467. # So say no if there are warnings
  12468. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12469. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12470. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12471. lt_cv_prog_compiler_c_o_CXX=yes
  12472. fi
  12473. fi
  12474. chmod u+w . 2>&5
  12475. $RM conftest*
  12476. # SGI C++ compiler will create directory out/ii_files/ for
  12477. # template instantiation
  12478. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12479. $RM out/* && rmdir out
  12480. cd ..
  12481. $RM -r conftest
  12482. $RM conftest*
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12485. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12486. hard_links="nottested"
  12487. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12488. # do not overwrite the value of need_locks provided by the user
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12490. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12491. hard_links=yes
  12492. $RM conftest*
  12493. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12494. touch conftest.a
  12495. ln conftest.a conftest.b 2>&5 || hard_links=no
  12496. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12498. $as_echo "$hard_links" >&6; }
  12499. if test "$hard_links" = no; then
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12501. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12502. need_locks=warn
  12503. fi
  12504. else
  12505. need_locks=no
  12506. fi
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12508. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12509. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12510. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12511. case $host_os in
  12512. aix[4-9]*)
  12513. # If we're using GNU nm, then we don't want the "-C" option.
  12514. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12515. # Also, AIX nm treats weak defined symbols like other global defined
  12516. # symbols, whereas GNU nm marks them as "W".
  12517. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12518. 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'
  12519. else
  12520. 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'
  12521. fi
  12522. ;;
  12523. pw32*)
  12524. export_symbols_cmds_CXX="$ltdll_cmds"
  12525. ;;
  12526. cygwin* | mingw* | cegcc*)
  12527. case $cc_basename in
  12528. cl*)
  12529. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12530. ;;
  12531. *)
  12532. 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'
  12533. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12534. ;;
  12535. esac
  12536. ;;
  12537. *)
  12538. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12539. ;;
  12540. esac
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12542. $as_echo "$ld_shlibs_CXX" >&6; }
  12543. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12544. with_gnu_ld_CXX=$with_gnu_ld
  12545. #
  12546. # Do we need to explicitly link libc?
  12547. #
  12548. case "x$archive_cmds_need_lc_CXX" in
  12549. x|xyes)
  12550. # Assume -lc should be added
  12551. archive_cmds_need_lc_CXX=yes
  12552. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12553. case $archive_cmds_CXX in
  12554. *'~'*)
  12555. # FIXME: we may have to deal with multi-command sequences.
  12556. ;;
  12557. '$CC '*)
  12558. # Test whether the compiler implicitly links with -lc since on some
  12559. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12560. # to ld, don't add -lc before -lgcc.
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12562. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12563. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12564. $as_echo_n "(cached) " >&6
  12565. else
  12566. $RM conftest*
  12567. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12568. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12569. (eval $ac_compile) 2>&5
  12570. ac_status=$?
  12571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12572. test $ac_status = 0; } 2>conftest.err; then
  12573. soname=conftest
  12574. lib=conftest
  12575. libobjs=conftest.$ac_objext
  12576. deplibs=
  12577. wl=$lt_prog_compiler_wl_CXX
  12578. pic_flag=$lt_prog_compiler_pic_CXX
  12579. compiler_flags=-v
  12580. linker_flags=-v
  12581. verstring=
  12582. output_objdir=.
  12583. libname=conftest
  12584. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12585. allow_undefined_flag_CXX=
  12586. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12587. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12588. ac_status=$?
  12589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12590. test $ac_status = 0; }
  12591. then
  12592. lt_cv_archive_cmds_need_lc_CXX=no
  12593. else
  12594. lt_cv_archive_cmds_need_lc_CXX=yes
  12595. fi
  12596. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12597. else
  12598. cat conftest.err 1>&5
  12599. fi
  12600. $RM conftest*
  12601. fi
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12603. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12604. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12605. ;;
  12606. esac
  12607. fi
  12608. ;;
  12609. esac
  12610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12611. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12612. library_names_spec=
  12613. libname_spec='lib$name'
  12614. soname_spec=
  12615. shrext_cmds=".so"
  12616. postinstall_cmds=
  12617. postuninstall_cmds=
  12618. finish_cmds=
  12619. finish_eval=
  12620. shlibpath_var=
  12621. shlibpath_overrides_runpath=unknown
  12622. version_type=none
  12623. dynamic_linker="$host_os ld.so"
  12624. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12625. need_lib_prefix=unknown
  12626. hardcode_into_libs=no
  12627. # when you set need_version to no, make sure it does not cause -set_version
  12628. # flags to be left without arguments
  12629. need_version=unknown
  12630. case $host_os in
  12631. aix3*)
  12632. version_type=linux # correct to gnu/linux during the next big refactor
  12633. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12634. shlibpath_var=LIBPATH
  12635. # AIX 3 has no versioning support, so we append a major version to the name.
  12636. soname_spec='${libname}${release}${shared_ext}$major'
  12637. ;;
  12638. aix[4-9]*)
  12639. version_type=linux # correct to gnu/linux during the next big refactor
  12640. need_lib_prefix=no
  12641. need_version=no
  12642. hardcode_into_libs=yes
  12643. if test "$host_cpu" = ia64; then
  12644. # AIX 5 supports IA64
  12645. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12646. shlibpath_var=LD_LIBRARY_PATH
  12647. else
  12648. # With GCC up to 2.95.x, collect2 would create an import file
  12649. # for dependence libraries. The import file would start with
  12650. # the line `#! .'. This would cause the generated library to
  12651. # depend on `.', always an invalid library. This was fixed in
  12652. # development snapshots of GCC prior to 3.0.
  12653. case $host_os in
  12654. aix4 | aix4.[01] | aix4.[01].*)
  12655. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12656. echo ' yes '
  12657. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12658. :
  12659. else
  12660. can_build_shared=no
  12661. fi
  12662. ;;
  12663. esac
  12664. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12665. # soname into executable. Probably we can add versioning support to
  12666. # collect2, so additional links can be useful in future.
  12667. if test "$aix_use_runtimelinking" = yes; then
  12668. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12669. # instead of lib<name>.a to let people know that these are not
  12670. # typical AIX shared libraries.
  12671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12672. else
  12673. # We preserve .a as extension for shared libraries through AIX4.2
  12674. # and later when we are not doing run time linking.
  12675. library_names_spec='${libname}${release}.a $libname.a'
  12676. soname_spec='${libname}${release}${shared_ext}$major'
  12677. fi
  12678. shlibpath_var=LIBPATH
  12679. fi
  12680. ;;
  12681. amigaos*)
  12682. case $host_cpu in
  12683. powerpc)
  12684. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12685. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12687. ;;
  12688. m68k)
  12689. library_names_spec='$libname.ixlibrary $libname.a'
  12690. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12691. 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'
  12692. ;;
  12693. esac
  12694. ;;
  12695. beos*)
  12696. library_names_spec='${libname}${shared_ext}'
  12697. dynamic_linker="$host_os ld.so"
  12698. shlibpath_var=LIBRARY_PATH
  12699. ;;
  12700. bsdi[45]*)
  12701. version_type=linux # correct to gnu/linux during the next big refactor
  12702. need_version=no
  12703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12704. soname_spec='${libname}${release}${shared_ext}$major'
  12705. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12706. shlibpath_var=LD_LIBRARY_PATH
  12707. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12708. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12709. # the default ld.so.conf also contains /usr/contrib/lib and
  12710. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12711. # libtool to hard-code these into programs
  12712. ;;
  12713. cygwin* | mingw* | pw32* | cegcc*)
  12714. version_type=windows
  12715. shrext_cmds=".dll"
  12716. need_version=no
  12717. need_lib_prefix=no
  12718. case $GCC,$cc_basename in
  12719. yes,*)
  12720. # gcc
  12721. library_names_spec='$libname.dll.a'
  12722. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12723. postinstall_cmds='base_file=`basename \${file}`~
  12724. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12725. dldir=$destdir/`dirname \$dlpath`~
  12726. test -d \$dldir || mkdir -p \$dldir~
  12727. $install_prog $dir/$dlname \$dldir/$dlname~
  12728. chmod a+x \$dldir/$dlname~
  12729. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12730. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12731. fi'
  12732. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12733. dlpath=$dir/\$dldll~
  12734. $RM \$dlpath'
  12735. shlibpath_overrides_runpath=yes
  12736. case $host_os in
  12737. cygwin*)
  12738. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12739. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12740. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12741. ;;
  12742. mingw* | cegcc*)
  12743. # MinGW DLLs use traditional 'lib' prefix
  12744. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12745. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12746. ;;
  12747. pw32*)
  12748. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12749. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12750. ;;
  12751. esac
  12752. dynamic_linker='Win32 ld.exe'
  12753. ;;
  12754. *,cl*)
  12755. # Native MSVC
  12756. libname_spec='$name'
  12757. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12758. library_names_spec='${libname}.dll.lib'
  12759. case $build_os in
  12760. mingw*)
  12761. sys_lib_search_path_spec=
  12762. lt_save_ifs=$IFS
  12763. IFS=';'
  12764. for lt_path in $LIB
  12765. do
  12766. IFS=$lt_save_ifs
  12767. # Let DOS variable expansion print the short 8.3 style file name.
  12768. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12769. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12770. done
  12771. IFS=$lt_save_ifs
  12772. # Convert to MSYS style.
  12773. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12774. ;;
  12775. cygwin*)
  12776. # Convert to unix form, then to dos form, then back to unix form
  12777. # but this time dos style (no spaces!) so that the unix form looks
  12778. # like /cygdrive/c/PROGRA~1:/cygdr...
  12779. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12780. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12781. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12782. ;;
  12783. *)
  12784. sys_lib_search_path_spec="$LIB"
  12785. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12786. # It is most probably a Windows format PATH.
  12787. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12788. else
  12789. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12790. fi
  12791. # FIXME: find the short name or the path components, as spaces are
  12792. # common. (e.g. "Program Files" -> "PROGRA~1")
  12793. ;;
  12794. esac
  12795. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12796. postinstall_cmds='base_file=`basename \${file}`~
  12797. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12798. dldir=$destdir/`dirname \$dlpath`~
  12799. test -d \$dldir || mkdir -p \$dldir~
  12800. $install_prog $dir/$dlname \$dldir/$dlname'
  12801. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12802. dlpath=$dir/\$dldll~
  12803. $RM \$dlpath'
  12804. shlibpath_overrides_runpath=yes
  12805. dynamic_linker='Win32 link.exe'
  12806. ;;
  12807. *)
  12808. # Assume MSVC wrapper
  12809. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12810. dynamic_linker='Win32 ld.exe'
  12811. ;;
  12812. esac
  12813. # FIXME: first we should search . and the directory the executable is in
  12814. shlibpath_var=PATH
  12815. ;;
  12816. darwin* | rhapsody*)
  12817. dynamic_linker="$host_os dyld"
  12818. version_type=darwin
  12819. need_lib_prefix=no
  12820. need_version=no
  12821. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12822. soname_spec='${libname}${release}${major}$shared_ext'
  12823. shlibpath_overrides_runpath=yes
  12824. shlibpath_var=DYLD_LIBRARY_PATH
  12825. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12826. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12827. ;;
  12828. dgux*)
  12829. version_type=linux # correct to gnu/linux during the next big refactor
  12830. need_lib_prefix=no
  12831. need_version=no
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12833. soname_spec='${libname}${release}${shared_ext}$major'
  12834. shlibpath_var=LD_LIBRARY_PATH
  12835. ;;
  12836. freebsd* | dragonfly*)
  12837. # DragonFly does not have aout. When/if they implement a new
  12838. # versioning mechanism, adjust this.
  12839. if test -x /usr/bin/objformat; then
  12840. objformat=`/usr/bin/objformat`
  12841. else
  12842. case $host_os in
  12843. freebsd[23].*) objformat=aout ;;
  12844. *) objformat=elf ;;
  12845. esac
  12846. fi
  12847. version_type=freebsd-$objformat
  12848. case $version_type in
  12849. freebsd-elf*)
  12850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12851. need_version=no
  12852. need_lib_prefix=no
  12853. ;;
  12854. freebsd-*)
  12855. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12856. need_version=yes
  12857. ;;
  12858. esac
  12859. shlibpath_var=LD_LIBRARY_PATH
  12860. case $host_os in
  12861. freebsd2.*)
  12862. shlibpath_overrides_runpath=yes
  12863. ;;
  12864. freebsd3.[01]* | freebsdelf3.[01]*)
  12865. shlibpath_overrides_runpath=yes
  12866. hardcode_into_libs=yes
  12867. ;;
  12868. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12869. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12870. shlibpath_overrides_runpath=no
  12871. hardcode_into_libs=yes
  12872. ;;
  12873. *) # from 4.6 on, and DragonFly
  12874. shlibpath_overrides_runpath=yes
  12875. hardcode_into_libs=yes
  12876. ;;
  12877. esac
  12878. ;;
  12879. gnu*)
  12880. version_type=linux # correct to gnu/linux during the next big refactor
  12881. need_lib_prefix=no
  12882. need_version=no
  12883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12884. soname_spec='${libname}${release}${shared_ext}$major'
  12885. shlibpath_var=LD_LIBRARY_PATH
  12886. shlibpath_overrides_runpath=no
  12887. hardcode_into_libs=yes
  12888. ;;
  12889. haiku*)
  12890. version_type=linux # correct to gnu/linux during the next big refactor
  12891. need_lib_prefix=no
  12892. need_version=no
  12893. dynamic_linker="$host_os runtime_loader"
  12894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12895. soname_spec='${libname}${release}${shared_ext}$major'
  12896. shlibpath_var=LIBRARY_PATH
  12897. shlibpath_overrides_runpath=yes
  12898. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12899. hardcode_into_libs=yes
  12900. ;;
  12901. hpux9* | hpux10* | hpux11*)
  12902. # Give a soname corresponding to the major version so that dld.sl refuses to
  12903. # link against other versions.
  12904. version_type=sunos
  12905. need_lib_prefix=no
  12906. need_version=no
  12907. case $host_cpu in
  12908. ia64*)
  12909. shrext_cmds='.so'
  12910. hardcode_into_libs=yes
  12911. dynamic_linker="$host_os dld.so"
  12912. shlibpath_var=LD_LIBRARY_PATH
  12913. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12915. soname_spec='${libname}${release}${shared_ext}$major'
  12916. if test "X$HPUX_IA64_MODE" = X32; then
  12917. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12918. else
  12919. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12920. fi
  12921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12922. ;;
  12923. hppa*64*)
  12924. shrext_cmds='.sl'
  12925. hardcode_into_libs=yes
  12926. dynamic_linker="$host_os dld.sl"
  12927. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12928. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12932. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12933. ;;
  12934. *)
  12935. shrext_cmds='.sl'
  12936. dynamic_linker="$host_os dld.sl"
  12937. shlibpath_var=SHLIB_PATH
  12938. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. ;;
  12942. esac
  12943. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12944. postinstall_cmds='chmod 555 $lib'
  12945. # or fails outright, so override atomically:
  12946. install_override_mode=555
  12947. ;;
  12948. interix[3-9]*)
  12949. version_type=linux # correct to gnu/linux during the next big refactor
  12950. need_lib_prefix=no
  12951. need_version=no
  12952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12953. soname_spec='${libname}${release}${shared_ext}$major'
  12954. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12955. shlibpath_var=LD_LIBRARY_PATH
  12956. shlibpath_overrides_runpath=no
  12957. hardcode_into_libs=yes
  12958. ;;
  12959. irix5* | irix6* | nonstopux*)
  12960. case $host_os in
  12961. nonstopux*) version_type=nonstopux ;;
  12962. *)
  12963. if test "$lt_cv_prog_gnu_ld" = yes; then
  12964. version_type=linux # correct to gnu/linux during the next big refactor
  12965. else
  12966. version_type=irix
  12967. fi ;;
  12968. esac
  12969. need_lib_prefix=no
  12970. need_version=no
  12971. soname_spec='${libname}${release}${shared_ext}$major'
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12973. case $host_os in
  12974. irix5* | nonstopux*)
  12975. libsuff= shlibsuff=
  12976. ;;
  12977. *)
  12978. case $LD in # libtool.m4 will add one of these switches to LD
  12979. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12980. libsuff= shlibsuff= libmagic=32-bit;;
  12981. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12982. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12983. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12984. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12985. *) libsuff= shlibsuff= libmagic=never-match;;
  12986. esac
  12987. ;;
  12988. esac
  12989. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12990. shlibpath_overrides_runpath=no
  12991. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12992. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12993. hardcode_into_libs=yes
  12994. ;;
  12995. # No shared lib support for Linux oldld, aout, or coff.
  12996. linux*oldld* | linux*aout* | linux*coff*)
  12997. dynamic_linker=no
  12998. ;;
  12999. # This must be glibc/ELF.
  13000. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13001. version_type=linux # correct to gnu/linux during the next big refactor
  13002. need_lib_prefix=no
  13003. need_version=no
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13005. soname_spec='${libname}${release}${shared_ext}$major'
  13006. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13007. shlibpath_var=LD_LIBRARY_PATH
  13008. shlibpath_overrides_runpath=no
  13009. # Some binutils ld are patched to set DT_RUNPATH
  13010. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13011. $as_echo_n "(cached) " >&6
  13012. else
  13013. lt_cv_shlibpath_overrides_runpath=no
  13014. save_LDFLAGS=$LDFLAGS
  13015. save_libdir=$libdir
  13016. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13017. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13019. /* end confdefs.h. */
  13020. int
  13021. main ()
  13022. {
  13023. ;
  13024. return 0;
  13025. }
  13026. _ACEOF
  13027. if ac_fn_cxx_try_link "$LINENO"; then :
  13028. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13029. lt_cv_shlibpath_overrides_runpath=yes
  13030. fi
  13031. fi
  13032. rm -f core conftest.err conftest.$ac_objext \
  13033. conftest$ac_exeext conftest.$ac_ext
  13034. LDFLAGS=$save_LDFLAGS
  13035. libdir=$save_libdir
  13036. fi
  13037. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13038. # This implies no fast_install, which is unacceptable.
  13039. # Some rework will be needed to allow for fast_install
  13040. # before this can be enabled.
  13041. hardcode_into_libs=yes
  13042. # Append ld.so.conf contents to the search path
  13043. if test -f /etc/ld.so.conf; then
  13044. 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' ' '`
  13045. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13046. fi
  13047. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13048. # powerpc, because MkLinux only supported shared libraries with the
  13049. # GNU dynamic linker. Since this was broken with cross compilers,
  13050. # most powerpc-linux boxes support dynamic linking these days and
  13051. # people can always --disable-shared, the test was removed, and we
  13052. # assume the GNU/Linux dynamic linker is in use.
  13053. dynamic_linker='GNU/Linux ld.so'
  13054. ;;
  13055. netbsd*)
  13056. version_type=sunos
  13057. need_lib_prefix=no
  13058. need_version=no
  13059. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13061. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13062. dynamic_linker='NetBSD (a.out) ld.so'
  13063. else
  13064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13065. soname_spec='${libname}${release}${shared_ext}$major'
  13066. dynamic_linker='NetBSD ld.elf_so'
  13067. fi
  13068. shlibpath_var=LD_LIBRARY_PATH
  13069. shlibpath_overrides_runpath=yes
  13070. hardcode_into_libs=yes
  13071. ;;
  13072. newsos6)
  13073. version_type=linux # correct to gnu/linux during the next big refactor
  13074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13075. shlibpath_var=LD_LIBRARY_PATH
  13076. shlibpath_overrides_runpath=yes
  13077. ;;
  13078. *nto* | *qnx*)
  13079. version_type=qnx
  13080. need_lib_prefix=no
  13081. need_version=no
  13082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13083. soname_spec='${libname}${release}${shared_ext}$major'
  13084. shlibpath_var=LD_LIBRARY_PATH
  13085. shlibpath_overrides_runpath=no
  13086. hardcode_into_libs=yes
  13087. dynamic_linker='ldqnx.so'
  13088. ;;
  13089. openbsd*)
  13090. version_type=sunos
  13091. sys_lib_dlsearch_path_spec="/usr/lib"
  13092. need_lib_prefix=no
  13093. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13094. case $host_os in
  13095. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13096. *) need_version=no ;;
  13097. esac
  13098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13099. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13100. shlibpath_var=LD_LIBRARY_PATH
  13101. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13102. case $host_os in
  13103. openbsd2.[89] | openbsd2.[89].*)
  13104. shlibpath_overrides_runpath=no
  13105. ;;
  13106. *)
  13107. shlibpath_overrides_runpath=yes
  13108. ;;
  13109. esac
  13110. else
  13111. shlibpath_overrides_runpath=yes
  13112. fi
  13113. ;;
  13114. os2*)
  13115. libname_spec='$name'
  13116. shrext_cmds=".dll"
  13117. need_lib_prefix=no
  13118. library_names_spec='$libname${shared_ext} $libname.a'
  13119. dynamic_linker='OS/2 ld.exe'
  13120. shlibpath_var=LIBPATH
  13121. ;;
  13122. osf3* | osf4* | osf5*)
  13123. version_type=osf
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. soname_spec='${libname}${release}${shared_ext}$major'
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13128. shlibpath_var=LD_LIBRARY_PATH
  13129. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13130. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13131. ;;
  13132. rdos*)
  13133. dynamic_linker=no
  13134. ;;
  13135. solaris*)
  13136. version_type=linux # correct to gnu/linux during the next big refactor
  13137. need_lib_prefix=no
  13138. need_version=no
  13139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13140. soname_spec='${libname}${release}${shared_ext}$major'
  13141. shlibpath_var=LD_LIBRARY_PATH
  13142. shlibpath_overrides_runpath=yes
  13143. hardcode_into_libs=yes
  13144. # ldd complains unless libraries are executable
  13145. postinstall_cmds='chmod +x $lib'
  13146. ;;
  13147. sunos4*)
  13148. version_type=sunos
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13150. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13151. shlibpath_var=LD_LIBRARY_PATH
  13152. shlibpath_overrides_runpath=yes
  13153. if test "$with_gnu_ld" = yes; then
  13154. need_lib_prefix=no
  13155. fi
  13156. need_version=yes
  13157. ;;
  13158. sysv4 | sysv4.3*)
  13159. version_type=linux # correct to gnu/linux during the next big refactor
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13161. soname_spec='${libname}${release}${shared_ext}$major'
  13162. shlibpath_var=LD_LIBRARY_PATH
  13163. case $host_vendor in
  13164. sni)
  13165. shlibpath_overrides_runpath=no
  13166. need_lib_prefix=no
  13167. runpath_var=LD_RUN_PATH
  13168. ;;
  13169. siemens)
  13170. need_lib_prefix=no
  13171. ;;
  13172. motorola)
  13173. need_lib_prefix=no
  13174. need_version=no
  13175. shlibpath_overrides_runpath=no
  13176. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13177. ;;
  13178. esac
  13179. ;;
  13180. sysv4*MP*)
  13181. if test -d /usr/nec ;then
  13182. version_type=linux # correct to gnu/linux during the next big refactor
  13183. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13184. soname_spec='$libname${shared_ext}.$major'
  13185. shlibpath_var=LD_LIBRARY_PATH
  13186. fi
  13187. ;;
  13188. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13189. version_type=freebsd-elf
  13190. need_lib_prefix=no
  13191. need_version=no
  13192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13193. soname_spec='${libname}${release}${shared_ext}$major'
  13194. shlibpath_var=LD_LIBRARY_PATH
  13195. shlibpath_overrides_runpath=yes
  13196. hardcode_into_libs=yes
  13197. if test "$with_gnu_ld" = yes; then
  13198. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13199. else
  13200. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13201. case $host_os in
  13202. sco3.2v5*)
  13203. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13204. ;;
  13205. esac
  13206. fi
  13207. sys_lib_dlsearch_path_spec='/usr/lib'
  13208. ;;
  13209. tpf*)
  13210. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13211. version_type=linux # correct to gnu/linux during the next big refactor
  13212. need_lib_prefix=no
  13213. need_version=no
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13215. shlibpath_var=LD_LIBRARY_PATH
  13216. shlibpath_overrides_runpath=no
  13217. hardcode_into_libs=yes
  13218. ;;
  13219. uts4*)
  13220. version_type=linux # correct to gnu/linux during the next big refactor
  13221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13222. soname_spec='${libname}${release}${shared_ext}$major'
  13223. shlibpath_var=LD_LIBRARY_PATH
  13224. ;;
  13225. *)
  13226. dynamic_linker=no
  13227. ;;
  13228. esac
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13230. $as_echo "$dynamic_linker" >&6; }
  13231. test "$dynamic_linker" = no && can_build_shared=no
  13232. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13233. if test "$GCC" = yes; then
  13234. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13235. fi
  13236. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13237. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13238. fi
  13239. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13240. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13241. fi
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13243. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13244. hardcode_action_CXX=
  13245. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13246. test -n "$runpath_var_CXX" ||
  13247. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13248. # We can hardcode non-existent directories.
  13249. if test "$hardcode_direct_CXX" != no &&
  13250. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13251. # have to relink, otherwise we might link with an installed library
  13252. # when we should be linking with a yet-to-be-installed one
  13253. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13254. test "$hardcode_minus_L_CXX" != no; then
  13255. # Linking always hardcodes the temporary library directory.
  13256. hardcode_action_CXX=relink
  13257. else
  13258. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13259. hardcode_action_CXX=immediate
  13260. fi
  13261. else
  13262. # We cannot hardcode anything, or else we can only hardcode existing
  13263. # directories.
  13264. hardcode_action_CXX=unsupported
  13265. fi
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13267. $as_echo "$hardcode_action_CXX" >&6; }
  13268. if test "$hardcode_action_CXX" = relink ||
  13269. test "$inherit_rpath_CXX" = yes; then
  13270. # Fast installation is not supported
  13271. enable_fast_install=no
  13272. elif test "$shlibpath_overrides_runpath" = yes ||
  13273. test "$enable_shared" = no; then
  13274. # Fast installation is not necessary
  13275. enable_fast_install=needless
  13276. fi
  13277. fi # test -n "$compiler"
  13278. CC=$lt_save_CC
  13279. CFLAGS=$lt_save_CFLAGS
  13280. LDCXX=$LD
  13281. LD=$lt_save_LD
  13282. GCC=$lt_save_GCC
  13283. with_gnu_ld=$lt_save_with_gnu_ld
  13284. lt_cv_path_LDCXX=$lt_cv_path_LD
  13285. lt_cv_path_LD=$lt_save_path_LD
  13286. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13287. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13288. fi # test "$_lt_caught_CXX_error" != yes
  13289. ac_ext=c
  13290. ac_cpp='$CPP $CPPFLAGS'
  13291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13294. # Find a good install program. We prefer a C program (faster),
  13295. # so one script is as good as another. But avoid the broken or
  13296. # incompatible versions:
  13297. # SysV /etc/install, /usr/sbin/install
  13298. # SunOS /usr/etc/install
  13299. # IRIX /sbin/install
  13300. # AIX /bin/install
  13301. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13302. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13303. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13304. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13305. # OS/2's system install, which has a completely different semantic
  13306. # ./install, which can be erroneously created by make from ./install.sh.
  13307. # Reject install programs that cannot install multiple files.
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13309. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13310. if test -z "$INSTALL"; then
  13311. if ${ac_cv_path_install+:} false; then :
  13312. $as_echo_n "(cached) " >&6
  13313. else
  13314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13315. for as_dir in $PATH
  13316. do
  13317. IFS=$as_save_IFS
  13318. test -z "$as_dir" && as_dir=.
  13319. # Account for people who put trailing slashes in PATH elements.
  13320. case $as_dir/ in #((
  13321. ./ | .// | /[cC]/* | \
  13322. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13323. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13324. /usr/ucb/* ) ;;
  13325. *)
  13326. # OSF1 and SCO ODT 3.0 have their own names for install.
  13327. # Don't use installbsd from OSF since it installs stuff as root
  13328. # by default.
  13329. for ac_prog in ginstall scoinst install; do
  13330. for ac_exec_ext in '' $ac_executable_extensions; do
  13331. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13332. if test $ac_prog = install &&
  13333. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13334. # AIX install. It has an incompatible calling convention.
  13335. :
  13336. elif test $ac_prog = install &&
  13337. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13338. # program-specific install script used by HP pwplus--don't use.
  13339. :
  13340. else
  13341. rm -rf conftest.one conftest.two conftest.dir
  13342. echo one > conftest.one
  13343. echo two > conftest.two
  13344. mkdir conftest.dir
  13345. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13346. test -s conftest.one && test -s conftest.two &&
  13347. test -s conftest.dir/conftest.one &&
  13348. test -s conftest.dir/conftest.two
  13349. then
  13350. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13351. break 3
  13352. fi
  13353. fi
  13354. fi
  13355. done
  13356. done
  13357. ;;
  13358. esac
  13359. done
  13360. IFS=$as_save_IFS
  13361. rm -rf conftest.one conftest.two conftest.dir
  13362. fi
  13363. if test "${ac_cv_path_install+set}" = set; then
  13364. INSTALL=$ac_cv_path_install
  13365. else
  13366. # As a last resort, use the slow shell script. Don't cache a
  13367. # value for INSTALL within a source directory, because that will
  13368. # break other packages using the cache if that directory is
  13369. # removed, or if the value is a relative name.
  13370. INSTALL=$ac_install_sh
  13371. fi
  13372. fi
  13373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13374. $as_echo "$INSTALL" >&6; }
  13375. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13376. # It thinks the first close brace ends the variable substitution.
  13377. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13378. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13379. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13381. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13382. set x ${MAKE-make}
  13383. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13384. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. cat >conftest.make <<\_ACEOF
  13388. SHELL = /bin/sh
  13389. all:
  13390. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13391. _ACEOF
  13392. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13393. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13394. *@@@%%%=?*=@@@%%%*)
  13395. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13396. *)
  13397. eval ac_cv_prog_make_${ac_make}_set=no;;
  13398. esac
  13399. rm -f conftest.make
  13400. fi
  13401. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13403. $as_echo "yes" >&6; }
  13404. SET_MAKE=
  13405. else
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13407. $as_echo "no" >&6; }
  13408. SET_MAKE="MAKE=${MAKE-make}"
  13409. fi
  13410. if test -n "$ac_tool_prefix"; then
  13411. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13412. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13414. $as_echo_n "checking for $ac_word... " >&6; }
  13415. if ${ac_cv_prog_WINDRES+:} false; then :
  13416. $as_echo_n "(cached) " >&6
  13417. else
  13418. if test -n "$WINDRES"; then
  13419. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13420. else
  13421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13422. for as_dir in $PATH
  13423. do
  13424. IFS=$as_save_IFS
  13425. test -z "$as_dir" && as_dir=.
  13426. for ac_exec_ext in '' $ac_executable_extensions; do
  13427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13428. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13430. break 2
  13431. fi
  13432. done
  13433. done
  13434. IFS=$as_save_IFS
  13435. fi
  13436. fi
  13437. WINDRES=$ac_cv_prog_WINDRES
  13438. if test -n "$WINDRES"; then
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13440. $as_echo "$WINDRES" >&6; }
  13441. else
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13443. $as_echo "no" >&6; }
  13444. fi
  13445. fi
  13446. if test -z "$ac_cv_prog_WINDRES"; then
  13447. ac_ct_WINDRES=$WINDRES
  13448. # Extract the first word of "windres", so it can be a program name with args.
  13449. set dummy windres; ac_word=$2
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13451. $as_echo_n "checking for $ac_word... " >&6; }
  13452. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. if test -n "$ac_ct_WINDRES"; then
  13456. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13457. else
  13458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13459. for as_dir in $PATH
  13460. do
  13461. IFS=$as_save_IFS
  13462. test -z "$as_dir" && as_dir=.
  13463. for ac_exec_ext in '' $ac_executable_extensions; do
  13464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13465. ac_cv_prog_ac_ct_WINDRES="windres"
  13466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13467. break 2
  13468. fi
  13469. done
  13470. done
  13471. IFS=$as_save_IFS
  13472. fi
  13473. fi
  13474. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13475. if test -n "$ac_ct_WINDRES"; then
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13477. $as_echo "$ac_ct_WINDRES" >&6; }
  13478. else
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13480. $as_echo "no" >&6; }
  13481. fi
  13482. if test "x$ac_ct_WINDRES" = x; then
  13483. WINDRES=":"
  13484. else
  13485. case $cross_compiling:$ac_tool_warned in
  13486. yes:)
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13489. ac_tool_warned=yes ;;
  13490. esac
  13491. WINDRES=$ac_ct_WINDRES
  13492. fi
  13493. else
  13494. WINDRES="$ac_cv_prog_WINDRES"
  13495. fi
  13496. case "$host" in
  13497. *-*-mingw32*)
  13498. # Except on msys, where make can't handle full pathnames (bug 1972)
  13499. ;;
  13500. *)
  13501. srcdir=`cd $srcdir && pwd`
  13502. ;;
  13503. esac
  13504. INCLUDE="-I$srcdir/include"
  13505. if test x$srcdir != x.; then
  13506. INCLUDE="-Iinclude $INCLUDE"
  13507. elif test -d .hg; then
  13508. as_fn_error $? "
  13509. *** When building from Mercurial you should configure and build in a
  13510. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13511. " "$LINENO" 5
  13512. fi
  13513. BASE_CFLAGS=""
  13514. BASE_LDFLAGS=""
  13515. case "$host" in
  13516. *-*-cygwin*)
  13517. # We build SDL on cygwin without the UNIX emulation layer
  13518. save_CFLAGS="$CFLAGS"
  13519. have_no_cygwin=no
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13521. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13522. CFLAGS="$save_CFLAGS -mno-cygwin"
  13523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13524. /* end confdefs.h. */
  13525. int
  13526. main ()
  13527. {
  13528. ;
  13529. return 0;
  13530. }
  13531. _ACEOF
  13532. if ac_fn_c_try_compile "$LINENO"; then :
  13533. have_no_cygwin=yes
  13534. fi
  13535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13537. $as_echo "$have_no_cygwin" >&6; }
  13538. CFLAGS="$save_CFLAGS"
  13539. if test x$have_no_cygwin = xyes; then
  13540. BASE_CFLAGS="-mno-cygwin"
  13541. BASE_LDFLAGS="-mno-cygwin"
  13542. fi
  13543. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13544. ;;
  13545. esac
  13546. # Uncomment the following line if you want to force SDL and applications
  13547. # built with it to be compiled for a particular architecture.
  13548. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13549. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13550. # The default optimization for SDL is -O3 (Bug #31)
  13551. if test "x$orig_CFLAGS" = x; then
  13552. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13553. fi
  13554. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13555. BUILD_LDFLAGS="$LDFLAGS"
  13556. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13557. ## These are common directories to find software packages
  13558. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13559. # if test -d $path/include; then
  13560. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13561. # fi
  13562. # if test -d $path/lib; then
  13563. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13564. # fi
  13565. #done
  13566. SDL_CFLAGS="$BASE_CFLAGS"
  13567. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13568. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13569. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13570. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13571. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13572. find_lib()
  13573. {
  13574. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13575. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13576. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13577. if test "$cross_compiling" = yes; then
  13578. host_lib_path=""
  13579. else
  13580. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13581. fi
  13582. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  13583. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13584. if test x$lib != x; then
  13585. echo $lib
  13586. return
  13587. fi
  13588. done
  13589. }
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13591. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13592. if ${ac_cv_c_const+:} false; then :
  13593. $as_echo_n "(cached) " >&6
  13594. else
  13595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13596. /* end confdefs.h. */
  13597. int
  13598. main ()
  13599. {
  13600. #ifndef __cplusplus
  13601. /* Ultrix mips cc rejects this sort of thing. */
  13602. typedef int charset[2];
  13603. const charset cs = { 0, 0 };
  13604. /* SunOS 4.1.1 cc rejects this. */
  13605. char const *const *pcpcc;
  13606. char **ppc;
  13607. /* NEC SVR4.0.2 mips cc rejects this. */
  13608. struct point {int x, y;};
  13609. static struct point const zero = {0,0};
  13610. /* AIX XL C 1.02.0.0 rejects this.
  13611. It does not let you subtract one const X* pointer from another in
  13612. an arm of an if-expression whose if-part is not a constant
  13613. expression */
  13614. const char *g = "string";
  13615. pcpcc = &g + (g ? g-g : 0);
  13616. /* HPUX 7.0 cc rejects these. */
  13617. ++pcpcc;
  13618. ppc = (char**) pcpcc;
  13619. pcpcc = (char const *const *) ppc;
  13620. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13621. char tx;
  13622. char *t = &tx;
  13623. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13624. *t++ = 0;
  13625. if (s) return 0;
  13626. }
  13627. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13628. int x[] = {25, 17};
  13629. const int *foo = &x[0];
  13630. ++foo;
  13631. }
  13632. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13633. typedef const int *iptr;
  13634. iptr p = 0;
  13635. ++p;
  13636. }
  13637. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13638. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13639. struct s { int j; const int *ap[3]; } bx;
  13640. struct s *b = &bx; b->j = 5;
  13641. }
  13642. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13643. const int foo = 10;
  13644. if (!foo) return 0;
  13645. }
  13646. return !cs[0] && !zero.x;
  13647. #endif
  13648. ;
  13649. return 0;
  13650. }
  13651. _ACEOF
  13652. if ac_fn_c_try_compile "$LINENO"; then :
  13653. ac_cv_c_const=yes
  13654. else
  13655. ac_cv_c_const=no
  13656. fi
  13657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13658. fi
  13659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13660. $as_echo "$ac_cv_c_const" >&6; }
  13661. if test $ac_cv_c_const = no; then
  13662. $as_echo "#define const /**/" >>confdefs.h
  13663. fi
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13665. $as_echo_n "checking for inline... " >&6; }
  13666. if ${ac_cv_c_inline+:} false; then :
  13667. $as_echo_n "(cached) " >&6
  13668. else
  13669. ac_cv_c_inline=no
  13670. for ac_kw in inline __inline__ __inline; do
  13671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13672. /* end confdefs.h. */
  13673. #ifndef __cplusplus
  13674. typedef int foo_t;
  13675. static $ac_kw foo_t static_foo () {return 0; }
  13676. $ac_kw foo_t foo () {return 0; }
  13677. #endif
  13678. _ACEOF
  13679. if ac_fn_c_try_compile "$LINENO"; then :
  13680. ac_cv_c_inline=$ac_kw
  13681. fi
  13682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13683. test "$ac_cv_c_inline" != no && break
  13684. done
  13685. fi
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13687. $as_echo "$ac_cv_c_inline" >&6; }
  13688. case $ac_cv_c_inline in
  13689. inline | yes) ;;
  13690. *)
  13691. case $ac_cv_c_inline in
  13692. no) ac_val=;;
  13693. *) ac_val=$ac_cv_c_inline;;
  13694. esac
  13695. cat >>confdefs.h <<_ACEOF
  13696. #ifndef __cplusplus
  13697. #define inline $ac_val
  13698. #endif
  13699. _ACEOF
  13700. ;;
  13701. esac
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13703. $as_echo_n "checking for working volatile... " >&6; }
  13704. if ${ac_cv_c_volatile+:} false; then :
  13705. $as_echo_n "(cached) " >&6
  13706. else
  13707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13708. /* end confdefs.h. */
  13709. int
  13710. main ()
  13711. {
  13712. volatile int x;
  13713. int * volatile y = (int *) 0;
  13714. return !x && !y;
  13715. ;
  13716. return 0;
  13717. }
  13718. _ACEOF
  13719. if ac_fn_c_try_compile "$LINENO"; then :
  13720. ac_cv_c_volatile=yes
  13721. else
  13722. ac_cv_c_volatile=no
  13723. fi
  13724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13725. fi
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13727. $as_echo "$ac_cv_c_volatile" >&6; }
  13728. if test $ac_cv_c_volatile = no; then
  13729. $as_echo "#define volatile /**/" >>confdefs.h
  13730. fi
  13731. # Check whether --enable-assertions was given.
  13732. if test "${enable_assertions+set}" = set; then :
  13733. enableval=$enable_assertions;
  13734. else
  13735. enable_assertions=auto
  13736. fi
  13737. case "$enable_assertions" in
  13738. auto) # Use optimization settings to determine assertion level
  13739. ;;
  13740. disabled)
  13741. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13742. ;;
  13743. release)
  13744. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13745. ;;
  13746. enabled)
  13747. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13748. ;;
  13749. paranoid)
  13750. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13751. ;;
  13752. *)
  13753. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13754. ;;
  13755. esac
  13756. # Check whether --enable-dependency-tracking was given.
  13757. if test "${enable_dependency_tracking+set}" = set; then :
  13758. enableval=$enable_dependency_tracking;
  13759. else
  13760. enable_dependency_tracking=yes
  13761. fi
  13762. if test x$enable_dependency_tracking = xyes; then
  13763. have_gcc_mmd_mt=no
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13765. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13767. /* end confdefs.h. */
  13768. #if !defined(__GNUC__) || __GNUC__ < 3
  13769. #error Dependency tracking requires GCC 3.0 or newer
  13770. #endif
  13771. int
  13772. main ()
  13773. {
  13774. ;
  13775. return 0;
  13776. }
  13777. _ACEOF
  13778. if ac_fn_c_try_compile "$LINENO"; then :
  13779. have_gcc_mmd_mt=yes
  13780. fi
  13781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13783. $as_echo "$have_gcc_mmd_mt" >&6; }
  13784. if test x$have_gcc_mmd_mt = xyes; then
  13785. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13786. fi
  13787. fi
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13789. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13790. have_no_undefined=no
  13791. case "$host" in
  13792. *-*-openbsd*)
  13793. ;;
  13794. *)
  13795. save_LDFLAGS="$LDFLAGS"
  13796. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13798. /* end confdefs.h. */
  13799. int
  13800. main ()
  13801. {
  13802. ;
  13803. return 0;
  13804. }
  13805. _ACEOF
  13806. if ac_fn_c_try_link "$LINENO"; then :
  13807. have_no_undefined=yes
  13808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13809. fi
  13810. rm -f core conftest.err conftest.$ac_objext \
  13811. conftest$ac_exeext conftest.$ac_ext
  13812. LDFLAGS="$save_LDFLAGS"
  13813. ;;
  13814. esac
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13816. $as_echo "$have_no_undefined" >&6; }
  13817. # Check whether --enable-libc was given.
  13818. if test "${enable_libc+set}" = set; then :
  13819. enableval=$enable_libc;
  13820. else
  13821. enable_libc=yes
  13822. fi
  13823. if test x$enable_libc = xyes; then
  13824. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13826. $as_echo_n "checking for ANSI C header files... " >&6; }
  13827. if ${ac_cv_header_stdc+:} false; then :
  13828. $as_echo_n "(cached) " >&6
  13829. else
  13830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13831. /* end confdefs.h. */
  13832. #include <stdlib.h>
  13833. #include <stdarg.h>
  13834. #include <string.h>
  13835. #include <float.h>
  13836. int
  13837. main ()
  13838. {
  13839. ;
  13840. return 0;
  13841. }
  13842. _ACEOF
  13843. if ac_fn_c_try_compile "$LINENO"; then :
  13844. ac_cv_header_stdc=yes
  13845. else
  13846. ac_cv_header_stdc=no
  13847. fi
  13848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13849. if test $ac_cv_header_stdc = yes; then
  13850. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13852. /* end confdefs.h. */
  13853. #include <string.h>
  13854. _ACEOF
  13855. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13856. $EGREP "memchr" >/dev/null 2>&1; then :
  13857. else
  13858. ac_cv_header_stdc=no
  13859. fi
  13860. rm -f conftest*
  13861. fi
  13862. if test $ac_cv_header_stdc = yes; then
  13863. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13865. /* end confdefs.h. */
  13866. #include <stdlib.h>
  13867. _ACEOF
  13868. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13869. $EGREP "free" >/dev/null 2>&1; then :
  13870. else
  13871. ac_cv_header_stdc=no
  13872. fi
  13873. rm -f conftest*
  13874. fi
  13875. if test $ac_cv_header_stdc = yes; then
  13876. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13877. if test "$cross_compiling" = yes; then :
  13878. :
  13879. else
  13880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13881. /* end confdefs.h. */
  13882. #include <ctype.h>
  13883. #include <stdlib.h>
  13884. #if ((' ' & 0x0FF) == 0x020)
  13885. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13886. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13887. #else
  13888. # define ISLOWER(c) \
  13889. (('a' <= (c) && (c) <= 'i') \
  13890. || ('j' <= (c) && (c) <= 'r') \
  13891. || ('s' <= (c) && (c) <= 'z'))
  13892. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13893. #endif
  13894. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13895. int
  13896. main ()
  13897. {
  13898. int i;
  13899. for (i = 0; i < 256; i++)
  13900. if (XOR (islower (i), ISLOWER (i))
  13901. || toupper (i) != TOUPPER (i))
  13902. return 2;
  13903. return 0;
  13904. }
  13905. _ACEOF
  13906. if ac_fn_c_try_run "$LINENO"; then :
  13907. else
  13908. ac_cv_header_stdc=no
  13909. fi
  13910. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13911. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13912. fi
  13913. fi
  13914. fi
  13915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13916. $as_echo "$ac_cv_header_stdc" >&6; }
  13917. if test $ac_cv_header_stdc = yes; then
  13918. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13919. fi
  13920. 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
  13921. do :
  13922. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13923. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13924. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13925. cat >>confdefs.h <<_ACEOF
  13926. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13927. _ACEOF
  13928. fi
  13929. done
  13930. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13931. if test "x$ac_cv_type_size_t" = xyes; then :
  13932. else
  13933. cat >>confdefs.h <<_ACEOF
  13934. #define size_t unsigned int
  13935. _ACEOF
  13936. fi
  13937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13938. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13939. if ${ac_cv_define_M_PI+:} false; then :
  13940. $as_echo_n "(cached) " >&6
  13941. else
  13942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13943. /* end confdefs.h. */
  13944. #include <math.h>
  13945. #ifdef M_PI
  13946. YES_IS_DEFINED
  13947. #endif
  13948. _ACEOF
  13949. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13950. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13951. ac_cv_define_M_PI=yes
  13952. else
  13953. ac_cv_define_M_PI=no
  13954. fi
  13955. rm -f conftest*
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13958. $as_echo "$ac_cv_define_M_PI" >&6; }
  13959. if test "$ac_cv_define_M_PI" = "yes" ; then
  13960. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13961. fi
  13962. case "$host" in
  13963. *-*-cygwin* | *-*-mingw32*)
  13964. ;;
  13965. *)
  13966. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13967. # for constant arguments. Useless!
  13968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13969. $as_echo_n "checking for working alloca.h... " >&6; }
  13970. if ${ac_cv_working_alloca_h+:} false; then :
  13971. $as_echo_n "(cached) " >&6
  13972. else
  13973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13974. /* end confdefs.h. */
  13975. #include <alloca.h>
  13976. int
  13977. main ()
  13978. {
  13979. char *p = (char *) alloca (2 * sizeof (int));
  13980. if (p) return 0;
  13981. ;
  13982. return 0;
  13983. }
  13984. _ACEOF
  13985. if ac_fn_c_try_link "$LINENO"; then :
  13986. ac_cv_working_alloca_h=yes
  13987. else
  13988. ac_cv_working_alloca_h=no
  13989. fi
  13990. rm -f core conftest.err conftest.$ac_objext \
  13991. conftest$ac_exeext conftest.$ac_ext
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13994. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13995. if test $ac_cv_working_alloca_h = yes; then
  13996. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13999. $as_echo_n "checking for alloca... " >&6; }
  14000. if ${ac_cv_func_alloca_works+:} false; then :
  14001. $as_echo_n "(cached) " >&6
  14002. else
  14003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14004. /* end confdefs.h. */
  14005. #ifdef __GNUC__
  14006. # define alloca __builtin_alloca
  14007. #else
  14008. # ifdef _MSC_VER
  14009. # include <malloc.h>
  14010. # define alloca _alloca
  14011. # else
  14012. # ifdef HAVE_ALLOCA_H
  14013. # include <alloca.h>
  14014. # else
  14015. # ifdef _AIX
  14016. #pragma alloca
  14017. # else
  14018. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14019. void *alloca (size_t);
  14020. # endif
  14021. # endif
  14022. # endif
  14023. # endif
  14024. #endif
  14025. int
  14026. main ()
  14027. {
  14028. char *p = (char *) alloca (1);
  14029. if (p) return 0;
  14030. ;
  14031. return 0;
  14032. }
  14033. _ACEOF
  14034. if ac_fn_c_try_link "$LINENO"; then :
  14035. ac_cv_func_alloca_works=yes
  14036. else
  14037. ac_cv_func_alloca_works=no
  14038. fi
  14039. rm -f core conftest.err conftest.$ac_objext \
  14040. conftest$ac_exeext conftest.$ac_ext
  14041. fi
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14043. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14044. if test $ac_cv_func_alloca_works = yes; then
  14045. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14046. else
  14047. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14048. # that cause trouble. Some versions do not even contain alloca or
  14049. # contain a buggy version. If you still want to use their alloca,
  14050. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14051. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14052. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14054. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14055. if ${ac_cv_os_cray+:} false; then :
  14056. $as_echo_n "(cached) " >&6
  14057. else
  14058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14059. /* end confdefs.h. */
  14060. #if defined CRAY && ! defined CRAY2
  14061. webecray
  14062. #else
  14063. wenotbecray
  14064. #endif
  14065. _ACEOF
  14066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14067. $EGREP "webecray" >/dev/null 2>&1; then :
  14068. ac_cv_os_cray=yes
  14069. else
  14070. ac_cv_os_cray=no
  14071. fi
  14072. rm -f conftest*
  14073. fi
  14074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14075. $as_echo "$ac_cv_os_cray" >&6; }
  14076. if test $ac_cv_os_cray = yes; then
  14077. for ac_func in _getb67 GETB67 getb67; do
  14078. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14079. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14080. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14081. cat >>confdefs.h <<_ACEOF
  14082. #define CRAY_STACKSEG_END $ac_func
  14083. _ACEOF
  14084. break
  14085. fi
  14086. done
  14087. fi
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14089. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14090. if ${ac_cv_c_stack_direction+:} false; then :
  14091. $as_echo_n "(cached) " >&6
  14092. else
  14093. if test "$cross_compiling" = yes; then :
  14094. ac_cv_c_stack_direction=0
  14095. else
  14096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14097. /* end confdefs.h. */
  14098. $ac_includes_default
  14099. int
  14100. find_stack_direction (int *addr, int depth)
  14101. {
  14102. int dir, dummy = 0;
  14103. if (! addr)
  14104. addr = &dummy;
  14105. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14106. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14107. return dir + dummy;
  14108. }
  14109. int
  14110. main (int argc, char **argv)
  14111. {
  14112. return find_stack_direction (0, argc + !argv + 20) < 0;
  14113. }
  14114. _ACEOF
  14115. if ac_fn_c_try_run "$LINENO"; then :
  14116. ac_cv_c_stack_direction=1
  14117. else
  14118. ac_cv_c_stack_direction=-1
  14119. fi
  14120. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14121. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14122. fi
  14123. fi
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14125. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14126. cat >>confdefs.h <<_ACEOF
  14127. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14128. _ACEOF
  14129. fi
  14130. ;;
  14131. esac
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14133. $as_echo_n "checking for working memcmp... " >&6; }
  14134. if ${ac_cv_func_memcmp_working+:} false; then :
  14135. $as_echo_n "(cached) " >&6
  14136. else
  14137. if test "$cross_compiling" = yes; then :
  14138. ac_cv_func_memcmp_working=no
  14139. else
  14140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14141. /* end confdefs.h. */
  14142. $ac_includes_default
  14143. int
  14144. main ()
  14145. {
  14146. /* Some versions of memcmp are not 8-bit clean. */
  14147. char c0 = '\100', c1 = '\200', c2 = '\201';
  14148. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14149. return 1;
  14150. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14151. or more and with at least one buffer not starting on a 4-byte boundary.
  14152. William Lewis provided this test program. */
  14153. {
  14154. char foo[21];
  14155. char bar[21];
  14156. int i;
  14157. for (i = 0; i < 4; i++)
  14158. {
  14159. char *a = foo + i;
  14160. char *b = bar + i;
  14161. strcpy (a, "--------01111111");
  14162. strcpy (b, "--------10000000");
  14163. if (memcmp (a, b, 16) >= 0)
  14164. return 1;
  14165. }
  14166. return 0;
  14167. }
  14168. ;
  14169. return 0;
  14170. }
  14171. _ACEOF
  14172. if ac_fn_c_try_run "$LINENO"; then :
  14173. ac_cv_func_memcmp_working=yes
  14174. else
  14175. ac_cv_func_memcmp_working=no
  14176. fi
  14177. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14178. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14179. fi
  14180. fi
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14182. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14183. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14184. *" memcmp.$ac_objext "* ) ;;
  14185. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14186. ;;
  14187. esac
  14188. if test x$ac_cv_func_memcmp_working = xyes; then
  14189. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14190. fi
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14192. $as_echo_n "checking for working strtod... " >&6; }
  14193. if ${ac_cv_func_strtod+:} false; then :
  14194. $as_echo_n "(cached) " >&6
  14195. else
  14196. if test "$cross_compiling" = yes; then :
  14197. ac_cv_func_strtod=no
  14198. else
  14199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. /* end confdefs.h. */
  14201. $ac_includes_default
  14202. #ifndef strtod
  14203. double strtod ();
  14204. #endif
  14205. int
  14206. main()
  14207. {
  14208. {
  14209. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14210. char *string = " +69";
  14211. char *term;
  14212. double value;
  14213. value = strtod (string, &term);
  14214. if (value != 69 || term != (string + 4))
  14215. return 1;
  14216. }
  14217. {
  14218. /* Under Solaris 2.4, strtod returns the wrong value for the
  14219. terminating character under some conditions. */
  14220. char *string = "NaN";
  14221. char *term;
  14222. strtod (string, &term);
  14223. if (term != string && *(term - 1) == 0)
  14224. return 1;
  14225. }
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. if ac_fn_c_try_run "$LINENO"; then :
  14230. ac_cv_func_strtod=yes
  14231. else
  14232. ac_cv_func_strtod=no
  14233. fi
  14234. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14235. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14236. fi
  14237. fi
  14238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14239. $as_echo "$ac_cv_func_strtod" >&6; }
  14240. if test $ac_cv_func_strtod = no; then
  14241. case " $LIBOBJS " in
  14242. *" strtod.$ac_objext "* ) ;;
  14243. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14244. ;;
  14245. esac
  14246. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14247. if test "x$ac_cv_func_pow" = xyes; then :
  14248. fi
  14249. if test $ac_cv_func_pow = no; then
  14250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14251. $as_echo_n "checking for pow in -lm... " >&6; }
  14252. if ${ac_cv_lib_m_pow+:} false; then :
  14253. $as_echo_n "(cached) " >&6
  14254. else
  14255. ac_check_lib_save_LIBS=$LIBS
  14256. LIBS="-lm $LIBS"
  14257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14258. /* end confdefs.h. */
  14259. /* Override any GCC internal prototype to avoid an error.
  14260. Use char because int might match the return type of a GCC
  14261. builtin and then its argument prototype would still apply. */
  14262. #ifdef __cplusplus
  14263. extern "C"
  14264. #endif
  14265. char pow ();
  14266. int
  14267. main ()
  14268. {
  14269. return pow ();
  14270. ;
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_link "$LINENO"; then :
  14275. ac_cv_lib_m_pow=yes
  14276. else
  14277. ac_cv_lib_m_pow=no
  14278. fi
  14279. rm -f core conftest.err conftest.$ac_objext \
  14280. conftest$ac_exeext conftest.$ac_ext
  14281. LIBS=$ac_check_lib_save_LIBS
  14282. fi
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14284. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14285. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14286. POW_LIB=-lm
  14287. else
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14289. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14290. fi
  14291. fi
  14292. fi
  14293. if test x$ac_cv_func_strtod = xyes; then
  14294. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14295. fi
  14296. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14297. if test "x$ac_cv_func_mprotect" = xyes; then :
  14298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14299. /* end confdefs.h. */
  14300. #include <sys/types.h>
  14301. #include <sys/mman.h>
  14302. int
  14303. main ()
  14304. {
  14305. ;
  14306. return 0;
  14307. }
  14308. _ACEOF
  14309. if ac_fn_c_try_compile "$LINENO"; then :
  14310. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14313. fi
  14314. 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
  14315. do :
  14316. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14317. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14318. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14319. cat >>confdefs.h <<_ACEOF
  14320. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14321. _ACEOF
  14322. fi
  14323. done
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14325. $as_echo_n "checking for pow in -lm... " >&6; }
  14326. if ${ac_cv_lib_m_pow+:} false; then :
  14327. $as_echo_n "(cached) " >&6
  14328. else
  14329. ac_check_lib_save_LIBS=$LIBS
  14330. LIBS="-lm $LIBS"
  14331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14332. /* end confdefs.h. */
  14333. /* Override any GCC internal prototype to avoid an error.
  14334. Use char because int might match the return type of a GCC
  14335. builtin and then its argument prototype would still apply. */
  14336. #ifdef __cplusplus
  14337. extern "C"
  14338. #endif
  14339. char pow ();
  14340. int
  14341. main ()
  14342. {
  14343. return pow ();
  14344. ;
  14345. return 0;
  14346. }
  14347. _ACEOF
  14348. if ac_fn_c_try_link "$LINENO"; then :
  14349. ac_cv_lib_m_pow=yes
  14350. else
  14351. ac_cv_lib_m_pow=no
  14352. fi
  14353. rm -f core conftest.err conftest.$ac_objext \
  14354. conftest$ac_exeext conftest.$ac_ext
  14355. LIBS=$ac_check_lib_save_LIBS
  14356. fi
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14358. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14359. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14360. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14361. fi
  14362. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14363. do :
  14364. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14365. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14366. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14367. cat >>confdefs.h <<_ACEOF
  14368. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14369. _ACEOF
  14370. fi
  14371. done
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14373. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14374. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14375. $as_echo_n "(cached) " >&6
  14376. else
  14377. ac_check_lib_save_LIBS=$LIBS
  14378. LIBS="-liconv $LIBS"
  14379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14380. /* end confdefs.h. */
  14381. /* Override any GCC internal prototype to avoid an error.
  14382. Use char because int might match the return type of a GCC
  14383. builtin and then its argument prototype would still apply. */
  14384. #ifdef __cplusplus
  14385. extern "C"
  14386. #endif
  14387. char iconv_open ();
  14388. int
  14389. main ()
  14390. {
  14391. return iconv_open ();
  14392. ;
  14393. return 0;
  14394. }
  14395. _ACEOF
  14396. if ac_fn_c_try_link "$LINENO"; then :
  14397. ac_cv_lib_iconv_iconv_open=yes
  14398. else
  14399. ac_cv_lib_iconv_iconv_open=no
  14400. fi
  14401. rm -f core conftest.err conftest.$ac_objext \
  14402. conftest$ac_exeext conftest.$ac_ext
  14403. LIBS=$ac_check_lib_save_LIBS
  14404. fi
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14406. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14407. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14408. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14409. fi
  14410. for ac_func in iconv
  14411. do :
  14412. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14413. if test "x$ac_cv_func_iconv" = xyes; then :
  14414. cat >>confdefs.h <<_ACEOF
  14415. #define HAVE_ICONV 1
  14416. _ACEOF
  14417. fi
  14418. done
  14419. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14420. "
  14421. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14422. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14423. fi
  14424. fi
  14425. # Check whether --enable-gcc-atomics was given.
  14426. if test "${enable_gcc_atomics+set}" = set; then :
  14427. enableval=$enable_gcc_atomics;
  14428. else
  14429. enable_gcc_atomics=yes
  14430. fi
  14431. if test x$enable_gcc_atomics = xyes; then
  14432. have_gcc_atomics=no
  14433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14434. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14436. /* end confdefs.h. */
  14437. int
  14438. main ()
  14439. {
  14440. int a;
  14441. void *x, *y, *z;
  14442. __sync_lock_test_and_set(&a, 4);
  14443. __sync_lock_test_and_set(&x, y);
  14444. __sync_fetch_and_add(&a, 1);
  14445. __sync_bool_compare_and_swap(&a, 5, 10);
  14446. __sync_bool_compare_and_swap(&x, y, z);
  14447. ;
  14448. return 0;
  14449. }
  14450. _ACEOF
  14451. if ac_fn_c_try_link "$LINENO"; then :
  14452. have_gcc_atomics=yes
  14453. fi
  14454. rm -f core conftest.err conftest.$ac_objext \
  14455. conftest$ac_exeext conftest.$ac_ext
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14457. $as_echo "$have_gcc_atomics" >&6; }
  14458. if test x$have_gcc_atomics = xyes; then
  14459. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14460. else
  14461. # See if we have the minimum operation needed for GCC atomics
  14462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14463. /* end confdefs.h. */
  14464. int
  14465. main ()
  14466. {
  14467. int a;
  14468. __sync_lock_test_and_set(&a, 1);
  14469. __sync_lock_release(&a);
  14470. ;
  14471. return 0;
  14472. }
  14473. _ACEOF
  14474. if ac_fn_c_try_link "$LINENO"; then :
  14475. have_gcc_sync_lock_test_and_set=yes
  14476. fi
  14477. rm -f core conftest.err conftest.$ac_objext \
  14478. conftest$ac_exeext conftest.$ac_ext
  14479. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14480. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14481. fi
  14482. fi
  14483. fi
  14484. # Standard C sources
  14485. SOURCES="$SOURCES $srcdir/src/*.c"
  14486. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14487. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14488. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14489. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14490. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14491. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14492. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14493. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14494. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14495. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14496. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14497. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14498. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14499. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14500. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14501. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14502. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14503. # Check whether --enable-atomic was given.
  14504. if test "${enable_atomic+set}" = set; then :
  14505. enableval=$enable_atomic;
  14506. else
  14507. enable_atomic=yes
  14508. fi
  14509. if test x$enable_atomic != xyes; then
  14510. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14511. else
  14512. SUMMARY_modules="${SUMMARY_modules} atomic"
  14513. fi
  14514. # Check whether --enable-audio was given.
  14515. if test "${enable_audio+set}" = set; then :
  14516. enableval=$enable_audio;
  14517. else
  14518. enable_audio=yes
  14519. fi
  14520. if test x$enable_audio != xyes; then
  14521. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14522. else
  14523. SUMMARY_modules="${SUMMARY_modules} audio"
  14524. fi
  14525. # Check whether --enable-video was given.
  14526. if test "${enable_video+set}" = set; then :
  14527. enableval=$enable_video;
  14528. else
  14529. enable_video=yes
  14530. fi
  14531. if test x$enable_video != xyes; then
  14532. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14533. else
  14534. SUMMARY_modules="${SUMMARY_modules} video"
  14535. fi
  14536. # Check whether --enable-render was given.
  14537. if test "${enable_render+set}" = set; then :
  14538. enableval=$enable_render;
  14539. else
  14540. enable_render=yes
  14541. fi
  14542. if test x$enable_render != xyes; then
  14543. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14544. else
  14545. SUMMARY_modules="${SUMMARY_modules} render"
  14546. fi
  14547. # Check whether --enable-events was given.
  14548. if test "${enable_events+set}" = set; then :
  14549. enableval=$enable_events;
  14550. else
  14551. enable_events=yes
  14552. fi
  14553. if test x$enable_events != xyes; then
  14554. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14555. else
  14556. SUMMARY_modules="${SUMMARY_modules} events"
  14557. fi
  14558. # Check whether --enable-joystick was given.
  14559. if test "${enable_joystick+set}" = set; then :
  14560. enableval=$enable_joystick;
  14561. else
  14562. enable_joystick=yes
  14563. fi
  14564. if test x$enable_joystick != xyes; then
  14565. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14566. else
  14567. SUMMARY_modules="${SUMMARY_modules} joystick"
  14568. fi
  14569. # Check whether --enable-haptic was given.
  14570. if test "${enable_haptic+set}" = set; then :
  14571. enableval=$enable_haptic;
  14572. else
  14573. enable_haptic=yes
  14574. fi
  14575. if test x$enable_haptic != xyes; then
  14576. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14577. else
  14578. SUMMARY_modules="${SUMMARY_modules} haptic"
  14579. fi
  14580. # Check whether --enable-power was given.
  14581. if test "${enable_power+set}" = set; then :
  14582. enableval=$enable_power;
  14583. else
  14584. enable_power=yes
  14585. fi
  14586. if test x$enable_power != xyes; then
  14587. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14588. else
  14589. SUMMARY_modules="${SUMMARY_modules} power"
  14590. fi
  14591. # Check whether --enable-filesystem was given.
  14592. if test "${enable_filesystem+set}" = set; then :
  14593. enableval=$enable_filesystem;
  14594. else
  14595. enable_filesystem=yes
  14596. fi
  14597. if test x$enable_filesystem != xyes; then
  14598. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14599. else
  14600. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14601. fi
  14602. # Check whether --enable-threads was given.
  14603. if test "${enable_threads+set}" = set; then :
  14604. enableval=$enable_threads;
  14605. else
  14606. enable_threads=yes
  14607. fi
  14608. if test x$enable_threads != xyes; then
  14609. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14610. else
  14611. SUMMARY_modules="${SUMMARY_modules} threads"
  14612. fi
  14613. # Check whether --enable-timers was given.
  14614. if test "${enable_timers+set}" = set; then :
  14615. enableval=$enable_timers;
  14616. else
  14617. enable_timers=yes
  14618. fi
  14619. if test x$enable_timers != xyes; then
  14620. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14621. else
  14622. SUMMARY_modules="${SUMMARY_modules} timers"
  14623. fi
  14624. # Check whether --enable-file was given.
  14625. if test "${enable_file+set}" = set; then :
  14626. enableval=$enable_file;
  14627. else
  14628. enable_file=yes
  14629. fi
  14630. if test x$enable_file != xyes; then
  14631. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14632. else
  14633. SUMMARY_modules="${SUMMARY_modules} file"
  14634. fi
  14635. # Check whether --enable-loadso was given.
  14636. if test "${enable_loadso+set}" = set; then :
  14637. enableval=$enable_loadso;
  14638. else
  14639. enable_loadso=yes
  14640. fi
  14641. if test x$enable_loadso != xyes; then
  14642. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14643. else
  14644. SUMMARY_modules="${SUMMARY_modules} loadso"
  14645. fi
  14646. # Check whether --enable-cpuinfo was given.
  14647. if test "${enable_cpuinfo+set}" = set; then :
  14648. enableval=$enable_cpuinfo;
  14649. else
  14650. enable_cpuinfo=yes
  14651. fi
  14652. if test x$enable_cpuinfo != xyes; then
  14653. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14654. else
  14655. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14656. fi
  14657. # Check whether --enable-assembly was given.
  14658. if test "${enable_assembly+set}" = set; then :
  14659. enableval=$enable_assembly;
  14660. else
  14661. enable_assembly=yes
  14662. fi
  14663. if test x$enable_assembly = xyes; then
  14664. SUMMARY_modules="${SUMMARY_modules} assembly"
  14665. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14666. # Make sure that we don't generate floating point code that would
  14667. # cause illegal instruction exceptions on older processors
  14668. case "$host" in
  14669. *-*-darwin*)
  14670. # Don't need to worry about Apple hardware, it's all SSE capable
  14671. default_ssemath=yes
  14672. ;;
  14673. *64-*-*)
  14674. # x86 64-bit architectures all have SSE instructions
  14675. default_ssemath=yes
  14676. ;;
  14677. *)
  14678. default_ssemath=no
  14679. ;;
  14680. esac
  14681. # Check whether --enable-ssemath was given.
  14682. if test "${enable_ssemath+set}" = set; then :
  14683. enableval=$enable_ssemath;
  14684. else
  14685. enable_ssemath=$default_ssemath
  14686. fi
  14687. if test x$enable_ssemath = xno; then
  14688. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14689. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14690. fi
  14691. fi
  14692. # Check whether --enable-mmx was given.
  14693. if test "${enable_mmx+set}" = set; then :
  14694. enableval=$enable_mmx;
  14695. else
  14696. enable_mmx=yes
  14697. fi
  14698. if test x$enable_mmx = xyes; then
  14699. save_CFLAGS="$CFLAGS"
  14700. have_gcc_mmx=no
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14702. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14703. mmx_CFLAGS="-mmmx"
  14704. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14706. /* end confdefs.h. */
  14707. #ifdef __MINGW32__
  14708. #include <_mingw.h>
  14709. #ifdef __MINGW64_VERSION_MAJOR
  14710. #include <intrin.h>
  14711. #else
  14712. #include <mmintrin.h>
  14713. #endif
  14714. #else
  14715. #include <mmintrin.h>
  14716. #endif
  14717. #ifndef __MMX__
  14718. #error Assembler CPP flag not enabled
  14719. #endif
  14720. int
  14721. main ()
  14722. {
  14723. ;
  14724. return 0;
  14725. }
  14726. _ACEOF
  14727. if ac_fn_c_try_compile "$LINENO"; then :
  14728. have_gcc_mmx=yes
  14729. fi
  14730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14732. $as_echo "$have_gcc_mmx" >&6; }
  14733. CFLAGS="$save_CFLAGS"
  14734. if test x$have_gcc_mmx = xyes; then
  14735. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14736. SUMMARY_math="${SUMMARY_math} mmx"
  14737. fi
  14738. fi
  14739. # Check whether --enable-3dnow was given.
  14740. if test "${enable_3dnow+set}" = set; then :
  14741. enableval=$enable_3dnow;
  14742. else
  14743. enable_3dnow=yes
  14744. fi
  14745. if test x$enable_3dnow = xyes; then
  14746. save_CFLAGS="$CFLAGS"
  14747. have_gcc_3dnow=no
  14748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14749. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14750. amd3dnow_CFLAGS="-m3dnow"
  14751. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14753. /* end confdefs.h. */
  14754. #include <mm3dnow.h>
  14755. #ifndef __3dNOW__
  14756. #error Assembler CPP flag not enabled
  14757. #endif
  14758. int
  14759. main ()
  14760. {
  14761. void *p = 0;
  14762. _m_prefetch(p);
  14763. ;
  14764. return 0;
  14765. }
  14766. _ACEOF
  14767. if ac_fn_c_try_link "$LINENO"; then :
  14768. have_gcc_3dnow=yes
  14769. fi
  14770. rm -f core conftest.err conftest.$ac_objext \
  14771. conftest$ac_exeext conftest.$ac_ext
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14773. $as_echo "$have_gcc_3dnow" >&6; }
  14774. CFLAGS="$save_CFLAGS"
  14775. if test x$have_gcc_3dnow = xyes; then
  14776. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14777. SUMMARY_math="${SUMMARY_math} 3dnow"
  14778. fi
  14779. fi
  14780. # Check whether --enable-sse was given.
  14781. if test "${enable_sse+set}" = set; then :
  14782. enableval=$enable_sse;
  14783. else
  14784. enable_sse=yes
  14785. fi
  14786. if test x$enable_sse = xyes; then
  14787. save_CFLAGS="$CFLAGS"
  14788. have_gcc_sse=no
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14790. $as_echo_n "checking for GCC -msse option... " >&6; }
  14791. sse_CFLAGS="-msse"
  14792. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14794. /* end confdefs.h. */
  14795. #ifdef __MINGW32__
  14796. #include <_mingw.h>
  14797. #ifdef __MINGW64_VERSION_MAJOR
  14798. #include <intrin.h>
  14799. #else
  14800. #include <xmmintrin.h>
  14801. #endif
  14802. #else
  14803. #include <xmmintrin.h>
  14804. #endif
  14805. #ifndef __SSE__
  14806. #error Assembler CPP flag not enabled
  14807. #endif
  14808. int
  14809. main ()
  14810. {
  14811. ;
  14812. return 0;
  14813. }
  14814. _ACEOF
  14815. if ac_fn_c_try_compile "$LINENO"; then :
  14816. have_gcc_sse=yes
  14817. fi
  14818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14820. $as_echo "$have_gcc_sse" >&6; }
  14821. CFLAGS="$save_CFLAGS"
  14822. if test x$have_gcc_sse = xyes; then
  14823. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14824. SUMMARY_math="${SUMMARY_math} sse"
  14825. fi
  14826. fi
  14827. # Check whether --enable-sse2 was given.
  14828. if test "${enable_sse2+set}" = set; then :
  14829. enableval=$enable_sse2;
  14830. else
  14831. enable_sse2=$default_ssemath
  14832. fi
  14833. if test x$enable_sse2 = xyes; then
  14834. save_CFLAGS="$CFLAGS"
  14835. have_gcc_sse2=no
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14837. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14838. sse2_CFLAGS="-msse2"
  14839. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14841. /* end confdefs.h. */
  14842. #ifdef __MINGW32__
  14843. #include <_mingw.h>
  14844. #ifdef __MINGW64_VERSION_MAJOR
  14845. #include <intrin.h>
  14846. #else
  14847. #include <emmintrin.h>
  14848. #endif
  14849. #else
  14850. #include <emmintrin.h>
  14851. #endif
  14852. #ifndef __SSE2__
  14853. #error Assembler CPP flag not enabled
  14854. #endif
  14855. int
  14856. main ()
  14857. {
  14858. ;
  14859. return 0;
  14860. }
  14861. _ACEOF
  14862. if ac_fn_c_try_compile "$LINENO"; then :
  14863. have_gcc_sse2=yes
  14864. fi
  14865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14867. $as_echo "$have_gcc_sse2" >&6; }
  14868. CFLAGS="$save_CFLAGS"
  14869. if test x$have_gcc_sse2 = xyes; then
  14870. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14871. SUMMARY_math="${SUMMARY_math} sse2"
  14872. fi
  14873. fi
  14874. # Check whether --enable-altivec was given.
  14875. if test "${enable_altivec+set}" = set; then :
  14876. enableval=$enable_altivec;
  14877. else
  14878. enable_altivec=yes
  14879. fi
  14880. if test x$enable_altivec = xyes; then
  14881. save_CFLAGS="$CFLAGS"
  14882. have_gcc_altivec=no
  14883. have_altivec_h_hdr=no
  14884. altivec_CFLAGS="-maltivec"
  14885. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14887. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14889. /* end confdefs.h. */
  14890. #include <altivec.h>
  14891. vector unsigned int vzero() {
  14892. return vec_splat_u32(0);
  14893. }
  14894. int
  14895. main ()
  14896. {
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_compile "$LINENO"; then :
  14902. have_gcc_altivec=yes
  14903. have_altivec_h_hdr=yes
  14904. fi
  14905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14907. $as_echo "$have_gcc_altivec" >&6; }
  14908. if test x$have_gcc_altivec = xno; then
  14909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14910. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14912. /* end confdefs.h. */
  14913. vector unsigned int vzero() {
  14914. return vec_splat_u32(0);
  14915. }
  14916. int
  14917. main ()
  14918. {
  14919. ;
  14920. return 0;
  14921. }
  14922. _ACEOF
  14923. if ac_fn_c_try_compile "$LINENO"; then :
  14924. have_gcc_altivec=yes
  14925. fi
  14926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14928. $as_echo "$have_gcc_altivec" >&6; }
  14929. fi
  14930. if test x$have_gcc_altivec = xno; then
  14931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14932. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14933. altivec_CFLAGS="-faltivec"
  14934. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14936. /* end confdefs.h. */
  14937. #include <altivec.h>
  14938. vector unsigned int vzero() {
  14939. return vec_splat_u32(0);
  14940. }
  14941. int
  14942. main ()
  14943. {
  14944. ;
  14945. return 0;
  14946. }
  14947. _ACEOF
  14948. if ac_fn_c_try_compile "$LINENO"; then :
  14949. have_gcc_altivec=yes
  14950. have_altivec_h_hdr=yes
  14951. fi
  14952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14954. $as_echo "$have_gcc_altivec" >&6; }
  14955. fi
  14956. if test x$have_gcc_altivec = xno; then
  14957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14958. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14960. /* end confdefs.h. */
  14961. vector unsigned int vzero() {
  14962. return vec_splat_u32(0);
  14963. }
  14964. int
  14965. main ()
  14966. {
  14967. ;
  14968. return 0;
  14969. }
  14970. _ACEOF
  14971. if ac_fn_c_try_compile "$LINENO"; then :
  14972. have_gcc_altivec=yes
  14973. fi
  14974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14976. $as_echo "$have_gcc_altivec" >&6; }
  14977. fi
  14978. CFLAGS="$save_CFLAGS"
  14979. if test x$have_gcc_altivec = xyes; then
  14980. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14981. if test x$have_altivec_h_hdr = xyes; then
  14982. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14983. fi
  14984. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  14985. SUMMARY_math="${SUMMARY_math} altivec"
  14986. fi
  14987. fi
  14988. fi
  14989. CheckOSS()
  14990. {
  14991. # Check whether --enable-oss was given.
  14992. if test "${enable_oss+set}" = set; then :
  14993. enableval=$enable_oss;
  14994. else
  14995. enable_oss=maybe
  14996. fi
  14997. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  14998. # use sndio instead. So on there, we default to disabled. You can force
  14999. # it on if you really want, though.
  15000. if test x$enable_oss = xmaybe; then
  15001. enable_oss=yes
  15002. case "$host" in
  15003. *-*-openbsd*)
  15004. enable_oss=no;;
  15005. esac
  15006. fi
  15007. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15009. $as_echo_n "checking for OSS audio support... " >&6; }
  15010. have_oss=no
  15011. if test x$have_oss != xyes; then
  15012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15013. /* end confdefs.h. */
  15014. #include <sys/soundcard.h>
  15015. int
  15016. main ()
  15017. {
  15018. int arg = SNDCTL_DSP_SETFRAGMENT;
  15019. ;
  15020. return 0;
  15021. }
  15022. _ACEOF
  15023. if ac_fn_c_try_compile "$LINENO"; then :
  15024. have_oss=yes
  15025. fi
  15026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15027. fi
  15028. if test x$have_oss != xyes; then
  15029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15030. /* end confdefs.h. */
  15031. #include <soundcard.h>
  15032. int
  15033. main ()
  15034. {
  15035. int arg = SNDCTL_DSP_SETFRAGMENT;
  15036. ;
  15037. return 0;
  15038. }
  15039. _ACEOF
  15040. if ac_fn_c_try_compile "$LINENO"; then :
  15041. have_oss=yes
  15042. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15043. fi
  15044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15045. fi
  15046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15047. $as_echo "$have_oss" >&6; }
  15048. if test x$have_oss = xyes; then
  15049. SUMMARY_audio="${SUMMARY_audio} oss"
  15050. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15051. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15052. have_audio=yes
  15053. # We may need to link with ossaudio emulation library
  15054. case "$host" in
  15055. *-*-openbsd*|*-*-netbsd*)
  15056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15057. esac
  15058. fi
  15059. fi
  15060. }
  15061. CheckALSA()
  15062. {
  15063. # Check whether --enable-alsa was given.
  15064. if test "${enable_alsa+set}" = set; then :
  15065. enableval=$enable_alsa;
  15066. else
  15067. enable_alsa=yes
  15068. fi
  15069. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15070. alsa_save_CFLAGS="$CFLAGS"
  15071. alsa_save_LDFLAGS="$LDFLAGS"
  15072. alsa_save_LIBS="$LIBS"
  15073. alsa_found=yes
  15074. # Check whether --with-alsa-prefix was given.
  15075. if test "${with_alsa_prefix+set}" = set; then :
  15076. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15077. else
  15078. alsa_prefix=""
  15079. fi
  15080. # Check whether --with-alsa-inc-prefix was given.
  15081. if test "${with_alsa_inc_prefix+set}" = set; then :
  15082. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15083. else
  15084. alsa_inc_prefix=""
  15085. fi
  15086. # Check whether --enable-alsatest was given.
  15087. if test "${enable_alsatest+set}" = set; then :
  15088. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15089. else
  15090. enable_alsatest=yes
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15093. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15094. if test "$alsa_inc_prefix" != "" ; then
  15095. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15096. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15097. fi
  15098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15099. $as_echo "$ALSA_CFLAGS" >&6; }
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15101. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15102. if test "$alsa_prefix" != "" ; then
  15103. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15104. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15105. fi
  15106. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15107. LIBS=`echo $LIBS | sed 's/-lm//'`
  15108. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15109. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15110. LIBS=`echo $LIBS | sed 's/ //'`
  15111. LIBS="$ALSA_LIBS $LIBS"
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15113. $as_echo "$ALSA_LIBS" >&6; }
  15114. min_alsa_version=0.9.0
  15115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15116. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15117. no_alsa=""
  15118. alsa_min_major_version=`echo $min_alsa_version | \
  15119. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15120. alsa_min_minor_version=`echo $min_alsa_version | \
  15121. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15122. alsa_min_micro_version=`echo $min_alsa_version | \
  15123. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15124. ac_ext=c
  15125. ac_cpp='$CPP $CPPFLAGS'
  15126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15130. /* end confdefs.h. */
  15131. #include <alsa/asoundlib.h>
  15132. int
  15133. main ()
  15134. {
  15135. /* ensure backward compatibility */
  15136. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15137. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15138. #endif
  15139. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15140. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15141. #endif
  15142. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15143. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15144. #endif
  15145. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15146. exit(0);
  15147. # else
  15148. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15149. # error not present
  15150. # endif
  15151. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15152. exit(0);
  15153. # else
  15154. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15155. # error not present
  15156. # endif
  15157. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15158. # error not present
  15159. # endif
  15160. # endif
  15161. # endif
  15162. exit(0);
  15163. ;
  15164. return 0;
  15165. }
  15166. _ACEOF
  15167. if ac_fn_c_try_compile "$LINENO"; then :
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15169. $as_echo "found." >&6; }
  15170. else
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15172. $as_echo "not present." >&6; }
  15173. alsa_found=no
  15174. fi
  15175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15176. ac_ext=c
  15177. ac_cpp='$CPP $CPPFLAGS'
  15178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15181. if test "x$enable_alsatest" = "xyes"; then
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15183. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15184. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15185. $as_echo_n "(cached) " >&6
  15186. else
  15187. ac_check_lib_save_LIBS=$LIBS
  15188. LIBS="-lasound $LIBS"
  15189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15190. /* end confdefs.h. */
  15191. /* Override any GCC internal prototype to avoid an error.
  15192. Use char because int might match the return type of a GCC
  15193. builtin and then its argument prototype would still apply. */
  15194. #ifdef __cplusplus
  15195. extern "C"
  15196. #endif
  15197. char snd_ctl_open ();
  15198. int
  15199. main ()
  15200. {
  15201. return snd_ctl_open ();
  15202. ;
  15203. return 0;
  15204. }
  15205. _ACEOF
  15206. if ac_fn_c_try_link "$LINENO"; then :
  15207. ac_cv_lib_asound_snd_ctl_open=yes
  15208. else
  15209. ac_cv_lib_asound_snd_ctl_open=no
  15210. fi
  15211. rm -f core conftest.err conftest.$ac_objext \
  15212. conftest$ac_exeext conftest.$ac_ext
  15213. LIBS=$ac_check_lib_save_LIBS
  15214. fi
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15216. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15217. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15218. cat >>confdefs.h <<_ACEOF
  15219. #define HAVE_LIBASOUND 1
  15220. _ACEOF
  15221. LIBS="-lasound $LIBS"
  15222. else
  15223. alsa_found=no
  15224. fi
  15225. fi
  15226. if test "x$alsa_found" = "xyes" ; then
  15227. have_alsa=yes
  15228. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15229. LIBS=`echo $LIBS | sed 's/ //'`
  15230. LIBS="-lasound $LIBS"
  15231. fi
  15232. if test "x$alsa_found" = "xno" ; then
  15233. have_alsa=no
  15234. CFLAGS="$alsa_save_CFLAGS"
  15235. LDFLAGS="$alsa_save_LDFLAGS"
  15236. LIBS="$alsa_save_LIBS"
  15237. ALSA_CFLAGS=""
  15238. ALSA_LIBS=""
  15239. fi
  15240. # Restore all flags from before the ALSA detection runs
  15241. CFLAGS="$alsa_save_CFLAGS"
  15242. LDFLAGS="$alsa_save_LDFLAGS"
  15243. LIBS="$alsa_save_LIBS"
  15244. if test x$have_alsa = xyes; then
  15245. # Check whether --enable-alsa-shared was given.
  15246. if test "${enable_alsa_shared+set}" = set; then :
  15247. enableval=$enable_alsa_shared;
  15248. else
  15249. enable_alsa_shared=yes
  15250. fi
  15251. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15252. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15253. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15254. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15255. if test x$have_loadso != xyes && \
  15256. test x$enable_alsa_shared = xyes; then
  15257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15258. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15259. fi
  15260. if test x$have_loadso = xyes && \
  15261. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15262. echo "-- dynamic libasound -> $alsa_lib"
  15263. cat >>confdefs.h <<_ACEOF
  15264. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15265. _ACEOF
  15266. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15267. else
  15268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15269. SUMMARY_audio="${SUMMARY_audio} alsa"
  15270. fi
  15271. have_audio=yes
  15272. fi
  15273. fi
  15274. }
  15275. CheckESD()
  15276. {
  15277. # Check whether --enable-esd was given.
  15278. if test "${enable_esd+set}" = set; then :
  15279. enableval=$enable_esd;
  15280. else
  15281. enable_esd=yes
  15282. fi
  15283. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15284. # Check whether --with-esd-prefix was given.
  15285. if test "${with_esd_prefix+set}" = set; then :
  15286. withval=$with_esd_prefix; esd_prefix="$withval"
  15287. else
  15288. esd_prefix=""
  15289. fi
  15290. # Check whether --with-esd-exec-prefix was given.
  15291. if test "${with_esd_exec_prefix+set}" = set; then :
  15292. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15293. else
  15294. esd_exec_prefix=""
  15295. fi
  15296. # Check whether --enable-esdtest was given.
  15297. if test "${enable_esdtest+set}" = set; then :
  15298. enableval=$enable_esdtest;
  15299. else
  15300. enable_esdtest=yes
  15301. fi
  15302. if test x$esd_exec_prefix != x ; then
  15303. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15304. if test x${ESD_CONFIG+set} != xset ; then
  15305. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15306. fi
  15307. fi
  15308. if test x$esd_prefix != x ; then
  15309. esd_args="$esd_args --prefix=$esd_prefix"
  15310. if test x${ESD_CONFIG+set} != xset ; then
  15311. ESD_CONFIG=$esd_prefix/bin/esd-config
  15312. fi
  15313. fi
  15314. # Extract the first word of "esd-config", so it can be a program name with args.
  15315. set dummy esd-config; ac_word=$2
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15317. $as_echo_n "checking for $ac_word... " >&6; }
  15318. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15319. $as_echo_n "(cached) " >&6
  15320. else
  15321. case $ESD_CONFIG in
  15322. [\\/]* | ?:[\\/]*)
  15323. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15324. ;;
  15325. *)
  15326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15327. for as_dir in $PATH
  15328. do
  15329. IFS=$as_save_IFS
  15330. test -z "$as_dir" && as_dir=.
  15331. for ac_exec_ext in '' $ac_executable_extensions; do
  15332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15333. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15335. break 2
  15336. fi
  15337. done
  15338. done
  15339. IFS=$as_save_IFS
  15340. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15341. ;;
  15342. esac
  15343. fi
  15344. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15345. if test -n "$ESD_CONFIG"; then
  15346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15347. $as_echo "$ESD_CONFIG" >&6; }
  15348. else
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15350. $as_echo "no" >&6; }
  15351. fi
  15352. min_esd_version=0.2.8
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15354. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15355. no_esd=""
  15356. if test "$ESD_CONFIG" = "no" ; then
  15357. no_esd=yes
  15358. else
  15359. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15360. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15361. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15362. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15363. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15364. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15365. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15366. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15367. if test "x$enable_esdtest" = "xyes" ; then
  15368. ac_save_CFLAGS="$CFLAGS"
  15369. ac_save_LIBS="$LIBS"
  15370. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15371. LIBS="$LIBS $ESD_LIBS"
  15372. rm -f conf.esdtest
  15373. if test "$cross_compiling" = yes; then :
  15374. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15375. else
  15376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15377. /* end confdefs.h. */
  15378. #include <stdio.h>
  15379. #include <stdlib.h>
  15380. #include <string.h>
  15381. #include <esd.h>
  15382. char*
  15383. my_strdup (char *str)
  15384. {
  15385. char *new_str;
  15386. if (str)
  15387. {
  15388. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15389. strcpy (new_str, str);
  15390. }
  15391. else
  15392. new_str = NULL;
  15393. return new_str;
  15394. }
  15395. int main ()
  15396. {
  15397. int major, minor, micro;
  15398. char *tmp_version;
  15399. system ("touch conf.esdtest");
  15400. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15401. tmp_version = my_strdup("$min_esd_version");
  15402. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15403. printf("%s, bad version string\n", "$min_esd_version");
  15404. exit(1);
  15405. }
  15406. if (($esd_major_version > major) ||
  15407. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15408. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15409. {
  15410. return 0;
  15411. }
  15412. else
  15413. {
  15414. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15415. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15416. printf("*** best to upgrade to the required version.\n");
  15417. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15418. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15419. printf("*** config.cache before re-running configure\n");
  15420. return 1;
  15421. }
  15422. }
  15423. _ACEOF
  15424. if ac_fn_c_try_run "$LINENO"; then :
  15425. else
  15426. no_esd=yes
  15427. fi
  15428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15429. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15430. fi
  15431. CFLAGS="$ac_save_CFLAGS"
  15432. LIBS="$ac_save_LIBS"
  15433. fi
  15434. fi
  15435. if test "x$no_esd" = x ; then
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15437. $as_echo "yes" >&6; }
  15438. have_esd=yes
  15439. else
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15441. $as_echo "no" >&6; }
  15442. if test "$ESD_CONFIG" = "no" ; then
  15443. echo "*** The esd-config script installed by ESD could not be found"
  15444. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15445. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15446. echo "*** full path to esd-config."
  15447. else
  15448. if test -f conf.esdtest ; then
  15449. :
  15450. else
  15451. echo "*** Could not run ESD test program, checking why..."
  15452. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15453. LIBS="$LIBS $ESD_LIBS"
  15454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15455. /* end confdefs.h. */
  15456. #include <stdio.h>
  15457. #include <esd.h>
  15458. int
  15459. main ()
  15460. {
  15461. return 0;
  15462. ;
  15463. return 0;
  15464. }
  15465. _ACEOF
  15466. if ac_fn_c_try_link "$LINENO"; then :
  15467. echo "*** The test program compiled, but did not run. This usually means"
  15468. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15469. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15470. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15471. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15472. echo "*** is required on your system"
  15473. echo "***"
  15474. echo "*** If you have an old version installed, it is best to remove it, although"
  15475. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15476. else
  15477. echo "*** The test program failed to compile or link. See the file config.log for the"
  15478. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15479. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15480. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15481. fi
  15482. rm -f core conftest.err conftest.$ac_objext \
  15483. conftest$ac_exeext conftest.$ac_ext
  15484. CFLAGS="$ac_save_CFLAGS"
  15485. LIBS="$ac_save_LIBS"
  15486. fi
  15487. fi
  15488. ESD_CFLAGS=""
  15489. ESD_LIBS=""
  15490. have_esd=no
  15491. fi
  15492. rm -f conf.esdtest
  15493. if test x$have_esd = xyes; then
  15494. # Check whether --enable-esd-shared was given.
  15495. if test "${enable_esd_shared+set}" = set; then :
  15496. enableval=$enable_esd_shared;
  15497. else
  15498. enable_esd_shared=yes
  15499. fi
  15500. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15501. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15502. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15503. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15504. if test x$have_loadso != xyes && \
  15505. test x$enable_esd_shared = xyes; then
  15506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15507. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15508. fi
  15509. if test x$have_loadso = xyes && \
  15510. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15511. echo "-- dynamic libesd -> $esd_lib"
  15512. cat >>confdefs.h <<_ACEOF
  15513. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15514. _ACEOF
  15515. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15516. else
  15517. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15518. SUMMARY_audio="${SUMMARY_audio} esd"
  15519. fi
  15520. have_audio=yes
  15521. fi
  15522. fi
  15523. }
  15524. CheckPulseAudio()
  15525. {
  15526. # Check whether --enable-pulseaudio was given.
  15527. if test "${enable_pulseaudio+set}" = set; then :
  15528. enableval=$enable_pulseaudio;
  15529. else
  15530. enable_pulseaudio=yes
  15531. fi
  15532. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15533. audio_pulseaudio=no
  15534. PULSEAUDIO_REQUIRED_VERSION=0.9
  15535. # Extract the first word of "pkg-config", so it can be a program name with args.
  15536. set dummy pkg-config; ac_word=$2
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15538. $as_echo_n "checking for $ac_word... " >&6; }
  15539. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15540. $as_echo_n "(cached) " >&6
  15541. else
  15542. case $PKG_CONFIG in
  15543. [\\/]* | ?:[\\/]*)
  15544. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15545. ;;
  15546. *)
  15547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15548. for as_dir in $PATH
  15549. do
  15550. IFS=$as_save_IFS
  15551. test -z "$as_dir" && as_dir=.
  15552. for ac_exec_ext in '' $ac_executable_extensions; do
  15553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15554. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15556. break 2
  15557. fi
  15558. done
  15559. done
  15560. IFS=$as_save_IFS
  15561. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15562. ;;
  15563. esac
  15564. fi
  15565. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15566. if test -n "$PKG_CONFIG"; then
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15568. $as_echo "$PKG_CONFIG" >&6; }
  15569. else
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15571. $as_echo "no" >&6; }
  15572. fi
  15573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15574. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15575. if test x$PKG_CONFIG != xno; then
  15576. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15577. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15578. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15579. audio_pulseaudio=yes
  15580. fi
  15581. fi
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15583. $as_echo "$audio_pulseaudio" >&6; }
  15584. if test x$audio_pulseaudio = xyes; then
  15585. # Check whether --enable-pulseaudio-shared was given.
  15586. if test "${enable_pulseaudio_shared+set}" = set; then :
  15587. enableval=$enable_pulseaudio_shared;
  15588. else
  15589. enable_pulseaudio_shared=yes
  15590. fi
  15591. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15592. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15593. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15594. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15595. if test x$have_loadso != xyes && \
  15596. test x$enable_pulseaudio_shared = xyes; then
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15598. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15599. fi
  15600. if test x$have_loadso = xyes && \
  15601. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15602. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15603. cat >>confdefs.h <<_ACEOF
  15604. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15605. _ACEOF
  15606. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15607. case "$host" in
  15608. # On Solaris, pulseaudio must be linked deferred explicitly
  15609. # to prevent undefined symbol failures.
  15610. *-*-solaris*)
  15611. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15613. esac
  15614. else
  15615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15616. SUMMARY_audio="${SUMMARY_audio} pulse"
  15617. fi
  15618. have_audio=yes
  15619. fi
  15620. fi
  15621. }
  15622. CheckARTSC()
  15623. {
  15624. # Check whether --enable-arts was given.
  15625. if test "${enable_arts+set}" = set; then :
  15626. enableval=$enable_arts;
  15627. else
  15628. enable_arts=yes
  15629. fi
  15630. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15631. # Extract the first word of "artsc-config", so it can be a program name with args.
  15632. set dummy artsc-config; ac_word=$2
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15634. $as_echo_n "checking for $ac_word... " >&6; }
  15635. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15636. $as_echo_n "(cached) " >&6
  15637. else
  15638. case $ARTSCONFIG in
  15639. [\\/]* | ?:[\\/]*)
  15640. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15641. ;;
  15642. *)
  15643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15644. for as_dir in $PATH
  15645. do
  15646. IFS=$as_save_IFS
  15647. test -z "$as_dir" && as_dir=.
  15648. for ac_exec_ext in '' $ac_executable_extensions; do
  15649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15650. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15652. break 2
  15653. fi
  15654. done
  15655. done
  15656. IFS=$as_save_IFS
  15657. ;;
  15658. esac
  15659. fi
  15660. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15661. if test -n "$ARTSCONFIG"; then
  15662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15663. $as_echo "$ARTSCONFIG" >&6; }
  15664. else
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15666. $as_echo "no" >&6; }
  15667. fi
  15668. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15669. : # arts isn't installed
  15670. else
  15671. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15672. ARTS_LIBS=`$ARTSCONFIG --libs`
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15674. $as_echo_n "checking for aRts development environment... " >&6; }
  15675. audio_arts=no
  15676. save_CFLAGS="$CFLAGS"
  15677. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15679. /* end confdefs.h. */
  15680. #include <artsc.h>
  15681. int
  15682. main ()
  15683. {
  15684. arts_stream_t stream;
  15685. ;
  15686. return 0;
  15687. }
  15688. _ACEOF
  15689. if ac_fn_c_try_compile "$LINENO"; then :
  15690. audio_arts=yes
  15691. fi
  15692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15693. CFLAGS="$save_CFLAGS"
  15694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15695. $as_echo "$audio_arts" >&6; }
  15696. if test x$audio_arts = xyes; then
  15697. # Check whether --enable-arts-shared was given.
  15698. if test "${enable_arts_shared+set}" = set; then :
  15699. enableval=$enable_arts_shared;
  15700. else
  15701. enable_arts_shared=yes
  15702. fi
  15703. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15704. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15705. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15706. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15707. if test x$have_loadso != xyes && \
  15708. test x$enable_arts_shared = xyes; then
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15710. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15711. fi
  15712. if test x$have_loadso = xyes && \
  15713. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15714. echo "-- dynamic libartsc -> $arts_lib"
  15715. cat >>confdefs.h <<_ACEOF
  15716. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15717. _ACEOF
  15718. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15719. else
  15720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15721. SUMMARY_audio="${SUMMARY_audio} arts"
  15722. fi
  15723. have_audio=yes
  15724. fi
  15725. fi
  15726. fi
  15727. }
  15728. CheckNAS()
  15729. {
  15730. # Check whether --enable-nas was given.
  15731. if test "${enable_nas+set}" = set; then :
  15732. enableval=$enable_nas;
  15733. else
  15734. enable_nas=yes
  15735. fi
  15736. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15737. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15738. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15739. have_nas_hdr=yes
  15740. fi
  15741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15742. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15743. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15744. $as_echo_n "(cached) " >&6
  15745. else
  15746. ac_check_lib_save_LIBS=$LIBS
  15747. LIBS="-laudio $LIBS"
  15748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15749. /* end confdefs.h. */
  15750. /* Override any GCC internal prototype to avoid an error.
  15751. Use char because int might match the return type of a GCC
  15752. builtin and then its argument prototype would still apply. */
  15753. #ifdef __cplusplus
  15754. extern "C"
  15755. #endif
  15756. char AuOpenServer ();
  15757. int
  15758. main ()
  15759. {
  15760. return AuOpenServer ();
  15761. ;
  15762. return 0;
  15763. }
  15764. _ACEOF
  15765. if ac_fn_c_try_link "$LINENO"; then :
  15766. ac_cv_lib_audio_AuOpenServer=yes
  15767. else
  15768. ac_cv_lib_audio_AuOpenServer=no
  15769. fi
  15770. rm -f core conftest.err conftest.$ac_objext \
  15771. conftest$ac_exeext conftest.$ac_ext
  15772. LIBS=$ac_check_lib_save_LIBS
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15775. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15776. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15777. have_nas_lib=yes
  15778. fi
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15780. $as_echo_n "checking for NAS audio support... " >&6; }
  15781. have_nas=no
  15782. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15783. have_nas=yes
  15784. NAS_LIBS="-laudio"
  15785. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15786. have_nas=yes
  15787. NAS_CFLAGS="-I/usr/X11R6/include/"
  15788. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15789. fi
  15790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15791. $as_echo "$have_nas" >&6; }
  15792. if test x$have_nas = xyes; then
  15793. # Check whether --enable-nas-shared was given.
  15794. if test "${enable_nas_shared+set}" = set; then :
  15795. enableval=$enable_nas_shared;
  15796. else
  15797. enable_nas_shared=yes
  15798. fi
  15799. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15800. if test x$have_loadso != xyes && \
  15801. test x$enable_nas_shared = xyes; then
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15803. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15804. fi
  15805. if test x$have_loadso = xyes && \
  15806. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15807. echo "-- dynamic libaudio -> $nas_lib"
  15808. cat >>confdefs.h <<_ACEOF
  15809. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15810. _ACEOF
  15811. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15812. else
  15813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15814. SUMMARY_audio="${SUMMARY_audio} nas"
  15815. fi
  15816. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15817. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15818. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15819. have_audio=yes
  15820. fi
  15821. fi
  15822. }
  15823. CheckSNDIO()
  15824. {
  15825. # Check whether --enable-sndio was given.
  15826. if test "${enable_sndio+set}" = set; then :
  15827. enableval=$enable_sndio;
  15828. else
  15829. enable_sndio=yes
  15830. fi
  15831. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15832. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15833. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15834. have_sndio_hdr=yes
  15835. fi
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15837. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15838. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15839. $as_echo_n "(cached) " >&6
  15840. else
  15841. ac_check_lib_save_LIBS=$LIBS
  15842. LIBS="-lsndio $LIBS"
  15843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15844. /* end confdefs.h. */
  15845. /* Override any GCC internal prototype to avoid an error.
  15846. Use char because int might match the return type of a GCC
  15847. builtin and then its argument prototype would still apply. */
  15848. #ifdef __cplusplus
  15849. extern "C"
  15850. #endif
  15851. char sio_open ();
  15852. int
  15853. main ()
  15854. {
  15855. return sio_open ();
  15856. ;
  15857. return 0;
  15858. }
  15859. _ACEOF
  15860. if ac_fn_c_try_link "$LINENO"; then :
  15861. ac_cv_lib_sndio_sio_open=yes
  15862. else
  15863. ac_cv_lib_sndio_sio_open=no
  15864. fi
  15865. rm -f core conftest.err conftest.$ac_objext \
  15866. conftest$ac_exeext conftest.$ac_ext
  15867. LIBS=$ac_check_lib_save_LIBS
  15868. fi
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15870. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15871. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15872. have_sndio_lib=yes
  15873. fi
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15875. $as_echo_n "checking for sndio audio support... " >&6; }
  15876. have_sndio=no
  15877. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15878. have_sndio=yes
  15879. SNDIO_LIBS="-lsndio"
  15880. fi
  15881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15882. $as_echo "$have_sndio" >&6; }
  15883. if test x$have_sndio = xyes; then
  15884. # Check whether --enable-sndio-shared was given.
  15885. if test "${enable_sndio_shared+set}" = set; then :
  15886. enableval=$enable_sndio_shared;
  15887. else
  15888. enable_sndio_shared=yes
  15889. fi
  15890. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15891. if test x$have_loadso != xyes && \
  15892. test x$enable_sndio_shared = xyes; then
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15894. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15895. fi
  15896. if test x$have_loadso = xyes && \
  15897. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15898. echo "-- dynamic libsndio -> $sndio_lib"
  15899. cat >>confdefs.h <<_ACEOF
  15900. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15901. _ACEOF
  15902. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15903. else
  15904. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15905. SUMMARY_audio="${SUMMARY_audio} sndio"
  15906. fi
  15907. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15908. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15909. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15910. have_audio=yes
  15911. fi
  15912. fi
  15913. }
  15914. CheckDiskAudio()
  15915. {
  15916. # Check whether --enable-diskaudio was given.
  15917. if test "${enable_diskaudio+set}" = set; then :
  15918. enableval=$enable_diskaudio;
  15919. else
  15920. enable_diskaudio=yes
  15921. fi
  15922. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15923. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15924. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15925. SUMMARY_audio="${SUMMARY_audio} disk"
  15926. fi
  15927. }
  15928. CheckDummyAudio()
  15929. {
  15930. # Check whether --enable-dummyaudio was given.
  15931. if test "${enable_dummyaudio+set}" = set; then :
  15932. enableval=$enable_dummyaudio;
  15933. else
  15934. enable_dummyaudio=yes
  15935. fi
  15936. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15937. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15938. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15939. SUMMARY_audio="${SUMMARY_audio} dummy"
  15940. fi
  15941. }
  15942. CheckVisibilityHidden()
  15943. {
  15944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15945. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15946. have_gcc_fvisibility=no
  15947. visibility_CFLAGS="-fvisibility=hidden"
  15948. save_CFLAGS="$CFLAGS"
  15949. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15951. /* end confdefs.h. */
  15952. #if !defined(__GNUC__) || __GNUC__ < 4
  15953. #error SDL only uses visibility attributes in GCC 4 or newer
  15954. #endif
  15955. int
  15956. main ()
  15957. {
  15958. ;
  15959. return 0;
  15960. }
  15961. _ACEOF
  15962. if ac_fn_c_try_compile "$LINENO"; then :
  15963. have_gcc_fvisibility=yes
  15964. fi
  15965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15967. $as_echo "$have_gcc_fvisibility" >&6; }
  15968. CFLAGS="$save_CFLAGS"
  15969. if test x$have_gcc_fvisibility = xyes; then
  15970. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15971. fi
  15972. }
  15973. CheckStackBoundary()
  15974. {
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15976. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15977. have_gcc_preferred_stack_boundary=no
  15978. save_CFLAGS="$CFLAGS"
  15979. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15981. /* end confdefs.h. */
  15982. int x = 0;
  15983. int
  15984. main ()
  15985. {
  15986. ;
  15987. return 0;
  15988. }
  15989. _ACEOF
  15990. if ac_fn_c_try_compile "$LINENO"; then :
  15991. have_gcc_preferred_stack_boundary=yes
  15992. fi
  15993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  15995. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  15996. CFLAGS="$save_CFLAGS"
  15997. if test x$have_gcc_preferred_stack_boundary = xyes; then
  15998. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  15999. fi
  16000. }
  16001. CheckWarnAll()
  16002. {
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16004. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16005. have_gcc_Wall=no
  16006. save_CFLAGS="$CFLAGS"
  16007. CFLAGS="$save_CFLAGS -Wall"
  16008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16009. /* end confdefs.h. */
  16010. int x = 0;
  16011. int
  16012. main ()
  16013. {
  16014. ;
  16015. return 0;
  16016. }
  16017. _ACEOF
  16018. if ac_fn_c_try_compile "$LINENO"; then :
  16019. have_gcc_Wall=yes
  16020. fi
  16021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16023. $as_echo "$have_gcc_Wall" >&6; }
  16024. CFLAGS="$save_CFLAGS"
  16025. if test x$have_gcc_Wall = xyes; then
  16026. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16028. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16029. need_gcc_Wno_multichar=no
  16030. case "$host" in
  16031. *-*-haiku*)
  16032. need_gcc_Wno_multichar=yes
  16033. ;;
  16034. esac
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16036. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16037. if test x$need_gcc_Wno_multichar = xyes; then
  16038. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16039. fi
  16040. fi
  16041. }
  16042. CheckWarnShadow()
  16043. {
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
  16045. $as_echo_n "checking for GCC -Wshadow option... " >&6; }
  16046. have_gcc_Wshadow=no
  16047. save_CFLAGS="$CFLAGS"
  16048. CFLAGS="$save_CFLAGS -Wshadow"
  16049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16050. /* end confdefs.h. */
  16051. int x = 0;
  16052. int
  16053. main ()
  16054. {
  16055. ;
  16056. return 0;
  16057. }
  16058. _ACEOF
  16059. if ac_fn_c_try_compile "$LINENO"; then :
  16060. have_gcc_Wshadow=yes
  16061. fi
  16062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wshadow" >&5
  16064. $as_echo "$have_gcc_Wshadow" >&6; }
  16065. CFLAGS="$save_CFLAGS"
  16066. if test x$have_gcc_Wshadow = xyes; then
  16067. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
  16068. fi
  16069. }
  16070. CheckWayland()
  16071. {
  16072. # Check whether --enable-video-wayland was given.
  16073. if test "${enable_video_wayland+set}" = set; then :
  16074. enableval=$enable_video_wayland;
  16075. else
  16076. enable_video_wayland=yes
  16077. fi
  16078. # Check whether --enable-video-wayland-qt-touch was given.
  16079. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16080. enableval=$enable_video_wayland_qt_touch;
  16081. else
  16082. enable_video_wayland_qt_touch=yes
  16083. fi
  16084. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16085. # Extract the first word of "pkg-config", so it can be a program name with args.
  16086. set dummy pkg-config; ac_word=$2
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16088. $as_echo_n "checking for $ac_word... " >&6; }
  16089. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16090. $as_echo_n "(cached) " >&6
  16091. else
  16092. case $PKG_CONFIG in
  16093. [\\/]* | ?:[\\/]*)
  16094. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16095. ;;
  16096. *)
  16097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16098. for as_dir in $PATH
  16099. do
  16100. IFS=$as_save_IFS
  16101. test -z "$as_dir" && as_dir=.
  16102. for ac_exec_ext in '' $ac_executable_extensions; do
  16103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16104. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16106. break 2
  16107. fi
  16108. done
  16109. done
  16110. IFS=$as_save_IFS
  16111. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16112. ;;
  16113. esac
  16114. fi
  16115. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16116. if test -n "$PKG_CONFIG"; then
  16117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16118. $as_echo "$PKG_CONFIG" >&6; }
  16119. else
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16121. $as_echo "no" >&6; }
  16122. fi
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16124. $as_echo_n "checking for Wayland support... " >&6; }
  16125. video_wayland=no
  16126. if test x$PKG_CONFIG != xno && \
  16127. test x$video_opengl_egl = xyes && \
  16128. test x$video_opengles_v2 = xyes; then
  16129. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16130. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16131. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16132. video_wayland=yes
  16133. fi
  16134. fi
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16136. $as_echo "$video_wayland" >&6; }
  16137. if test x$video_wayland = xyes; then
  16138. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16139. if test x$enable_video_wayland_qt_touch = xyes; then
  16140. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16141. fi
  16142. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16143. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16144. # Check whether --enable-wayland-shared was given.
  16145. if test "${enable_wayland_shared+set}" = set; then :
  16146. enableval=$enable_wayland_shared;
  16147. else
  16148. enable_wayland_shared=maybe
  16149. fi
  16150. case "$host" in
  16151. *)
  16152. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16153. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16154. if test x$wayland_egl_lib = x; then
  16155. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16156. fi
  16157. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16158. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16159. ;;
  16160. esac
  16161. if test x$enable_wayland_shared = xmaybe; then
  16162. enable_wayland_shared=yes
  16163. fi
  16164. if test x$have_loadso != xyes && \
  16165. test x$enable_wayland_shared = xyes; then
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16167. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16168. enable_wayland_shared=no
  16169. fi
  16170. if test x$have_loadso = xyes && \
  16171. test x$enable_wayland_shared = xyes && \
  16172. test x$wayland_client_lib != x && \
  16173. test x$wayland_egl_lib != x && \
  16174. test x$wayland_cursor_lib != x && \
  16175. test x$xkbcommon_lib != x; then
  16176. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16177. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16178. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16179. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16180. cat >>confdefs.h <<_ACEOF
  16181. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16182. _ACEOF
  16183. cat >>confdefs.h <<_ACEOF
  16184. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16185. _ACEOF
  16186. cat >>confdefs.h <<_ACEOF
  16187. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16188. _ACEOF
  16189. cat >>confdefs.h <<_ACEOF
  16190. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16191. _ACEOF
  16192. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16193. else
  16194. enable_wayland_shared=no
  16195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16196. SUMMARY_video="${SUMMARY_video} wayland"
  16197. fi
  16198. have_video=yes
  16199. fi
  16200. fi
  16201. }
  16202. CheckMir()
  16203. {
  16204. # Check whether --enable-video-mir was given.
  16205. if test "${enable_video_mir+set}" = set; then :
  16206. enableval=$enable_video_mir;
  16207. else
  16208. enable_video_mir=yes
  16209. fi
  16210. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16211. # Extract the first word of "pkg-config", so it can be a program name with args.
  16212. set dummy pkg-config; ac_word=$2
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16214. $as_echo_n "checking for $ac_word... " >&6; }
  16215. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16216. $as_echo_n "(cached) " >&6
  16217. else
  16218. case $PKG_CONFIG in
  16219. [\\/]* | ?:[\\/]*)
  16220. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16221. ;;
  16222. *)
  16223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16224. for as_dir in $PATH
  16225. do
  16226. IFS=$as_save_IFS
  16227. test -z "$as_dir" && as_dir=.
  16228. for ac_exec_ext in '' $ac_executable_extensions; do
  16229. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16230. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16232. break 2
  16233. fi
  16234. done
  16235. done
  16236. IFS=$as_save_IFS
  16237. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16238. ;;
  16239. esac
  16240. fi
  16241. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16242. if test -n "$PKG_CONFIG"; then
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16244. $as_echo "$PKG_CONFIG" >&6; }
  16245. else
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16247. $as_echo "no" >&6; }
  16248. fi
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16250. $as_echo_n "checking for Mir support... " >&6; }
  16251. video_mir=no
  16252. if test x$PKG_CONFIG != xno; then
  16253. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16254. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16255. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16256. save_CFLAGS="$CFLAGS"
  16257. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16259. /* end confdefs.h. */
  16260. #include <mir_toolkit/mir_client_library.h>
  16261. int
  16262. main ()
  16263. {
  16264. MirMotionToolType tool = mir_motion_tool_type_mouse;
  16265. ;
  16266. return 0;
  16267. }
  16268. _ACEOF
  16269. if ac_fn_c_try_compile "$LINENO"; then :
  16270. video_mir=yes
  16271. fi
  16272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16273. CFLAGS="$save_CFLAGS"
  16274. fi
  16275. fi
  16276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16277. $as_echo "$video_mir" >&6; }
  16278. if test x$video_mir = xyes; then
  16279. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16280. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16281. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16282. # Check whether --enable-mir-shared was given.
  16283. if test "${enable_mir_shared+set}" = set; then :
  16284. enableval=$enable_mir_shared;
  16285. else
  16286. enable_mir_shared=maybe
  16287. fi
  16288. case "$host" in
  16289. *)
  16290. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16291. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16292. ;;
  16293. esac
  16294. if test x$enable_mir_shared = xmaybe; then
  16295. enable_mir_shared=yes
  16296. fi
  16297. if test x$have_loadso != xyes && \
  16298. test x$enable_mir_shared = xyes; then
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16300. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16301. enable_mir_shared=no
  16302. fi
  16303. if test x$have_loadso = xyes && \
  16304. test x$enable_mir_shared = xyes && \
  16305. test x$mirclient_lib != x && \
  16306. test x$xkbcommon_lib != x; then
  16307. echo "-- dynamic libmirclient -> $mirclient_lib"
  16308. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16309. cat >>confdefs.h <<_ACEOF
  16310. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16311. _ACEOF
  16312. cat >>confdefs.h <<_ACEOF
  16313. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16314. _ACEOF
  16315. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16316. else
  16317. enable_mir_shared=no
  16318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16319. SUMMARY_video="${SUMMARY_video} mir"
  16320. fi
  16321. have_video=yes
  16322. fi
  16323. fi
  16324. }
  16325. CheckNativeClient()
  16326. {
  16327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16328. /* end confdefs.h. */
  16329. #if !defined(__native_client__)
  16330. #error "NO NACL"
  16331. #endif
  16332. int
  16333. main ()
  16334. {
  16335. ;
  16336. return 0;
  16337. }
  16338. _ACEOF
  16339. if ac_fn_c_try_compile "$LINENO"; then :
  16340. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16341. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16342. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16343. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16344. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16345. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16346. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16347. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16348. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16349. SUMMARY_audio="${SUMMARY_audio} nacl"
  16350. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16351. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16352. fi
  16353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16354. }
  16355. CheckX11()
  16356. {
  16357. # Check whether --enable-video-x11 was given.
  16358. if test "${enable_video_x11+set}" = set; then :
  16359. enableval=$enable_video_x11;
  16360. else
  16361. enable_video_x11=yes
  16362. fi
  16363. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16364. case "$host" in
  16365. *-*-darwin*)
  16366. # This isn't necessary for X11, but fixes GLX detection
  16367. if test "x$x_includes" = xNONE && \
  16368. test "x$x_libraries" = xNONE && \
  16369. test -d /usr/X11R6/include && \
  16370. test -d /usr/X11R6/lib; then
  16371. x_includes="/usr/X11R6/include"
  16372. x_libraries="/usr/X11R6/lib"
  16373. fi
  16374. ;;
  16375. esac
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16377. $as_echo_n "checking for X... " >&6; }
  16378. # Check whether --with-x was given.
  16379. if test "${with_x+set}" = set; then :
  16380. withval=$with_x;
  16381. fi
  16382. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16383. if test "x$with_x" = xno; then
  16384. # The user explicitly disabled X.
  16385. have_x=disabled
  16386. else
  16387. case $x_includes,$x_libraries in #(
  16388. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16389. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16390. $as_echo_n "(cached) " >&6
  16391. else
  16392. # One or both of the vars are not set, and there is no cached value.
  16393. ac_x_includes=no ac_x_libraries=no
  16394. rm -f -r conftest.dir
  16395. if mkdir conftest.dir; then
  16396. cd conftest.dir
  16397. cat >Imakefile <<'_ACEOF'
  16398. incroot:
  16399. @echo incroot='${INCROOT}'
  16400. usrlibdir:
  16401. @echo usrlibdir='${USRLIBDIR}'
  16402. libdir:
  16403. @echo libdir='${LIBDIR}'
  16404. _ACEOF
  16405. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16406. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16407. for ac_var in incroot usrlibdir libdir; do
  16408. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16409. done
  16410. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16411. for ac_extension in a so sl dylib la dll; do
  16412. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16413. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16414. ac_im_usrlibdir=$ac_im_libdir; break
  16415. fi
  16416. done
  16417. # Screen out bogus values from the imake configuration. They are
  16418. # bogus both because they are the default anyway, and because
  16419. # using them would break gcc on systems where it needs fixed includes.
  16420. case $ac_im_incroot in
  16421. /usr/include) ac_x_includes= ;;
  16422. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16423. esac
  16424. case $ac_im_usrlibdir in
  16425. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16426. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16427. esac
  16428. fi
  16429. cd ..
  16430. rm -f -r conftest.dir
  16431. fi
  16432. # Standard set of common directories for X headers.
  16433. # Check X11 before X11Rn because it is often a symlink to the current release.
  16434. ac_x_header_dirs='
  16435. /usr/X11/include
  16436. /usr/X11R7/include
  16437. /usr/X11R6/include
  16438. /usr/X11R5/include
  16439. /usr/X11R4/include
  16440. /usr/include/X11
  16441. /usr/include/X11R7
  16442. /usr/include/X11R6
  16443. /usr/include/X11R5
  16444. /usr/include/X11R4
  16445. /usr/local/X11/include
  16446. /usr/local/X11R7/include
  16447. /usr/local/X11R6/include
  16448. /usr/local/X11R5/include
  16449. /usr/local/X11R4/include
  16450. /usr/local/include/X11
  16451. /usr/local/include/X11R7
  16452. /usr/local/include/X11R6
  16453. /usr/local/include/X11R5
  16454. /usr/local/include/X11R4
  16455. /usr/X386/include
  16456. /usr/x386/include
  16457. /usr/XFree86/include/X11
  16458. /usr/include
  16459. /usr/local/include
  16460. /usr/unsupported/include
  16461. /usr/athena/include
  16462. /usr/local/x11r5/include
  16463. /usr/lpp/Xamples/include
  16464. /usr/openwin/include
  16465. /usr/openwin/share/include'
  16466. if test "$ac_x_includes" = no; then
  16467. # Guess where to find include files, by looking for Xlib.h.
  16468. # First, try using that file with no special directory specified.
  16469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16470. /* end confdefs.h. */
  16471. #include <X11/Xlib.h>
  16472. _ACEOF
  16473. if ac_fn_c_try_cpp "$LINENO"; then :
  16474. # We can compile using X headers with no special include directory.
  16475. ac_x_includes=
  16476. else
  16477. for ac_dir in $ac_x_header_dirs; do
  16478. if test -r "$ac_dir/X11/Xlib.h"; then
  16479. ac_x_includes=$ac_dir
  16480. break
  16481. fi
  16482. done
  16483. fi
  16484. rm -f conftest.err conftest.i conftest.$ac_ext
  16485. fi # $ac_x_includes = no
  16486. if test "$ac_x_libraries" = no; then
  16487. # Check for the libraries.
  16488. # See if we find them without any special options.
  16489. # Don't add to $LIBS permanently.
  16490. ac_save_LIBS=$LIBS
  16491. LIBS="-lX11 $LIBS"
  16492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16493. /* end confdefs.h. */
  16494. #include <X11/Xlib.h>
  16495. int
  16496. main ()
  16497. {
  16498. XrmInitialize ()
  16499. ;
  16500. return 0;
  16501. }
  16502. _ACEOF
  16503. if ac_fn_c_try_link "$LINENO"; then :
  16504. LIBS=$ac_save_LIBS
  16505. # We can link X programs with no special library path.
  16506. ac_x_libraries=
  16507. else
  16508. LIBS=$ac_save_LIBS
  16509. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16510. do
  16511. # Don't even attempt the hair of trying to link an X program!
  16512. for ac_extension in a so sl dylib la dll; do
  16513. if test -r "$ac_dir/libX11.$ac_extension"; then
  16514. ac_x_libraries=$ac_dir
  16515. break 2
  16516. fi
  16517. done
  16518. done
  16519. fi
  16520. rm -f core conftest.err conftest.$ac_objext \
  16521. conftest$ac_exeext conftest.$ac_ext
  16522. fi # $ac_x_libraries = no
  16523. case $ac_x_includes,$ac_x_libraries in #(
  16524. no,* | *,no | *\'*)
  16525. # Didn't find X, or a directory has "'" in its name.
  16526. ac_cv_have_x="have_x=no";; #(
  16527. *)
  16528. # Record where we found X for the cache.
  16529. ac_cv_have_x="have_x=yes\
  16530. ac_x_includes='$ac_x_includes'\
  16531. ac_x_libraries='$ac_x_libraries'"
  16532. esac
  16533. fi
  16534. ;; #(
  16535. *) have_x=yes;;
  16536. esac
  16537. eval "$ac_cv_have_x"
  16538. fi # $with_x != no
  16539. if test "$have_x" != yes; then
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16541. $as_echo "$have_x" >&6; }
  16542. no_x=yes
  16543. else
  16544. # If each of the values was on the command line, it overrides each guess.
  16545. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16546. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16547. # Update the cache value to reflect the command line values.
  16548. ac_cv_have_x="have_x=yes\
  16549. ac_x_includes='$x_includes'\
  16550. ac_x_libraries='$x_libraries'"
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16552. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16553. fi
  16554. if test "$no_x" = yes; then
  16555. # Not all programs may use this symbol, but it does not hurt to define it.
  16556. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16557. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16558. else
  16559. if test -n "$x_includes"; then
  16560. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16561. fi
  16562. # It would also be nice to do this for all -L options, not just this one.
  16563. if test -n "$x_libraries"; then
  16564. X_LIBS="$X_LIBS -L$x_libraries"
  16565. # For Solaris; some versions of Sun CC require a space after -R and
  16566. # others require no space. Words are not sufficient . . . .
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16568. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16569. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16570. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16571. ac_c_werror_flag=yes
  16572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16573. /* end confdefs.h. */
  16574. int
  16575. main ()
  16576. {
  16577. ;
  16578. return 0;
  16579. }
  16580. _ACEOF
  16581. if ac_fn_c_try_link "$LINENO"; then :
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16583. $as_echo "no" >&6; }
  16584. X_LIBS="$X_LIBS -R$x_libraries"
  16585. else
  16586. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16588. /* end confdefs.h. */
  16589. int
  16590. main ()
  16591. {
  16592. ;
  16593. return 0;
  16594. }
  16595. _ACEOF
  16596. if ac_fn_c_try_link "$LINENO"; then :
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16598. $as_echo "yes" >&6; }
  16599. X_LIBS="$X_LIBS -R $x_libraries"
  16600. else
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16602. $as_echo "neither works" >&6; }
  16603. fi
  16604. rm -f core conftest.err conftest.$ac_objext \
  16605. conftest$ac_exeext conftest.$ac_ext
  16606. fi
  16607. rm -f core conftest.err conftest.$ac_objext \
  16608. conftest$ac_exeext conftest.$ac_ext
  16609. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16610. LIBS=$ac_xsave_LIBS
  16611. fi
  16612. # Check for system-dependent libraries X programs must link with.
  16613. # Do this before checking for the system-independent R6 libraries
  16614. # (-lICE), since we may need -lsocket or whatever for X linking.
  16615. if test "$ISC" = yes; then
  16616. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16617. else
  16618. # Martyn Johnson says this is needed for Ultrix, if the X
  16619. # libraries were built with DECnet support. And Karl Berry says
  16620. # the Alpha needs dnet_stub (dnet does not exist).
  16621. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16623. /* end confdefs.h. */
  16624. /* Override any GCC internal prototype to avoid an error.
  16625. Use char because int might match the return type of a GCC
  16626. builtin and then its argument prototype would still apply. */
  16627. #ifdef __cplusplus
  16628. extern "C"
  16629. #endif
  16630. char XOpenDisplay ();
  16631. int
  16632. main ()
  16633. {
  16634. return XOpenDisplay ();
  16635. ;
  16636. return 0;
  16637. }
  16638. _ACEOF
  16639. if ac_fn_c_try_link "$LINENO"; then :
  16640. else
  16641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16642. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16643. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16644. $as_echo_n "(cached) " >&6
  16645. else
  16646. ac_check_lib_save_LIBS=$LIBS
  16647. LIBS="-ldnet $LIBS"
  16648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16649. /* end confdefs.h. */
  16650. /* Override any GCC internal prototype to avoid an error.
  16651. Use char because int might match the return type of a GCC
  16652. builtin and then its argument prototype would still apply. */
  16653. #ifdef __cplusplus
  16654. extern "C"
  16655. #endif
  16656. char dnet_ntoa ();
  16657. int
  16658. main ()
  16659. {
  16660. return dnet_ntoa ();
  16661. ;
  16662. return 0;
  16663. }
  16664. _ACEOF
  16665. if ac_fn_c_try_link "$LINENO"; then :
  16666. ac_cv_lib_dnet_dnet_ntoa=yes
  16667. else
  16668. ac_cv_lib_dnet_dnet_ntoa=no
  16669. fi
  16670. rm -f core conftest.err conftest.$ac_objext \
  16671. conftest$ac_exeext conftest.$ac_ext
  16672. LIBS=$ac_check_lib_save_LIBS
  16673. fi
  16674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16675. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16676. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16677. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16678. fi
  16679. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16681. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16682. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16683. $as_echo_n "(cached) " >&6
  16684. else
  16685. ac_check_lib_save_LIBS=$LIBS
  16686. LIBS="-ldnet_stub $LIBS"
  16687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16688. /* end confdefs.h. */
  16689. /* Override any GCC internal prototype to avoid an error.
  16690. Use char because int might match the return type of a GCC
  16691. builtin and then its argument prototype would still apply. */
  16692. #ifdef __cplusplus
  16693. extern "C"
  16694. #endif
  16695. char dnet_ntoa ();
  16696. int
  16697. main ()
  16698. {
  16699. return dnet_ntoa ();
  16700. ;
  16701. return 0;
  16702. }
  16703. _ACEOF
  16704. if ac_fn_c_try_link "$LINENO"; then :
  16705. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16706. else
  16707. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16708. fi
  16709. rm -f core conftest.err conftest.$ac_objext \
  16710. conftest$ac_exeext conftest.$ac_ext
  16711. LIBS=$ac_check_lib_save_LIBS
  16712. fi
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16714. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16715. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16716. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16717. fi
  16718. fi
  16719. fi
  16720. rm -f core conftest.err conftest.$ac_objext \
  16721. conftest$ac_exeext conftest.$ac_ext
  16722. LIBS="$ac_xsave_LIBS"
  16723. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16724. # to get the SysV transport functions.
  16725. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16726. # needs -lnsl.
  16727. # The nsl library prevents programs from opening the X display
  16728. # on Irix 5.2, according to T.E. Dickey.
  16729. # The functions gethostbyname, getservbyname, and inet_addr are
  16730. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16731. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16732. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16733. fi
  16734. if test $ac_cv_func_gethostbyname = no; then
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16736. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16737. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16738. $as_echo_n "(cached) " >&6
  16739. else
  16740. ac_check_lib_save_LIBS=$LIBS
  16741. LIBS="-lnsl $LIBS"
  16742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16743. /* end confdefs.h. */
  16744. /* Override any GCC internal prototype to avoid an error.
  16745. Use char because int might match the return type of a GCC
  16746. builtin and then its argument prototype would still apply. */
  16747. #ifdef __cplusplus
  16748. extern "C"
  16749. #endif
  16750. char gethostbyname ();
  16751. int
  16752. main ()
  16753. {
  16754. return gethostbyname ();
  16755. ;
  16756. return 0;
  16757. }
  16758. _ACEOF
  16759. if ac_fn_c_try_link "$LINENO"; then :
  16760. ac_cv_lib_nsl_gethostbyname=yes
  16761. else
  16762. ac_cv_lib_nsl_gethostbyname=no
  16763. fi
  16764. rm -f core conftest.err conftest.$ac_objext \
  16765. conftest$ac_exeext conftest.$ac_ext
  16766. LIBS=$ac_check_lib_save_LIBS
  16767. fi
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16769. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16770. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16771. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16772. fi
  16773. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16775. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16776. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16777. $as_echo_n "(cached) " >&6
  16778. else
  16779. ac_check_lib_save_LIBS=$LIBS
  16780. LIBS="-lbsd $LIBS"
  16781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16782. /* end confdefs.h. */
  16783. /* Override any GCC internal prototype to avoid an error.
  16784. Use char because int might match the return type of a GCC
  16785. builtin and then its argument prototype would still apply. */
  16786. #ifdef __cplusplus
  16787. extern "C"
  16788. #endif
  16789. char gethostbyname ();
  16790. int
  16791. main ()
  16792. {
  16793. return gethostbyname ();
  16794. ;
  16795. return 0;
  16796. }
  16797. _ACEOF
  16798. if ac_fn_c_try_link "$LINENO"; then :
  16799. ac_cv_lib_bsd_gethostbyname=yes
  16800. else
  16801. ac_cv_lib_bsd_gethostbyname=no
  16802. fi
  16803. rm -f core conftest.err conftest.$ac_objext \
  16804. conftest$ac_exeext conftest.$ac_ext
  16805. LIBS=$ac_check_lib_save_LIBS
  16806. fi
  16807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16808. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16809. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16810. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16811. fi
  16812. fi
  16813. fi
  16814. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16815. # socket/setsockopt and other routines are undefined under SCO ODT
  16816. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16817. # on later versions), says Simon Leinen: it contains gethostby*
  16818. # variants that don't use the name server (or something). -lsocket
  16819. # must be given before -lnsl if both are needed. We assume that
  16820. # if connect needs -lnsl, so does gethostbyname.
  16821. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16822. if test "x$ac_cv_func_connect" = xyes; then :
  16823. fi
  16824. if test $ac_cv_func_connect = no; then
  16825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16826. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16827. if ${ac_cv_lib_socket_connect+:} false; then :
  16828. $as_echo_n "(cached) " >&6
  16829. else
  16830. ac_check_lib_save_LIBS=$LIBS
  16831. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16833. /* end confdefs.h. */
  16834. /* Override any GCC internal prototype to avoid an error.
  16835. Use char because int might match the return type of a GCC
  16836. builtin and then its argument prototype would still apply. */
  16837. #ifdef __cplusplus
  16838. extern "C"
  16839. #endif
  16840. char connect ();
  16841. int
  16842. main ()
  16843. {
  16844. return connect ();
  16845. ;
  16846. return 0;
  16847. }
  16848. _ACEOF
  16849. if ac_fn_c_try_link "$LINENO"; then :
  16850. ac_cv_lib_socket_connect=yes
  16851. else
  16852. ac_cv_lib_socket_connect=no
  16853. fi
  16854. rm -f core conftest.err conftest.$ac_objext \
  16855. conftest$ac_exeext conftest.$ac_ext
  16856. LIBS=$ac_check_lib_save_LIBS
  16857. fi
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16859. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16860. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16861. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16862. fi
  16863. fi
  16864. # Guillermo Gomez says -lposix is necessary on A/UX.
  16865. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16866. if test "x$ac_cv_func_remove" = xyes; then :
  16867. fi
  16868. if test $ac_cv_func_remove = no; then
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16870. $as_echo_n "checking for remove in -lposix... " >&6; }
  16871. if ${ac_cv_lib_posix_remove+:} false; then :
  16872. $as_echo_n "(cached) " >&6
  16873. else
  16874. ac_check_lib_save_LIBS=$LIBS
  16875. LIBS="-lposix $LIBS"
  16876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16877. /* end confdefs.h. */
  16878. /* Override any GCC internal prototype to avoid an error.
  16879. Use char because int might match the return type of a GCC
  16880. builtin and then its argument prototype would still apply. */
  16881. #ifdef __cplusplus
  16882. extern "C"
  16883. #endif
  16884. char remove ();
  16885. int
  16886. main ()
  16887. {
  16888. return remove ();
  16889. ;
  16890. return 0;
  16891. }
  16892. _ACEOF
  16893. if ac_fn_c_try_link "$LINENO"; then :
  16894. ac_cv_lib_posix_remove=yes
  16895. else
  16896. ac_cv_lib_posix_remove=no
  16897. fi
  16898. rm -f core conftest.err conftest.$ac_objext \
  16899. conftest$ac_exeext conftest.$ac_ext
  16900. LIBS=$ac_check_lib_save_LIBS
  16901. fi
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16903. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16904. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16905. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16906. fi
  16907. fi
  16908. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16909. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16910. if test "x$ac_cv_func_shmat" = xyes; then :
  16911. fi
  16912. if test $ac_cv_func_shmat = no; then
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16914. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16915. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16916. $as_echo_n "(cached) " >&6
  16917. else
  16918. ac_check_lib_save_LIBS=$LIBS
  16919. LIBS="-lipc $LIBS"
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. /* Override any GCC internal prototype to avoid an error.
  16923. Use char because int might match the return type of a GCC
  16924. builtin and then its argument prototype would still apply. */
  16925. #ifdef __cplusplus
  16926. extern "C"
  16927. #endif
  16928. char shmat ();
  16929. int
  16930. main ()
  16931. {
  16932. return shmat ();
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. if ac_fn_c_try_link "$LINENO"; then :
  16938. ac_cv_lib_ipc_shmat=yes
  16939. else
  16940. ac_cv_lib_ipc_shmat=no
  16941. fi
  16942. rm -f core conftest.err conftest.$ac_objext \
  16943. conftest$ac_exeext conftest.$ac_ext
  16944. LIBS=$ac_check_lib_save_LIBS
  16945. fi
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16947. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16948. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16949. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16950. fi
  16951. fi
  16952. fi
  16953. # Check for libraries that X11R6 Xt/Xaw programs need.
  16954. ac_save_LDFLAGS=$LDFLAGS
  16955. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16956. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16957. # check for ICE first), but we must link in the order -lSM -lICE or
  16958. # we get undefined symbols. So assume we have SM if we have ICE.
  16959. # These have to be linked with before -lX11, unlike the other
  16960. # libraries we check for below, so use a different variable.
  16961. # John Interrante, Karl Berry
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16963. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16964. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16965. $as_echo_n "(cached) " >&6
  16966. else
  16967. ac_check_lib_save_LIBS=$LIBS
  16968. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16970. /* end confdefs.h. */
  16971. /* Override any GCC internal prototype to avoid an error.
  16972. Use char because int might match the return type of a GCC
  16973. builtin and then its argument prototype would still apply. */
  16974. #ifdef __cplusplus
  16975. extern "C"
  16976. #endif
  16977. char IceConnectionNumber ();
  16978. int
  16979. main ()
  16980. {
  16981. return IceConnectionNumber ();
  16982. ;
  16983. return 0;
  16984. }
  16985. _ACEOF
  16986. if ac_fn_c_try_link "$LINENO"; then :
  16987. ac_cv_lib_ICE_IceConnectionNumber=yes
  16988. else
  16989. ac_cv_lib_ICE_IceConnectionNumber=no
  16990. fi
  16991. rm -f core conftest.err conftest.$ac_objext \
  16992. conftest$ac_exeext conftest.$ac_ext
  16993. LIBS=$ac_check_lib_save_LIBS
  16994. fi
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  16996. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  16997. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  16998. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  16999. fi
  17000. LDFLAGS=$ac_save_LDFLAGS
  17001. fi
  17002. if test x$have_x = xyes; then
  17003. # Check whether --enable-x11-shared was given.
  17004. if test "${enable_x11_shared+set}" = set; then :
  17005. enableval=$enable_x11_shared;
  17006. else
  17007. enable_x11_shared=maybe
  17008. fi
  17009. case "$host" in
  17010. *-*-darwin*)
  17011. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17012. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17013. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17014. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17015. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17016. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17017. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17018. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17019. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17020. ;;
  17021. *-*-openbsd*)
  17022. x11_lib='libX11.so'
  17023. x11ext_lib='libXext.so'
  17024. xcursor_lib='libXcursor.so'
  17025. xinerama_lib='libXinerama.so'
  17026. xinput_lib='libXi.so'
  17027. xrandr_lib='libXrandr.so'
  17028. xrender_lib='libXrender.so'
  17029. xss_lib='libXss.so'
  17030. xvidmode_lib='libXxf86vm.so'
  17031. ;;
  17032. *)
  17033. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17034. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17035. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17036. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17037. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17038. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17039. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17040. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17041. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17042. ;;
  17043. esac
  17044. if test x$ac_cv_func_shmat != xyes; then
  17045. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17046. fi
  17047. CFLAGS="$CFLAGS $X_CFLAGS"
  17048. LDFLAGS="$LDFLAGS $X_LIBS"
  17049. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17050. #include <X11/Xproto.h>
  17051. "
  17052. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17053. have_xext_h_hdr=yes
  17054. else
  17055. have_xext_h_hdr=no
  17056. fi
  17057. if test x$have_xext_h_hdr != xyes; then
  17058. as_fn_error $? "
  17059. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17060. " "$LINENO" 5
  17061. fi
  17062. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17063. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17064. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17065. # Needed so SDL applications can include SDL_syswm.h
  17066. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17067. if test x$enable_x11_shared = xmaybe; then
  17068. enable_x11_shared=yes
  17069. fi
  17070. if test x$have_loadso != xyes && \
  17071. test x$enable_x11_shared = xyes; then
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17073. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17074. enable_x11_shared=no
  17075. fi
  17076. if test x$have_loadso = xyes && \
  17077. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17078. echo "-- dynamic libX11 -> $x11_lib"
  17079. echo "-- dynamic libX11ext -> $x11ext_lib"
  17080. cat >>confdefs.h <<_ACEOF
  17081. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17082. _ACEOF
  17083. cat >>confdefs.h <<_ACEOF
  17084. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17085. _ACEOF
  17086. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17087. else
  17088. enable_x11_shared=no
  17089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17090. SUMMARY_video="${SUMMARY_video} x11"
  17091. fi
  17092. have_video=yes
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17094. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17095. have_const_param_XextAddDisplay=no
  17096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17097. /* end confdefs.h. */
  17098. #include <X11/Xlib.h>
  17099. #include <X11/Xproto.h>
  17100. #include <X11/extensions/Xext.h>
  17101. #include <X11/extensions/extutil.h>
  17102. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17103. int
  17104. main ()
  17105. {
  17106. ;
  17107. return 0;
  17108. }
  17109. _ACEOF
  17110. if ac_fn_c_try_compile "$LINENO"; then :
  17111. have_const_param_XextAddDisplay=yes
  17112. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17113. fi
  17114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17116. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17118. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17119. have_const_param_xdata32=no
  17120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17121. /* end confdefs.h. */
  17122. #include <X11/Xlibint.h>
  17123. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17124. int
  17125. main ()
  17126. {
  17127. ;
  17128. return 0;
  17129. }
  17130. _ACEOF
  17131. if ac_fn_c_try_compile "$LINENO"; then :
  17132. have_const_param_xdata32=yes
  17133. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17134. fi
  17135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17137. $as_echo "$have_const_param_xdata32" >&6; }
  17138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17139. $as_echo_n "checking for XGenericEvent... " >&6; }
  17140. have_XGenericEvent=no
  17141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17142. /* end confdefs.h. */
  17143. #include <X11/Xlib.h>
  17144. int
  17145. main ()
  17146. {
  17147. Display *display;
  17148. XEvent event;
  17149. XGenericEventCookie *cookie = &event.xcookie;
  17150. XNextEvent(display, &event);
  17151. XGetEventData(display, cookie);
  17152. XFreeEventData(display, cookie);
  17153. ;
  17154. return 0;
  17155. }
  17156. _ACEOF
  17157. if ac_fn_c_try_compile "$LINENO"; then :
  17158. have_XGenericEvent=yes
  17159. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17160. fi
  17161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17163. $as_echo "$have_XGenericEvent" >&6; }
  17164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17165. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17166. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17167. $as_echo_n "(cached) " >&6
  17168. else
  17169. ac_check_lib_save_LIBS=$LIBS
  17170. LIBS="-lX11 $LIBS"
  17171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17172. /* end confdefs.h. */
  17173. /* Override any GCC internal prototype to avoid an error.
  17174. Use char because int might match the return type of a GCC
  17175. builtin and then its argument prototype would still apply. */
  17176. #ifdef __cplusplus
  17177. extern "C"
  17178. #endif
  17179. char XkbKeycodeToKeysym ();
  17180. int
  17181. main ()
  17182. {
  17183. return XkbKeycodeToKeysym ();
  17184. ;
  17185. return 0;
  17186. }
  17187. _ACEOF
  17188. if ac_fn_c_try_link "$LINENO"; then :
  17189. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17190. else
  17191. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17192. fi
  17193. rm -f core conftest.err conftest.$ac_objext \
  17194. conftest$ac_exeext conftest.$ac_ext
  17195. LIBS=$ac_check_lib_save_LIBS
  17196. fi
  17197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17198. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17199. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17200. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17201. fi
  17202. # Check whether --enable-video-x11-xcursor was given.
  17203. if test "${enable_video_x11_xcursor+set}" = set; then :
  17204. enableval=$enable_video_x11_xcursor;
  17205. else
  17206. enable_video_x11_xcursor=yes
  17207. fi
  17208. if test x$enable_video_x11_xcursor = xyes; then
  17209. definitely_enable_video_x11_xcursor=no
  17210. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17211. "
  17212. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17213. have_xcursor_h_hdr=yes
  17214. else
  17215. have_xcursor_h_hdr=no
  17216. fi
  17217. if test x$have_xcursor_h_hdr = xyes; then
  17218. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17219. echo "-- dynamic libXcursor -> $xcursor_lib"
  17220. cat >>confdefs.h <<_ACEOF
  17221. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17222. _ACEOF
  17223. definitely_enable_video_x11_xcursor=yes
  17224. else
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17226. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17227. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17228. $as_echo_n "(cached) " >&6
  17229. else
  17230. ac_check_lib_save_LIBS=$LIBS
  17231. LIBS="-lXcursor $LIBS"
  17232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17233. /* end confdefs.h. */
  17234. /* Override any GCC internal prototype to avoid an error.
  17235. Use char because int might match the return type of a GCC
  17236. builtin and then its argument prototype would still apply. */
  17237. #ifdef __cplusplus
  17238. extern "C"
  17239. #endif
  17240. char XcursorImageCreate ();
  17241. int
  17242. main ()
  17243. {
  17244. return XcursorImageCreate ();
  17245. ;
  17246. return 0;
  17247. }
  17248. _ACEOF
  17249. if ac_fn_c_try_link "$LINENO"; then :
  17250. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17251. else
  17252. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17253. fi
  17254. rm -f core conftest.err conftest.$ac_objext \
  17255. conftest$ac_exeext conftest.$ac_ext
  17256. LIBS=$ac_check_lib_save_LIBS
  17257. fi
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17259. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17260. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17261. have_xcursor_lib=yes
  17262. fi
  17263. if test x$have_xcursor_lib = xyes ; then
  17264. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17265. definitely_enable_video_x11_xcursor=yes
  17266. fi
  17267. fi
  17268. fi
  17269. fi
  17270. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17271. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17272. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17273. fi
  17274. # Check whether --enable-video-x11-xinerama was given.
  17275. if test "${enable_video_x11_xinerama+set}" = set; then :
  17276. enableval=$enable_video_x11_xinerama;
  17277. else
  17278. enable_video_x11_xinerama=yes
  17279. fi
  17280. if test x$enable_video_x11_xinerama = xyes; then
  17281. definitely_enable_video_x11_xinerama=no
  17282. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17283. "
  17284. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17285. have_xinerama_h_hdr=yes
  17286. else
  17287. have_xinerama_h_hdr=no
  17288. fi
  17289. if test x$have_xinerama_h_hdr = xyes; then
  17290. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17291. echo "-- dynamic libXinerama -> $xinerama_lib"
  17292. cat >>confdefs.h <<_ACEOF
  17293. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17294. _ACEOF
  17295. definitely_enable_video_x11_xinerama=yes
  17296. else
  17297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17298. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17299. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17300. $as_echo_n "(cached) " >&6
  17301. else
  17302. ac_check_lib_save_LIBS=$LIBS
  17303. LIBS="-lXinerama $LIBS"
  17304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. /* Override any GCC internal prototype to avoid an error.
  17307. Use char because int might match the return type of a GCC
  17308. builtin and then its argument prototype would still apply. */
  17309. #ifdef __cplusplus
  17310. extern "C"
  17311. #endif
  17312. char XineramaQueryExtension ();
  17313. int
  17314. main ()
  17315. {
  17316. return XineramaQueryExtension ();
  17317. ;
  17318. return 0;
  17319. }
  17320. _ACEOF
  17321. if ac_fn_c_try_link "$LINENO"; then :
  17322. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17323. else
  17324. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17325. fi
  17326. rm -f core conftest.err conftest.$ac_objext \
  17327. conftest$ac_exeext conftest.$ac_ext
  17328. LIBS=$ac_check_lib_save_LIBS
  17329. fi
  17330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17331. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17332. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17333. have_xinerama_lib=yes
  17334. fi
  17335. if test x$have_xinerama_lib = xyes ; then
  17336. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17337. definitely_enable_video_x11_xinerama=yes
  17338. fi
  17339. fi
  17340. fi
  17341. fi
  17342. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17343. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17344. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17345. fi
  17346. # Check whether --enable-video-x11-xinput was given.
  17347. if test "${enable_video_x11_xinput+set}" = set; then :
  17348. enableval=$enable_video_x11_xinput;
  17349. else
  17350. enable_video_x11_xinput=yes
  17351. fi
  17352. if test x$enable_video_x11_xinput = xyes; then
  17353. definitely_enable_video_x11_xinput=no
  17354. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17355. "
  17356. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17357. have_xinput_h_hdr=yes
  17358. else
  17359. have_xinput_h_hdr=no
  17360. fi
  17361. if test x$have_xinput_h_hdr = xyes; then
  17362. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17363. echo "-- dynamic libXi -> $xinput_lib"
  17364. cat >>confdefs.h <<_ACEOF
  17365. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17366. _ACEOF
  17367. definitely_enable_video_x11_xinput=yes
  17368. else
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17370. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17371. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17372. $as_echo_n "(cached) " >&6
  17373. else
  17374. ac_check_lib_save_LIBS=$LIBS
  17375. LIBS="-lXi $LIBS"
  17376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17377. /* end confdefs.h. */
  17378. /* Override any GCC internal prototype to avoid an error.
  17379. Use char because int might match the return type of a GCC
  17380. builtin and then its argument prototype would still apply. */
  17381. #ifdef __cplusplus
  17382. extern "C"
  17383. #endif
  17384. char XOpenDevice ();
  17385. int
  17386. main ()
  17387. {
  17388. return XOpenDevice ();
  17389. ;
  17390. return 0;
  17391. }
  17392. _ACEOF
  17393. if ac_fn_c_try_link "$LINENO"; then :
  17394. ac_cv_lib_Xi_XOpenDevice=yes
  17395. else
  17396. ac_cv_lib_Xi_XOpenDevice=no
  17397. fi
  17398. rm -f core conftest.err conftest.$ac_objext \
  17399. conftest$ac_exeext conftest.$ac_ext
  17400. LIBS=$ac_check_lib_save_LIBS
  17401. fi
  17402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17403. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17404. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17405. have_xinput_lib=yes
  17406. fi
  17407. if test x$have_xinput_lib = xyes ; then
  17408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17409. definitely_enable_video_x11_xinput=yes
  17410. fi
  17411. fi
  17412. fi
  17413. fi
  17414. if test x$definitely_enable_video_x11_xinput = xyes; then
  17415. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17416. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17418. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17419. have_xinput2_multitouch=no
  17420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17421. /* end confdefs.h. */
  17422. #include <X11/Xlib.h>
  17423. #include <X11/Xproto.h>
  17424. #include <X11/extensions/XInput2.h>
  17425. int
  17426. main ()
  17427. {
  17428. int event_type = XI_TouchBegin;
  17429. XITouchClassInfo *t;
  17430. ;
  17431. return 0;
  17432. }
  17433. _ACEOF
  17434. if ac_fn_c_try_compile "$LINENO"; then :
  17435. have_xinput2_multitouch=yes
  17436. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17437. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17438. fi
  17439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17441. $as_echo "$have_xinput2_multitouch" >&6; }
  17442. fi
  17443. # Check whether --enable-video-x11-xrandr was given.
  17444. if test "${enable_video_x11_xrandr+set}" = set; then :
  17445. enableval=$enable_video_x11_xrandr;
  17446. else
  17447. enable_video_x11_xrandr=yes
  17448. fi
  17449. if test x$enable_video_x11_xrandr = xyes; then
  17450. definitely_enable_video_x11_xrandr=no
  17451. have_xrandr_h_hdr=no
  17452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17453. /* end confdefs.h. */
  17454. #include <X11/Xlib.h>
  17455. #include <X11/extensions/Xrandr.h>
  17456. int
  17457. main ()
  17458. {
  17459. XRRScreenResources *res = NULL;
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. if ac_fn_c_try_compile "$LINENO"; then :
  17465. have_xrandr_h_hdr=yes
  17466. fi
  17467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17468. if test x$have_xrandr_h_hdr = xyes; then
  17469. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17470. echo "-- dynamic libXrandr -> $xrandr_lib"
  17471. cat >>confdefs.h <<_ACEOF
  17472. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17473. _ACEOF
  17474. definitely_enable_video_x11_xrandr=yes
  17475. else
  17476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17477. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17478. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17479. $as_echo_n "(cached) " >&6
  17480. else
  17481. ac_check_lib_save_LIBS=$LIBS
  17482. LIBS="-lXrandr $LIBS"
  17483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17484. /* end confdefs.h. */
  17485. /* Override any GCC internal prototype to avoid an error.
  17486. Use char because int might match the return type of a GCC
  17487. builtin and then its argument prototype would still apply. */
  17488. #ifdef __cplusplus
  17489. extern "C"
  17490. #endif
  17491. char XRRQueryExtension ();
  17492. int
  17493. main ()
  17494. {
  17495. return XRRQueryExtension ();
  17496. ;
  17497. return 0;
  17498. }
  17499. _ACEOF
  17500. if ac_fn_c_try_link "$LINENO"; then :
  17501. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17502. else
  17503. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17504. fi
  17505. rm -f core conftest.err conftest.$ac_objext \
  17506. conftest$ac_exeext conftest.$ac_ext
  17507. LIBS=$ac_check_lib_save_LIBS
  17508. fi
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17510. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17511. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17512. have_xrandr_lib=yes
  17513. fi
  17514. if test x$have_xrandr_lib = xyes ; then
  17515. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17516. definitely_enable_video_x11_xrandr=yes
  17517. fi
  17518. fi
  17519. fi
  17520. fi
  17521. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17522. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17523. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17524. fi
  17525. # Check whether --enable-video-x11-scrnsaver was given.
  17526. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17527. enableval=$enable_video_x11_scrnsaver;
  17528. else
  17529. enable_video_x11_scrnsaver=yes
  17530. fi
  17531. if test x$enable_video_x11_scrnsaver = xyes; then
  17532. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17533. "
  17534. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17535. have_scrnsaver_h_hdr=yes
  17536. else
  17537. have_scrnsaver_h_hdr=no
  17538. fi
  17539. if test x$have_scrnsaver_h_hdr = xyes; then
  17540. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17541. echo "-- dynamic libXss -> $xss_lib"
  17542. cat >>confdefs.h <<_ACEOF
  17543. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17544. _ACEOF
  17545. definitely_enable_video_x11_scrnsaver=yes
  17546. else
  17547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17548. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17549. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17550. $as_echo_n "(cached) " >&6
  17551. else
  17552. ac_check_lib_save_LIBS=$LIBS
  17553. LIBS="-lXss $LIBS"
  17554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17555. /* end confdefs.h. */
  17556. /* Override any GCC internal prototype to avoid an error.
  17557. Use char because int might match the return type of a GCC
  17558. builtin and then its argument prototype would still apply. */
  17559. #ifdef __cplusplus
  17560. extern "C"
  17561. #endif
  17562. char XScreenSaverSuspend ();
  17563. int
  17564. main ()
  17565. {
  17566. return XScreenSaverSuspend ();
  17567. ;
  17568. return 0;
  17569. }
  17570. _ACEOF
  17571. if ac_fn_c_try_link "$LINENO"; then :
  17572. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17573. else
  17574. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17575. fi
  17576. rm -f core conftest.err conftest.$ac_objext \
  17577. conftest$ac_exeext conftest.$ac_ext
  17578. LIBS=$ac_check_lib_save_LIBS
  17579. fi
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17581. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17582. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17583. have_xss_lib=yes
  17584. fi
  17585. if test x$have_xss_lib = xyes ; then
  17586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17587. definitely_enable_video_x11_scrnsaver=yes
  17588. fi
  17589. fi
  17590. fi
  17591. fi
  17592. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17593. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17594. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17595. fi
  17596. # Check whether --enable-video-x11-xshape was given.
  17597. if test "${enable_video_x11_xshape+set}" = set; then :
  17598. enableval=$enable_video_x11_xshape;
  17599. else
  17600. enable_video_x11_xshape=yes
  17601. fi
  17602. if test x$enable_video_x11_xshape = xyes; then
  17603. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17604. "
  17605. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17606. have_shape_h_hdr=yes
  17607. else
  17608. have_shape_h_hdr=no
  17609. fi
  17610. if test x$have_shape_h_hdr = xyes; then
  17611. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17612. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17613. fi
  17614. fi
  17615. # Check whether --enable-video-x11-vm was given.
  17616. if test "${enable_video_x11_vm+set}" = set; then :
  17617. enableval=$enable_video_x11_vm;
  17618. else
  17619. enable_video_x11_vm=yes
  17620. fi
  17621. if test x$enable_video_x11_vm = xyes; then
  17622. definitely_enable_video_x11_vm=no
  17623. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17624. "
  17625. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17626. have_vm_h_hdr=yes
  17627. else
  17628. have_vm_h_hdr=no
  17629. fi
  17630. if test x$have_vm_h_hdr = xyes; then
  17631. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17632. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17633. cat >>confdefs.h <<_ACEOF
  17634. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17635. _ACEOF
  17636. definitely_enable_video_x11_vm=yes
  17637. else
  17638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17639. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17640. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17641. $as_echo_n "(cached) " >&6
  17642. else
  17643. ac_check_lib_save_LIBS=$LIBS
  17644. LIBS="-lXxf86vm $LIBS"
  17645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17646. /* end confdefs.h. */
  17647. /* Override any GCC internal prototype to avoid an error.
  17648. Use char because int might match the return type of a GCC
  17649. builtin and then its argument prototype would still apply. */
  17650. #ifdef __cplusplus
  17651. extern "C"
  17652. #endif
  17653. char XF86VidModeQueryVersion ();
  17654. int
  17655. main ()
  17656. {
  17657. return XF86VidModeQueryVersion ();
  17658. ;
  17659. return 0;
  17660. }
  17661. _ACEOF
  17662. if ac_fn_c_try_link "$LINENO"; then :
  17663. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17664. else
  17665. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext \
  17668. conftest$ac_exeext conftest.$ac_ext
  17669. LIBS=$ac_check_lib_save_LIBS
  17670. fi
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17672. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17673. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17674. have_vm_lib=yes
  17675. fi
  17676. if test x$have_vm_lib = xyes ; then
  17677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17678. definitely_enable_video_x11_vm=yes
  17679. fi
  17680. fi
  17681. fi
  17682. fi
  17683. if test x$definitely_enable_video_x11_vm = xyes; then
  17684. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17685. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17686. fi
  17687. fi
  17688. fi
  17689. }
  17690. CheckHaikuVideo()
  17691. {
  17692. if test x$enable_video = xyes; then
  17693. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17694. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17695. have_video=yes
  17696. SUMMARY_video="${SUMMARY_video} haiku"
  17697. fi
  17698. }
  17699. CheckCOCOA()
  17700. {
  17701. # Check whether --enable-video-cocoa was given.
  17702. if test "${enable_video_cocoa+set}" = set; then :
  17703. enableval=$enable_video_cocoa;
  17704. else
  17705. enable_video_cocoa=yes
  17706. fi
  17707. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17708. save_CFLAGS="$CFLAGS"
  17709. CFLAGS="$CFLAGS -x objective-c"
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17711. $as_echo_n "checking for Cocoa framework... " >&6; }
  17712. have_cocoa=no
  17713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17714. /* end confdefs.h. */
  17715. #import <Cocoa/Cocoa.h>
  17716. int
  17717. main ()
  17718. {
  17719. ;
  17720. return 0;
  17721. }
  17722. _ACEOF
  17723. if ac_fn_c_try_compile "$LINENO"; then :
  17724. have_cocoa=yes
  17725. fi
  17726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17728. $as_echo "$have_cocoa" >&6; }
  17729. CFLAGS="$save_CFLAGS"
  17730. if test x$have_cocoa = xyes; then
  17731. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17732. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17733. SUMMARY_video="${SUMMARY_video} cocoa"
  17734. have_video=yes
  17735. fi
  17736. fi
  17737. }
  17738. CheckDirectFB()
  17739. {
  17740. # Check whether --enable-video-directfb was given.
  17741. if test "${enable_video_directfb+set}" = set; then :
  17742. enableval=$enable_video_directfb;
  17743. else
  17744. enable_video_directfb=no
  17745. fi
  17746. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17747. video_directfb=no
  17748. DIRECTFB_REQUIRED_VERSION=1.0.0
  17749. for ac_prog in directfb-config
  17750. do
  17751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17752. set dummy $ac_prog; ac_word=$2
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17754. $as_echo_n "checking for $ac_word... " >&6; }
  17755. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17756. $as_echo_n "(cached) " >&6
  17757. else
  17758. case $DIRECTFBCONFIG in
  17759. [\\/]* | ?:[\\/]*)
  17760. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17761. ;;
  17762. *)
  17763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17764. as_dummy="$prefix/bin:$PATH"
  17765. for as_dir in $as_dummy
  17766. do
  17767. IFS=$as_save_IFS
  17768. test -z "$as_dir" && as_dir=.
  17769. for ac_exec_ext in '' $ac_executable_extensions; do
  17770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17771. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17773. break 2
  17774. fi
  17775. done
  17776. done
  17777. IFS=$as_save_IFS
  17778. ;;
  17779. esac
  17780. fi
  17781. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17782. if test -n "$DIRECTFBCONFIG"; then
  17783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17784. $as_echo "$DIRECTFBCONFIG" >&6; }
  17785. else
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17787. $as_echo "no" >&6; }
  17788. fi
  17789. test -n "$DIRECTFBCONFIG" && break
  17790. done
  17791. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17792. if test x$DIRECTFBCONFIG = xno; then
  17793. # Extract the first word of "pkg-config", so it can be a program name with args.
  17794. set dummy pkg-config; ac_word=$2
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17796. $as_echo_n "checking for $ac_word... " >&6; }
  17797. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17798. $as_echo_n "(cached) " >&6
  17799. else
  17800. case $PKG_CONFIG in
  17801. [\\/]* | ?:[\\/]*)
  17802. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17803. ;;
  17804. *)
  17805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17806. for as_dir in $PATH
  17807. do
  17808. IFS=$as_save_IFS
  17809. test -z "$as_dir" && as_dir=.
  17810. for ac_exec_ext in '' $ac_executable_extensions; do
  17811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17812. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17814. break 2
  17815. fi
  17816. done
  17817. done
  17818. IFS=$as_save_IFS
  17819. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17820. ;;
  17821. esac
  17822. fi
  17823. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17824. if test -n "$PKG_CONFIG"; then
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17826. $as_echo "$PKG_CONFIG" >&6; }
  17827. else
  17828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17829. $as_echo "no" >&6; }
  17830. fi
  17831. if test x$PKG_CONFIG != xno; then
  17832. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17833. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17834. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17835. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17836. video_directfb=yes
  17837. fi
  17838. fi
  17839. else
  17840. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17841. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17842. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17843. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17844. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17845. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17846. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17847. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17848. video_directfb=yes
  17849. fi
  17850. fi
  17851. if test x$video_directfb = xyes; then
  17852. # SuSE 11.1 installs directfb-config without directfb-devel
  17853. save_CPPFLAGS="$CPPFLAGS"
  17854. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17855. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17856. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17857. have_directfb_hdr=yes
  17858. else
  17859. have_directfb_hdr=no
  17860. fi
  17861. CPPFLAGS="$save_CPPFLAGS"
  17862. video_directfb=$have_directfb_hdr
  17863. fi
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17865. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17867. $as_echo "$video_directfb" >&6; }
  17868. if test x$video_directfb = xyes; then
  17869. # Check whether --enable-directfb-shared was given.
  17870. if test "${enable_directfb_shared+set}" = set; then :
  17871. enableval=$enable_directfb_shared;
  17872. else
  17873. enable_directfb_shared=yes
  17874. fi
  17875. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17876. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17877. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17878. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17880. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17881. directfb_shared=no
  17882. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17883. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17885. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17886. if test x$have_loadso != xyes && \
  17887. test x$enable_directfb_shared = xyes; then
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17889. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17890. fi
  17891. if test x$have_loadso = xyes && \
  17892. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17893. directfb_shared=yes
  17894. echo "-- $directfb_lib_spec -> $directfb_lib"
  17895. cat >>confdefs.h <<_ACEOF
  17896. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17897. _ACEOF
  17898. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17899. else
  17900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17901. SUMMARY_video="${SUMMARY_video} directfb"
  17902. fi
  17903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17904. $as_echo "$directfb_shared" >&6; }
  17905. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17906. have_video=yes
  17907. fi
  17908. fi
  17909. }
  17910. CheckFusionSound()
  17911. {
  17912. # Check whether --enable-fusionsound was given.
  17913. if test "${enable_fusionsound+set}" = set; then :
  17914. enableval=$enable_fusionsound;
  17915. else
  17916. enable_fusionsound=no
  17917. fi
  17918. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17919. fusionsound=no
  17920. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  17921. # Extract the first word of "pkg-config", so it can be a program name with args.
  17922. set dummy pkg-config; ac_word=$2
  17923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17924. $as_echo_n "checking for $ac_word... " >&6; }
  17925. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17926. $as_echo_n "(cached) " >&6
  17927. else
  17928. case $PKG_CONFIG in
  17929. [\\/]* | ?:[\\/]*)
  17930. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17931. ;;
  17932. *)
  17933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17934. for as_dir in $PATH
  17935. do
  17936. IFS=$as_save_IFS
  17937. test -z "$as_dir" && as_dir=.
  17938. for ac_exec_ext in '' $ac_executable_extensions; do
  17939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17940. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17942. break 2
  17943. fi
  17944. done
  17945. done
  17946. IFS=$as_save_IFS
  17947. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17948. ;;
  17949. esac
  17950. fi
  17951. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17952. if test -n "$PKG_CONFIG"; then
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17954. $as_echo "$PKG_CONFIG" >&6; }
  17955. else
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17957. $as_echo "no" >&6; }
  17958. fi
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  17960. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  17961. if test x$PKG_CONFIG != xno; then
  17962. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  17963. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  17964. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  17965. fusionsound=yes
  17966. fi
  17967. fi
  17968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  17969. $as_echo "$fusionsound" >&6; }
  17970. if test x$fusionsound = xyes; then
  17971. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17972. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17973. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17974. # Check whether --enable-fusionsound-shared was given.
  17975. if test "${enable_fusionsound_shared+set}" = set; then :
  17976. enableval=$enable_fusionsound_shared;
  17977. else
  17978. enable_fusionsound_shared=yes
  17979. fi
  17980. fusionsound_shared=no
  17981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17982. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17983. if test x$have_loadso != xyes && \
  17984. test x$enable_fusionsound_shared = xyes; then
  17985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17986. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17987. fi
  17988. if test x$have_loadso = xyes && \
  17989. test x$enable_fusionsound_shared = xyes; then
  17990. cat >>confdefs.h <<_ACEOF
  17991. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17992. _ACEOF
  17993. fusionsound_shared=yes
  17994. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17995. else
  17996. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17997. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17998. fi
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18000. $as_echo "$fusionsound_shared" >&6; }
  18001. have_audio=yes
  18002. fi
  18003. fi
  18004. }
  18005. CheckDummyVideo()
  18006. {
  18007. # Check whether --enable-video-dummy was given.
  18008. if test "${enable_video_dummy+set}" = set; then :
  18009. enableval=$enable_video_dummy;
  18010. else
  18011. enable_video_dummy=yes
  18012. fi
  18013. if test x$enable_video_dummy = xyes; then
  18014. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18015. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18016. have_video=yes
  18017. SUMMARY_video="${SUMMARY_video} dummy"
  18018. fi
  18019. }
  18020. # Check whether --enable-video-opengl was given.
  18021. if test "${enable_video_opengl+set}" = set; then :
  18022. enableval=$enable_video_opengl;
  18023. else
  18024. enable_video_opengl=yes
  18025. fi
  18026. CheckOpenGLX11()
  18027. {
  18028. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18030. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18031. video_opengl=no
  18032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18033. /* end confdefs.h. */
  18034. #include <GL/gl.h>
  18035. #include <GL/glx.h>
  18036. int
  18037. main ()
  18038. {
  18039. ;
  18040. return 0;
  18041. }
  18042. _ACEOF
  18043. if ac_fn_c_try_compile "$LINENO"; then :
  18044. video_opengl=yes
  18045. fi
  18046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18048. $as_echo "$video_opengl" >&6; }
  18049. if test x$video_opengl = xyes; then
  18050. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18051. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18052. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18053. SUMMARY_video="${SUMMARY_video} opengl"
  18054. fi
  18055. fi
  18056. }
  18057. # Check whether --enable-video-opengles was given.
  18058. if test "${enable_video_opengles+set}" = set; then :
  18059. enableval=$enable_video_opengles;
  18060. else
  18061. enable_video_opengles=yes
  18062. fi
  18063. CheckOpenGLESX11()
  18064. {
  18065. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18067. $as_echo_n "checking for EGL support... " >&6; }
  18068. video_opengl_egl=no
  18069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18070. /* end confdefs.h. */
  18071. #include <EGL/egl.h>
  18072. int
  18073. main ()
  18074. {
  18075. ;
  18076. return 0;
  18077. }
  18078. _ACEOF
  18079. if ac_fn_c_try_compile "$LINENO"; then :
  18080. video_opengl_egl=yes
  18081. fi
  18082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18084. $as_echo "$video_opengl_egl" >&6; }
  18085. if test x$video_opengl_egl = xyes; then
  18086. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18087. fi
  18088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18089. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18090. video_opengles_v1=no
  18091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18092. /* end confdefs.h. */
  18093. #include <GLES/gl.h>
  18094. #include <GLES/glext.h>
  18095. int
  18096. main ()
  18097. {
  18098. ;
  18099. return 0;
  18100. }
  18101. _ACEOF
  18102. if ac_fn_c_try_compile "$LINENO"; then :
  18103. video_opengles_v1=yes
  18104. fi
  18105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18107. $as_echo "$video_opengles_v1" >&6; }
  18108. if test x$video_opengles_v1 = xyes; then
  18109. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18110. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18111. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18112. fi
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18114. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18115. video_opengles_v2=no
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #include <GLES2/gl2.h>
  18119. #include <GLES2/gl2ext.h>
  18120. int
  18121. main ()
  18122. {
  18123. ;
  18124. return 0;
  18125. }
  18126. _ACEOF
  18127. if ac_fn_c_try_compile "$LINENO"; then :
  18128. video_opengles_v2=yes
  18129. fi
  18130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18132. $as_echo "$video_opengles_v2" >&6; }
  18133. if test x$video_opengles_v2 = xyes; then
  18134. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18135. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18136. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18137. fi
  18138. fi
  18139. }
  18140. CheckWINDOWSGL()
  18141. {
  18142. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18143. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18144. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18145. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18146. SUMMARY_video="${SUMMARY_video} opengl"
  18147. fi
  18148. }
  18149. CheckWINDOWSGLES()
  18150. {
  18151. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18153. $as_echo_n "checking for EGL support... " >&6; }
  18154. video_opengl_egl=no
  18155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18156. /* end confdefs.h. */
  18157. #include <EGL/egl.h>
  18158. int
  18159. main ()
  18160. {
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. if ac_fn_c_try_compile "$LINENO"; then :
  18166. video_opengl_egl=yes
  18167. fi
  18168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18170. $as_echo "$video_opengl_egl" >&6; }
  18171. if test x$video_opengl_egl = xyes; then
  18172. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18173. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18174. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18175. fi
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18177. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18178. video_opengles_v2=no
  18179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18180. /* end confdefs.h. */
  18181. #include <GLES2/gl2.h>
  18182. #include <GLES2/gl2ext.h>
  18183. int
  18184. main ()
  18185. {
  18186. ;
  18187. return 0;
  18188. }
  18189. _ACEOF
  18190. if ac_fn_c_try_compile "$LINENO"; then :
  18191. video_opengles_v2=yes
  18192. fi
  18193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18195. $as_echo "$video_opengles_v2" >&6; }
  18196. if test x$video_opengles_v2 = xyes; then
  18197. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18198. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18199. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18200. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18201. fi
  18202. fi
  18203. }
  18204. CheckHaikuGL()
  18205. {
  18206. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18207. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18208. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18209. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18211. SUMMARY_video="${SUMMARY_video} opengl"
  18212. fi
  18213. }
  18214. CheckMacGL()
  18215. {
  18216. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18217. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18218. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18219. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18220. SUMMARY_video="${SUMMARY_video} opengl"
  18221. fi
  18222. }
  18223. CheckInputEvents()
  18224. {
  18225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18226. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18227. use_input_events=no
  18228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18229. /* end confdefs.h. */
  18230. #include <linux/input.h>
  18231. int
  18232. main ()
  18233. {
  18234. #ifndef EVIOCGNAME
  18235. #error EVIOCGNAME() ioctl not available
  18236. #endif
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_compile "$LINENO"; then :
  18242. use_input_events=yes
  18243. fi
  18244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18246. $as_echo "$use_input_events" >&6; }
  18247. if test x$use_input_events = xyes; then
  18248. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18249. SUMMARY_input="${SUMMARY_input} linuxev"
  18250. fi
  18251. }
  18252. CheckInputKD()
  18253. {
  18254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18255. $as_echo_n "checking for Linux kd.h... " >&6; }
  18256. use_input_kd=no
  18257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18258. /* end confdefs.h. */
  18259. #include <linux/kd.h>
  18260. #include <linux/keyboard.h>
  18261. int
  18262. main ()
  18263. {
  18264. struct kbentry kbe;
  18265. kbe.kb_table = KG_CTRL;
  18266. ioctl(0, KDGKBENT, &kbe);
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. if ac_fn_c_try_compile "$LINENO"; then :
  18272. use_input_kd=yes
  18273. fi
  18274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18276. $as_echo "$use_input_kd" >&6; }
  18277. if test x$use_input_kd = xyes; then
  18278. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18279. SUMMARY_input="${SUMMARY_input} linuxkd"
  18280. fi
  18281. }
  18282. CheckLibUDev()
  18283. {
  18284. # Check whether --enable-libudev was given.
  18285. if test "${enable_libudev+set}" = set; then :
  18286. enableval=$enable_libudev;
  18287. else
  18288. enable_libudev=yes
  18289. fi
  18290. if test x$enable_libudev = xyes; then
  18291. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18292. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18293. have_libudev_h_hdr=yes
  18294. else
  18295. have_libudev_h_hdr=no
  18296. fi
  18297. if test x$have_libudev_h_hdr = xyes; then
  18298. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18299. fi
  18300. fi
  18301. }
  18302. CheckDBus()
  18303. {
  18304. # Check whether --enable-dbus was given.
  18305. if test "${enable_dbus+set}" = set; then :
  18306. enableval=$enable_dbus;
  18307. else
  18308. enable_dbus=yes
  18309. fi
  18310. if test x$enable_dbus = xyes; then
  18311. # Extract the first word of "pkg-config", so it can be a program name with args.
  18312. set dummy pkg-config; ac_word=$2
  18313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18314. $as_echo_n "checking for $ac_word... " >&6; }
  18315. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18316. $as_echo_n "(cached) " >&6
  18317. else
  18318. case $PKG_CONFIG in
  18319. [\\/]* | ?:[\\/]*)
  18320. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18321. ;;
  18322. *)
  18323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18324. for as_dir in $PATH
  18325. do
  18326. IFS=$as_save_IFS
  18327. test -z "$as_dir" && as_dir=.
  18328. for ac_exec_ext in '' $ac_executable_extensions; do
  18329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18330. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18332. break 2
  18333. fi
  18334. done
  18335. done
  18336. IFS=$as_save_IFS
  18337. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18338. ;;
  18339. esac
  18340. fi
  18341. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18342. if test -n "$PKG_CONFIG"; then
  18343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18344. $as_echo "$PKG_CONFIG" >&6; }
  18345. else
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18347. $as_echo "no" >&6; }
  18348. fi
  18349. if test x$PKG_CONFIG != xno; then
  18350. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18351. save_CFLAGS="$CFLAGS"
  18352. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18353. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18354. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18355. have_dbus_dbus_h_hdr=yes
  18356. else
  18357. have_dbus_dbus_h_hdr=no
  18358. fi
  18359. CFLAGS="$save_CFLAGS"
  18360. if test x$have_dbus_dbus_h_hdr = xyes; then
  18361. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18362. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18363. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18364. fi
  18365. fi
  18366. fi
  18367. }
  18368. CheckIBus()
  18369. {
  18370. # Check whether --enable-ibus was given.
  18371. if test "${enable_ibus+set}" = set; then :
  18372. enableval=$enable_ibus;
  18373. else
  18374. enable_ibus=yes
  18375. fi
  18376. if test x$enable_ibus = xyes; then
  18377. # Extract the first word of "pkg-config", so it can be a program name with args.
  18378. set dummy pkg-config; ac_word=$2
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18380. $as_echo_n "checking for $ac_word... " >&6; }
  18381. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18382. $as_echo_n "(cached) " >&6
  18383. else
  18384. case $PKG_CONFIG in
  18385. [\\/]* | ?:[\\/]*)
  18386. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18387. ;;
  18388. *)
  18389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18390. for as_dir in $PATH
  18391. do
  18392. IFS=$as_save_IFS
  18393. test -z "$as_dir" && as_dir=.
  18394. for ac_exec_ext in '' $ac_executable_extensions; do
  18395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18396. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18398. break 2
  18399. fi
  18400. done
  18401. done
  18402. IFS=$as_save_IFS
  18403. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18404. ;;
  18405. esac
  18406. fi
  18407. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18408. if test -n "$PKG_CONFIG"; then
  18409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18410. $as_echo "$PKG_CONFIG" >&6; }
  18411. else
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18413. $as_echo "no" >&6; }
  18414. fi
  18415. if test x$PKG_CONFIG != xno; then
  18416. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18417. save_CFLAGS="$CFLAGS"
  18418. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18419. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18420. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18421. have_ibus_ibus_h_hdr=yes
  18422. else
  18423. have_ibus_ibus_h_hdr=no
  18424. fi
  18425. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18426. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18427. have_inotify_inotify_h_hdr=yes
  18428. else
  18429. have_inotify_inotify_h_hdr=no
  18430. fi
  18431. CFLAGS="$save_CFLAGS"
  18432. if test x$have_ibus_ibus_h_hdr = xyes; then
  18433. if test x$enable_dbus != xyes; then
  18434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18435. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18436. have_ibus_ibus_h_hdr=no
  18437. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18439. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18440. have_ibus_ibus_h_hdr=no
  18441. else
  18442. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18443. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18444. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18445. fi
  18446. fi
  18447. fi
  18448. fi
  18449. }
  18450. CheckTslib()
  18451. {
  18452. # Check whether --enable-input-tslib was given.
  18453. if test "${enable_input_tslib+set}" = set; then :
  18454. enableval=$enable_input_tslib;
  18455. else
  18456. enable_input_tslib=yes
  18457. fi
  18458. if test x$enable_input_tslib = xyes; then
  18459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18460. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18461. enable_input_tslib=no
  18462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18463. /* end confdefs.h. */
  18464. #include "tslib.h"
  18465. int
  18466. main ()
  18467. {
  18468. ;
  18469. return 0;
  18470. }
  18471. _ACEOF
  18472. if ac_fn_c_try_compile "$LINENO"; then :
  18473. enable_input_tslib=yes
  18474. fi
  18475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18477. $as_echo "$enable_input_tslib" >&6; }
  18478. if test x$enable_input_tslib = xyes; then
  18479. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18480. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18481. SUMMARY_input="${SUMMARY_input} ts"
  18482. fi
  18483. fi
  18484. }
  18485. CheckPTHREAD()
  18486. {
  18487. # Check whether --enable-pthreads was given.
  18488. if test "${enable_pthreads+set}" = set; then :
  18489. enableval=$enable_pthreads;
  18490. else
  18491. enable_pthreads=yes
  18492. fi
  18493. # Check whether --enable-pthread-sem was given.
  18494. if test "${enable_pthread_sem+set}" = set; then :
  18495. enableval=$enable_pthread_sem;
  18496. else
  18497. enable_pthread_sem=yes
  18498. fi
  18499. case "$host" in
  18500. *-*-androideabi*)
  18501. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18502. pthread_lib=""
  18503. ;;
  18504. *-*-linux*|*-*-uclinux*)
  18505. pthread_cflags="-D_REENTRANT"
  18506. pthread_lib="-lpthread"
  18507. ;;
  18508. *-*-bsdi*)
  18509. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18510. pthread_lib=""
  18511. ;;
  18512. *-*-darwin*)
  18513. pthread_cflags="-D_THREAD_SAFE"
  18514. # causes Carbon.p complaints?
  18515. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18516. ;;
  18517. *-*-freebsd*|*-*-dragonfly*)
  18518. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18519. pthread_lib="-pthread"
  18520. ;;
  18521. *-*-netbsd*)
  18522. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18523. pthread_lib="-lpthread"
  18524. ;;
  18525. *-*-openbsd*)
  18526. pthread_cflags="-D_REENTRANT"
  18527. pthread_lib="-pthread"
  18528. ;;
  18529. *-*-solaris2.9)
  18530. # From Solaris 9+, posix4's preferred name is rt.
  18531. pthread_cflags="-D_REENTRANT"
  18532. pthread_lib="-lpthread -lrt"
  18533. ;;
  18534. *-*-solaris2.10)
  18535. # Solaris 10+ merged pthread into libc.
  18536. pthread_cflags="-D_REENTRANT"
  18537. pthread_lib="-lrt"
  18538. ;;
  18539. *-*-solaris*)
  18540. # Solaris 11+ merged rt into libc.
  18541. pthread_cflags="-D_REENTRANT"
  18542. pthread_lib=""
  18543. ;;
  18544. *-*-sysv5*)
  18545. pthread_cflags="-D_REENTRANT -Kthread"
  18546. pthread_lib=""
  18547. ;;
  18548. *-*-aix*)
  18549. pthread_cflags="-D_REENTRANT -mthreads"
  18550. pthread_lib="-lpthread"
  18551. ;;
  18552. *-*-hpux11*)
  18553. pthread_cflags="-D_REENTRANT"
  18554. pthread_lib="-L/usr/lib -lpthread"
  18555. ;;
  18556. *-*-haiku*)
  18557. pthread_cflags="-D_REENTRANT"
  18558. pthread_lib=""
  18559. ;;
  18560. *)
  18561. pthread_cflags="-D_REENTRANT"
  18562. pthread_lib="-lpthread"
  18563. ;;
  18564. esac
  18565. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18566. # Save the original compiler flags and libraries
  18567. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18568. # Add the pthread compiler flags and libraries
  18569. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18570. # Check to see if we have pthread support on this system
  18571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18572. $as_echo_n "checking for pthreads... " >&6; }
  18573. use_pthreads=no
  18574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18575. /* end confdefs.h. */
  18576. #include <pthread.h>
  18577. int
  18578. main ()
  18579. {
  18580. pthread_attr_t type;
  18581. pthread_attr_init(&type);
  18582. ;
  18583. return 0;
  18584. }
  18585. _ACEOF
  18586. if ac_fn_c_try_link "$LINENO"; then :
  18587. use_pthreads=yes
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext \
  18590. conftest$ac_exeext conftest.$ac_ext
  18591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18592. $as_echo "$use_pthreads" >&6; }
  18593. # Restore the compiler flags and libraries
  18594. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18595. # Do futher testing if we have pthread support...
  18596. if test x$use_pthreads = xyes; then
  18597. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18598. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18599. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18600. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18601. SDL_LIBS="$SDL_LIBS $pthread_lib"
  18602. # Save the original compiler flags and libraries
  18603. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18604. # Add the pthread compiler flags and libraries
  18605. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18606. # Check to see if recursive mutexes are available
  18607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18608. $as_echo_n "checking for recursive mutexes... " >&6; }
  18609. has_recursive_mutexes=no
  18610. if test x$has_recursive_mutexes = xno; then
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. #include <pthread.h>
  18614. int
  18615. main ()
  18616. {
  18617. pthread_mutexattr_t attr;
  18618. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18619. ;
  18620. return 0;
  18621. }
  18622. _ACEOF
  18623. if ac_fn_c_try_compile "$LINENO"; then :
  18624. has_recursive_mutexes=yes
  18625. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18626. fi
  18627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18628. fi
  18629. if test x$has_recursive_mutexes = xno; then
  18630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18631. /* end confdefs.h. */
  18632. #include <pthread.h>
  18633. int
  18634. main ()
  18635. {
  18636. pthread_mutexattr_t attr;
  18637. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18638. ;
  18639. return 0;
  18640. }
  18641. _ACEOF
  18642. if ac_fn_c_try_compile "$LINENO"; then :
  18643. has_recursive_mutexes=yes
  18644. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18645. fi
  18646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18647. fi
  18648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18649. $as_echo "$has_recursive_mutexes" >&6; }
  18650. # Check to see if pthread semaphore support is missing
  18651. if test x$enable_pthread_sem = xyes; then
  18652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18653. $as_echo_n "checking for pthread semaphores... " >&6; }
  18654. have_pthread_sem=no
  18655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18656. /* end confdefs.h. */
  18657. #include <pthread.h>
  18658. #include <semaphore.h>
  18659. int
  18660. main ()
  18661. {
  18662. ;
  18663. return 0;
  18664. }
  18665. _ACEOF
  18666. if ac_fn_c_try_compile "$LINENO"; then :
  18667. have_pthread_sem=yes
  18668. fi
  18669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18671. $as_echo "$have_pthread_sem" >&6; }
  18672. fi
  18673. if test x$have_pthread_sem = xyes; then
  18674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18675. $as_echo_n "checking for sem_timedwait... " >&6; }
  18676. have_sem_timedwait=no
  18677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18678. /* end confdefs.h. */
  18679. #include <pthread.h>
  18680. #include <semaphore.h>
  18681. int
  18682. main ()
  18683. {
  18684. sem_timedwait(NULL, NULL);
  18685. ;
  18686. return 0;
  18687. }
  18688. _ACEOF
  18689. if ac_fn_c_try_link "$LINENO"; then :
  18690. have_sem_timedwait=yes
  18691. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18692. fi
  18693. rm -f core conftest.err conftest.$ac_objext \
  18694. conftest$ac_exeext conftest.$ac_ext
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18696. $as_echo "$have_sem_timedwait" >&6; }
  18697. fi
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spin_trylock" >&5
  18699. $as_echo_n "checking for pthread_spin_trylock... " >&6; }
  18700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18701. /* end confdefs.h. */
  18702. /* Override any GCC internal prototype to avoid an error.
  18703. Use char because int might match the return type of a GCC
  18704. builtin and then its argument prototype would still apply. */
  18705. #ifdef __cplusplus
  18706. extern "C"
  18707. #endif
  18708. char pthread_spin_trylock ();
  18709. int
  18710. main ()
  18711. {
  18712. return pthread_spin_trylock ();
  18713. ;
  18714. return 0;
  18715. }
  18716. _ACEOF
  18717. if ac_fn_c_try_link "$LINENO"; then :
  18718. has_pthread_spin_trylock=yes
  18719. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  18720. else
  18721. has_pthread_spin_trylock=no
  18722. fi
  18723. rm -f core conftest.err conftest.$ac_objext \
  18724. conftest$ac_exeext conftest.$ac_ext
  18725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_spin_trylock" >&5
  18726. $as_echo "$has_pthread_spin_trylock" >&6; }
  18727. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18728. "
  18729. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18730. have_pthread_np_h=yes
  18731. else
  18732. have_pthread_np_h=no
  18733. fi
  18734. if test x$have_pthread_np_h = xyes; then
  18735. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18736. fi
  18737. # Check to see if pthread naming is available
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18739. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18741. /* end confdefs.h. */
  18742. /* Override any GCC internal prototype to avoid an error.
  18743. Use char because int might match the return type of a GCC
  18744. builtin and then its argument prototype would still apply. */
  18745. #ifdef __cplusplus
  18746. extern "C"
  18747. #endif
  18748. char pthread_setname_np ();
  18749. int
  18750. main ()
  18751. {
  18752. return pthread_setname_np ();
  18753. ;
  18754. return 0;
  18755. }
  18756. _ACEOF
  18757. if ac_fn_c_try_link "$LINENO"; then :
  18758. has_pthread_setname_np=yes
  18759. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18760. else
  18761. has_pthread_setname_np=no
  18762. fi
  18763. rm -f core conftest.err conftest.$ac_objext \
  18764. conftest$ac_exeext conftest.$ac_ext
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18766. $as_echo "$has_pthread_setname_np" >&6; }
  18767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18768. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18770. /* end confdefs.h. */
  18771. /* Override any GCC internal prototype to avoid an error.
  18772. Use char because int might match the return type of a GCC
  18773. builtin and then its argument prototype would still apply. */
  18774. #ifdef __cplusplus
  18775. extern "C"
  18776. #endif
  18777. char pthread_set_name_np ();
  18778. int
  18779. main ()
  18780. {
  18781. return pthread_set_name_np ();
  18782. ;
  18783. return 0;
  18784. }
  18785. _ACEOF
  18786. if ac_fn_c_try_link "$LINENO"; then :
  18787. has_pthread_set_name_np=yes
  18788. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18789. else
  18790. has_pthread_set_name_np=no
  18791. fi
  18792. rm -f core conftest.err conftest.$ac_objext \
  18793. conftest$ac_exeext conftest.$ac_ext
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18795. $as_echo "$has_pthread_set_name_np" >&6; }
  18796. # Restore the compiler flags and libraries
  18797. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18798. # Basic thread creation functions
  18799. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18800. # Semaphores
  18801. # We can fake these with mutexes and condition variables if necessary
  18802. if test x$have_pthread_sem = xyes; then
  18803. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18804. else
  18805. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18806. fi
  18807. # Mutexes
  18808. # We can fake these with semaphores if necessary
  18809. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18810. # Condition variables
  18811. # We can fake these with semaphores and mutexes if necessary
  18812. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18813. # Thread local storage
  18814. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18815. have_threads=yes
  18816. fi
  18817. fi
  18818. }
  18819. CheckWINDOWS()
  18820. {
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18822. $as_echo_n "checking Windows compiler... " >&6; }
  18823. have_win32_gcc=no
  18824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18825. /* end confdefs.h. */
  18826. #include <windows.h>
  18827. int
  18828. main ()
  18829. {
  18830. ;
  18831. return 0;
  18832. }
  18833. _ACEOF
  18834. if ac_fn_c_try_compile "$LINENO"; then :
  18835. have_win32_gcc=yes
  18836. fi
  18837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18839. $as_echo "$have_win32_gcc" >&6; }
  18840. if test x$have_win32_gcc != xyes; then
  18841. as_fn_error $? "
  18842. *** Your compiler ($CC) does not produce Windows executables!
  18843. " "$LINENO" 5
  18844. fi
  18845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18846. $as_echo_n "checking Windows CE... " >&6; }
  18847. have_wince=no
  18848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18849. /* end confdefs.h. */
  18850. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18851. #error This is not Windows CE
  18852. #endif
  18853. int
  18854. main ()
  18855. {
  18856. ;
  18857. return 0;
  18858. }
  18859. _ACEOF
  18860. if ac_fn_c_try_compile "$LINENO"; then :
  18861. have_wince=yes
  18862. as_fn_error $? "
  18863. *** Sorry, Windows CE is no longer supported.
  18864. " "$LINENO" 5
  18865. fi
  18866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18868. $as_echo "$have_wince" >&6; }
  18869. # This fixes Windows stack alignment with newer GCC
  18870. CheckStackBoundary
  18871. }
  18872. CheckDIRECTX()
  18873. {
  18874. # Check whether --enable-directx was given.
  18875. if test "${enable_directx+set}" = set; then :
  18876. enableval=$enable_directx;
  18877. else
  18878. enable_directx=yes
  18879. fi
  18880. if test x$enable_directx = xyes; then
  18881. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  18882. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  18883. have_d3d=yes
  18884. fi
  18885. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  18886. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  18887. have_d3d11=yes
  18888. fi
  18889. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  18890. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  18891. have_ddraw=yes
  18892. fi
  18893. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  18894. if test "x$ac_cv_header_dsound_h" = xyes; then :
  18895. have_dsound=yes
  18896. fi
  18897. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  18898. if test "x$ac_cv_header_dinput_h" = xyes; then :
  18899. have_dinput=yes
  18900. fi
  18901. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  18902. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  18903. have_xaudio2=yes
  18904. fi
  18905. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  18906. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  18907. have_dxgi=yes
  18908. fi
  18909. SUMMARY_video="${SUMMARY_video} directx"
  18910. SUMMARY_audio="${SUMMARY_audio} directx"
  18911. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  18912. # FIXME: ...so force it off for now.
  18913. case "$host" in
  18914. *-*-cygwin*)
  18915. have_dinput=false
  18916. ;;
  18917. esac
  18918. fi
  18919. }
  18920. CheckDLOPEN()
  18921. {
  18922. # Check whether --enable-sdl-dlopen was given.
  18923. if test "${enable_sdl_dlopen+set}" = set; then :
  18924. enableval=$enable_sdl_dlopen;
  18925. else
  18926. enable_sdl_dlopen=yes
  18927. fi
  18928. if test x$enable_sdl_dlopen = xyes; then
  18929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  18930. $as_echo_n "checking for dlopen... " >&6; }
  18931. have_dlopen=no
  18932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18933. /* end confdefs.h. */
  18934. #include <dlfcn.h>
  18935. int
  18936. main ()
  18937. {
  18938. void *handle = dlopen("", RTLD_NOW);
  18939. const char *loaderror = (char *) dlerror();
  18940. ;
  18941. return 0;
  18942. }
  18943. _ACEOF
  18944. if ac_fn_c_try_compile "$LINENO"; then :
  18945. have_dlopen=yes
  18946. fi
  18947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  18949. $as_echo "$have_dlopen" >&6; }
  18950. if test x$have_dlopen = xyes; then
  18951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  18952. $as_echo_n "checking for dlopen in -lc... " >&6; }
  18953. if ${ac_cv_lib_c_dlopen+:} false; then :
  18954. $as_echo_n "(cached) " >&6
  18955. else
  18956. ac_check_lib_save_LIBS=$LIBS
  18957. LIBS="-lc $LIBS"
  18958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18959. /* end confdefs.h. */
  18960. /* Override any GCC internal prototype to avoid an error.
  18961. Use char because int might match the return type of a GCC
  18962. builtin and then its argument prototype would still apply. */
  18963. #ifdef __cplusplus
  18964. extern "C"
  18965. #endif
  18966. char dlopen ();
  18967. int
  18968. main ()
  18969. {
  18970. return dlopen ();
  18971. ;
  18972. return 0;
  18973. }
  18974. _ACEOF
  18975. if ac_fn_c_try_link "$LINENO"; then :
  18976. ac_cv_lib_c_dlopen=yes
  18977. else
  18978. ac_cv_lib_c_dlopen=no
  18979. fi
  18980. rm -f core conftest.err conftest.$ac_objext \
  18981. conftest$ac_exeext conftest.$ac_ext
  18982. LIBS=$ac_check_lib_save_LIBS
  18983. fi
  18984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  18985. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  18986. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  18987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  18988. else
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  18990. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  18991. if ${ac_cv_lib_dl_dlopen+:} false; then :
  18992. $as_echo_n "(cached) " >&6
  18993. else
  18994. ac_check_lib_save_LIBS=$LIBS
  18995. LIBS="-ldl $LIBS"
  18996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18997. /* end confdefs.h. */
  18998. /* Override any GCC internal prototype to avoid an error.
  18999. Use char because int might match the return type of a GCC
  19000. builtin and then its argument prototype would still apply. */
  19001. #ifdef __cplusplus
  19002. extern "C"
  19003. #endif
  19004. char dlopen ();
  19005. int
  19006. main ()
  19007. {
  19008. return dlopen ();
  19009. ;
  19010. return 0;
  19011. }
  19012. _ACEOF
  19013. if ac_fn_c_try_link "$LINENO"; then :
  19014. ac_cv_lib_dl_dlopen=yes
  19015. else
  19016. ac_cv_lib_dl_dlopen=no
  19017. fi
  19018. rm -f core conftest.err conftest.$ac_objext \
  19019. conftest$ac_exeext conftest.$ac_ext
  19020. LIBS=$ac_check_lib_save_LIBS
  19021. fi
  19022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19023. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19024. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19026. else
  19027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19028. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19029. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19030. $as_echo_n "(cached) " >&6
  19031. else
  19032. ac_check_lib_save_LIBS=$LIBS
  19033. LIBS="-lltdl $LIBS"
  19034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19035. /* end confdefs.h. */
  19036. /* Override any GCC internal prototype to avoid an error.
  19037. Use char because int might match the return type of a GCC
  19038. builtin and then its argument prototype would still apply. */
  19039. #ifdef __cplusplus
  19040. extern "C"
  19041. #endif
  19042. char dlopen ();
  19043. int
  19044. main ()
  19045. {
  19046. return dlopen ();
  19047. ;
  19048. return 0;
  19049. }
  19050. _ACEOF
  19051. if ac_fn_c_try_link "$LINENO"; then :
  19052. ac_cv_lib_ltdl_dlopen=yes
  19053. else
  19054. ac_cv_lib_ltdl_dlopen=no
  19055. fi
  19056. rm -f core conftest.err conftest.$ac_objext \
  19057. conftest$ac_exeext conftest.$ac_ext
  19058. LIBS=$ac_check_lib_save_LIBS
  19059. fi
  19060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19061. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19062. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19064. fi
  19065. fi
  19066. fi
  19067. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19068. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19069. have_loadso=yes
  19070. fi
  19071. fi
  19072. }
  19073. CheckUSBHID()
  19074. {
  19075. case "$host" in
  19076. *-*-*bsd*)
  19077. if test x$enable_joystick = xyes; then
  19078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19079. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19080. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19081. $as_echo_n "(cached) " >&6
  19082. else
  19083. ac_check_lib_save_LIBS=$LIBS
  19084. LIBS="-lusbhid $LIBS"
  19085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19086. /* end confdefs.h. */
  19087. /* Override any GCC internal prototype to avoid an error.
  19088. Use char because int might match the return type of a GCC
  19089. builtin and then its argument prototype would still apply. */
  19090. #ifdef __cplusplus
  19091. extern "C"
  19092. #endif
  19093. char hid_init ();
  19094. int
  19095. main ()
  19096. {
  19097. return hid_init ();
  19098. ;
  19099. return 0;
  19100. }
  19101. _ACEOF
  19102. if ac_fn_c_try_link "$LINENO"; then :
  19103. ac_cv_lib_usbhid_hid_init=yes
  19104. else
  19105. ac_cv_lib_usbhid_hid_init=no
  19106. fi
  19107. rm -f core conftest.err conftest.$ac_objext \
  19108. conftest$ac_exeext conftest.$ac_ext
  19109. LIBS=$ac_check_lib_save_LIBS
  19110. fi
  19111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19112. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19113. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19114. have_libusbhid=yes
  19115. fi
  19116. if test x$have_libusbhid = xyes; then
  19117. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19118. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19119. USB_CFLAGS="-DHAVE_USBHID_H"
  19120. fi
  19121. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19122. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19123. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19124. fi
  19125. USB_LIBS="$USB_LIBS -lusbhid"
  19126. else
  19127. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19128. if test "x$ac_cv_header_usb_h" = xyes; then :
  19129. USB_CFLAGS="-DHAVE_USB_H"
  19130. fi
  19131. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19132. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19133. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19134. fi
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19136. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19137. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19138. $as_echo_n "(cached) " >&6
  19139. else
  19140. ac_check_lib_save_LIBS=$LIBS
  19141. LIBS="-lusb $LIBS"
  19142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19143. /* end confdefs.h. */
  19144. /* Override any GCC internal prototype to avoid an error.
  19145. Use char because int might match the return type of a GCC
  19146. builtin and then its argument prototype would still apply. */
  19147. #ifdef __cplusplus
  19148. extern "C"
  19149. #endif
  19150. char hid_init ();
  19151. int
  19152. main ()
  19153. {
  19154. return hid_init ();
  19155. ;
  19156. return 0;
  19157. }
  19158. _ACEOF
  19159. if ac_fn_c_try_link "$LINENO"; then :
  19160. ac_cv_lib_usb_hid_init=yes
  19161. else
  19162. ac_cv_lib_usb_hid_init=no
  19163. fi
  19164. rm -f core conftest.err conftest.$ac_objext \
  19165. conftest$ac_exeext conftest.$ac_ext
  19166. LIBS=$ac_check_lib_save_LIBS
  19167. fi
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19169. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19170. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19171. USB_LIBS="$USB_LIBS -lusb"
  19172. fi
  19173. fi
  19174. save_CFLAGS="$CFLAGS"
  19175. CFLAGS="$CFLAGS $USB_CFLAGS"
  19176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19177. $as_echo_n "checking for usbhid... " >&6; }
  19178. have_usbhid=no
  19179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19180. /* end confdefs.h. */
  19181. #include <sys/types.h>
  19182. #if defined(HAVE_USB_H)
  19183. #include <usb.h>
  19184. #endif
  19185. #ifdef __DragonFly__
  19186. # include <bus/usb/usb.h>
  19187. # include <bus/usb/usbhid.h>
  19188. #else
  19189. # include <dev/usb/usb.h>
  19190. # include <dev/usb/usbhid.h>
  19191. #endif
  19192. #if defined(HAVE_USBHID_H)
  19193. #include <usbhid.h>
  19194. #elif defined(HAVE_LIBUSB_H)
  19195. #include <libusb.h>
  19196. #elif defined(HAVE_LIBUSBHID_H)
  19197. #include <libusbhid.h>
  19198. #endif
  19199. int
  19200. main ()
  19201. {
  19202. struct report_desc *repdesc;
  19203. struct usb_ctl_report *repbuf;
  19204. hid_kind_t hidkind;
  19205. ;
  19206. return 0;
  19207. }
  19208. _ACEOF
  19209. if ac_fn_c_try_compile "$LINENO"; then :
  19210. have_usbhid=yes
  19211. fi
  19212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19214. $as_echo "$have_usbhid" >&6; }
  19215. if test x$have_usbhid = xyes; then
  19216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19217. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19218. have_usbhid_ucr_data=no
  19219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19220. /* end confdefs.h. */
  19221. #include <sys/types.h>
  19222. #if defined(HAVE_USB_H)
  19223. #include <usb.h>
  19224. #endif
  19225. #ifdef __DragonFly__
  19226. # include <bus/usb/usb.h>
  19227. # include <bus/usb/usbhid.h>
  19228. #else
  19229. # include <dev/usb/usb.h>
  19230. # include <dev/usb/usbhid.h>
  19231. #endif
  19232. #if defined(HAVE_USBHID_H)
  19233. #include <usbhid.h>
  19234. #elif defined(HAVE_LIBUSB_H)
  19235. #include <libusb.h>
  19236. #elif defined(HAVE_LIBUSBHID_H)
  19237. #include <libusbhid.h>
  19238. #endif
  19239. int
  19240. main ()
  19241. {
  19242. struct usb_ctl_report buf;
  19243. if (buf.ucr_data) { }
  19244. ;
  19245. return 0;
  19246. }
  19247. _ACEOF
  19248. if ac_fn_c_try_compile "$LINENO"; then :
  19249. have_usbhid_ucr_data=yes
  19250. fi
  19251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19252. if test x$have_usbhid_ucr_data = xyes; then
  19253. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19254. fi
  19255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19256. $as_echo "$have_usbhid_ucr_data" >&6; }
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19258. $as_echo_n "checking for new usbhid API... " >&6; }
  19259. have_usbhid_new=no
  19260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19261. /* end confdefs.h. */
  19262. #include <sys/types.h>
  19263. #if defined(HAVE_USB_H)
  19264. #include <usb.h>
  19265. #endif
  19266. #ifdef __DragonFly__
  19267. #include <bus/usb/usb.h>
  19268. #include <bus/usb/usbhid.h>
  19269. #else
  19270. #include <dev/usb/usb.h>
  19271. #include <dev/usb/usbhid.h>
  19272. #endif
  19273. #if defined(HAVE_USBHID_H)
  19274. #include <usbhid.h>
  19275. #elif defined(HAVE_LIBUSB_H)
  19276. #include <libusb.h>
  19277. #elif defined(HAVE_LIBUSBHID_H)
  19278. #include <libusbhid.h>
  19279. #endif
  19280. int
  19281. main ()
  19282. {
  19283. report_desc_t d;
  19284. hid_start_parse(d, 1, 1);
  19285. ;
  19286. return 0;
  19287. }
  19288. _ACEOF
  19289. if ac_fn_c_try_compile "$LINENO"; then :
  19290. have_usbhid_new=yes
  19291. fi
  19292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19293. if test x$have_usbhid_new = xyes; then
  19294. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19295. fi
  19296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19297. $as_echo "$have_usbhid_new" >&6; }
  19298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19299. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19300. have_machine_joystick=no
  19301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19302. /* end confdefs.h. */
  19303. #include <machine/joystick.h>
  19304. int
  19305. main ()
  19306. {
  19307. struct joystick t;
  19308. ;
  19309. return 0;
  19310. }
  19311. _ACEOF
  19312. if ac_fn_c_try_compile "$LINENO"; then :
  19313. have_machine_joystick=yes
  19314. fi
  19315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19316. if test x$have_machine_joystick = xyes; then
  19317. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19318. fi
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19320. $as_echo "$have_machine_joystick" >&6; }
  19321. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19322. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19323. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19324. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19325. have_joystick=yes
  19326. fi
  19327. CFLAGS="$save_CFLAGS"
  19328. fi
  19329. ;;
  19330. esac
  19331. }
  19332. CheckClockGettime()
  19333. {
  19334. # Check whether --enable-clock_gettime was given.
  19335. if test "${enable_clock_gettime+set}" = set; then :
  19336. enableval=$enable_clock_gettime;
  19337. else
  19338. enable_clock_gettime=yes
  19339. fi
  19340. if test x$enable_clock_gettime = xyes; then
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19342. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19343. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19344. $as_echo_n "(cached) " >&6
  19345. else
  19346. ac_check_lib_save_LIBS=$LIBS
  19347. LIBS="-lrt $LIBS"
  19348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. /* Override any GCC internal prototype to avoid an error.
  19351. Use char because int might match the return type of a GCC
  19352. builtin and then its argument prototype would still apply. */
  19353. #ifdef __cplusplus
  19354. extern "C"
  19355. #endif
  19356. char clock_gettime ();
  19357. int
  19358. main ()
  19359. {
  19360. return clock_gettime ();
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_link "$LINENO"; then :
  19366. ac_cv_lib_rt_clock_gettime=yes
  19367. else
  19368. ac_cv_lib_rt_clock_gettime=no
  19369. fi
  19370. rm -f core conftest.err conftest.$ac_objext \
  19371. conftest$ac_exeext conftest.$ac_ext
  19372. LIBS=$ac_check_lib_save_LIBS
  19373. fi
  19374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19375. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19376. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19377. have_clock_gettime=yes
  19378. fi
  19379. if test x$have_clock_gettime = xyes; then
  19380. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19381. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19382. else
  19383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19384. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19385. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19386. $as_echo_n "(cached) " >&6
  19387. else
  19388. ac_check_lib_save_LIBS=$LIBS
  19389. LIBS="-lc $LIBS"
  19390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19391. /* end confdefs.h. */
  19392. /* Override any GCC internal prototype to avoid an error.
  19393. Use char because int might match the return type of a GCC
  19394. builtin and then its argument prototype would still apply. */
  19395. #ifdef __cplusplus
  19396. extern "C"
  19397. #endif
  19398. char clock_gettime ();
  19399. int
  19400. main ()
  19401. {
  19402. return clock_gettime ();
  19403. ;
  19404. return 0;
  19405. }
  19406. _ACEOF
  19407. if ac_fn_c_try_link "$LINENO"; then :
  19408. ac_cv_lib_c_clock_gettime=yes
  19409. else
  19410. ac_cv_lib_c_clock_gettime=no
  19411. fi
  19412. rm -f core conftest.err conftest.$ac_objext \
  19413. conftest$ac_exeext conftest.$ac_ext
  19414. LIBS=$ac_check_lib_save_LIBS
  19415. fi
  19416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19417. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19418. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19419. have_clock_gettime=yes
  19420. fi
  19421. if test x$have_clock_gettime = xyes; then
  19422. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19424. fi
  19425. fi
  19426. fi
  19427. }
  19428. CheckLinuxVersion()
  19429. {
  19430. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19431. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19432. have_linux_version_h=yes
  19433. fi
  19434. if test x$have_linux_version_h = xyes; then
  19435. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19436. fi
  19437. }
  19438. CheckRPATH()
  19439. {
  19440. # Check whether --enable-rpath was given.
  19441. if test "${enable_rpath+set}" = set; then :
  19442. enableval=$enable_rpath;
  19443. else
  19444. enable_rpath=yes
  19445. fi
  19446. }
  19447. case "$host" in
  19448. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19449. case "$host" in
  19450. *-raspberry-linux*)
  19451. # Raspberry Pi
  19452. ARCH=linux
  19453. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19454. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19455. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19456. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19458. if test x$enable_video = xyes; then
  19459. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19460. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19461. fi
  19462. ;;
  19463. *-*-androideabi*)
  19464. # Android
  19465. ARCH=android
  19466. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19467. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19468. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19469. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19471. if test x$enable_video = xyes; then
  19472. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19473. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19474. SUMMARY_video="${SUMMARY_video} android"
  19475. fi
  19476. ;;
  19477. *-*-linux*) ARCH=linux ;;
  19478. *-*-uclinux*) ARCH=linux ;;
  19479. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19480. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19481. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19482. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19483. *-*-bsdi*) ARCH=bsdi ;;
  19484. *-*-freebsd*) ARCH=freebsd ;;
  19485. *-*-dragonfly*) ARCH=freebsd ;;
  19486. *-*-netbsd*) ARCH=netbsd ;;
  19487. *-*-openbsd*) ARCH=openbsd ;;
  19488. *-*-sysv5*) ARCH=sysv5 ;;
  19489. *-*-solaris*) ARCH=solaris ;;
  19490. *-*-hpux*) ARCH=hpux ;;
  19491. *-*-aix*) ARCH=aix ;;
  19492. *-*-minix*) ARCH=minix ;;
  19493. esac
  19494. CheckVisibilityHidden
  19495. CheckDummyVideo
  19496. CheckDiskAudio
  19497. CheckDummyAudio
  19498. CheckDLOPEN
  19499. CheckOSS
  19500. CheckALSA
  19501. CheckPulseAudio
  19502. CheckARTSC
  19503. CheckESD
  19504. CheckNAS
  19505. CheckSNDIO
  19506. CheckX11
  19507. CheckDirectFB
  19508. CheckFusionSound
  19509. CheckOpenGLX11
  19510. CheckOpenGLESX11
  19511. CheckMir
  19512. CheckWayland
  19513. CheckLibUDev
  19514. CheckDBus
  19515. CheckIBus
  19516. CheckInputEvents
  19517. CheckInputKD
  19518. CheckTslib
  19519. CheckUSBHID
  19520. CheckPTHREAD
  19521. CheckClockGettime
  19522. CheckLinuxVersion
  19523. CheckRPATH
  19524. # Set up files for the audio library
  19525. if test x$enable_audio = xyes; then
  19526. case $ARCH in
  19527. sysv5|solaris|hpux)
  19528. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19529. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19530. have_audio=yes
  19531. ;;
  19532. netbsd) # Don't use this on OpenBSD, it's busted.
  19533. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19534. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19535. have_audio=yes
  19536. ;;
  19537. aix)
  19538. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19539. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19540. have_audio=yes
  19541. ;;
  19542. android)
  19543. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19544. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19545. SUMMARY_audio="${SUMMARY_audio} android"
  19546. have_audio=yes
  19547. ;;
  19548. esac
  19549. fi
  19550. # Set up files for the joystick library
  19551. if test x$enable_joystick = xyes; then
  19552. case $ARCH in
  19553. linux)
  19554. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19555. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19556. have_joystick=yes
  19557. ;;
  19558. android)
  19559. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19560. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19561. have_joystick=yes
  19562. ;;
  19563. esac
  19564. fi
  19565. # Set up files for the haptic library
  19566. if test x$enable_haptic = xyes; then
  19567. if test x$use_input_events = xyes; then
  19568. case $ARCH in
  19569. linux)
  19570. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19571. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19572. have_haptic=yes
  19573. ;;
  19574. esac
  19575. fi
  19576. fi
  19577. # Set up files for the power library
  19578. if test x$enable_power = xyes; then
  19579. case $ARCH in
  19580. linux)
  19581. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19582. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19583. have_power=yes
  19584. ;;
  19585. android)
  19586. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19587. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19588. have_power=yes
  19589. ;;
  19590. esac
  19591. fi
  19592. # Set up files for the filesystem library
  19593. if test x$enable_filesystem = xyes; then
  19594. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19595. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19596. have_filesystem=yes
  19597. fi
  19598. # Set up files for the timer library
  19599. if test x$enable_timers = xyes; then
  19600. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19601. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19602. have_timers=yes
  19603. fi
  19604. # Set up files for udev hotplugging support
  19605. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19606. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19607. fi
  19608. # Set up files for evdev input
  19609. if test x$use_input_events = xyes; then
  19610. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19611. fi
  19612. ;;
  19613. *-*-cygwin* | *-*-mingw32*)
  19614. ARCH=win32
  19615. if test "$build" != "$host"; then # cross-compiling
  19616. # Default cross-compile location
  19617. ac_default_prefix=/usr/local/cross-tools/$host
  19618. else
  19619. # Look for the location of the tools and install there
  19620. if test "$BUILD_PREFIX" != ""; then
  19621. ac_default_prefix=$BUILD_PREFIX
  19622. fi
  19623. fi
  19624. CheckDummyVideo
  19625. CheckDiskAudio
  19626. CheckDummyAudio
  19627. CheckWINDOWS
  19628. CheckWINDOWSGL
  19629. CheckWINDOWSGLES
  19630. CheckDIRECTX
  19631. # Set up the core platform files
  19632. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19633. # Set up files for the video library
  19634. if test x$enable_video = xyes; then
  19635. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19636. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19637. have_video=yes
  19638. # Check whether --enable-render-d3d was given.
  19639. if test "${enable_render_d3d+set}" = set; then :
  19640. enableval=$enable_render_d3d;
  19641. else
  19642. enable_render_d3d=yes
  19643. fi
  19644. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19645. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19646. fi
  19647. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19648. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19649. fi
  19650. fi
  19651. if test x$have_dxgi = xyes; then
  19652. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19653. fi
  19654. # Set up files for the audio library
  19655. if test x$enable_audio = xyes; then
  19656. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19657. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19658. if test x$have_dsound = xyes; then
  19659. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19660. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19661. fi
  19662. if test x$have_xaudio2 = xyes; then
  19663. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19664. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19665. fi
  19666. have_audio=yes
  19667. fi
  19668. # Set up files for the joystick library
  19669. if test x$enable_joystick = xyes; then
  19670. if test x$have_dinput = xyes; then
  19671. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19672. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_dxjoystick.c"
  19673. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19674. else
  19675. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19676. SOURCES="$SOURCES $srcdir/src/joystick/windows/SDL_mmjoystick.c"
  19677. fi
  19678. have_joystick=yes
  19679. fi
  19680. if test x$enable_haptic = xyes; then
  19681. if test x$have_dinput = xyes; then
  19682. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19683. SOURCES="$SOURCES $srcdir/src/haptic/windows/SDL_syshaptic.c"
  19684. have_haptic=yes
  19685. fi
  19686. fi
  19687. if test x$enable_power = xyes; then
  19688. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19689. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19690. have_power=yes
  19691. fi
  19692. if test x$enable_filesystem = xyes; then
  19693. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19694. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19695. have_filesystem=yes
  19696. fi
  19697. # Set up files for the thread library
  19698. if test x$enable_threads = xyes; then
  19699. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19700. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19701. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19702. have_threads=yes
  19703. fi
  19704. # Set up files for the timer library
  19705. if test x$enable_timers = xyes; then
  19706. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19707. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19708. have_timers=yes
  19709. fi
  19710. # Set up files for the shared object loading library
  19711. if test x$enable_loadso = xyes; then
  19712. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19713. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19714. have_loadso=yes
  19715. fi
  19716. # Set up the system libraries we need
  19717. if test -f /lib/w32api/libuuid.a; then
  19718. LIBUUID=/lib/w32api/libuuid.a
  19719. else
  19720. LIBUUID=-luuid
  19721. fi
  19722. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -XCClinker -static-libgcc"
  19723. # The Windows platform requires special setup
  19724. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19725. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19726. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19727. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19728. # Check to see if this is a mingw or cygwin build
  19729. have_mingw32=
  19730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19731. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19732. if ${ac_cv_lib_mingw32_main+:} false; then :
  19733. $as_echo_n "(cached) " >&6
  19734. else
  19735. ac_check_lib_save_LIBS=$LIBS
  19736. LIBS="-lmingw32 $LIBS"
  19737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19738. /* end confdefs.h. */
  19739. int
  19740. main ()
  19741. {
  19742. return main ();
  19743. ;
  19744. return 0;
  19745. }
  19746. _ACEOF
  19747. if ac_fn_c_try_link "$LINENO"; then :
  19748. ac_cv_lib_mingw32_main=yes
  19749. else
  19750. ac_cv_lib_mingw32_main=no
  19751. fi
  19752. rm -f core conftest.err conftest.$ac_objext \
  19753. conftest$ac_exeext conftest.$ac_ext
  19754. LIBS=$ac_check_lib_save_LIBS
  19755. fi
  19756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19757. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19758. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19759. have_mingw32=yes
  19760. fi
  19761. if test x$have_mingw32 = xyes; then
  19762. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19763. else
  19764. SDL_LIBS="-lcygwin $SDL_LIBS"
  19765. fi
  19766. ;;
  19767. *-*-beos*)
  19768. as_fn_error $? "
  19769. *** BeOS support has been removed as of SDL 2.0.2.
  19770. " "$LINENO" 5
  19771. ;;
  19772. *-*-haiku*)
  19773. ARCH=haiku
  19774. ac_default_prefix=/boot/system
  19775. CheckDummyVideo
  19776. CheckDiskAudio
  19777. CheckDummyAudio
  19778. CheckHaikuVideo
  19779. CheckHaikuGL
  19780. CheckPTHREAD
  19781. # Set up files for the audio library
  19782. if test x$enable_audio = xyes; then
  19783. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19784. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19785. have_audio=yes
  19786. fi
  19787. # Set up files for the joystick library
  19788. if test x$enable_joystick = xyes; then
  19789. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19790. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19791. have_joystick=yes
  19792. fi
  19793. # Set up files for the timer library
  19794. if test x$enable_timers = xyes; then
  19795. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19796. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19797. have_timers=yes
  19798. fi
  19799. # Set up files for the shared object loading library
  19800. if test x$enable_loadso = xyes; then
  19801. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19802. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19803. have_loadso=yes
  19804. fi
  19805. # Set up files for the system power library
  19806. if test x$enable_power = xyes; then
  19807. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19808. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19809. have_power=yes
  19810. fi
  19811. # Set up files for the system filesystem library
  19812. if test x$enable_filesystem = xyes; then
  19813. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19814. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19815. have_filesystem=yes
  19816. fi
  19817. # The Haiku platform requires special setup.
  19818. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19819. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19820. ;;
  19821. arm*-apple-darwin*)
  19822. # iOS - We are not writing anything to confdefs.h because you have to replace
  19823. # SDL_config.h for SDL_config_iphoneos.h anyway
  19824. ARCH=ios
  19825. CheckVisibilityHidden
  19826. CheckDummyVideo
  19827. CheckDiskAudio
  19828. CheckDummyAudio
  19829. CheckDLOPEN
  19830. CheckCOCOA
  19831. CheckPTHREAD
  19832. # Set up files for the audio library
  19833. if test x$enable_audio = xyes; then
  19834. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19835. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19836. have_audio=yes
  19837. fi
  19838. # Set up files for the joystick library
  19839. if test x$enable_joystick = xyes; then
  19840. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  19841. have_joystick=yes
  19842. fi
  19843. # Set up files for the haptic library
  19844. #if test x$enable_haptic = xyes; then
  19845. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19846. # have_haptic=yes
  19847. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19848. #fi
  19849. # Set up files for the power library
  19850. if test x$enable_power = xyes; then
  19851. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  19852. have_power=yes
  19853. fi
  19854. # Set up files for the filesystem library
  19855. if test x$enable_filesystem = xyes; then
  19856. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19857. have_filesystem=yes
  19858. fi
  19859. # Set up files for the timer library
  19860. if test x$enable_timers = xyes; then
  19861. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19862. have_timers=yes
  19863. fi
  19864. # Set up additional files for the file library
  19865. if test x$enable_file = xyes; then
  19866. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19867. fi
  19868. # The iOS platform requires special setup.
  19869. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  19870. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  19872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  19873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  19874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  19875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  19876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  19877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  19878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  19879. ;;
  19880. *-*-darwin* )
  19881. # This could be either full "Mac OS X", or plain "Darwin" which is
  19882. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  19883. # Next line is broken, and a few files below require Mac OS X (full)
  19884. ARCH=macosx
  19885. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  19886. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  19887. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  19888. CheckVisibilityHidden
  19889. CheckDummyVideo
  19890. CheckDiskAudio
  19891. CheckDummyAudio
  19892. CheckDLOPEN
  19893. CheckCOCOA
  19894. CheckX11
  19895. CheckMacGL
  19896. CheckOpenGLX11
  19897. CheckPTHREAD
  19898. # Set up files for the audio library
  19899. if test x$enable_audio = xyes; then
  19900. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  19901. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  19902. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  19903. have_audio=yes
  19904. fi
  19905. # Set up files for the joystick library
  19906. if test x$enable_joystick = xyes; then
  19907. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  19908. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  19909. have_joystick=yes
  19910. fi
  19911. # Set up files for the haptic library
  19912. if test x$enable_haptic = xyes; then
  19913. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  19914. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  19915. have_haptic=yes
  19916. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  19917. fi
  19918. # Set up files for the power library
  19919. if test x$enable_power = xyes; then
  19920. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  19921. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  19922. have_power=yes
  19923. fi
  19924. # Set up files for the filesystem library
  19925. if test x$enable_filesystem = xyes; then
  19926. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  19927. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  19928. have_filesystem=yes
  19929. fi
  19930. # Set up files for the timer library
  19931. if test x$enable_timers = xyes; then
  19932. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19933. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19934. have_timers=yes
  19935. fi
  19936. # Set up additional files for the file library
  19937. if test x$enable_file = xyes; then
  19938. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  19939. fi
  19940. # The Mac OS X platform requires special setup.
  19941. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  19942. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  19943. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  19944. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  19945. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  19946. # If audio is used, add the AudioUnit framework
  19947. if test x$enable_audio = xyes; then
  19948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  19949. fi
  19950. ;;
  19951. *-nacl|*-pnacl)
  19952. ARCH=nacl
  19953. CheckNativeClient
  19954. CheckDummyAudio
  19955. CheckDummyVideo
  19956. CheckInputEvents
  19957. CheckPTHREAD
  19958. # Set up files for the timer library
  19959. if test x$enable_timers = xyes; then
  19960. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19961. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19962. have_timers=yes
  19963. fi
  19964. if test x$enable_filesystem = xyes; then
  19965. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  19966. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  19967. have_filesystem=yes
  19968. fi
  19969. ;;
  19970. *)
  19971. as_fn_error $? "
  19972. *** Unsupported host: Please add to configure.in
  19973. " "$LINENO" 5
  19974. ;;
  19975. esac
  19976. CheckWarnAll
  19977. #CheckWarnShadow
  19978. # Verify that we have all the platform specific files we need
  19979. if test x$have_joystick != xyes; then
  19980. if test x$enable_joystick = xyes; then
  19981. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  19982. fi
  19983. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  19984. fi
  19985. if test x$have_haptic != xyes; then
  19986. if test x$enable_haptic = xyes; then
  19987. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  19988. fi
  19989. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  19990. fi
  19991. if test x$have_threads != xyes; then
  19992. if test x$enable_threads = xyes; then
  19993. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  19994. fi
  19995. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  19996. fi
  19997. if test x$have_timers != xyes; then
  19998. if test x$enable_timers = xyes; then
  19999. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20000. fi
  20001. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20002. fi
  20003. if test x$have_filesystem != xyes; then
  20004. if test x$enable_filesystem = xyes; then
  20005. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20006. fi
  20007. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20008. fi
  20009. if test x$have_loadso != xyes; then
  20010. if test x$enable_loadso = xyes; then
  20011. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20012. fi
  20013. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20014. fi
  20015. if test x$SDLMAIN_SOURCES = x; then
  20016. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20017. fi
  20018. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20019. OBJECTS=`echo $SOURCES`
  20020. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20021. for EXT in asm cc m c S; do
  20022. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20023. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20024. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20025. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20026. done
  20027. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20028. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20029. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20030. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20031. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20032. \\$(WINDRES) \\$< \\$@,g"`
  20033. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20034. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20035. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20036. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20037. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20038. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20039. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20040. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20041. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20042. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20043. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20044. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20045. # Set runtime shared library paths as needed
  20046. if test "x$enable_rpath" = "xyes"; then
  20047. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20048. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20049. fi
  20050. if test $ARCH = solaris; then
  20051. SDL_RLD_FLAGS="-R\${libdir}"
  20052. fi
  20053. else
  20054. SDL_RLD_FLAGS=""
  20055. fi
  20056. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20057. if test x$enable_shared = xyes; then
  20058. ENABLE_SHARED_TRUE=
  20059. ENABLE_SHARED_FALSE="#"
  20060. else
  20061. ENABLE_SHARED_TRUE="#"
  20062. ENABLE_SHARED_FALSE=
  20063. fi
  20064. if test x$enable_static = xyes; then
  20065. ENABLE_STATIC_TRUE=
  20066. ENABLE_STATIC_FALSE="#"
  20067. else
  20068. ENABLE_STATIC_TRUE="#"
  20069. ENABLE_STATIC_FALSE=
  20070. fi
  20071. cat >Makefile.rules <<__EOF__
  20072. # Build rules for objects
  20073. -include \$(OBJECTS:.lo=.d)
  20074. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20075. $srcdir/src/SDL.c: update-revision
  20076. $DEPENDS
  20077. $VERSION_DEPENDS
  20078. $SDLMAIN_DEPENDS
  20079. $SDLTEST_DEPENDS
  20080. __EOF__
  20081. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  20082. ac_config_commands="$ac_config_commands sdl2_config"
  20083. SUMMARY="SDL2 Configure Summary:\n"
  20084. if test x$enable_shared = xyes; then
  20085. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20086. fi
  20087. if test x$enable_static = xyes; then
  20088. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20089. fi
  20090. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20091. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20092. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20093. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20094. if test x$have_x = xyes; then
  20095. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20096. fi
  20097. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20098. if test x$enable_libudev = xyes; then
  20099. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20100. else
  20101. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20102. fi
  20103. if test x$have_dbus_dbus_h_hdr = xyes; then
  20104. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20105. else
  20106. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20107. fi
  20108. if test x$have_ibus_ibus_h_hdr = xyes; then
  20109. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20110. else
  20111. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20112. fi
  20113. ac_config_commands="$ac_config_commands summary"
  20114. cat >confcache <<\_ACEOF
  20115. # This file is a shell script that caches the results of configure
  20116. # tests run on this system so they can be shared between configure
  20117. # scripts and configure runs, see configure's option --config-cache.
  20118. # It is not useful on other systems. If it contains results you don't
  20119. # want to keep, you may remove or edit it.
  20120. #
  20121. # config.status only pays attention to the cache file if you give it
  20122. # the --recheck option to rerun configure.
  20123. #
  20124. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20125. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20126. # following values.
  20127. _ACEOF
  20128. # The following way of writing the cache mishandles newlines in values,
  20129. # but we know of no workaround that is simple, portable, and efficient.
  20130. # So, we kill variables containing newlines.
  20131. # Ultrix sh set writes to stderr and can't be redirected directly,
  20132. # and sets the high bit in the cache file unless we assign to the vars.
  20133. (
  20134. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20135. eval ac_val=\$$ac_var
  20136. case $ac_val in #(
  20137. *${as_nl}*)
  20138. case $ac_var in #(
  20139. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20140. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20141. esac
  20142. case $ac_var in #(
  20143. _ | IFS | as_nl) ;; #(
  20144. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20145. *) { eval $ac_var=; unset $ac_var;} ;;
  20146. esac ;;
  20147. esac
  20148. done
  20149. (set) 2>&1 |
  20150. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20151. *${as_nl}ac_space=\ *)
  20152. # `set' does not quote correctly, so add quotes: double-quote
  20153. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20154. sed -n \
  20155. "s/'/'\\\\''/g;
  20156. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20157. ;; #(
  20158. *)
  20159. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20160. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20161. ;;
  20162. esac |
  20163. sort
  20164. ) |
  20165. sed '
  20166. /^ac_cv_env_/b end
  20167. t clear
  20168. :clear
  20169. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20170. t end
  20171. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20172. :end' >>confcache
  20173. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20174. if test -w "$cache_file"; then
  20175. if test "x$cache_file" != "x/dev/null"; then
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20177. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20178. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20179. cat confcache >"$cache_file"
  20180. else
  20181. case $cache_file in #(
  20182. */* | ?:*)
  20183. mv -f confcache "$cache_file"$$ &&
  20184. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20185. *)
  20186. mv -f confcache "$cache_file" ;;
  20187. esac
  20188. fi
  20189. fi
  20190. else
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20192. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20193. fi
  20194. fi
  20195. rm -f confcache
  20196. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20197. # Let make expand exec_prefix.
  20198. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20199. DEFS=-DHAVE_CONFIG_H
  20200. ac_libobjs=
  20201. ac_ltlibobjs=
  20202. U=
  20203. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20204. # 1. Remove the extension, and $U if already installed.
  20205. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20206. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20207. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20208. # will be set to the directory where LIBOBJS objects are built.
  20209. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20210. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20211. done
  20212. LIBOBJS=$ac_libobjs
  20213. LTLIBOBJS=$ac_ltlibobjs
  20214. : "${CONFIG_STATUS=./config.status}"
  20215. ac_write_fail=0
  20216. ac_clean_files_save=$ac_clean_files
  20217. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20218. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20219. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20220. as_write_fail=0
  20221. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20222. #! $SHELL
  20223. # Generated by $as_me.
  20224. # Run this file to recreate the current configuration.
  20225. # Compiler output produced by configure, useful for debugging
  20226. # configure, is in config.log if it exists.
  20227. debug=false
  20228. ac_cs_recheck=false
  20229. ac_cs_silent=false
  20230. SHELL=\${CONFIG_SHELL-$SHELL}
  20231. export SHELL
  20232. _ASEOF
  20233. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20234. ## -------------------- ##
  20235. ## M4sh Initialization. ##
  20236. ## -------------------- ##
  20237. # Be more Bourne compatible
  20238. DUALCASE=1; export DUALCASE # for MKS sh
  20239. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20240. emulate sh
  20241. NULLCMD=:
  20242. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20243. # is contrary to our usage. Disable this feature.
  20244. alias -g '${1+"$@"}'='"$@"'
  20245. setopt NO_GLOB_SUBST
  20246. else
  20247. case `(set -o) 2>/dev/null` in #(
  20248. *posix*) :
  20249. set -o posix ;; #(
  20250. *) :
  20251. ;;
  20252. esac
  20253. fi
  20254. as_nl='
  20255. '
  20256. export as_nl
  20257. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20258. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20259. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20260. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20261. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20262. # but without wasting forks for bash or zsh.
  20263. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20264. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20265. as_echo='print -r --'
  20266. as_echo_n='print -rn --'
  20267. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20268. as_echo='printf %s\n'
  20269. as_echo_n='printf %s'
  20270. else
  20271. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20272. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20273. as_echo_n='/usr/ucb/echo -n'
  20274. else
  20275. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20276. as_echo_n_body='eval
  20277. arg=$1;
  20278. case $arg in #(
  20279. *"$as_nl"*)
  20280. expr "X$arg" : "X\\(.*\\)$as_nl";
  20281. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20282. esac;
  20283. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20284. '
  20285. export as_echo_n_body
  20286. as_echo_n='sh -c $as_echo_n_body as_echo'
  20287. fi
  20288. export as_echo_body
  20289. as_echo='sh -c $as_echo_body as_echo'
  20290. fi
  20291. # The user is always right.
  20292. if test "${PATH_SEPARATOR+set}" != set; then
  20293. PATH_SEPARATOR=:
  20294. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20295. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20296. PATH_SEPARATOR=';'
  20297. }
  20298. fi
  20299. # IFS
  20300. # We need space, tab and new line, in precisely that order. Quoting is
  20301. # there to prevent editors from complaining about space-tab.
  20302. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20303. # splitting by setting IFS to empty value.)
  20304. IFS=" "" $as_nl"
  20305. # Find who we are. Look in the path if we contain no directory separator.
  20306. as_myself=
  20307. case $0 in #((
  20308. *[\\/]* ) as_myself=$0 ;;
  20309. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20310. for as_dir in $PATH
  20311. do
  20312. IFS=$as_save_IFS
  20313. test -z "$as_dir" && as_dir=.
  20314. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20315. done
  20316. IFS=$as_save_IFS
  20317. ;;
  20318. esac
  20319. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20320. # in which case we are not to be found in the path.
  20321. if test "x$as_myself" = x; then
  20322. as_myself=$0
  20323. fi
  20324. if test ! -f "$as_myself"; then
  20325. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20326. exit 1
  20327. fi
  20328. # Unset variables that we do not need and which cause bugs (e.g. in
  20329. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20330. # suppresses any "Segmentation fault" message there. '((' could
  20331. # trigger a bug in pdksh 5.2.14.
  20332. for as_var in BASH_ENV ENV MAIL MAILPATH
  20333. do eval test x\${$as_var+set} = xset \
  20334. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20335. done
  20336. PS1='$ '
  20337. PS2='> '
  20338. PS4='+ '
  20339. # NLS nuisances.
  20340. LC_ALL=C
  20341. export LC_ALL
  20342. LANGUAGE=C
  20343. export LANGUAGE
  20344. # CDPATH.
  20345. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20346. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20347. # ----------------------------------------
  20348. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20349. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20350. # script with STATUS, using 1 if that was 0.
  20351. as_fn_error ()
  20352. {
  20353. as_status=$1; test $as_status -eq 0 && as_status=1
  20354. if test "$4"; then
  20355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20357. fi
  20358. $as_echo "$as_me: error: $2" >&2
  20359. as_fn_exit $as_status
  20360. } # as_fn_error
  20361. # as_fn_set_status STATUS
  20362. # -----------------------
  20363. # Set $? to STATUS, without forking.
  20364. as_fn_set_status ()
  20365. {
  20366. return $1
  20367. } # as_fn_set_status
  20368. # as_fn_exit STATUS
  20369. # -----------------
  20370. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20371. as_fn_exit ()
  20372. {
  20373. set +e
  20374. as_fn_set_status $1
  20375. exit $1
  20376. } # as_fn_exit
  20377. # as_fn_unset VAR
  20378. # ---------------
  20379. # Portably unset VAR.
  20380. as_fn_unset ()
  20381. {
  20382. { eval $1=; unset $1;}
  20383. }
  20384. as_unset=as_fn_unset
  20385. # as_fn_append VAR VALUE
  20386. # ----------------------
  20387. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20388. # advantage of any shell optimizations that allow amortized linear growth over
  20389. # repeated appends, instead of the typical quadratic growth present in naive
  20390. # implementations.
  20391. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20392. eval 'as_fn_append ()
  20393. {
  20394. eval $1+=\$2
  20395. }'
  20396. else
  20397. as_fn_append ()
  20398. {
  20399. eval $1=\$$1\$2
  20400. }
  20401. fi # as_fn_append
  20402. # as_fn_arith ARG...
  20403. # ------------------
  20404. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20405. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20406. # must be portable across $(()) and expr.
  20407. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20408. eval 'as_fn_arith ()
  20409. {
  20410. as_val=$(( $* ))
  20411. }'
  20412. else
  20413. as_fn_arith ()
  20414. {
  20415. as_val=`expr "$@" || test $? -eq 1`
  20416. }
  20417. fi # as_fn_arith
  20418. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20419. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20420. as_expr=expr
  20421. else
  20422. as_expr=false
  20423. fi
  20424. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20425. as_basename=basename
  20426. else
  20427. as_basename=false
  20428. fi
  20429. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20430. as_dirname=dirname
  20431. else
  20432. as_dirname=false
  20433. fi
  20434. as_me=`$as_basename -- "$0" ||
  20435. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20436. X"$0" : 'X\(//\)$' \| \
  20437. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20438. $as_echo X/"$0" |
  20439. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20440. s//\1/
  20441. q
  20442. }
  20443. /^X\/\(\/\/\)$/{
  20444. s//\1/
  20445. q
  20446. }
  20447. /^X\/\(\/\).*/{
  20448. s//\1/
  20449. q
  20450. }
  20451. s/.*/./; q'`
  20452. # Avoid depending upon Character Ranges.
  20453. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20454. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20455. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20456. as_cr_digits='0123456789'
  20457. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20458. ECHO_C= ECHO_N= ECHO_T=
  20459. case `echo -n x` in #(((((
  20460. -n*)
  20461. case `echo 'xy\c'` in
  20462. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20463. xy) ECHO_C='\c';;
  20464. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20465. ECHO_T=' ';;
  20466. esac;;
  20467. *)
  20468. ECHO_N='-n';;
  20469. esac
  20470. rm -f conf$$ conf$$.exe conf$$.file
  20471. if test -d conf$$.dir; then
  20472. rm -f conf$$.dir/conf$$.file
  20473. else
  20474. rm -f conf$$.dir
  20475. mkdir conf$$.dir 2>/dev/null
  20476. fi
  20477. if (echo >conf$$.file) 2>/dev/null; then
  20478. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20479. as_ln_s='ln -s'
  20480. # ... but there are two gotchas:
  20481. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20482. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20483. # In both cases, we have to default to `cp -pR'.
  20484. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20485. as_ln_s='cp -pR'
  20486. elif ln conf$$.file conf$$ 2>/dev/null; then
  20487. as_ln_s=ln
  20488. else
  20489. as_ln_s='cp -pR'
  20490. fi
  20491. else
  20492. as_ln_s='cp -pR'
  20493. fi
  20494. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20495. rmdir conf$$.dir 2>/dev/null
  20496. # as_fn_mkdir_p
  20497. # -------------
  20498. # Create "$as_dir" as a directory, including parents if necessary.
  20499. as_fn_mkdir_p ()
  20500. {
  20501. case $as_dir in #(
  20502. -*) as_dir=./$as_dir;;
  20503. esac
  20504. test -d "$as_dir" || eval $as_mkdir_p || {
  20505. as_dirs=
  20506. while :; do
  20507. case $as_dir in #(
  20508. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20509. *) as_qdir=$as_dir;;
  20510. esac
  20511. as_dirs="'$as_qdir' $as_dirs"
  20512. as_dir=`$as_dirname -- "$as_dir" ||
  20513. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20514. X"$as_dir" : 'X\(//\)[^/]' \| \
  20515. X"$as_dir" : 'X\(//\)$' \| \
  20516. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20517. $as_echo X"$as_dir" |
  20518. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20519. s//\1/
  20520. q
  20521. }
  20522. /^X\(\/\/\)[^/].*/{
  20523. s//\1/
  20524. q
  20525. }
  20526. /^X\(\/\/\)$/{
  20527. s//\1/
  20528. q
  20529. }
  20530. /^X\(\/\).*/{
  20531. s//\1/
  20532. q
  20533. }
  20534. s/.*/./; q'`
  20535. test -d "$as_dir" && break
  20536. done
  20537. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20538. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20539. } # as_fn_mkdir_p
  20540. if mkdir -p . 2>/dev/null; then
  20541. as_mkdir_p='mkdir -p "$as_dir"'
  20542. else
  20543. test -d ./-p && rmdir ./-p
  20544. as_mkdir_p=false
  20545. fi
  20546. # as_fn_executable_p FILE
  20547. # -----------------------
  20548. # Test if FILE is an executable regular file.
  20549. as_fn_executable_p ()
  20550. {
  20551. test -f "$1" && test -x "$1"
  20552. } # as_fn_executable_p
  20553. as_test_x='test -x'
  20554. as_executable_p=as_fn_executable_p
  20555. # Sed expression to map a string onto a valid CPP name.
  20556. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20557. # Sed expression to map a string onto a valid variable name.
  20558. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20559. exec 6>&1
  20560. ## ----------------------------------- ##
  20561. ## Main body of $CONFIG_STATUS script. ##
  20562. ## ----------------------------------- ##
  20563. _ASEOF
  20564. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20566. # Save the log message, to keep $0 and so on meaningful, and to
  20567. # report actual input values of CONFIG_FILES etc. instead of their
  20568. # values after options handling.
  20569. ac_log="
  20570. This file was extended by $as_me, which was
  20571. generated by GNU Autoconf 2.69. Invocation command line was
  20572. CONFIG_FILES = $CONFIG_FILES
  20573. CONFIG_HEADERS = $CONFIG_HEADERS
  20574. CONFIG_LINKS = $CONFIG_LINKS
  20575. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20576. $ $0 $@
  20577. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20578. "
  20579. _ACEOF
  20580. case $ac_config_files in *"
  20581. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20582. esac
  20583. case $ac_config_headers in *"
  20584. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20585. esac
  20586. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20587. # Files that config.status was made for.
  20588. config_files="$ac_config_files"
  20589. config_headers="$ac_config_headers"
  20590. config_commands="$ac_config_commands"
  20591. _ACEOF
  20592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20593. ac_cs_usage="\
  20594. \`$as_me' instantiates files and other configuration actions
  20595. from templates according to the current configuration. Unless the files
  20596. and actions are specified as TAGs, all are instantiated by default.
  20597. Usage: $0 [OPTION]... [TAG]...
  20598. -h, --help print this help, then exit
  20599. -V, --version print version number and configuration settings, then exit
  20600. --config print configuration, then exit
  20601. -q, --quiet, --silent
  20602. do not print progress messages
  20603. -d, --debug don't remove temporary files
  20604. --recheck update $as_me by reconfiguring in the same conditions
  20605. --file=FILE[:TEMPLATE]
  20606. instantiate the configuration file FILE
  20607. --header=FILE[:TEMPLATE]
  20608. instantiate the configuration header FILE
  20609. Configuration files:
  20610. $config_files
  20611. Configuration headers:
  20612. $config_headers
  20613. Configuration commands:
  20614. $config_commands
  20615. Report bugs to the package provider."
  20616. _ACEOF
  20617. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20618. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20619. ac_cs_version="\\
  20620. config.status
  20621. configured by $0, generated by GNU Autoconf 2.69,
  20622. with options \\"\$ac_cs_config\\"
  20623. Copyright (C) 2012 Free Software Foundation, Inc.
  20624. This config.status script is free software; the Free Software Foundation
  20625. gives unlimited permission to copy, distribute and modify it."
  20626. ac_pwd='$ac_pwd'
  20627. srcdir='$srcdir'
  20628. INSTALL='$INSTALL'
  20629. AWK='$AWK'
  20630. test -n "\$AWK" || AWK=awk
  20631. _ACEOF
  20632. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20633. # The default lists apply if the user does not specify any file.
  20634. ac_need_defaults=:
  20635. while test $# != 0
  20636. do
  20637. case $1 in
  20638. --*=?*)
  20639. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20640. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20641. ac_shift=:
  20642. ;;
  20643. --*=)
  20644. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20645. ac_optarg=
  20646. ac_shift=:
  20647. ;;
  20648. *)
  20649. ac_option=$1
  20650. ac_optarg=$2
  20651. ac_shift=shift
  20652. ;;
  20653. esac
  20654. case $ac_option in
  20655. # Handling of the options.
  20656. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20657. ac_cs_recheck=: ;;
  20658. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20659. $as_echo "$ac_cs_version"; exit ;;
  20660. --config | --confi | --conf | --con | --co | --c )
  20661. $as_echo "$ac_cs_config"; exit ;;
  20662. --debug | --debu | --deb | --de | --d | -d )
  20663. debug=: ;;
  20664. --file | --fil | --fi | --f )
  20665. $ac_shift
  20666. case $ac_optarg in
  20667. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20668. '') as_fn_error $? "missing file argument" ;;
  20669. esac
  20670. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20671. ac_need_defaults=false;;
  20672. --header | --heade | --head | --hea )
  20673. $ac_shift
  20674. case $ac_optarg in
  20675. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20676. esac
  20677. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20678. ac_need_defaults=false;;
  20679. --he | --h)
  20680. # Conflict between --help and --header
  20681. as_fn_error $? "ambiguous option: \`$1'
  20682. Try \`$0 --help' for more information.";;
  20683. --help | --hel | -h )
  20684. $as_echo "$ac_cs_usage"; exit ;;
  20685. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20686. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20687. ac_cs_silent=: ;;
  20688. # This is an error.
  20689. -*) as_fn_error $? "unrecognized option: \`$1'
  20690. Try \`$0 --help' for more information." ;;
  20691. *) as_fn_append ac_config_targets " $1"
  20692. ac_need_defaults=false ;;
  20693. esac
  20694. shift
  20695. done
  20696. ac_configure_extra_args=
  20697. if $ac_cs_silent; then
  20698. exec 6>/dev/null
  20699. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20700. fi
  20701. _ACEOF
  20702. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20703. if \$ac_cs_recheck; then
  20704. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20705. shift
  20706. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20707. CONFIG_SHELL='$SHELL'
  20708. export CONFIG_SHELL
  20709. exec "\$@"
  20710. fi
  20711. _ACEOF
  20712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20713. exec 5>>config.log
  20714. {
  20715. echo
  20716. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20717. ## Running $as_me. ##
  20718. _ASBOX
  20719. $as_echo "$ac_log"
  20720. } >&5
  20721. _ACEOF
  20722. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20723. #
  20724. # INIT-COMMANDS
  20725. #
  20726. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20727. # if CDPATH is set.
  20728. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20729. sed_quote_subst='$sed_quote_subst'
  20730. double_quote_subst='$double_quote_subst'
  20731. delay_variable_subst='$delay_variable_subst'
  20732. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20733. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20734. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20735. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20736. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20737. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20738. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20739. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20740. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20741. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20742. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20743. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20744. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20745. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20746. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20747. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20748. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20749. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20750. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20751. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20752. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20753. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20754. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20755. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20756. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20757. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20758. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20759. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20760. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20761. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20762. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20763. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20764. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20765. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20766. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20767. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20768. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20769. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20770. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20771. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20772. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20773. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20774. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20775. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20776. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20777. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20778. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20779. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20780. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20781. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20782. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20783. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20784. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20785. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20786. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20787. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20788. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20789. 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"`'
  20790. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20791. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20792. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20793. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20794. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20795. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20796. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20797. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20798. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20799. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20800. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20801. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20802. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20803. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20804. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20805. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20806. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20807. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20808. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20809. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20810. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20811. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20812. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20813. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20814. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20815. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20816. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20817. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20818. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20819. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20820. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20821. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20822. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20823. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20824. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20825. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20826. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20827. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20828. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20829. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20830. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20831. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20832. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20833. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20834. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20835. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20836. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20837. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20838. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20839. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20840. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20841. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20842. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20843. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20844. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20845. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20846. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20847. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20848. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20849. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20850. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20851. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20852. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20853. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20854. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20855. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20856. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  20857. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20858. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20859. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20860. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20861. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20862. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20863. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20864. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20865. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20866. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20867. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20868. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20869. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20870. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20871. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20872. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20873. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20874. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20875. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20876. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20877. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20878. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20879. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20880. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20881. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20882. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20883. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20884. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20885. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20886. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20887. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20888. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20889. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20890. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20891. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20892. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20893. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20894. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20895. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20896. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20897. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20898. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20899. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20900. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20901. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20902. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20903. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20904. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20905. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20906. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20907. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20908. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20909. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20910. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20911. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20912. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20913. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20914. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20915. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20916. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20917. LTCC='$LTCC'
  20918. LTCFLAGS='$LTCFLAGS'
  20919. compiler='$compiler_DEFAULT'
  20920. # A function that is used when there is no print builtin or printf.
  20921. func_fallback_echo ()
  20922. {
  20923. eval 'cat <<_LTECHO_EOF
  20924. \$1
  20925. _LTECHO_EOF'
  20926. }
  20927. # Quote evaled strings.
  20928. for var in AS \
  20929. DLLTOOL \
  20930. OBJDUMP \
  20931. SHELL \
  20932. ECHO \
  20933. PATH_SEPARATOR \
  20934. SED \
  20935. GREP \
  20936. EGREP \
  20937. FGREP \
  20938. LD \
  20939. NM \
  20940. LN_S \
  20941. lt_SP2NL \
  20942. lt_NL2SP \
  20943. reload_flag \
  20944. deplibs_check_method \
  20945. file_magic_cmd \
  20946. file_magic_glob \
  20947. want_nocaseglob \
  20948. sharedlib_from_linklib_cmd \
  20949. AR \
  20950. AR_FLAGS \
  20951. archiver_list_spec \
  20952. STRIP \
  20953. RANLIB \
  20954. CC \
  20955. CFLAGS \
  20956. compiler \
  20957. lt_cv_sys_global_symbol_pipe \
  20958. lt_cv_sys_global_symbol_to_cdecl \
  20959. lt_cv_sys_global_symbol_to_c_name_address \
  20960. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20961. nm_file_list_spec \
  20962. lt_prog_compiler_no_builtin_flag \
  20963. lt_prog_compiler_pic \
  20964. lt_prog_compiler_wl \
  20965. lt_prog_compiler_static \
  20966. lt_cv_prog_compiler_c_o \
  20967. need_locks \
  20968. MANIFEST_TOOL \
  20969. DSYMUTIL \
  20970. NMEDIT \
  20971. LIPO \
  20972. OTOOL \
  20973. OTOOL64 \
  20974. shrext_cmds \
  20975. export_dynamic_flag_spec \
  20976. whole_archive_flag_spec \
  20977. compiler_needs_object \
  20978. with_gnu_ld \
  20979. allow_undefined_flag \
  20980. no_undefined_flag \
  20981. hardcode_libdir_flag_spec \
  20982. hardcode_libdir_separator \
  20983. exclude_expsyms \
  20984. include_expsyms \
  20985. file_list_spec \
  20986. variables_saved_for_relink \
  20987. libname_spec \
  20988. library_names_spec \
  20989. soname_spec \
  20990. install_override_mode \
  20991. finish_eval \
  20992. old_striplib \
  20993. striplib \
  20994. compiler_lib_search_dirs \
  20995. predep_objects \
  20996. postdep_objects \
  20997. predeps \
  20998. postdeps \
  20999. compiler_lib_search_path \
  21000. LD_CXX \
  21001. reload_flag_CXX \
  21002. compiler_CXX \
  21003. lt_prog_compiler_no_builtin_flag_CXX \
  21004. lt_prog_compiler_pic_CXX \
  21005. lt_prog_compiler_wl_CXX \
  21006. lt_prog_compiler_static_CXX \
  21007. lt_cv_prog_compiler_c_o_CXX \
  21008. export_dynamic_flag_spec_CXX \
  21009. whole_archive_flag_spec_CXX \
  21010. compiler_needs_object_CXX \
  21011. with_gnu_ld_CXX \
  21012. allow_undefined_flag_CXX \
  21013. no_undefined_flag_CXX \
  21014. hardcode_libdir_flag_spec_CXX \
  21015. hardcode_libdir_separator_CXX \
  21016. exclude_expsyms_CXX \
  21017. include_expsyms_CXX \
  21018. file_list_spec_CXX \
  21019. compiler_lib_search_dirs_CXX \
  21020. predep_objects_CXX \
  21021. postdep_objects_CXX \
  21022. predeps_CXX \
  21023. postdeps_CXX \
  21024. compiler_lib_search_path_CXX; do
  21025. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21026. *[\\\\\\\`\\"\\\$]*)
  21027. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21028. ;;
  21029. *)
  21030. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21031. ;;
  21032. esac
  21033. done
  21034. # Double-quote double-evaled strings.
  21035. for var in reload_cmds \
  21036. old_postinstall_cmds \
  21037. old_postuninstall_cmds \
  21038. old_archive_cmds \
  21039. extract_expsyms_cmds \
  21040. old_archive_from_new_cmds \
  21041. old_archive_from_expsyms_cmds \
  21042. archive_cmds \
  21043. archive_expsym_cmds \
  21044. module_cmds \
  21045. module_expsym_cmds \
  21046. export_symbols_cmds \
  21047. prelink_cmds \
  21048. postlink_cmds \
  21049. postinstall_cmds \
  21050. postuninstall_cmds \
  21051. finish_cmds \
  21052. sys_lib_search_path_spec \
  21053. sys_lib_dlsearch_path_spec \
  21054. reload_cmds_CXX \
  21055. old_archive_cmds_CXX \
  21056. old_archive_from_new_cmds_CXX \
  21057. old_archive_from_expsyms_cmds_CXX \
  21058. archive_cmds_CXX \
  21059. archive_expsym_cmds_CXX \
  21060. module_cmds_CXX \
  21061. module_expsym_cmds_CXX \
  21062. export_symbols_cmds_CXX \
  21063. prelink_cmds_CXX \
  21064. postlink_cmds_CXX; do
  21065. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21066. *[\\\\\\\`\\"\\\$]*)
  21067. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21068. ;;
  21069. *)
  21070. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21071. ;;
  21072. esac
  21073. done
  21074. ac_aux_dir='$ac_aux_dir'
  21075. xsi_shell='$xsi_shell'
  21076. lt_shell_append='$lt_shell_append'
  21077. # See if we are running on zsh, and set the options which allow our
  21078. # commands through without removal of \ escapes INIT.
  21079. if test -n "\${ZSH_VERSION+set}" ; then
  21080. setopt NO_GLOB_SUBST
  21081. fi
  21082. PACKAGE='$PACKAGE'
  21083. VERSION='$VERSION'
  21084. TIMESTAMP='$TIMESTAMP'
  21085. RM='$RM'
  21086. ofile='$ofile'
  21087. SUMMARY="$SUMMARY"
  21088. _ACEOF
  21089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21090. # Handling of arguments.
  21091. for ac_config_target in $ac_config_targets
  21092. do
  21093. case $ac_config_target in
  21094. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21095. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21096. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21097. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21098. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21099. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21100. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21101. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21102. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21103. esac
  21104. done
  21105. # If the user did not use the arguments to specify the items to instantiate,
  21106. # then the envvar interface is used. Set only those that are not.
  21107. # We use the long form for the default assignment because of an extremely
  21108. # bizarre bug on SunOS 4.1.3.
  21109. if $ac_need_defaults; then
  21110. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21111. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21112. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21113. fi
  21114. # Have a temporary directory for convenience. Make it in the build tree
  21115. # simply because there is no reason against having it here, and in addition,
  21116. # creating and moving files from /tmp can sometimes cause problems.
  21117. # Hook for its removal unless debugging.
  21118. # Note that there is a small window in which the directory will not be cleaned:
  21119. # after its creation but before its name has been assigned to `$tmp'.
  21120. $debug ||
  21121. {
  21122. tmp= ac_tmp=
  21123. trap 'exit_status=$?
  21124. : "${ac_tmp:=$tmp}"
  21125. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21126. ' 0
  21127. trap 'as_fn_exit 1' 1 2 13 15
  21128. }
  21129. # Create a (secure) tmp directory for tmp files.
  21130. {
  21131. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21132. test -d "$tmp"
  21133. } ||
  21134. {
  21135. tmp=./conf$$-$RANDOM
  21136. (umask 077 && mkdir "$tmp")
  21137. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21138. ac_tmp=$tmp
  21139. # Set up the scripts for CONFIG_FILES section.
  21140. # No need to generate them if there are no CONFIG_FILES.
  21141. # This happens for instance with `./config.status config.h'.
  21142. if test -n "$CONFIG_FILES"; then
  21143. ac_cr=`echo X | tr X '\015'`
  21144. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21145. # But we know of no other shell where ac_cr would be empty at this
  21146. # point, so we can use a bashism as a fallback.
  21147. if test "x$ac_cr" = x; then
  21148. eval ac_cr=\$\'\\r\'
  21149. fi
  21150. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21151. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21152. ac_cs_awk_cr='\\r'
  21153. else
  21154. ac_cs_awk_cr=$ac_cr
  21155. fi
  21156. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21157. _ACEOF
  21158. {
  21159. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21160. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21161. echo "_ACEOF"
  21162. } >conf$$subs.sh ||
  21163. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21164. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21165. ac_delim='%!_!# '
  21166. for ac_last_try in false false false false false :; do
  21167. . ./conf$$subs.sh ||
  21168. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21169. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21170. if test $ac_delim_n = $ac_delim_num; then
  21171. break
  21172. elif $ac_last_try; then
  21173. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21174. else
  21175. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21176. fi
  21177. done
  21178. rm -f conf$$subs.sh
  21179. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21180. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21181. _ACEOF
  21182. sed -n '
  21183. h
  21184. s/^/S["/; s/!.*/"]=/
  21185. p
  21186. g
  21187. s/^[^!]*!//
  21188. :repl
  21189. t repl
  21190. s/'"$ac_delim"'$//
  21191. t delim
  21192. :nl
  21193. h
  21194. s/\(.\{148\}\)..*/\1/
  21195. t more1
  21196. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21197. p
  21198. n
  21199. b repl
  21200. :more1
  21201. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21202. p
  21203. g
  21204. s/.\{148\}//
  21205. t nl
  21206. :delim
  21207. h
  21208. s/\(.\{148\}\)..*/\1/
  21209. t more2
  21210. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21211. p
  21212. b
  21213. :more2
  21214. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21215. p
  21216. g
  21217. s/.\{148\}//
  21218. t delim
  21219. ' <conf$$subs.awk | sed '
  21220. /^[^""]/{
  21221. N
  21222. s/\n//
  21223. }
  21224. ' >>$CONFIG_STATUS || ac_write_fail=1
  21225. rm -f conf$$subs.awk
  21226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21227. _ACAWK
  21228. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21229. for (key in S) S_is_set[key] = 1
  21230. FS = ""
  21231. }
  21232. {
  21233. line = $ 0
  21234. nfields = split(line, field, "@")
  21235. substed = 0
  21236. len = length(field[1])
  21237. for (i = 2; i < nfields; i++) {
  21238. key = field[i]
  21239. keylen = length(key)
  21240. if (S_is_set[key]) {
  21241. value = S[key]
  21242. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21243. len += length(value) + length(field[++i])
  21244. substed = 1
  21245. } else
  21246. len += 1 + keylen
  21247. }
  21248. print line
  21249. }
  21250. _ACAWK
  21251. _ACEOF
  21252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21253. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21254. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21255. else
  21256. cat
  21257. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21258. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21259. _ACEOF
  21260. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21261. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21262. # trailing colons and then remove the whole line if VPATH becomes empty
  21263. # (actually we leave an empty line to preserve line numbers).
  21264. if test "x$srcdir" = x.; then
  21265. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21266. h
  21267. s///
  21268. s/^/:/
  21269. s/[ ]*$/:/
  21270. s/:\$(srcdir):/:/g
  21271. s/:\${srcdir}:/:/g
  21272. s/:@srcdir@:/:/g
  21273. s/^:*//
  21274. s/:*$//
  21275. x
  21276. s/\(=[ ]*\).*/\1/
  21277. G
  21278. s/\n//
  21279. s/^[^=]*=[ ]*$//
  21280. }'
  21281. fi
  21282. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21283. fi # test -n "$CONFIG_FILES"
  21284. # Set up the scripts for CONFIG_HEADERS section.
  21285. # No need to generate them if there are no CONFIG_HEADERS.
  21286. # This happens for instance with `./config.status Makefile'.
  21287. if test -n "$CONFIG_HEADERS"; then
  21288. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21289. BEGIN {
  21290. _ACEOF
  21291. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21292. # here-document in config.status, that substitutes the proper values into
  21293. # config.h.in to produce config.h.
  21294. # Create a delimiter string that does not exist in confdefs.h, to ease
  21295. # handling of long lines.
  21296. ac_delim='%!_!# '
  21297. for ac_last_try in false false :; do
  21298. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21299. if test -z "$ac_tt"; then
  21300. break
  21301. elif $ac_last_try; then
  21302. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21303. else
  21304. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21305. fi
  21306. done
  21307. # For the awk script, D is an array of macro values keyed by name,
  21308. # likewise P contains macro parameters if any. Preserve backslash
  21309. # newline sequences.
  21310. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21311. sed -n '
  21312. s/.\{148\}/&'"$ac_delim"'/g
  21313. t rset
  21314. :rset
  21315. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21316. t def
  21317. d
  21318. :def
  21319. s/\\$//
  21320. t bsnl
  21321. s/["\\]/\\&/g
  21322. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21323. D["\1"]=" \3"/p
  21324. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21325. d
  21326. :bsnl
  21327. s/["\\]/\\&/g
  21328. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21329. D["\1"]=" \3\\\\\\n"\\/p
  21330. t cont
  21331. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21332. t cont
  21333. d
  21334. :cont
  21335. n
  21336. s/.\{148\}/&'"$ac_delim"'/g
  21337. t clear
  21338. :clear
  21339. s/\\$//
  21340. t bsnlc
  21341. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21342. d
  21343. :bsnlc
  21344. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21345. b cont
  21346. ' <confdefs.h | sed '
  21347. s/'"$ac_delim"'/"\\\
  21348. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21349. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21350. for (key in D) D_is_set[key] = 1
  21351. FS = ""
  21352. }
  21353. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21354. line = \$ 0
  21355. split(line, arg, " ")
  21356. if (arg[1] == "#") {
  21357. defundef = arg[2]
  21358. mac1 = arg[3]
  21359. } else {
  21360. defundef = substr(arg[1], 2)
  21361. mac1 = arg[2]
  21362. }
  21363. split(mac1, mac2, "(") #)
  21364. macro = mac2[1]
  21365. prefix = substr(line, 1, index(line, defundef) - 1)
  21366. if (D_is_set[macro]) {
  21367. # Preserve the white space surrounding the "#".
  21368. print prefix "define", macro P[macro] D[macro]
  21369. next
  21370. } else {
  21371. # Replace #undef with comments. This is necessary, for example,
  21372. # in the case of _POSIX_SOURCE, which is predefined and required
  21373. # on some systems where configure will not decide to define it.
  21374. if (defundef == "undef") {
  21375. print "/*", prefix defundef, macro, "*/"
  21376. next
  21377. }
  21378. }
  21379. }
  21380. { print }
  21381. _ACAWK
  21382. _ACEOF
  21383. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21384. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21385. fi # test -n "$CONFIG_HEADERS"
  21386. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21387. shift
  21388. for ac_tag
  21389. do
  21390. case $ac_tag in
  21391. :[FHLC]) ac_mode=$ac_tag; continue;;
  21392. esac
  21393. case $ac_mode$ac_tag in
  21394. :[FHL]*:*);;
  21395. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21396. :[FH]-) ac_tag=-:-;;
  21397. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21398. esac
  21399. ac_save_IFS=$IFS
  21400. IFS=:
  21401. set x $ac_tag
  21402. IFS=$ac_save_IFS
  21403. shift
  21404. ac_file=$1
  21405. shift
  21406. case $ac_mode in
  21407. :L) ac_source=$1;;
  21408. :[FH])
  21409. ac_file_inputs=
  21410. for ac_f
  21411. do
  21412. case $ac_f in
  21413. -) ac_f="$ac_tmp/stdin";;
  21414. *) # Look for the file first in the build tree, then in the source tree
  21415. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21416. # because $ac_f cannot contain `:'.
  21417. test -f "$ac_f" ||
  21418. case $ac_f in
  21419. [\\/$]*) false;;
  21420. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21421. esac ||
  21422. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21423. esac
  21424. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21425. as_fn_append ac_file_inputs " '$ac_f'"
  21426. done
  21427. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21428. # use $as_me), people would be surprised to read:
  21429. # /* config.h. Generated by config.status. */
  21430. configure_input='Generated from '`
  21431. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21432. `' by configure.'
  21433. if test x"$ac_file" != x-; then
  21434. configure_input="$ac_file. $configure_input"
  21435. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21436. $as_echo "$as_me: creating $ac_file" >&6;}
  21437. fi
  21438. # Neutralize special characters interpreted by sed in replacement strings.
  21439. case $configure_input in #(
  21440. *\&* | *\|* | *\\* )
  21441. ac_sed_conf_input=`$as_echo "$configure_input" |
  21442. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21443. *) ac_sed_conf_input=$configure_input;;
  21444. esac
  21445. case $ac_tag in
  21446. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21447. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21448. esac
  21449. ;;
  21450. esac
  21451. ac_dir=`$as_dirname -- "$ac_file" ||
  21452. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21453. X"$ac_file" : 'X\(//\)[^/]' \| \
  21454. X"$ac_file" : 'X\(//\)$' \| \
  21455. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21456. $as_echo X"$ac_file" |
  21457. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21458. s//\1/
  21459. q
  21460. }
  21461. /^X\(\/\/\)[^/].*/{
  21462. s//\1/
  21463. q
  21464. }
  21465. /^X\(\/\/\)$/{
  21466. s//\1/
  21467. q
  21468. }
  21469. /^X\(\/\).*/{
  21470. s//\1/
  21471. q
  21472. }
  21473. s/.*/./; q'`
  21474. as_dir="$ac_dir"; as_fn_mkdir_p
  21475. ac_builddir=.
  21476. case "$ac_dir" in
  21477. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21478. *)
  21479. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21480. # A ".." for each directory in $ac_dir_suffix.
  21481. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21482. case $ac_top_builddir_sub in
  21483. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21484. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21485. esac ;;
  21486. esac
  21487. ac_abs_top_builddir=$ac_pwd
  21488. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21489. # for backward compatibility:
  21490. ac_top_builddir=$ac_top_build_prefix
  21491. case $srcdir in
  21492. .) # We are building in place.
  21493. ac_srcdir=.
  21494. ac_top_srcdir=$ac_top_builddir_sub
  21495. ac_abs_top_srcdir=$ac_pwd ;;
  21496. [\\/]* | ?:[\\/]* ) # Absolute name.
  21497. ac_srcdir=$srcdir$ac_dir_suffix;
  21498. ac_top_srcdir=$srcdir
  21499. ac_abs_top_srcdir=$srcdir ;;
  21500. *) # Relative name.
  21501. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21502. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21503. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21504. esac
  21505. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21506. case $ac_mode in
  21507. :F)
  21508. #
  21509. # CONFIG_FILE
  21510. #
  21511. case $INSTALL in
  21512. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21513. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21514. esac
  21515. _ACEOF
  21516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21517. # If the template does not know about datarootdir, expand it.
  21518. # FIXME: This hack should be removed a few years after 2.60.
  21519. ac_datarootdir_hack=; ac_datarootdir_seen=
  21520. ac_sed_dataroot='
  21521. /datarootdir/ {
  21522. p
  21523. q
  21524. }
  21525. /@datadir@/p
  21526. /@docdir@/p
  21527. /@infodir@/p
  21528. /@localedir@/p
  21529. /@mandir@/p'
  21530. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21531. *datarootdir*) ac_datarootdir_seen=yes;;
  21532. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21534. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21535. _ACEOF
  21536. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21537. ac_datarootdir_hack='
  21538. s&@datadir@&$datadir&g
  21539. s&@docdir@&$docdir&g
  21540. s&@infodir@&$infodir&g
  21541. s&@localedir@&$localedir&g
  21542. s&@mandir@&$mandir&g
  21543. s&\\\${datarootdir}&$datarootdir&g' ;;
  21544. esac
  21545. _ACEOF
  21546. # Neutralize VPATH when `$srcdir' = `.'.
  21547. # Shell code in configure.ac might set extrasub.
  21548. # FIXME: do we really want to maintain this feature?
  21549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21550. ac_sed_extra="$ac_vpsub
  21551. $extrasub
  21552. _ACEOF
  21553. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21554. :t
  21555. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21556. s|@configure_input@|$ac_sed_conf_input|;t t
  21557. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21558. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21559. s&@srcdir@&$ac_srcdir&;t t
  21560. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21561. s&@top_srcdir@&$ac_top_srcdir&;t t
  21562. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21563. s&@builddir@&$ac_builddir&;t t
  21564. s&@abs_builddir@&$ac_abs_builddir&;t t
  21565. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21566. s&@INSTALL@&$ac_INSTALL&;t t
  21567. $ac_datarootdir_hack
  21568. "
  21569. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21570. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21571. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21572. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21573. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21574. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21576. which seems to be undefined. Please make sure it is defined" >&5
  21577. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21578. which seems to be undefined. Please make sure it is defined" >&2;}
  21579. rm -f "$ac_tmp/stdin"
  21580. case $ac_file in
  21581. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21582. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21583. esac \
  21584. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21585. ;;
  21586. :H)
  21587. #
  21588. # CONFIG_HEADER
  21589. #
  21590. if test x"$ac_file" != x-; then
  21591. {
  21592. $as_echo "/* $configure_input */" \
  21593. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21594. } >"$ac_tmp/config.h" \
  21595. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21596. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21597. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21598. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21599. else
  21600. rm -f "$ac_file"
  21601. mv "$ac_tmp/config.h" "$ac_file" \
  21602. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21603. fi
  21604. else
  21605. $as_echo "/* $configure_input */" \
  21606. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21607. || as_fn_error $? "could not create -" "$LINENO" 5
  21608. fi
  21609. ;;
  21610. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21611. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21612. ;;
  21613. esac
  21614. case $ac_file$ac_mode in
  21615. "libtool":C)
  21616. # See if we are running on zsh, and set the options which allow our
  21617. # commands through without removal of \ escapes.
  21618. if test -n "${ZSH_VERSION+set}" ; then
  21619. setopt NO_GLOB_SUBST
  21620. fi
  21621. cfgfile="${ofile}T"
  21622. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21623. $RM "$cfgfile"
  21624. cat <<_LT_EOF >> "$cfgfile"
  21625. #! $SHELL
  21626. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21627. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21628. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21629. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21630. #
  21631. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21632. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21633. # Foundation, Inc.
  21634. # Written by Gordon Matzigkeit, 1996
  21635. #
  21636. # This file is part of GNU Libtool.
  21637. #
  21638. # GNU Libtool is free software; you can redistribute it and/or
  21639. # modify it under the terms of the GNU General Public License as
  21640. # published by the Free Software Foundation; either version 2 of
  21641. # the License, or (at your option) any later version.
  21642. #
  21643. # As a special exception to the GNU General Public License,
  21644. # if you distribute this file as part of a program or library that
  21645. # is built using GNU Libtool, you may include this file under the
  21646. # same distribution terms that you use for the rest of that program.
  21647. #
  21648. # GNU Libtool is distributed in the hope that it will be useful,
  21649. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21650. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21651. # GNU General Public License for more details.
  21652. #
  21653. # You should have received a copy of the GNU General Public License
  21654. # along with GNU Libtool; see the file COPYING. If not, a copy
  21655. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21656. # obtained by writing to the Free Software Foundation, Inc.,
  21657. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21658. # The names of the tagged configurations supported by this script.
  21659. available_tags="CXX "
  21660. # ### BEGIN LIBTOOL CONFIG
  21661. # Which release of libtool.m4 was used?
  21662. macro_version=$macro_version
  21663. macro_revision=$macro_revision
  21664. # Assembler program.
  21665. AS=$lt_AS
  21666. # DLL creation program.
  21667. DLLTOOL=$lt_DLLTOOL
  21668. # Object dumper program.
  21669. OBJDUMP=$lt_OBJDUMP
  21670. # Whether or not to build shared libraries.
  21671. build_libtool_libs=$enable_shared
  21672. # Whether or not to build static libraries.
  21673. build_old_libs=$enable_static
  21674. # What type of objects to build.
  21675. pic_mode=$pic_mode
  21676. # Whether or not to optimize for fast installation.
  21677. fast_install=$enable_fast_install
  21678. # Shell to use when invoking shell scripts.
  21679. SHELL=$lt_SHELL
  21680. # An echo program that protects backslashes.
  21681. ECHO=$lt_ECHO
  21682. # The PATH separator for the build system.
  21683. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21684. # The host system.
  21685. host_alias=$host_alias
  21686. host=$host
  21687. host_os=$host_os
  21688. # The build system.
  21689. build_alias=$build_alias
  21690. build=$build
  21691. build_os=$build_os
  21692. # A sed program that does not truncate output.
  21693. SED=$lt_SED
  21694. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21695. Xsed="\$SED -e 1s/^X//"
  21696. # A grep program that handles long lines.
  21697. GREP=$lt_GREP
  21698. # An ERE matcher.
  21699. EGREP=$lt_EGREP
  21700. # A literal string matcher.
  21701. FGREP=$lt_FGREP
  21702. # A BSD- or MS-compatible name lister.
  21703. NM=$lt_NM
  21704. # Whether we need soft or hard links.
  21705. LN_S=$lt_LN_S
  21706. # What is the maximum length of a command?
  21707. max_cmd_len=$max_cmd_len
  21708. # Object file suffix (normally "o").
  21709. objext=$ac_objext
  21710. # Executable file suffix (normally "").
  21711. exeext=$exeext
  21712. # whether the shell understands "unset".
  21713. lt_unset=$lt_unset
  21714. # turn spaces into newlines.
  21715. SP2NL=$lt_lt_SP2NL
  21716. # turn newlines into spaces.
  21717. NL2SP=$lt_lt_NL2SP
  21718. # convert \$build file names to \$host format.
  21719. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21720. # convert \$build files to toolchain format.
  21721. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21722. # Method to check whether dependent libraries are shared objects.
  21723. deplibs_check_method=$lt_deplibs_check_method
  21724. # Command to use when deplibs_check_method = "file_magic".
  21725. file_magic_cmd=$lt_file_magic_cmd
  21726. # How to find potential files when deplibs_check_method = "file_magic".
  21727. file_magic_glob=$lt_file_magic_glob
  21728. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21729. want_nocaseglob=$lt_want_nocaseglob
  21730. # Command to associate shared and link libraries.
  21731. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21732. # The archiver.
  21733. AR=$lt_AR
  21734. # Flags to create an archive.
  21735. AR_FLAGS=$lt_AR_FLAGS
  21736. # How to feed a file listing to the archiver.
  21737. archiver_list_spec=$lt_archiver_list_spec
  21738. # A symbol stripping program.
  21739. STRIP=$lt_STRIP
  21740. # Commands used to install an old-style archive.
  21741. RANLIB=$lt_RANLIB
  21742. old_postinstall_cmds=$lt_old_postinstall_cmds
  21743. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21744. # Whether to use a lock for old archive extraction.
  21745. lock_old_archive_extraction=$lock_old_archive_extraction
  21746. # A C compiler.
  21747. LTCC=$lt_CC
  21748. # LTCC compiler flags.
  21749. LTCFLAGS=$lt_CFLAGS
  21750. # Take the output of nm and produce a listing of raw symbols and C names.
  21751. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21752. # Transform the output of nm in a proper C declaration.
  21753. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21754. # Transform the output of nm in a C name address pair.
  21755. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21756. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21757. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21758. # Specify filename containing input files for \$NM.
  21759. nm_file_list_spec=$lt_nm_file_list_spec
  21760. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21761. lt_sysroot=$lt_sysroot
  21762. # The name of the directory that contains temporary libtool files.
  21763. objdir=$objdir
  21764. # Used to examine libraries when file_magic_cmd begins with "file".
  21765. MAGIC_CMD=$MAGIC_CMD
  21766. # Must we lock files when doing compilation?
  21767. need_locks=$lt_need_locks
  21768. # Manifest tool.
  21769. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21770. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21771. DSYMUTIL=$lt_DSYMUTIL
  21772. # Tool to change global to local symbols on Mac OS X.
  21773. NMEDIT=$lt_NMEDIT
  21774. # Tool to manipulate fat objects and archives on Mac OS X.
  21775. LIPO=$lt_LIPO
  21776. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21777. OTOOL=$lt_OTOOL
  21778. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21779. OTOOL64=$lt_OTOOL64
  21780. # Old archive suffix (normally "a").
  21781. libext=$libext
  21782. # Shared library suffix (normally ".so").
  21783. shrext_cmds=$lt_shrext_cmds
  21784. # The commands to extract the exported symbol list from a shared archive.
  21785. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21786. # Variables whose values should be saved in libtool wrapper scripts and
  21787. # restored at link time.
  21788. variables_saved_for_relink=$lt_variables_saved_for_relink
  21789. # Do we need the "lib" prefix for modules?
  21790. need_lib_prefix=$need_lib_prefix
  21791. # Do we need a version for libraries?
  21792. need_version=$need_version
  21793. # Library versioning type.
  21794. version_type=$version_type
  21795. # Shared library runtime path variable.
  21796. runpath_var=$runpath_var
  21797. # Shared library path variable.
  21798. shlibpath_var=$shlibpath_var
  21799. # Is shlibpath searched before the hard-coded library search path?
  21800. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21801. # Format of library name prefix.
  21802. libname_spec=$lt_libname_spec
  21803. # List of archive names. First name is the real one, the rest are links.
  21804. # The last name is the one that the linker finds with -lNAME
  21805. library_names_spec=$lt_library_names_spec
  21806. # The coded name of the library, if different from the real name.
  21807. soname_spec=$lt_soname_spec
  21808. # Permission mode override for installation of shared libraries.
  21809. install_override_mode=$lt_install_override_mode
  21810. # Command to use after installation of a shared archive.
  21811. postinstall_cmds=$lt_postinstall_cmds
  21812. # Command to use after uninstallation of a shared archive.
  21813. postuninstall_cmds=$lt_postuninstall_cmds
  21814. # Commands used to finish a libtool library installation in a directory.
  21815. finish_cmds=$lt_finish_cmds
  21816. # As "finish_cmds", except a single script fragment to be evaled but
  21817. # not shown.
  21818. finish_eval=$lt_finish_eval
  21819. # Whether we should hardcode library paths into libraries.
  21820. hardcode_into_libs=$hardcode_into_libs
  21821. # Compile-time system search path for libraries.
  21822. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21823. # Run-time system search path for libraries.
  21824. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21825. # Whether dlopen is supported.
  21826. dlopen_support=$enable_dlopen
  21827. # Whether dlopen of programs is supported.
  21828. dlopen_self=$enable_dlopen_self
  21829. # Whether dlopen of statically linked programs is supported.
  21830. dlopen_self_static=$enable_dlopen_self_static
  21831. # Commands to strip libraries.
  21832. old_striplib=$lt_old_striplib
  21833. striplib=$lt_striplib
  21834. # The linker used to build libraries.
  21835. LD=$lt_LD
  21836. # How to create reloadable object files.
  21837. reload_flag=$lt_reload_flag
  21838. reload_cmds=$lt_reload_cmds
  21839. # Commands used to build an old-style archive.
  21840. old_archive_cmds=$lt_old_archive_cmds
  21841. # A language specific compiler.
  21842. CC=$lt_compiler
  21843. # Is the compiler the GNU compiler?
  21844. with_gcc=$GCC
  21845. # Compiler flag to turn off builtin functions.
  21846. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21847. # Additional compiler flags for building library objects.
  21848. pic_flag=$lt_lt_prog_compiler_pic
  21849. # How to pass a linker flag through the compiler.
  21850. wl=$lt_lt_prog_compiler_wl
  21851. # Compiler flag to prevent dynamic linking.
  21852. link_static_flag=$lt_lt_prog_compiler_static
  21853. # Does compiler simultaneously support -c and -o options?
  21854. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21855. # Whether or not to add -lc for building shared libraries.
  21856. build_libtool_need_lc=$archive_cmds_need_lc
  21857. # Whether or not to disallow shared libs when runtime libs are static.
  21858. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21859. # Compiler flag to allow reflexive dlopens.
  21860. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21861. # Compiler flag to generate shared objects directly from archives.
  21862. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21863. # Whether the compiler copes with passing no objects directly.
  21864. compiler_needs_object=$lt_compiler_needs_object
  21865. # Create an old-style archive from a shared archive.
  21866. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21867. # Create a temporary old-style archive to link instead of a shared archive.
  21868. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21869. # Commands used to build a shared archive.
  21870. archive_cmds=$lt_archive_cmds
  21871. archive_expsym_cmds=$lt_archive_expsym_cmds
  21872. # Commands used to build a loadable module if different from building
  21873. # a shared archive.
  21874. module_cmds=$lt_module_cmds
  21875. module_expsym_cmds=$lt_module_expsym_cmds
  21876. # Whether we are building with GNU ld or not.
  21877. with_gnu_ld=$lt_with_gnu_ld
  21878. # Flag that allows shared libraries with undefined symbols to be built.
  21879. allow_undefined_flag=$lt_allow_undefined_flag
  21880. # Flag that enforces no undefined symbols.
  21881. no_undefined_flag=$lt_no_undefined_flag
  21882. # Flag to hardcode \$libdir into a binary during linking.
  21883. # This must work even if \$libdir does not exist
  21884. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21885. # Whether we need a single "-rpath" flag with a separated argument.
  21886. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21887. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21888. # DIR into the resulting binary.
  21889. hardcode_direct=$hardcode_direct
  21890. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  21891. # DIR into the resulting binary and the resulting library dependency is
  21892. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  21893. # library is relocated.
  21894. hardcode_direct_absolute=$hardcode_direct_absolute
  21895. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21896. # into the resulting binary.
  21897. hardcode_minus_L=$hardcode_minus_L
  21898. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21899. # into the resulting binary.
  21900. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21901. # Set to "yes" if building a shared library automatically hardcodes DIR
  21902. # into the library and all subsequent libraries and executables linked
  21903. # against it.
  21904. hardcode_automatic=$hardcode_automatic
  21905. # Set to yes if linker adds runtime paths of dependent libraries
  21906. # to runtime path list.
  21907. inherit_rpath=$inherit_rpath
  21908. # Whether libtool must link a program against all its dependency libraries.
  21909. link_all_deplibs=$link_all_deplibs
  21910. # Set to "yes" if exported symbols are required.
  21911. always_export_symbols=$always_export_symbols
  21912. # The commands to list exported symbols.
  21913. export_symbols_cmds=$lt_export_symbols_cmds
  21914. # Symbols that should not be listed in the preloaded symbols.
  21915. exclude_expsyms=$lt_exclude_expsyms
  21916. # Symbols that must always be exported.
  21917. include_expsyms=$lt_include_expsyms
  21918. # Commands necessary for linking programs (against libraries) with templates.
  21919. prelink_cmds=$lt_prelink_cmds
  21920. # Commands necessary for finishing linking programs.
  21921. postlink_cmds=$lt_postlink_cmds
  21922. # Specify filename containing input files.
  21923. file_list_spec=$lt_file_list_spec
  21924. # How to hardcode a shared library path into an executable.
  21925. hardcode_action=$hardcode_action
  21926. # The directories searched by this compiler when creating a shared library.
  21927. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21928. # Dependencies to place before and after the objects being linked to
  21929. # create a shared library.
  21930. predep_objects=$lt_predep_objects
  21931. postdep_objects=$lt_postdep_objects
  21932. predeps=$lt_predeps
  21933. postdeps=$lt_postdeps
  21934. # The library search path used internally by the compiler when linking
  21935. # a shared library.
  21936. compiler_lib_search_path=$lt_compiler_lib_search_path
  21937. # ### END LIBTOOL CONFIG
  21938. _LT_EOF
  21939. case $host_os in
  21940. aix3*)
  21941. cat <<\_LT_EOF >> "$cfgfile"
  21942. # AIX sometimes has problems with the GCC collect2 program. For some
  21943. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21944. # vanish in a puff of smoke.
  21945. if test "X${COLLECT_NAMES+set}" != Xset; then
  21946. COLLECT_NAMES=
  21947. export COLLECT_NAMES
  21948. fi
  21949. _LT_EOF
  21950. ;;
  21951. esac
  21952. ltmain="$ac_aux_dir/ltmain.sh"
  21953. # We use sed instead of cat because bash on DJGPP gets confused if
  21954. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21955. # text mode, it properly converts lines to CR/LF. This bash problem
  21956. # is reportedly fixed, but why not run on old versions too?
  21957. sed '$q' "$ltmain" >> "$cfgfile" \
  21958. || (rm -f "$cfgfile"; exit 1)
  21959. if test x"$xsi_shell" = xyes; then
  21960. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  21961. func_dirname ()\
  21962. {\
  21963. \ case ${1} in\
  21964. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21965. \ * ) func_dirname_result="${3}" ;;\
  21966. \ esac\
  21967. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  21968. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21969. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21970. test 0 -eq $? || _lt_function_replace_fail=:
  21971. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  21972. func_basename ()\
  21973. {\
  21974. \ func_basename_result="${1##*/}"\
  21975. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21978. test 0 -eq $? || _lt_function_replace_fail=:
  21979. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  21980. func_dirname_and_basename ()\
  21981. {\
  21982. \ case ${1} in\
  21983. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  21984. \ * ) func_dirname_result="${3}" ;;\
  21985. \ esac\
  21986. \ func_basename_result="${1##*/}"\
  21987. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  21988. && mv -f "$cfgfile.tmp" "$cfgfile" \
  21989. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  21990. test 0 -eq $? || _lt_function_replace_fail=:
  21991. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  21992. func_stripname ()\
  21993. {\
  21994. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  21995. \ # positional parameters, so assign one to ordinary parameter first.\
  21996. \ func_stripname_result=${3}\
  21997. \ func_stripname_result=${func_stripname_result#"${1}"}\
  21998. \ func_stripname_result=${func_stripname_result%"${2}"}\
  21999. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22000. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22001. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22002. test 0 -eq $? || _lt_function_replace_fail=:
  22003. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22004. func_split_long_opt ()\
  22005. {\
  22006. \ func_split_long_opt_name=${1%%=*}\
  22007. \ func_split_long_opt_arg=${1#*=}\
  22008. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22009. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22010. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22011. test 0 -eq $? || _lt_function_replace_fail=:
  22012. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22013. func_split_short_opt ()\
  22014. {\
  22015. \ func_split_short_opt_arg=${1#??}\
  22016. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22017. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22018. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22019. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22020. test 0 -eq $? || _lt_function_replace_fail=:
  22021. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22022. func_lo2o ()\
  22023. {\
  22024. \ case ${1} in\
  22025. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22026. \ *) func_lo2o_result=${1} ;;\
  22027. \ esac\
  22028. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22029. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22030. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22031. test 0 -eq $? || _lt_function_replace_fail=:
  22032. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22033. func_xform ()\
  22034. {\
  22035. func_xform_result=${1%.*}.lo\
  22036. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22037. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22038. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22039. test 0 -eq $? || _lt_function_replace_fail=:
  22040. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22041. func_arith ()\
  22042. {\
  22043. func_arith_result=$(( $* ))\
  22044. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22045. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22046. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22047. test 0 -eq $? || _lt_function_replace_fail=:
  22048. sed -e '/^func_len ()$/,/^} # func_len /c\
  22049. func_len ()\
  22050. {\
  22051. func_len_result=${#1}\
  22052. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22053. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22054. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22055. test 0 -eq $? || _lt_function_replace_fail=:
  22056. fi
  22057. if test x"$lt_shell_append" = xyes; then
  22058. sed -e '/^func_append ()$/,/^} # func_append /c\
  22059. func_append ()\
  22060. {\
  22061. eval "${1}+=\\${2}"\
  22062. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22063. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22064. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22065. test 0 -eq $? || _lt_function_replace_fail=:
  22066. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22067. func_append_quoted ()\
  22068. {\
  22069. \ func_quote_for_eval "${2}"\
  22070. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22071. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22072. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22073. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22074. test 0 -eq $? || _lt_function_replace_fail=:
  22075. # Save a `func_append' function call where possible by direct use of '+='
  22076. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22077. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22078. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22079. test 0 -eq $? || _lt_function_replace_fail=:
  22080. else
  22081. # Save a `func_append' function call even when '+=' is not available
  22082. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22083. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22084. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22085. test 0 -eq $? || _lt_function_replace_fail=:
  22086. fi
  22087. if test x"$_lt_function_replace_fail" = x":"; then
  22088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22089. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22090. fi
  22091. mv -f "$cfgfile" "$ofile" ||
  22092. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22093. chmod +x "$ofile"
  22094. cat <<_LT_EOF >> "$ofile"
  22095. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22096. # The linker used to build libraries.
  22097. LD=$lt_LD_CXX
  22098. # How to create reloadable object files.
  22099. reload_flag=$lt_reload_flag_CXX
  22100. reload_cmds=$lt_reload_cmds_CXX
  22101. # Commands used to build an old-style archive.
  22102. old_archive_cmds=$lt_old_archive_cmds_CXX
  22103. # A language specific compiler.
  22104. CC=$lt_compiler_CXX
  22105. # Is the compiler the GNU compiler?
  22106. with_gcc=$GCC_CXX
  22107. # Compiler flag to turn off builtin functions.
  22108. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22109. # Additional compiler flags for building library objects.
  22110. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22111. # How to pass a linker flag through the compiler.
  22112. wl=$lt_lt_prog_compiler_wl_CXX
  22113. # Compiler flag to prevent dynamic linking.
  22114. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22115. # Does compiler simultaneously support -c and -o options?
  22116. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22117. # Whether or not to add -lc for building shared libraries.
  22118. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22119. # Whether or not to disallow shared libs when runtime libs are static.
  22120. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22121. # Compiler flag to allow reflexive dlopens.
  22122. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22123. # Compiler flag to generate shared objects directly from archives.
  22124. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22125. # Whether the compiler copes with passing no objects directly.
  22126. compiler_needs_object=$lt_compiler_needs_object_CXX
  22127. # Create an old-style archive from a shared archive.
  22128. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22129. # Create a temporary old-style archive to link instead of a shared archive.
  22130. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22131. # Commands used to build a shared archive.
  22132. archive_cmds=$lt_archive_cmds_CXX
  22133. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22134. # Commands used to build a loadable module if different from building
  22135. # a shared archive.
  22136. module_cmds=$lt_module_cmds_CXX
  22137. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22138. # Whether we are building with GNU ld or not.
  22139. with_gnu_ld=$lt_with_gnu_ld_CXX
  22140. # Flag that allows shared libraries with undefined symbols to be built.
  22141. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22142. # Flag that enforces no undefined symbols.
  22143. no_undefined_flag=$lt_no_undefined_flag_CXX
  22144. # Flag to hardcode \$libdir into a binary during linking.
  22145. # This must work even if \$libdir does not exist
  22146. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22147. # Whether we need a single "-rpath" flag with a separated argument.
  22148. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22149. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22150. # DIR into the resulting binary.
  22151. hardcode_direct=$hardcode_direct_CXX
  22152. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22153. # DIR into the resulting binary and the resulting library dependency is
  22154. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22155. # library is relocated.
  22156. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22157. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22158. # into the resulting binary.
  22159. hardcode_minus_L=$hardcode_minus_L_CXX
  22160. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22161. # into the resulting binary.
  22162. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22163. # Set to "yes" if building a shared library automatically hardcodes DIR
  22164. # into the library and all subsequent libraries and executables linked
  22165. # against it.
  22166. hardcode_automatic=$hardcode_automatic_CXX
  22167. # Set to yes if linker adds runtime paths of dependent libraries
  22168. # to runtime path list.
  22169. inherit_rpath=$inherit_rpath_CXX
  22170. # Whether libtool must link a program against all its dependency libraries.
  22171. link_all_deplibs=$link_all_deplibs_CXX
  22172. # Set to "yes" if exported symbols are required.
  22173. always_export_symbols=$always_export_symbols_CXX
  22174. # The commands to list exported symbols.
  22175. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22176. # Symbols that should not be listed in the preloaded symbols.
  22177. exclude_expsyms=$lt_exclude_expsyms_CXX
  22178. # Symbols that must always be exported.
  22179. include_expsyms=$lt_include_expsyms_CXX
  22180. # Commands necessary for linking programs (against libraries) with templates.
  22181. prelink_cmds=$lt_prelink_cmds_CXX
  22182. # Commands necessary for finishing linking programs.
  22183. postlink_cmds=$lt_postlink_cmds_CXX
  22184. # Specify filename containing input files.
  22185. file_list_spec=$lt_file_list_spec_CXX
  22186. # How to hardcode a shared library path into an executable.
  22187. hardcode_action=$hardcode_action_CXX
  22188. # The directories searched by this compiler when creating a shared library.
  22189. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22190. # Dependencies to place before and after the objects being linked to
  22191. # create a shared library.
  22192. predep_objects=$lt_predep_objects_CXX
  22193. postdep_objects=$lt_postdep_objects_CXX
  22194. predeps=$lt_predeps_CXX
  22195. postdeps=$lt_postdeps_CXX
  22196. # The library search path used internally by the compiler when linking
  22197. # a shared library.
  22198. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22199. # ### END LIBTOOL TAG CONFIG: CXX
  22200. _LT_EOF
  22201. ;;
  22202. "sdl2_config":C) chmod a+x sdl2-config ;;
  22203. "summary":C) echo -en "$SUMMARY" ;;
  22204. esac
  22205. done # for ac_tag
  22206. as_fn_exit 0
  22207. _ACEOF
  22208. ac_clean_files=$ac_clean_files_save
  22209. test $ac_write_fail = 0 ||
  22210. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22211. # configure is writing to config.log, and then calls config.status.
  22212. # config.status does its own redirection, appending to config.log.
  22213. # Unfortunately, on DOS this fails, as config.log is still kept open
  22214. # by configure, so config.status won't be able to write to it; its
  22215. # output is simply discarded. So we exec the FD to /dev/null,
  22216. # effectively closing config.log, so it can be properly (re)opened and
  22217. # appended to by config.status. When coming back to configure, we
  22218. # need to make the FD available again.
  22219. if test "$no_create" != yes; then
  22220. ac_cs_success=:
  22221. ac_config_status_args=
  22222. test "$silent" = yes &&
  22223. ac_config_status_args="$ac_config_status_args --quiet"
  22224. exec 5>/dev/null
  22225. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22226. exec 5>>config.log
  22227. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22228. # would make configure fail if this is the last instruction.
  22229. $ac_cs_success || as_fn_exit 1
  22230. fi
  22231. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22233. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22234. fi